@kingstinct/react-native-healthkit 12.1.2 → 12.2.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 +49 -97
- package/ios/CharacteristicTypeModule.swift +77 -63
- package/ios/CoreModule.swift +324 -280
- package/ios/CorrelationTypeModule.swift +192 -144
- package/ios/ElectrocardiogramModule.swift +185 -194
- package/ios/HeartbeatSeriesModule.swift +123 -171
- package/ios/Helpers.swift +312 -571
- package/ios/MedicationModule.swift +259 -0
- package/ios/PredicateHelpers.swift +334 -0
- package/ios/QuantityTypeModule.swift +297 -378
- package/ios/Serializers.swift +273 -210
- package/ios/SourceProxy.swift +2 -2
- package/ios/StateOfMindModule.swift +179 -125
- package/ios/WorkoutProxy.swift +235 -112
- package/ios/WorkoutsModule.swift +214 -262
- package/lib/commonjs/healthkit.ios.js +22 -2
- package/lib/commonjs/healthkit.js +35 -5
- 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 +20 -2
- package/lib/module/healthkit.js +32 -2
- 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 +18 -9
- package/lib/typescript/healthkit.ios.d.ts +33 -15
- 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 +2 -2
- package/lib/typescript/specs/CoreModule.nitro.d.ts +2 -1
- package/lib/typescript/specs/CorrelationTypeModule.nitro.d.ts +4 -2
- 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 +4 -4
- package/lib/typescript/specs/StateOfMindModule.nitro.d.ts +4 -3
- 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 +2 -8
- package/lib/typescript/types/QuantityType.d.ts +7 -8
- 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 +57 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +592 -389
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +65 -30
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +8 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +15 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +32 -26
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +36 -37
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +55 -2
- 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 +48 -42
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +59 -36
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +150 -29
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +13 -28
- 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__vector_MedicationDoseEvent_.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 +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +2 -2
- 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 +2 -1
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +21 -2
- 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 +2 -2
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +9 -43
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +21 -2
- 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/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/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/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 +1 -2
- 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 +11 -1
- 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 +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +6 -25
- 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++/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++/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++/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 +30 -0
- package/src/healthkit.ts +68 -3
- 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 +2 -2
- package/src/specs/CoreModule.nitro.ts +3 -0
- package/src/specs/CorrelationTypeModule.nitro.ts +11 -3
- package/src/specs/ElectrocardiogramModule.nitro.ts +1 -1
- package/src/specs/HeartbeatSeriesModule.nitro.ts +1 -1
- package/src/specs/MedicationModule.nitro.ts +140 -0
- package/src/specs/QuantityTypeModule.nitro.ts +4 -7
- package/src/specs/StateOfMindModule.nitro.ts +10 -2
- 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 +2 -8
- package/src/types/QuantityType.ts +8 -17
- 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
|
@@ -14,12 +14,6 @@ namespace ReactNativeHealthkit { class HybridStateOfMindModuleSpec_cxx; }
|
|
|
14
14
|
|
|
15
15
|
// Forward declaration of `StateOfMindSample` to properly resolve imports.
|
|
16
16
|
namespace margelo::nitro::healthkit { struct StateOfMindSample; }
|
|
17
|
-
// Forward declaration of `Device` to properly resolve imports.
|
|
18
|
-
namespace margelo::nitro::healthkit { struct Device; }
|
|
19
|
-
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
20
|
-
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
21
|
-
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
22
|
-
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
23
17
|
// Forward declaration of `StateOfMindKind` to properly resolve imports.
|
|
24
18
|
namespace margelo::nitro::healthkit { enum class StateOfMindKind; }
|
|
25
19
|
// Forward declaration of `StateOfMindValenceClassification` to properly resolve imports.
|
|
@@ -28,53 +22,74 @@ namespace margelo::nitro::healthkit { enum class StateOfMindValenceClassificatio
|
|
|
28
22
|
namespace margelo::nitro::healthkit { enum class StateOfMindAssociation; }
|
|
29
23
|
// Forward declaration of `StateOfMindLabel` to properly resolve imports.
|
|
30
24
|
namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
|
|
25
|
+
// Forward declaration of `SampleType` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
|
+
// Forward declaration of `WeatherCondition` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::healthkit { enum class WeatherCondition; }
|
|
29
|
+
// Forward declaration of `Quantity` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
31
|
+
// Forward declaration of `InsulinDeliveryReason` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { enum class InsulinDeliveryReason; }
|
|
33
|
+
// Forward declaration of `HeartRateMotionContext` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { enum class HeartRateMotionContext; }
|
|
35
|
+
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
37
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
39
|
+
// Forward declaration of `Device` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::healthkit { struct Device; }
|
|
31
41
|
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
32
42
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
33
|
-
// Forward declaration of `
|
|
34
|
-
namespace margelo::nitro::healthkit { struct
|
|
35
|
-
// Forward declaration of `
|
|
36
|
-
namespace margelo::nitro::healthkit { struct
|
|
43
|
+
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
45
|
+
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
37
47
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
38
48
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
39
|
-
// Forward declaration of `
|
|
40
|
-
namespace margelo::nitro::healthkit {
|
|
41
|
-
// Forward declaration of `
|
|
42
|
-
namespace margelo::nitro::healthkit { struct
|
|
43
|
-
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
44
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
45
|
-
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
46
|
-
namespace margelo::nitro::healthkit { struct FilterForSamplesOr; }
|
|
47
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
48
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
49
|
+
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
51
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
49
53
|
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
50
54
|
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
55
|
+
// Forward declaration of `StateOfMindSamplesWithAnchorResponse` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::healthkit { struct StateOfMindSamplesWithAnchorResponse; }
|
|
57
|
+
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
59
|
+
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
51
61
|
|
|
52
62
|
#include "StateOfMindSample.hpp"
|
|
53
63
|
#include <vector>
|
|
54
64
|
#include <NitroModules/Promise.hpp>
|
|
65
|
+
#include "StateOfMindKind.hpp"
|
|
66
|
+
#include "StateOfMindValenceClassification.hpp"
|
|
67
|
+
#include "StateOfMindAssociation.hpp"
|
|
68
|
+
#include "StateOfMindLabel.hpp"
|
|
69
|
+
#include "SampleType.hpp"
|
|
55
70
|
#include <string>
|
|
56
|
-
#include "Device.hpp"
|
|
57
|
-
#include <optional>
|
|
58
71
|
#include <chrono>
|
|
59
|
-
#include
|
|
72
|
+
#include "WeatherCondition.hpp"
|
|
73
|
+
#include <optional>
|
|
74
|
+
#include "Quantity.hpp"
|
|
75
|
+
#include "InsulinDeliveryReason.hpp"
|
|
76
|
+
#include "HeartRateMotionContext.hpp"
|
|
60
77
|
#include "SourceRevision.hpp"
|
|
61
78
|
#include <memory>
|
|
62
79
|
#include "HybridSourceProxySpec.hpp"
|
|
63
|
-
#include "
|
|
64
|
-
#include
|
|
65
|
-
#include "StateOfMindAssociation.hpp"
|
|
66
|
-
#include "StateOfMindLabel.hpp"
|
|
80
|
+
#include "Device.hpp"
|
|
81
|
+
#include <NitroModules/AnyMap.hpp>
|
|
67
82
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
68
|
-
#include "
|
|
69
|
-
#include "
|
|
83
|
+
#include "FilterForSamples.hpp"
|
|
84
|
+
#include "FilterForSamplesBase.hpp"
|
|
70
85
|
#include "PredicateWithMetadataKey.hpp"
|
|
71
|
-
#include "
|
|
72
|
-
#include "PredicateFromWorkout.hpp"
|
|
73
|
-
#include "FilterForSamplesAnd.hpp"
|
|
74
|
-
#include "FilterForSamplesOr.hpp"
|
|
86
|
+
#include "ComparisonPredicateOperator.hpp"
|
|
75
87
|
#include <variant>
|
|
76
|
-
#include "
|
|
88
|
+
#include "DateFilter.hpp"
|
|
77
89
|
#include "HybridWorkoutProxySpec.hpp"
|
|
90
|
+
#include "StateOfMindSamplesWithAnchorResponse.hpp"
|
|
91
|
+
#include "DeletedSample.hpp"
|
|
92
|
+
#include "QueryOptionsWithAnchor.hpp"
|
|
78
93
|
|
|
79
94
|
#include "ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp"
|
|
80
95
|
|
|
@@ -120,8 +135,16 @@ namespace margelo::nitro::healthkit {
|
|
|
120
135
|
|
|
121
136
|
public:
|
|
122
137
|
// Methods
|
|
123
|
-
inline std::shared_ptr<Promise<std::vector<StateOfMindSample>>> queryStateOfMindSamples(const
|
|
124
|
-
auto __result = _swiftPart.queryStateOfMindSamples(options);
|
|
138
|
+
inline std::shared_ptr<Promise<std::vector<StateOfMindSample>>> queryStateOfMindSamples(const QueryOptionsWithSortOrder& options) override {
|
|
139
|
+
auto __result = _swiftPart.queryStateOfMindSamples(std::forward<decltype(options)>(options));
|
|
140
|
+
if (__result.hasError()) [[unlikely]] {
|
|
141
|
+
std::rethrow_exception(__result.error());
|
|
142
|
+
}
|
|
143
|
+
auto __value = std::move(__result.value());
|
|
144
|
+
return __value;
|
|
145
|
+
}
|
|
146
|
+
inline std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>> queryStateOfMindSamplesWithAnchor(const QueryOptionsWithAnchor& options) override {
|
|
147
|
+
auto __result = _swiftPart.queryStateOfMindSamplesWithAnchor(std::forward<decltype(options)>(options));
|
|
125
148
|
if (__result.hasError()) [[unlikely]] {
|
|
126
149
|
std::rethrow_exception(__result.error());
|
|
127
150
|
}
|
|
@@ -12,22 +12,30 @@
|
|
|
12
12
|
// Forward declaration of `HybridWorkoutProxySpec_cxx` to properly resolve imports.
|
|
13
13
|
namespace ReactNativeHealthkit { class HybridWorkoutProxySpec_cxx; }
|
|
14
14
|
|
|
15
|
-
// Forward declaration of `Device` to properly resolve imports.
|
|
16
|
-
namespace margelo::nitro::healthkit { struct Device; }
|
|
17
15
|
// Forward declaration of `WorkoutActivityType` to properly resolve imports.
|
|
18
16
|
namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
|
|
19
17
|
// Forward declaration of `Quantity` to properly resolve imports.
|
|
20
18
|
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
21
|
-
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
22
|
-
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
23
|
-
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
24
|
-
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
25
19
|
// Forward declaration of `WorkoutEvent` to properly resolve imports.
|
|
26
20
|
namespace margelo::nitro::healthkit { struct WorkoutEvent; }
|
|
27
21
|
// Forward declaration of `WorkoutEventType` to properly resolve imports.
|
|
28
22
|
namespace margelo::nitro::healthkit { enum class WorkoutEventType; }
|
|
29
23
|
// Forward declaration of `WorkoutActivity` to properly resolve imports.
|
|
30
24
|
namespace margelo::nitro::healthkit { struct WorkoutActivity; }
|
|
25
|
+
// Forward declaration of `SampleType` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
27
|
+
// Forward declaration of `WeatherCondition` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::healthkit { enum class WeatherCondition; }
|
|
29
|
+
// Forward declaration of `InsulinDeliveryReason` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { enum class InsulinDeliveryReason; }
|
|
31
|
+
// Forward declaration of `HeartRateMotionContext` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { enum class HeartRateMotionContext; }
|
|
33
|
+
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
35
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
37
|
+
// Forward declaration of `Device` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct Device; }
|
|
31
39
|
// Forward declaration of `WorkoutSample` to properly resolve imports.
|
|
32
40
|
namespace margelo::nitro::healthkit { struct WorkoutSample; }
|
|
33
41
|
// Forward declaration of `LocationForSaving` to properly resolve imports.
|
|
@@ -45,20 +53,24 @@ namespace margelo::nitro::healthkit { struct QuantityDateInterval; }
|
|
|
45
53
|
// Forward declaration of `QuantityTypeIdentifier` to properly resolve imports.
|
|
46
54
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
47
55
|
|
|
48
|
-
#include <string>
|
|
49
|
-
#include "Device.hpp"
|
|
50
|
-
#include <optional>
|
|
51
56
|
#include "WorkoutActivityType.hpp"
|
|
52
57
|
#include "Quantity.hpp"
|
|
53
|
-
#include <
|
|
54
|
-
#include <NitroModules/AnyMap.hpp>
|
|
55
|
-
#include "SourceRevision.hpp"
|
|
56
|
-
#include <memory>
|
|
57
|
-
#include "HybridSourceProxySpec.hpp"
|
|
58
|
+
#include <string>
|
|
58
59
|
#include "WorkoutEvent.hpp"
|
|
59
60
|
#include <vector>
|
|
61
|
+
#include <optional>
|
|
60
62
|
#include "WorkoutEventType.hpp"
|
|
63
|
+
#include <chrono>
|
|
61
64
|
#include "WorkoutActivity.hpp"
|
|
65
|
+
#include "SampleType.hpp"
|
|
66
|
+
#include "WeatherCondition.hpp"
|
|
67
|
+
#include "InsulinDeliveryReason.hpp"
|
|
68
|
+
#include "HeartRateMotionContext.hpp"
|
|
69
|
+
#include "SourceRevision.hpp"
|
|
70
|
+
#include <memory>
|
|
71
|
+
#include "HybridSourceProxySpec.hpp"
|
|
72
|
+
#include "Device.hpp"
|
|
73
|
+
#include <NitroModules/AnyMap.hpp>
|
|
62
74
|
#include "WorkoutSample.hpp"
|
|
63
75
|
#include <NitroModules/Promise.hpp>
|
|
64
76
|
#include "LocationForSaving.hpp"
|
|
@@ -110,14 +122,6 @@ namespace margelo::nitro::healthkit {
|
|
|
110
122
|
|
|
111
123
|
public:
|
|
112
124
|
// Properties
|
|
113
|
-
inline std::string getUuid() noexcept override {
|
|
114
|
-
auto __result = _swiftPart.getUuid();
|
|
115
|
-
return __result;
|
|
116
|
-
}
|
|
117
|
-
inline std::optional<Device> getDevice() noexcept override {
|
|
118
|
-
auto __result = _swiftPart.getDevice();
|
|
119
|
-
return __result;
|
|
120
|
-
}
|
|
121
125
|
inline WorkoutActivityType getWorkoutActivityType() noexcept override {
|
|
122
126
|
auto __result = _swiftPart.getWorkoutActivityType();
|
|
123
127
|
return static_cast<WorkoutActivityType>(__result);
|
|
@@ -125,6 +129,41 @@ namespace margelo::nitro::healthkit {
|
|
|
125
129
|
inline Quantity getDuration() noexcept override {
|
|
126
130
|
return _swiftPart.getDuration();
|
|
127
131
|
}
|
|
132
|
+
inline std::optional<std::vector<WorkoutEvent>> getEvents() noexcept override {
|
|
133
|
+
auto __result = _swiftPart.getEvents();
|
|
134
|
+
return __result;
|
|
135
|
+
}
|
|
136
|
+
inline std::optional<std::vector<WorkoutActivity>> getActivities() noexcept override {
|
|
137
|
+
auto __result = _swiftPart.getActivities();
|
|
138
|
+
return __result;
|
|
139
|
+
}
|
|
140
|
+
inline std::optional<Quantity> getMetadataAverageMETs() noexcept override {
|
|
141
|
+
auto __result = _swiftPart.getMetadataAverageMETs();
|
|
142
|
+
return __result;
|
|
143
|
+
}
|
|
144
|
+
inline std::optional<Quantity> getMetadataElevationAscended() noexcept override {
|
|
145
|
+
auto __result = _swiftPart.getMetadataElevationAscended();
|
|
146
|
+
return __result;
|
|
147
|
+
}
|
|
148
|
+
inline std::optional<Quantity> getMetadataElevationDescended() noexcept override {
|
|
149
|
+
auto __result = _swiftPart.getMetadataElevationDescended();
|
|
150
|
+
return __result;
|
|
151
|
+
}
|
|
152
|
+
inline std::optional<bool> getMetadataIndoorWorkout() noexcept override {
|
|
153
|
+
auto __result = _swiftPart.getMetadataIndoorWorkout();
|
|
154
|
+
return __result;
|
|
155
|
+
}
|
|
156
|
+
inline std::optional<Quantity> getMetadataAverageSpeed() noexcept override {
|
|
157
|
+
auto __result = _swiftPart.getMetadataAverageSpeed();
|
|
158
|
+
return __result;
|
|
159
|
+
}
|
|
160
|
+
inline std::optional<Quantity> getMetadataMaximumSpeed() noexcept override {
|
|
161
|
+
auto __result = _swiftPart.getMetadataMaximumSpeed();
|
|
162
|
+
return __result;
|
|
163
|
+
}
|
|
164
|
+
inline SampleType getSampleType() noexcept override {
|
|
165
|
+
return _swiftPart.getSampleType();
|
|
166
|
+
}
|
|
128
167
|
inline std::chrono::system_clock::time_point getStartDate() noexcept override {
|
|
129
168
|
auto __result = _swiftPart.getStartDate();
|
|
130
169
|
return __result;
|
|
@@ -133,20 +172,102 @@ namespace margelo::nitro::healthkit {
|
|
|
133
172
|
auto __result = _swiftPart.getEndDate();
|
|
134
173
|
return __result;
|
|
135
174
|
}
|
|
136
|
-
inline
|
|
175
|
+
inline bool getHasUndeterminedDuration() noexcept override {
|
|
176
|
+
return _swiftPart.hasUndeterminedDuration();
|
|
177
|
+
}
|
|
178
|
+
inline std::optional<WeatherCondition> getMetadataWeatherCondition() noexcept override {
|
|
179
|
+
auto __result = _swiftPart.getMetadataWeatherCondition();
|
|
180
|
+
return __result;
|
|
181
|
+
}
|
|
182
|
+
inline std::optional<Quantity> getMetadataWeatherHumidity() noexcept override {
|
|
183
|
+
auto __result = _swiftPart.getMetadataWeatherHumidity();
|
|
184
|
+
return __result;
|
|
185
|
+
}
|
|
186
|
+
inline std::optional<Quantity> getMetadataWeatherTemperature() noexcept override {
|
|
187
|
+
auto __result = _swiftPart.getMetadataWeatherTemperature();
|
|
188
|
+
return __result;
|
|
189
|
+
}
|
|
190
|
+
inline std::optional<InsulinDeliveryReason> getMetadataInsulinDeliveryReason() noexcept override {
|
|
191
|
+
auto __result = _swiftPart.getMetadataInsulinDeliveryReason();
|
|
192
|
+
return __result;
|
|
193
|
+
}
|
|
194
|
+
inline std::optional<HeartRateMotionContext> getMetadataHeartRateMotionContext() noexcept override {
|
|
195
|
+
auto __result = _swiftPart.getMetadataHeartRateMotionContext();
|
|
196
|
+
return __result;
|
|
197
|
+
}
|
|
198
|
+
inline std::string getUuid() noexcept override {
|
|
199
|
+
auto __result = _swiftPart.getUuid();
|
|
200
|
+
return __result;
|
|
201
|
+
}
|
|
202
|
+
inline SourceRevision getSourceRevision() noexcept override {
|
|
203
|
+
return _swiftPart.getSourceRevision();
|
|
204
|
+
}
|
|
205
|
+
inline std::optional<Device> getDevice() noexcept override {
|
|
206
|
+
auto __result = _swiftPart.getDevice();
|
|
207
|
+
return __result;
|
|
208
|
+
}
|
|
209
|
+
inline std::shared_ptr<AnyMap> getMetadata() noexcept override {
|
|
137
210
|
auto __result = _swiftPart.getMetadata();
|
|
138
211
|
return __result;
|
|
139
212
|
}
|
|
140
|
-
inline std::optional<
|
|
141
|
-
auto __result = _swiftPart.
|
|
213
|
+
inline std::optional<std::string> getMetadataExternalUUID() noexcept override {
|
|
214
|
+
auto __result = _swiftPart.getMetadataExternalUUID();
|
|
142
215
|
return __result;
|
|
143
216
|
}
|
|
144
|
-
inline std::optional<std::
|
|
145
|
-
auto __result = _swiftPart.
|
|
217
|
+
inline std::optional<std::string> getMetadataTimeZone() noexcept override {
|
|
218
|
+
auto __result = _swiftPart.getMetadataTimeZone();
|
|
146
219
|
return __result;
|
|
147
220
|
}
|
|
148
|
-
inline std::optional<
|
|
149
|
-
auto __result = _swiftPart.
|
|
221
|
+
inline std::optional<bool> getMetadataWasUserEntered() noexcept override {
|
|
222
|
+
auto __result = _swiftPart.getMetadataWasUserEntered();
|
|
223
|
+
return __result;
|
|
224
|
+
}
|
|
225
|
+
inline std::optional<std::string> getMetadataDeviceSerialNumber() noexcept override {
|
|
226
|
+
auto __result = _swiftPart.getMetadataDeviceSerialNumber();
|
|
227
|
+
return __result;
|
|
228
|
+
}
|
|
229
|
+
inline std::optional<std::string> getMetadataUdiDeviceIdentifier() noexcept override {
|
|
230
|
+
auto __result = _swiftPart.getMetadataUdiDeviceIdentifier();
|
|
231
|
+
return __result;
|
|
232
|
+
}
|
|
233
|
+
inline std::optional<std::string> getMetadataUdiProductionIdentifier() noexcept override {
|
|
234
|
+
auto __result = _swiftPart.getMetadataUdiProductionIdentifier();
|
|
235
|
+
return __result;
|
|
236
|
+
}
|
|
237
|
+
inline std::optional<std::string> getMetadataDigitalSignature() noexcept override {
|
|
238
|
+
auto __result = _swiftPart.getMetadataDigitalSignature();
|
|
239
|
+
return __result;
|
|
240
|
+
}
|
|
241
|
+
inline std::optional<std::string> getMetadataDeviceName() noexcept override {
|
|
242
|
+
auto __result = _swiftPart.getMetadataDeviceName();
|
|
243
|
+
return __result;
|
|
244
|
+
}
|
|
245
|
+
inline std::optional<std::string> getMetadataDeviceManufacturerName() noexcept override {
|
|
246
|
+
auto __result = _swiftPart.getMetadataDeviceManufacturerName();
|
|
247
|
+
return __result;
|
|
248
|
+
}
|
|
249
|
+
inline std::optional<std::string> getMetadataSyncIdentifier() noexcept override {
|
|
250
|
+
auto __result = _swiftPart.getMetadataSyncIdentifier();
|
|
251
|
+
return __result;
|
|
252
|
+
}
|
|
253
|
+
inline std::optional<double> getMetadataSyncVersion() noexcept override {
|
|
254
|
+
auto __result = _swiftPart.getMetadataSyncVersion();
|
|
255
|
+
return __result;
|
|
256
|
+
}
|
|
257
|
+
inline std::optional<bool> getMetadataWasTakenInLab() noexcept override {
|
|
258
|
+
auto __result = _swiftPart.getMetadataWasTakenInLab();
|
|
259
|
+
return __result;
|
|
260
|
+
}
|
|
261
|
+
inline std::optional<double> getMetadataReferenceRangeLowerLimit() noexcept override {
|
|
262
|
+
auto __result = _swiftPart.getMetadataReferenceRangeLowerLimit();
|
|
263
|
+
return __result;
|
|
264
|
+
}
|
|
265
|
+
inline std::optional<double> getMetadataReferenceRangeUpperLimit() noexcept override {
|
|
266
|
+
auto __result = _swiftPart.getMetadataReferenceRangeUpperLimit();
|
|
267
|
+
return __result;
|
|
268
|
+
}
|
|
269
|
+
inline std::optional<double> getMetadataAlgorithmVersion() noexcept override {
|
|
270
|
+
auto __result = _swiftPart.getMetadataAlgorithmVersion();
|
|
150
271
|
return __result;
|
|
151
272
|
}
|
|
152
273
|
|
|
@@ -32,28 +32,18 @@ namespace margelo::nitro::healthkit { struct QueryWorkoutSamplesWithAnchorRespon
|
|
|
32
32
|
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
33
33
|
// Forward declaration of `WorkoutQueryOptionsWithAnchor` to properly resolve imports.
|
|
34
34
|
namespace margelo::nitro::healthkit { struct WorkoutQueryOptionsWithAnchor; }
|
|
35
|
-
// Forward declaration of `
|
|
36
|
-
namespace margelo::nitro::healthkit { struct
|
|
37
|
-
// Forward declaration of `
|
|
38
|
-
namespace margelo::nitro::healthkit { struct
|
|
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 `WorkoutActivityTypePredicate` to properly resolve imports.
|
|
46
|
-
namespace margelo::nitro::healthkit { struct WorkoutActivityTypePredicate; }
|
|
35
|
+
// Forward declaration of `FilterForWorkouts` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkouts; }
|
|
37
|
+
// Forward declaration of `FilterForWorkoutsBase` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkoutsBase; }
|
|
47
39
|
// Forward declaration of `WorkoutDurationPredicate` to properly resolve imports.
|
|
48
40
|
namespace margelo::nitro::healthkit { struct WorkoutDurationPredicate; }
|
|
49
|
-
// Forward declaration of `PredicateForWorkoutsOr` to properly resolve imports.
|
|
50
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsOr; }
|
|
51
|
-
// Forward declaration of `PredicateForWorkoutsAnd` to properly resolve imports.
|
|
52
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsAnd; }
|
|
53
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
54
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
55
41
|
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
56
42
|
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
43
|
+
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
45
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
57
47
|
// Forward declaration of `WorkoutQueryOptions` to properly resolve imports.
|
|
58
48
|
namespace margelo::nitro::healthkit { struct WorkoutQueryOptions; }
|
|
59
49
|
// Forward declaration of `WorkoutConfiguration` to properly resolve imports.
|
|
@@ -78,18 +68,13 @@ namespace margelo::nitro::healthkit { enum class WorkoutSessionLocationType; }
|
|
|
78
68
|
#include "QueryWorkoutSamplesWithAnchorResponse.hpp"
|
|
79
69
|
#include "DeletedSample.hpp"
|
|
80
70
|
#include "WorkoutQueryOptionsWithAnchor.hpp"
|
|
81
|
-
#include "
|
|
82
|
-
#include "
|
|
83
|
-
#include "PredicateWithMetadataKey.hpp"
|
|
84
|
-
#include "PredicateWithStartAndEnd.hpp"
|
|
85
|
-
#include "PredicateFromWorkout.hpp"
|
|
86
|
-
#include "WorkoutActivityTypePredicate.hpp"
|
|
71
|
+
#include "FilterForWorkouts.hpp"
|
|
72
|
+
#include "FilterForWorkoutsBase.hpp"
|
|
87
73
|
#include "WorkoutDurationPredicate.hpp"
|
|
88
|
-
#include "PredicateForWorkoutsOr.hpp"
|
|
89
|
-
#include "PredicateForWorkoutsAnd.hpp"
|
|
90
|
-
#include <variant>
|
|
91
|
-
#include "PredicateWithMetadataOperator.hpp"
|
|
92
74
|
#include "ComparisonPredicateOperator.hpp"
|
|
75
|
+
#include "PredicateWithMetadataKey.hpp"
|
|
76
|
+
#include <variant>
|
|
77
|
+
#include "DateFilter.hpp"
|
|
93
78
|
#include "WorkoutQueryOptions.hpp"
|
|
94
79
|
#include "WorkoutConfiguration.hpp"
|
|
95
80
|
#include "WorkoutSessionLocationType.hpp"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// AggregationStyle.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Represents the JS enum `AggregationStyle`, backed by a C++ enum.
|
|
10
|
+
*/
|
|
11
|
+
public typealias AggregationStyle = margelo.nitro.healthkit.AggregationStyle
|
|
12
|
+
|
|
13
|
+
public extension AggregationStyle {
|
|
14
|
+
/**
|
|
15
|
+
* Get a AggregationStyle for the given String value, or
|
|
16
|
+
* return `nil` if the given value was invalid/unknown.
|
|
17
|
+
*/
|
|
18
|
+
init?(fromString string: String) {
|
|
19
|
+
switch string {
|
|
20
|
+
case "cumulative":
|
|
21
|
+
self = .cumulative
|
|
22
|
+
case "discreteArithmetic":
|
|
23
|
+
self = .discretearithmetic
|
|
24
|
+
case "discreteTemporallyWeighted":
|
|
25
|
+
self = .discretetemporallyweighted
|
|
26
|
+
case "discreteEquivalentContinuousLevel":
|
|
27
|
+
self = .discreteequivalentcontinuouslevel
|
|
28
|
+
default:
|
|
29
|
+
return nil
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Get the String value this AggregationStyle represents.
|
|
35
|
+
*/
|
|
36
|
+
var stringValue: String {
|
|
37
|
+
switch self {
|
|
38
|
+
case .cumulative:
|
|
39
|
+
return "cumulative"
|
|
40
|
+
case .discretearithmetic:
|
|
41
|
+
return "discreteArithmetic"
|
|
42
|
+
case .discretetemporallyweighted:
|
|
43
|
+
return "discreteTemporallyWeighted"
|
|
44
|
+
case .discreteequivalentcontinuouslevel:
|
|
45
|
+
return "discreteEquivalentContinuousLevel"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|