@kingstinct/react-native-healthkit 12.1.2 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/CategoryTypeModule.swift +52 -98
- package/ios/CharacteristicTypeModule.swift +77 -63
- package/ios/CoreModule.swift +324 -280
- package/ios/CorrelationTypeModule.swift +198 -144
- package/ios/ElectrocardiogramModule.swift +185 -194
- package/ios/HeartbeatSeriesModule.swift +123 -171
- package/ios/Helpers.swift +319 -571
- package/ios/MedicationModule.swift +259 -0
- package/ios/PredicateHelpers.swift +334 -0
- package/ios/QuantityTypeModule.swift +436 -373
- package/ios/Serializers.swift +273 -210
- package/ios/SourceProxy.swift +2 -2
- package/ios/StateOfMindModule.swift +181 -125
- package/ios/WorkoutProxy.swift +235 -112
- package/ios/WorkoutsModule.swift +214 -262
- package/lib/commonjs/healthkit.ios.js +26 -2
- package/lib/commonjs/healthkit.js +46 -10
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +1 -1
- package/lib/commonjs/hooks/useSubscribeToCategorySamples.js +20 -0
- package/lib/commonjs/modules.js +2 -1
- package/lib/commonjs/specs/MedicationModule.nitro.js +27 -0
- package/lib/commonjs/types/Constants.js +2 -1
- package/lib/commonjs/types/QuantityType.js +8 -1
- package/lib/commonjs/types/QueryOptions.js +18 -0
- package/lib/commonjs/types/WeatherCondition.js +32 -32
- package/lib/commonjs/types/Workouts.js +1 -50
- package/lib/commonjs/utils/getCategorySampleById.js +1 -1
- package/lib/commonjs/utils/getQuantitySampleById.js +1 -1
- package/lib/commonjs/utils/getWorkoutById.js +1 -1
- package/lib/commonjs/utils/subscribeToCategorySamples.js +29 -0
- package/lib/commonjs/utils/subscribeToQuantitySamples.js +8 -25
- package/lib/module/healthkit.ios.js +24 -2
- package/lib/module/healthkit.js +43 -7
- package/lib/module/hooks/useStatisticsForQuantity.js +1 -1
- package/lib/module/hooks/useSubscribeToCategorySamples.js +17 -0
- package/lib/module/modules.js +1 -0
- package/lib/module/specs/MedicationModule.nitro.js +26 -0
- package/lib/module/types/Constants.js +1 -0
- package/lib/module/types/QuantityType.js +7 -0
- package/lib/module/types/QueryOptions.js +17 -1
- package/lib/module/types/WeatherCondition.js +31 -31
- package/lib/module/types/Workouts.js +0 -49
- package/lib/module/utils/getCategorySampleById.js +1 -1
- package/lib/module/utils/getQuantitySampleById.js +1 -1
- package/lib/module/utils/getWorkoutById.js +1 -1
- package/lib/module/utils/subscribeToCategorySamples.js +26 -0
- package/lib/module/utils/subscribeToQuantitySamples.js +8 -25
- package/lib/typescript/healthkit.d.ts +24 -13
- package/lib/typescript/healthkit.ios.d.ts +45 -23
- package/lib/typescript/hooks/useSubscribeToCategorySamples.d.ts +3 -0
- package/lib/typescript/modules.d.ts +2 -0
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +4 -4
- package/lib/typescript/specs/CoreModule.nitro.d.ts +2 -1
- package/lib/typescript/specs/CorrelationTypeModule.nitro.d.ts +5 -3
- package/lib/typescript/specs/ElectrocardiogramModule.nitro.d.ts +1 -1
- package/lib/typescript/specs/HeartbeatSeriesModule.nitro.d.ts +1 -1
- package/lib/typescript/specs/MedicationModule.nitro.d.ts +56 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +7 -5
- package/lib/typescript/specs/StateOfMindModule.nitro.d.ts +5 -4
- package/lib/typescript/types/CategoryType.d.ts +10 -20
- package/lib/typescript/types/Constants.d.ts +1 -0
- package/lib/typescript/types/CorrelationType.d.ts +8 -10
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +2 -12
- package/lib/typescript/types/HeartbeatSeries.d.ts +2 -14
- package/lib/typescript/types/QuantitySample.d.ts +3 -9
- package/lib/typescript/types/QuantityType.d.ts +13 -9
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +23 -23
- package/lib/typescript/types/QueryOptions.d.ts +43 -28
- package/lib/typescript/types/Shared.d.ts +52 -7
- package/lib/typescript/types/StateOfMind.d.ts +7 -10
- package/lib/typescript/types/Subscriptions.d.ts +12 -3
- package/lib/typescript/types/WeatherCondition.d.ts +1 -1
- package/lib/typescript/types/Workouts.d.ts +28 -81
- package/lib/typescript/utils/subscribeToCategorySamples.d.ts +5 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +113 -16
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +1065 -573
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +68 -30
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +8 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +15 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +40 -34
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +36 -37
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +78 -25
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +36 -30
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +35 -29
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +181 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +69 -44
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +60 -37
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +150 -29
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +14 -29
- package/nitrogen/generated/ios/swift/AggregationStyle.swift +48 -0
- package/nitrogen/generated/ios/swift/CategorySample.swift +571 -24
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +2 -2
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +640 -17
- package/nitrogen/generated/ios/swift/{PredicateWithStartAndEnd.swift → DateFilter.swift} +5 -5
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +11 -91
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +11 -91
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +570 -72
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +349 -12
- package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +234 -0
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +366 -0
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +240 -0
- package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +47 -0
- package/nitrogen/generated/ios/swift/GeneralForm.swift +104 -0
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +44 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +565 -37
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +23 -10
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +19 -31
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +3 -2
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +42 -10
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +60 -0
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +208 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +5 -3
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +76 -47
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +3 -2
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +34 -9
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +34 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +376 -36
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +40 -0
- package/nitrogen/generated/ios/swift/MedicationConcept.swift +80 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +781 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventLogStatus.swift +56 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventScheduleType.swift +40 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventsWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +7 -7
- package/nitrogen/generated/ios/swift/QuantitySample.swift +574 -27
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +24 -5
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +34 -1
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +266 -0
- package/nitrogen/generated/ios/swift/RelatedCoding.swift +76 -0
- package/nitrogen/generated/ios/swift/SampleType.swift +68 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +0 -16
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +586 -58
- package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/StatisticsOptions.swift +0 -4
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +7 -75
- package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +87 -0
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +144 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +11 -105
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +11 -105
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +751 -78
- package/nitrogen/generated/shared/c++/AggregationStyle.hpp +64 -0
- package/nitrogen/generated/shared/c++/CategorySample.hpp +126 -23
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +134 -12
- package/nitrogen/generated/shared/c++/{PredicateWithStartAndEnd.hpp → DateFilter.hpp} +10 -10
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +12 -31
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +12 -31
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +135 -36
- package/nitrogen/generated/shared/c++/FilterForSamples.hpp +124 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +109 -0
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +131 -0
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +116 -0
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +140 -0
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +67 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +131 -28
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +6 -6
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +10 -28
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +16 -5
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -2
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -2
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +3 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +13 -27
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +9 -2
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +33 -5
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +56 -16
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +62 -0
- package/nitrogen/generated/shared/c++/MedicationConcept.hpp +93 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +240 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventLogStatus.hpp +66 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventScheduleType.hpp +62 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventsWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +8 -8
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +130 -27
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +6 -6
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +11 -2
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +121 -0
- package/nitrogen/generated/shared/c++/RelatedCoding.hpp +84 -0
- package/nitrogen/generated/shared/c++/SampleType.hpp +87 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +105 -121
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +139 -36
- package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +0 -4
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +8 -27
- package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +90 -0
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +88 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +12 -37
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +12 -37
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +159 -35
- package/package.json +1 -1
- package/src/healthkit.ios.ts +38 -0
- package/src/healthkit.ts +88 -8
- package/src/hooks/queryStatisticsForQuantity.test.ts +4 -1
- package/src/hooks/useStatisticsForQuantity.ts +1 -1
- package/src/hooks/useSubscribeToCategorySamples.ts +31 -0
- package/src/modules.ts +4 -0
- package/src/specs/CategoryTypeModule.nitro.ts +6 -6
- package/src/specs/CoreModule.nitro.ts +3 -0
- package/src/specs/CorrelationTypeModule.nitro.ts +13 -5
- package/src/specs/ElectrocardiogramModule.nitro.ts +1 -1
- package/src/specs/HeartbeatSeriesModule.nitro.ts +1 -1
- package/src/specs/MedicationModule.nitro.ts +135 -0
- package/src/specs/QuantityTypeModule.nitro.ts +21 -9
- package/src/specs/StateOfMindModule.nitro.ts +11 -3
- package/src/types/CategoryType.ts +15 -22
- package/src/types/Constants.ts +3 -0
- package/src/types/CorrelationType.ts +10 -15
- package/src/types/ElectrocardiogramSample.ts +2 -14
- package/src/types/HeartbeatSeries.ts +2 -15
- package/src/types/QuantitySample.ts +3 -9
- package/src/types/QuantityType.ts +16 -18
- package/src/types/QuantityTypeIdentifier.ts +25 -25
- package/src/types/QueryOptions.ts +54 -43
- package/src/types/Shared.ts +74 -17
- package/src/types/StateOfMind.ts +8 -10
- package/src/types/Subscriptions.ts +19 -3
- package/src/types/WeatherCondition.ts +1 -1
- package/src/types/Workouts.ts +28 -91
- package/src/utils/getCategorySampleById.ts +1 -1
- package/src/utils/getQuantitySampleById.ts +1 -1
- package/src/utils/getWorkoutById.ts +1 -2
- package/src/utils/subscribeToCategorySamples.ts +38 -0
- package/src/utils/subscribeToQuantitySamples.ts +12 -37
- package/nitrogen/generated/ios/swift/FilterForSamplesAnd.swift +0 -94
- package/nitrogen/generated/ios/swift/FilterForSamplesOr.swift +0 -94
- package/nitrogen/generated/ios/swift/PredicateForSamples.swift +0 -21
- package/nitrogen/generated/ios/swift/PredicateForWorkouts.swift +0 -23
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsAnd.swift +0 -108
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsOr.swift +0 -108
- package/nitrogen/generated/ios/swift/PredicateFromWorkout.swift +0 -45
- package/nitrogen/generated/ios/swift/PredicateWithMetadataOperator.swift +0 -48
- package/nitrogen/generated/ios/swift/PredicateWithUUID.swift +0 -35
- package/nitrogen/generated/ios/swift/PredicateWithUUIDs.swift +0 -47
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr.swift +0 -23
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_WorkoutActivityTypePredicate_WorkoutDurationPredicate_PredicateForWorkoutsOr_PredicateForWorkoutsAnd.swift +0 -25
- package/nitrogen/generated/ios/swift/WorkoutActivityTypePredicate.swift +0 -35
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +0 -90
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +0 -90
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +0 -96
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +0 -96
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +0 -77
- package/nitrogen/generated/shared/c++/PredicateWithMetadataOperator.hpp +0 -84
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +0 -75
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +0 -76
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +0 -76
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AggregationStyle` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::healthkit { enum class AggregationStyle; }
|
|
11
13
|
// Forward declaration of `AuthDataTypes` to properly resolve imports.
|
|
12
14
|
namespace margelo::nitro::healthkit { struct AuthDataTypes; }
|
|
13
15
|
// Forward declaration of `AuthorizationRequestStatus` to properly resolve imports.
|
|
@@ -32,6 +34,8 @@ namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
|
32
34
|
namespace margelo::nitro::healthkit { struct CorrelationSample; }
|
|
33
35
|
// Forward declaration of `CorrelationTypeIdentifier` to properly resolve imports.
|
|
34
36
|
namespace margelo::nitro::healthkit { enum class CorrelationTypeIdentifier; }
|
|
37
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
35
39
|
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
36
40
|
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
37
41
|
// Forward declaration of `Device` to properly resolve imports.
|
|
@@ -52,12 +56,20 @@ namespace margelo::nitro::healthkit { struct ElectrocardiogramSamplesWithAnchorR
|
|
|
52
56
|
namespace margelo::nitro::healthkit { enum class ElectrocardiogramSymptomsStatus; }
|
|
53
57
|
// Forward declaration of `ElectrocardiogramVoltage` to properly resolve imports.
|
|
54
58
|
namespace margelo::nitro::healthkit { struct ElectrocardiogramVoltage; }
|
|
55
|
-
// Forward declaration of `
|
|
56
|
-
namespace margelo::nitro::healthkit { struct
|
|
57
|
-
// Forward declaration of `
|
|
58
|
-
namespace margelo::nitro::healthkit { struct
|
|
59
|
+
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
61
|
+
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
62
|
+
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
63
|
+
// Forward declaration of `FilterForWorkoutsBase` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkoutsBase; }
|
|
65
|
+
// Forward declaration of `FilterForWorkouts` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkouts; }
|
|
59
67
|
// Forward declaration of `FitzpatrickSkinType` to properly resolve imports.
|
|
60
68
|
namespace margelo::nitro::healthkit { enum class FitzpatrickSkinType; }
|
|
69
|
+
// Forward declaration of `GeneralForm` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::healthkit { enum class GeneralForm; }
|
|
71
|
+
// Forward declaration of `HeartRateMotionContext` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::healthkit { enum class HeartRateMotionContext; }
|
|
61
73
|
// Forward declaration of `HeartbeatSeriesSample` to properly resolve imports.
|
|
62
74
|
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSample; }
|
|
63
75
|
// Forward declaration of `HeartbeatSeriesSamplesWithAnchorResponse` to properly resolve imports.
|
|
@@ -76,6 +88,8 @@ namespace margelo::nitro::healthkit { class HybridCorrelationTypeModuleSpec; }
|
|
|
76
88
|
namespace margelo::nitro::healthkit { class HybridElectrocardiogramModuleSpec; }
|
|
77
89
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec` to properly resolve imports.
|
|
78
90
|
namespace margelo::nitro::healthkit { class HybridHeartbeatSeriesModuleSpec; }
|
|
91
|
+
// Forward declaration of `HybridMedicationModuleSpec` to properly resolve imports.
|
|
92
|
+
namespace margelo::nitro::healthkit { class HybridMedicationModuleSpec; }
|
|
79
93
|
// Forward declaration of `HybridQuantityTypeModuleSpec` to properly resolve imports.
|
|
80
94
|
namespace margelo::nitro::healthkit { class HybridQuantityTypeModuleSpec; }
|
|
81
95
|
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
@@ -88,30 +102,28 @@ namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
|
88
102
|
namespace margelo::nitro::healthkit { class HybridWorkoutsModuleSpec; }
|
|
89
103
|
// Forward declaration of `IdentifierWithUnit` to properly resolve imports.
|
|
90
104
|
namespace margelo::nitro::healthkit { struct IdentifierWithUnit; }
|
|
105
|
+
// Forward declaration of `InsulinDeliveryReason` to properly resolve imports.
|
|
106
|
+
namespace margelo::nitro::healthkit { enum class InsulinDeliveryReason; }
|
|
91
107
|
// Forward declaration of `IntervalComponents` to properly resolve imports.
|
|
92
108
|
namespace margelo::nitro::healthkit { struct IntervalComponents; }
|
|
93
109
|
// Forward declaration of `LocationForSaving` to properly resolve imports.
|
|
94
110
|
namespace margelo::nitro::healthkit { struct LocationForSaving; }
|
|
111
|
+
// Forward declaration of `MedicationConcept` to properly resolve imports.
|
|
112
|
+
namespace margelo::nitro::healthkit { struct MedicationConcept; }
|
|
113
|
+
// Forward declaration of `MedicationDoseEventLogStatus` to properly resolve imports.
|
|
114
|
+
namespace margelo::nitro::healthkit { enum class MedicationDoseEventLogStatus; }
|
|
115
|
+
// Forward declaration of `MedicationDoseEventScheduleType` to properly resolve imports.
|
|
116
|
+
namespace margelo::nitro::healthkit { enum class MedicationDoseEventScheduleType; }
|
|
117
|
+
// Forward declaration of `MedicationDoseEvent` to properly resolve imports.
|
|
118
|
+
namespace margelo::nitro::healthkit { struct MedicationDoseEvent; }
|
|
119
|
+
// Forward declaration of `MedicationDoseEventsWithAnchorResponse` to properly resolve imports.
|
|
120
|
+
namespace margelo::nitro::healthkit { struct MedicationDoseEventsWithAnchorResponse; }
|
|
95
121
|
// Forward declaration of `ObjectTypeIdentifier` to properly resolve imports.
|
|
96
122
|
namespace margelo::nitro::healthkit { enum class ObjectTypeIdentifier; }
|
|
97
123
|
// Forward declaration of `OnChangeCallbackArgs` to properly resolve imports.
|
|
98
124
|
namespace margelo::nitro::healthkit { struct OnChangeCallbackArgs; }
|
|
99
|
-
// Forward declaration of `PredicateForWorkoutsAnd` to properly resolve imports.
|
|
100
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsAnd; }
|
|
101
|
-
// Forward declaration of `PredicateForWorkoutsOr` to properly resolve imports.
|
|
102
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsOr; }
|
|
103
|
-
// Forward declaration of `PredicateFromWorkout` to properly resolve imports.
|
|
104
|
-
namespace margelo::nitro::healthkit { struct PredicateFromWorkout; }
|
|
105
125
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
106
126
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
107
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
108
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
109
|
-
// Forward declaration of `PredicateWithStartAndEnd` to properly resolve imports.
|
|
110
|
-
namespace margelo::nitro::healthkit { struct PredicateWithStartAndEnd; }
|
|
111
|
-
// Forward declaration of `PredicateWithUUID` to properly resolve imports.
|
|
112
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUID; }
|
|
113
|
-
// Forward declaration of `PredicateWithUUIDs` to properly resolve imports.
|
|
114
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUIDs; }
|
|
115
127
|
// Forward declaration of `QuantityDateInterval` to properly resolve imports.
|
|
116
128
|
namespace margelo::nitro::healthkit { struct QuantityDateInterval; }
|
|
117
129
|
// Forward declaration of `QuantitySampleForSaving` to properly resolve imports.
|
|
@@ -124,6 +136,8 @@ namespace margelo::nitro::healthkit { struct QuantitySamplesWithAnchorResponse;
|
|
|
124
136
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
125
137
|
// Forward declaration of `Quantity` to properly resolve imports.
|
|
126
138
|
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
139
|
+
// Forward declaration of `QueryCorrelationSamplesWithAnchorResponse` to properly resolve imports.
|
|
140
|
+
namespace margelo::nitro::healthkit { struct QueryCorrelationSamplesWithAnchorResponse; }
|
|
127
141
|
// Forward declaration of `QueryOptionsWithAnchorAndUnit` to properly resolve imports.
|
|
128
142
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchorAndUnit; }
|
|
129
143
|
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
|
|
@@ -132,14 +146,20 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
132
146
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrderAndUnit; }
|
|
133
147
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
134
148
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
149
|
+
// Forward declaration of `QueryStatisticsResponseFromSingleSource` to properly resolve imports.
|
|
150
|
+
namespace margelo::nitro::healthkit { struct QueryStatisticsResponseFromSingleSource; }
|
|
135
151
|
// Forward declaration of `QueryStatisticsResponse` to properly resolve imports.
|
|
136
152
|
namespace margelo::nitro::healthkit { struct QueryStatisticsResponse; }
|
|
137
153
|
// Forward declaration of `QueryWorkoutSamplesWithAnchorResponse` to properly resolve imports.
|
|
138
154
|
namespace margelo::nitro::healthkit { struct QueryWorkoutSamplesWithAnchorResponse; }
|
|
155
|
+
// Forward declaration of `RelatedCoding` to properly resolve imports.
|
|
156
|
+
namespace margelo::nitro::healthkit { struct RelatedCoding; }
|
|
139
157
|
// Forward declaration of `SampleTypeIdentifierWriteable` to properly resolve imports.
|
|
140
158
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable; }
|
|
141
159
|
// Forward declaration of `SampleTypeIdentifier` to properly resolve imports.
|
|
142
160
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifier; }
|
|
161
|
+
// Forward declaration of `SampleType` to properly resolve imports.
|
|
162
|
+
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
143
163
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
144
164
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
145
165
|
// Forward declaration of `Source` to properly resolve imports.
|
|
@@ -152,6 +172,8 @@ namespace margelo::nitro::healthkit { enum class StateOfMindKind; }
|
|
|
152
172
|
namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
|
|
153
173
|
// Forward declaration of `StateOfMindSample` to properly resolve imports.
|
|
154
174
|
namespace margelo::nitro::healthkit { struct StateOfMindSample; }
|
|
175
|
+
// Forward declaration of `StateOfMindSamplesWithAnchorResponse` to properly resolve imports.
|
|
176
|
+
namespace margelo::nitro::healthkit { struct StateOfMindSamplesWithAnchorResponse; }
|
|
155
177
|
// Forward declaration of `StateOfMindValenceClassification` to properly resolve imports.
|
|
156
178
|
namespace margelo::nitro::healthkit { enum class StateOfMindValenceClassification; }
|
|
157
179
|
// Forward declaration of `StatisticsOptions` to properly resolve imports.
|
|
@@ -160,10 +182,12 @@ namespace margelo::nitro::healthkit { enum class StatisticsOptions; }
|
|
|
160
182
|
namespace margelo::nitro::healthkit { struct StatisticsQueryOptions; }
|
|
161
183
|
// Forward declaration of `UpdateFrequency` to properly resolve imports.
|
|
162
184
|
namespace margelo::nitro::healthkit { enum class UpdateFrequency; }
|
|
185
|
+
// Forward declaration of `UserAnnotatedMedication` to properly resolve imports.
|
|
186
|
+
namespace margelo::nitro::healthkit { struct UserAnnotatedMedication; }
|
|
187
|
+
// Forward declaration of `WeatherCondition` to properly resolve imports.
|
|
188
|
+
namespace margelo::nitro::healthkit { enum class WeatherCondition; }
|
|
163
189
|
// Forward declaration of `WheelchairUse` to properly resolve imports.
|
|
164
190
|
namespace margelo::nitro::healthkit { enum class WheelchairUse; }
|
|
165
|
-
// Forward declaration of `WorkoutActivityTypePredicate` to properly resolve imports.
|
|
166
|
-
namespace margelo::nitro::healthkit { struct WorkoutActivityTypePredicate; }
|
|
167
191
|
// Forward declaration of `WorkoutActivityType` to properly resolve imports.
|
|
168
192
|
namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
|
|
169
193
|
// Forward declaration of `WorkoutActivity` to properly resolve imports.
|
|
@@ -194,6 +218,7 @@ namespace margelo::nitro::healthkit { enum class WorkoutSessionLocationType; }
|
|
|
194
218
|
namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
195
219
|
|
|
196
220
|
// Include C++ defined types
|
|
221
|
+
#include "AggregationStyle.hpp"
|
|
197
222
|
#include "AuthDataTypes.hpp"
|
|
198
223
|
#include "AuthorizationRequestStatus.hpp"
|
|
199
224
|
#include "AuthorizationStatus.hpp"
|
|
@@ -206,6 +231,7 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
206
231
|
#include "ComparisonPredicateOperator.hpp"
|
|
207
232
|
#include "CorrelationSample.hpp"
|
|
208
233
|
#include "CorrelationTypeIdentifier.hpp"
|
|
234
|
+
#include "DateFilter.hpp"
|
|
209
235
|
#include "DeletedSample.hpp"
|
|
210
236
|
#include "Device.hpp"
|
|
211
237
|
#include "ECGQueryOptionsWithAnchor.hpp"
|
|
@@ -216,9 +242,13 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
216
242
|
#include "ElectrocardiogramSamplesWithAnchorResponse.hpp"
|
|
217
243
|
#include "ElectrocardiogramSymptomsStatus.hpp"
|
|
218
244
|
#include "ElectrocardiogramVoltage.hpp"
|
|
219
|
-
#include "
|
|
220
|
-
#include "
|
|
245
|
+
#include "FilterForSamples.hpp"
|
|
246
|
+
#include "FilterForSamplesBase.hpp"
|
|
247
|
+
#include "FilterForWorkouts.hpp"
|
|
248
|
+
#include "FilterForWorkoutsBase.hpp"
|
|
221
249
|
#include "FitzpatrickSkinType.hpp"
|
|
250
|
+
#include "GeneralForm.hpp"
|
|
251
|
+
#include "HeartRateMotionContext.hpp"
|
|
222
252
|
#include "Heartbeat.hpp"
|
|
223
253
|
#include "HeartbeatSeriesSample.hpp"
|
|
224
254
|
#include "HeartbeatSeriesSamplesWithAnchorResponse.hpp"
|
|
@@ -228,36 +258,40 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
228
258
|
#include "HybridCorrelationTypeModuleSpec.hpp"
|
|
229
259
|
#include "HybridElectrocardiogramModuleSpec.hpp"
|
|
230
260
|
#include "HybridHeartbeatSeriesModuleSpec.hpp"
|
|
261
|
+
#include "HybridMedicationModuleSpec.hpp"
|
|
231
262
|
#include "HybridQuantityTypeModuleSpec.hpp"
|
|
232
263
|
#include "HybridSourceProxySpec.hpp"
|
|
233
264
|
#include "HybridStateOfMindModuleSpec.hpp"
|
|
234
265
|
#include "HybridWorkoutProxySpec.hpp"
|
|
235
266
|
#include "HybridWorkoutsModuleSpec.hpp"
|
|
236
267
|
#include "IdentifierWithUnit.hpp"
|
|
268
|
+
#include "InsulinDeliveryReason.hpp"
|
|
237
269
|
#include "IntervalComponents.hpp"
|
|
238
270
|
#include "LocationForSaving.hpp"
|
|
271
|
+
#include "MedicationConcept.hpp"
|
|
272
|
+
#include "MedicationDoseEvent.hpp"
|
|
273
|
+
#include "MedicationDoseEventLogStatus.hpp"
|
|
274
|
+
#include "MedicationDoseEventScheduleType.hpp"
|
|
275
|
+
#include "MedicationDoseEventsWithAnchorResponse.hpp"
|
|
239
276
|
#include "ObjectTypeIdentifier.hpp"
|
|
240
277
|
#include "OnChangeCallbackArgs.hpp"
|
|
241
|
-
#include "PredicateForWorkoutsAnd.hpp"
|
|
242
|
-
#include "PredicateForWorkoutsOr.hpp"
|
|
243
|
-
#include "PredicateFromWorkout.hpp"
|
|
244
278
|
#include "PredicateWithMetadataKey.hpp"
|
|
245
|
-
#include "PredicateWithMetadataOperator.hpp"
|
|
246
|
-
#include "PredicateWithStartAndEnd.hpp"
|
|
247
|
-
#include "PredicateWithUUID.hpp"
|
|
248
|
-
#include "PredicateWithUUIDs.hpp"
|
|
249
279
|
#include "Quantity.hpp"
|
|
250
280
|
#include "QuantityDateInterval.hpp"
|
|
251
281
|
#include "QuantitySample.hpp"
|
|
252
282
|
#include "QuantitySampleForSaving.hpp"
|
|
253
283
|
#include "QuantitySamplesWithAnchorResponse.hpp"
|
|
254
284
|
#include "QuantityTypeIdentifier.hpp"
|
|
285
|
+
#include "QueryCorrelationSamplesWithAnchorResponse.hpp"
|
|
255
286
|
#include "QueryOptionsWithAnchor.hpp"
|
|
256
287
|
#include "QueryOptionsWithAnchorAndUnit.hpp"
|
|
257
288
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
258
289
|
#include "QueryOptionsWithSortOrderAndUnit.hpp"
|
|
259
290
|
#include "QueryStatisticsResponse.hpp"
|
|
291
|
+
#include "QueryStatisticsResponseFromSingleSource.hpp"
|
|
260
292
|
#include "QueryWorkoutSamplesWithAnchorResponse.hpp"
|
|
293
|
+
#include "RelatedCoding.hpp"
|
|
294
|
+
#include "SampleType.hpp"
|
|
261
295
|
#include "SampleTypeIdentifier.hpp"
|
|
262
296
|
#include "SampleTypeIdentifierWriteable.hpp"
|
|
263
297
|
#include "Source.hpp"
|
|
@@ -266,14 +300,16 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
266
300
|
#include "StateOfMindKind.hpp"
|
|
267
301
|
#include "StateOfMindLabel.hpp"
|
|
268
302
|
#include "StateOfMindSample.hpp"
|
|
303
|
+
#include "StateOfMindSamplesWithAnchorResponse.hpp"
|
|
269
304
|
#include "StateOfMindValenceClassification.hpp"
|
|
270
305
|
#include "StatisticsOptions.hpp"
|
|
271
306
|
#include "StatisticsQueryOptions.hpp"
|
|
272
307
|
#include "UpdateFrequency.hpp"
|
|
308
|
+
#include "UserAnnotatedMedication.hpp"
|
|
309
|
+
#include "WeatherCondition.hpp"
|
|
273
310
|
#include "WheelchairUse.hpp"
|
|
274
311
|
#include "WorkoutActivity.hpp"
|
|
275
312
|
#include "WorkoutActivityType.hpp"
|
|
276
|
-
#include "WorkoutActivityTypePredicate.hpp"
|
|
277
313
|
#include "WorkoutConfiguration.hpp"
|
|
278
314
|
#include "WorkoutDurationPredicate.hpp"
|
|
279
315
|
#include "WorkoutEvent.hpp"
|
|
@@ -321,6 +357,8 @@ namespace ReactNativeHealthkit { class HybridCorrelationTypeModuleSpec_cxx; }
|
|
|
321
357
|
namespace ReactNativeHealthkit { class HybridElectrocardiogramModuleSpec_cxx; }
|
|
322
358
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec_cxx` to properly resolve imports.
|
|
323
359
|
namespace ReactNativeHealthkit { class HybridHeartbeatSeriesModuleSpec_cxx; }
|
|
360
|
+
// Forward declaration of `HybridMedicationModuleSpec_cxx` to properly resolve imports.
|
|
361
|
+
namespace ReactNativeHealthkit { class HybridMedicationModuleSpec_cxx; }
|
|
324
362
|
// Forward declaration of `HybridQuantityTypeModuleSpec_cxx` to properly resolve imports.
|
|
325
363
|
namespace ReactNativeHealthkit { class HybridQuantityTypeModuleSpec_cxx; }
|
|
326
364
|
// Forward declaration of `HybridSourceProxySpec_cxx` to properly resolve imports.
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
#include "HybridElectrocardiogramModuleSpecSwift.hpp"
|
|
20
20
|
#include "HybridHeartbeatSeriesModuleSpecSwift.hpp"
|
|
21
21
|
#include "HybridStateOfMindModuleSpecSwift.hpp"
|
|
22
|
+
#include "HybridMedicationModuleSpecSwift.hpp"
|
|
22
23
|
|
|
23
24
|
@interface ReactNativeHealthkitAutolinking : NSObject
|
|
24
25
|
@end
|
|
@@ -92,6 +93,13 @@
|
|
|
92
93
|
return hybridObject;
|
|
93
94
|
}
|
|
94
95
|
);
|
|
96
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
97
|
+
"MedicationModule",
|
|
98
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
99
|
+
std::shared_ptr<HybridMedicationModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createMedicationModule();
|
|
100
|
+
return hybridObject;
|
|
101
|
+
}
|
|
102
|
+
);
|
|
95
103
|
}
|
|
96
104
|
|
|
97
105
|
@end
|
|
@@ -142,4 +142,19 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
142
142
|
return __cxxWrapped.getCxxPart()
|
|
143
143
|
}()
|
|
144
144
|
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Creates an instance of a Swift class that implements `HybridMedicationModuleSpec`,
|
|
148
|
+
* and wraps it in a Swift class that can directly interop with C++ (`HybridMedicationModuleSpec_cxx`)
|
|
149
|
+
*
|
|
150
|
+
* This is generated by Nitrogen and will initialize the class specified
|
|
151
|
+
* in the `"autolinking"` property of `nitro.json` (in this case, `MedicationModule`).
|
|
152
|
+
*/
|
|
153
|
+
public static func createMedicationModule() -> bridge.std__shared_ptr_HybridMedicationModuleSpec_ {
|
|
154
|
+
let hybridObject = MedicationModule()
|
|
155
|
+
return { () -> bridge.std__shared_ptr_HybridMedicationModuleSpec_ in
|
|
156
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
157
|
+
return __cxxWrapped.getCxxPart()
|
|
158
|
+
}()
|
|
159
|
+
}
|
|
145
160
|
}
|
|
@@ -12,34 +12,38 @@
|
|
|
12
12
|
// Forward declaration of `HybridCategoryTypeModuleSpec_cxx` to properly resolve imports.
|
|
13
13
|
namespace ReactNativeHealthkit { class HybridCategoryTypeModuleSpec_cxx; }
|
|
14
14
|
|
|
15
|
-
// Forward declaration of `CategoryTypeIdentifier` to properly resolve imports.
|
|
16
|
-
namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifier; }
|
|
17
15
|
// Forward declaration of `CategorySample` to properly resolve imports.
|
|
18
16
|
namespace margelo::nitro::healthkit { struct CategorySample; }
|
|
19
|
-
// Forward declaration of `
|
|
20
|
-
namespace margelo::nitro::healthkit {
|
|
17
|
+
// Forward declaration of `CategoryTypeIdentifier` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifier; }
|
|
19
|
+
// Forward declaration of `SampleType` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
21
|
+
// Forward declaration of `WeatherCondition` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::healthkit { enum class WeatherCondition; }
|
|
23
|
+
// Forward declaration of `Quantity` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
25
|
+
// Forward declaration of `InsulinDeliveryReason` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { enum class InsulinDeliveryReason; }
|
|
27
|
+
// Forward declaration of `HeartRateMotionContext` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::healthkit { enum class HeartRateMotionContext; }
|
|
21
29
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
22
30
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
23
31
|
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
24
32
|
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
33
|
+
// Forward declaration of `Device` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { struct Device; }
|
|
25
35
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
26
36
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
27
|
-
// Forward declaration of `
|
|
28
|
-
namespace margelo::nitro::healthkit { struct
|
|
29
|
-
// Forward declaration of `
|
|
30
|
-
namespace margelo::nitro::healthkit { struct
|
|
37
|
+
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
39
|
+
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
31
41
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
32
42
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
33
|
-
// Forward declaration of `
|
|
34
|
-
namespace margelo::nitro::healthkit {
|
|
35
|
-
// Forward declaration of `
|
|
36
|
-
namespace margelo::nitro::healthkit { struct
|
|
37
|
-
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
38
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
39
|
-
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
40
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesOr; }
|
|
41
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
42
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
43
|
+
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
45
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
43
47
|
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
44
48
|
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
45
49
|
// Forward declaration of `CategorySamplesWithAnchorResponse` to properly resolve imports.
|
|
@@ -49,28 +53,30 @@ namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
|
49
53
|
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
|
|
50
54
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
51
55
|
|
|
56
|
+
#include "CategorySample.hpp"
|
|
57
|
+
#include <optional>
|
|
52
58
|
#include <NitroModules/Promise.hpp>
|
|
53
59
|
#include "CategoryTypeIdentifier.hpp"
|
|
54
|
-
#include
|
|
55
|
-
#include <NitroModules/AnyMap.hpp>
|
|
56
|
-
#include "CategorySample.hpp"
|
|
57
|
-
#include <vector>
|
|
60
|
+
#include "SampleType.hpp"
|
|
58
61
|
#include <string>
|
|
59
|
-
#include
|
|
60
|
-
#include
|
|
62
|
+
#include <chrono>
|
|
63
|
+
#include "WeatherCondition.hpp"
|
|
64
|
+
#include "Quantity.hpp"
|
|
65
|
+
#include "InsulinDeliveryReason.hpp"
|
|
66
|
+
#include "HeartRateMotionContext.hpp"
|
|
61
67
|
#include "SourceRevision.hpp"
|
|
62
68
|
#include <memory>
|
|
63
69
|
#include "HybridSourceProxySpec.hpp"
|
|
70
|
+
#include "Device.hpp"
|
|
71
|
+
#include <NitroModules/AnyMap.hpp>
|
|
72
|
+
#include <vector>
|
|
64
73
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
65
|
-
#include "
|
|
66
|
-
#include "
|
|
74
|
+
#include "FilterForSamples.hpp"
|
|
75
|
+
#include "FilterForSamplesBase.hpp"
|
|
67
76
|
#include "PredicateWithMetadataKey.hpp"
|
|
68
|
-
#include "
|
|
69
|
-
#include "PredicateFromWorkout.hpp"
|
|
70
|
-
#include "FilterForSamplesAnd.hpp"
|
|
71
|
-
#include "FilterForSamplesOr.hpp"
|
|
77
|
+
#include "ComparisonPredicateOperator.hpp"
|
|
72
78
|
#include <variant>
|
|
73
|
-
#include "
|
|
79
|
+
#include "DateFilter.hpp"
|
|
74
80
|
#include "HybridWorkoutProxySpec.hpp"
|
|
75
81
|
#include "CategorySamplesWithAnchorResponse.hpp"
|
|
76
82
|
#include "DeletedSample.hpp"
|
|
@@ -120,7 +126,7 @@ namespace margelo::nitro::healthkit {
|
|
|
120
126
|
|
|
121
127
|
public:
|
|
122
128
|
// Methods
|
|
123
|
-
inline std::shared_ptr<Promise<
|
|
129
|
+
inline std::shared_ptr<Promise<std::optional<CategorySample>>> saveCategorySample(CategoryTypeIdentifier identifier, double value, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, const std::optional<std::shared_ptr<AnyMap>>& metadata) override {
|
|
124
130
|
auto __result = _swiftPart.saveCategorySample(static_cast<int>(identifier), std::forward<decltype(value)>(value), startDate, endDate, metadata);
|
|
125
131
|
if (__result.hasError()) [[unlikely]] {
|
|
126
132
|
std::rethrow_exception(__result.error());
|
|
@@ -128,8 +134,8 @@ namespace margelo::nitro::healthkit {
|
|
|
128
134
|
auto __value = std::move(__result.value());
|
|
129
135
|
return __value;
|
|
130
136
|
}
|
|
131
|
-
inline std::shared_ptr<Promise<std::vector<CategorySample>>> queryCategorySamples(CategoryTypeIdentifier identifier, const
|
|
132
|
-
auto __result = _swiftPart.queryCategorySamples(static_cast<int>(identifier), options);
|
|
137
|
+
inline std::shared_ptr<Promise<std::vector<CategorySample>>> queryCategorySamples(CategoryTypeIdentifier identifier, const QueryOptionsWithSortOrder& options) override {
|
|
138
|
+
auto __result = _swiftPart.queryCategorySamples(static_cast<int>(identifier), std::forward<decltype(options)>(options));
|
|
133
139
|
if (__result.hasError()) [[unlikely]] {
|
|
134
140
|
std::rethrow_exception(__result.error());
|
|
135
141
|
}
|
|
@@ -16,14 +16,26 @@ namespace ReactNativeHealthkit { class HybridCoreModuleSpec_cxx; }
|
|
|
16
16
|
namespace margelo::nitro::healthkit { enum class ObjectTypeIdentifier; }
|
|
17
17
|
// Forward declaration of `UpdateFrequency` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::healthkit { enum class UpdateFrequency; }
|
|
19
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
19
21
|
// Forward declaration of `IdentifierWithUnit` to properly resolve imports.
|
|
20
22
|
namespace margelo::nitro::healthkit { struct IdentifierWithUnit; }
|
|
21
23
|
// Forward declaration of `QuantityTypeIdentifier` to properly resolve imports.
|
|
22
24
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
23
|
-
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
24
|
-
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
25
25
|
// Forward declaration of `SampleTypeIdentifier` to properly resolve imports.
|
|
26
26
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifier; }
|
|
27
|
+
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
29
|
+
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
31
|
+
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
33
|
+
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
35
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
37
|
+
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
27
39
|
// Forward declaration of `OnChangeCallbackArgs` to properly resolve imports.
|
|
28
40
|
namespace margelo::nitro::healthkit { struct OnChangeCallbackArgs; }
|
|
29
41
|
// Forward declaration of `AuthorizationStatus` to properly resolve imports.
|
|
@@ -34,53 +46,32 @@ namespace margelo::nitro::healthkit { enum class AuthorizationRequestStatus; }
|
|
|
34
46
|
namespace margelo::nitro::healthkit { struct AuthDataTypes; }
|
|
35
47
|
// Forward declaration of `SampleTypeIdentifierWriteable` to properly resolve imports.
|
|
36
48
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable; }
|
|
37
|
-
// Forward declaration of `PredicateWithUUID` to properly resolve imports.
|
|
38
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUID; }
|
|
39
|
-
// Forward declaration of `PredicateWithUUIDs` to properly resolve imports.
|
|
40
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUIDs; }
|
|
41
|
-
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
42
|
-
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
43
|
-
// Forward declaration of `PredicateWithStartAndEnd` to properly resolve imports.
|
|
44
|
-
namespace margelo::nitro::healthkit { struct PredicateWithStartAndEnd; }
|
|
45
|
-
// Forward declaration of `PredicateFromWorkout` to properly resolve imports.
|
|
46
|
-
namespace margelo::nitro::healthkit { struct PredicateFromWorkout; }
|
|
47
|
-
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
48
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
49
|
-
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
50
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesOr; }
|
|
51
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
52
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
53
|
-
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
54
|
-
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
55
49
|
|
|
56
50
|
#include <NitroModules/Promise.hpp>
|
|
57
51
|
#include "ObjectTypeIdentifier.hpp"
|
|
58
52
|
#include "UpdateFrequency.hpp"
|
|
53
|
+
#include <memory>
|
|
54
|
+
#include "HybridSourceProxySpec.hpp"
|
|
59
55
|
#include "IdentifierWithUnit.hpp"
|
|
60
56
|
#include <vector>
|
|
61
57
|
#include <string>
|
|
62
58
|
#include "QuantityTypeIdentifier.hpp"
|
|
63
59
|
#include <optional>
|
|
64
|
-
#include <memory>
|
|
65
|
-
#include "HybridSourceProxySpec.hpp"
|
|
66
60
|
#include "SampleTypeIdentifier.hpp"
|
|
61
|
+
#include "FilterForSamples.hpp"
|
|
62
|
+
#include "FilterForSamplesBase.hpp"
|
|
63
|
+
#include "PredicateWithMetadataKey.hpp"
|
|
64
|
+
#include "ComparisonPredicateOperator.hpp"
|
|
65
|
+
#include <chrono>
|
|
66
|
+
#include <variant>
|
|
67
|
+
#include "DateFilter.hpp"
|
|
68
|
+
#include "HybridWorkoutProxySpec.hpp"
|
|
67
69
|
#include "OnChangeCallbackArgs.hpp"
|
|
68
70
|
#include <functional>
|
|
69
71
|
#include "AuthorizationStatus.hpp"
|
|
70
72
|
#include "AuthorizationRequestStatus.hpp"
|
|
71
73
|
#include "AuthDataTypes.hpp"
|
|
72
74
|
#include "SampleTypeIdentifierWriteable.hpp"
|
|
73
|
-
#include "PredicateWithUUID.hpp"
|
|
74
|
-
#include "PredicateWithUUIDs.hpp"
|
|
75
|
-
#include "PredicateWithMetadataKey.hpp"
|
|
76
|
-
#include "PredicateWithStartAndEnd.hpp"
|
|
77
|
-
#include "PredicateFromWorkout.hpp"
|
|
78
|
-
#include "FilterForSamplesAnd.hpp"
|
|
79
|
-
#include "FilterForSamplesOr.hpp"
|
|
80
|
-
#include <variant>
|
|
81
|
-
#include "PredicateWithMetadataOperator.hpp"
|
|
82
|
-
#include <chrono>
|
|
83
|
-
#include "HybridWorkoutProxySpec.hpp"
|
|
84
75
|
#include <unordered_map>
|
|
85
76
|
|
|
86
77
|
#include "ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp"
|
|
@@ -183,6 +174,14 @@ namespace margelo::nitro::healthkit {
|
|
|
183
174
|
auto __value = std::move(__result.value());
|
|
184
175
|
return __value;
|
|
185
176
|
}
|
|
177
|
+
inline std::shared_ptr<HybridSourceProxySpec> currentAppSource() override {
|
|
178
|
+
auto __result = _swiftPart.currentAppSource();
|
|
179
|
+
if (__result.hasError()) [[unlikely]] {
|
|
180
|
+
std::rethrow_exception(__result.error());
|
|
181
|
+
}
|
|
182
|
+
auto __value = std::move(__result.value());
|
|
183
|
+
return __value;
|
|
184
|
+
}
|
|
186
185
|
inline std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>> getPreferredUnits(const std::vector<QuantityTypeIdentifier>& identifiers, std::optional<bool> forceUpdate) override {
|
|
187
186
|
auto __result = _swiftPart.getPreferredUnits(identifiers, forceUpdate);
|
|
188
187
|
if (__result.hasError()) [[unlikely]] {
|
|
@@ -191,8 +190,8 @@ namespace margelo::nitro::healthkit {
|
|
|
191
190
|
auto __value = std::move(__result.value());
|
|
192
191
|
return __value;
|
|
193
192
|
}
|
|
194
|
-
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridSourceProxySpec>>>> querySources(SampleTypeIdentifier identifier) override {
|
|
195
|
-
auto __result = _swiftPart.querySources(static_cast<int>(identifier));
|
|
193
|
+
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridSourceProxySpec>>>> querySources(SampleTypeIdentifier identifier, const std::optional<FilterForSamples>& filter) override {
|
|
194
|
+
auto __result = _swiftPart.querySources(static_cast<int>(identifier), filter);
|
|
196
195
|
if (__result.hasError()) [[unlikely]] {
|
|
197
196
|
std::rethrow_exception(__result.error());
|
|
198
197
|
}
|
|
@@ -263,8 +262,8 @@ namespace margelo::nitro::healthkit {
|
|
|
263
262
|
auto __value = std::move(__result.value());
|
|
264
263
|
return __value;
|
|
265
264
|
}
|
|
266
|
-
inline std::shared_ptr<Promise<double>> deleteObjects(ObjectTypeIdentifier objectTypeIdentifier, const
|
|
267
|
-
auto __result = _swiftPart.deleteObjects(static_cast<int>(objectTypeIdentifier), filter);
|
|
265
|
+
inline std::shared_ptr<Promise<double>> deleteObjects(ObjectTypeIdentifier objectTypeIdentifier, const FilterForSamples& filter) override {
|
|
266
|
+
auto __result = _swiftPart.deleteObjects(static_cast<int>(objectTypeIdentifier), std::forward<decltype(filter)>(filter));
|
|
268
267
|
if (__result.hasError()) [[unlikely]] {
|
|
269
268
|
std::rethrow_exception(__result.error());
|
|
270
269
|
}
|