@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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// MedicationDoseEventLogStatus.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
11
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
12
|
+
#else
|
|
13
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
+
#endif
|
|
15
|
+
#if __has_include(<NitroModules/NitroDefines.hpp>)
|
|
16
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
17
|
+
#else
|
|
18
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
namespace margelo::nitro::healthkit {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An enum which can be represented as a JavaScript enum (MedicationDoseEventLogStatus).
|
|
25
|
+
*/
|
|
26
|
+
enum class MedicationDoseEventLogStatus {
|
|
27
|
+
NOTINTERACTED SWIFT_NAME(notinteracted) = 1,
|
|
28
|
+
NOTIFICATIONNOTSENT SWIFT_NAME(notificationnotsent) = 2,
|
|
29
|
+
SNOOZED SWIFT_NAME(snoozed) = 3,
|
|
30
|
+
TAKEN SWIFT_NAME(taken) = 4,
|
|
31
|
+
SKIPPED SWIFT_NAME(skipped) = 5,
|
|
32
|
+
NOTLOGGED SWIFT_NAME(notlogged) = 6,
|
|
33
|
+
} CLOSED_ENUM;
|
|
34
|
+
|
|
35
|
+
} // namespace margelo::nitro::healthkit
|
|
36
|
+
|
|
37
|
+
namespace margelo::nitro {
|
|
38
|
+
|
|
39
|
+
// C++ MedicationDoseEventLogStatus <> JS MedicationDoseEventLogStatus (enum)
|
|
40
|
+
template <>
|
|
41
|
+
struct JSIConverter<margelo::nitro::healthkit::MedicationDoseEventLogStatus> final {
|
|
42
|
+
static inline margelo::nitro::healthkit::MedicationDoseEventLogStatus fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
43
|
+
int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
|
|
44
|
+
return static_cast<margelo::nitro::healthkit::MedicationDoseEventLogStatus>(enumValue);
|
|
45
|
+
}
|
|
46
|
+
static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::healthkit::MedicationDoseEventLogStatus arg) {
|
|
47
|
+
int enumValue = static_cast<int>(arg);
|
|
48
|
+
return JSIConverter<int>::toJSI(runtime, enumValue);
|
|
49
|
+
}
|
|
50
|
+
static inline bool canConvert(jsi::Runtime&, const jsi::Value& value) {
|
|
51
|
+
if (!value.isNumber()) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
double number = value.getNumber();
|
|
55
|
+
int integer = static_cast<int>(number);
|
|
56
|
+
if (number != integer) {
|
|
57
|
+
// The integer is not the same value as the double - we truncated floating points.
|
|
58
|
+
// Enums are all integers, so the input floating point number is obviously invalid.
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
61
|
+
// Check if we are within the bounds of the enum.
|
|
62
|
+
return integer >= 1 && integer <= 6;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// MedicationDoseEventScheduleType.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
11
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
12
|
+
#else
|
|
13
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
+
#endif
|
|
15
|
+
#if __has_include(<NitroModules/NitroDefines.hpp>)
|
|
16
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
17
|
+
#else
|
|
18
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
|
+
#endif
|
|
20
|
+
|
|
21
|
+
namespace margelo::nitro::healthkit {
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An enum which can be represented as a JavaScript enum (MedicationDoseEventScheduleType).
|
|
25
|
+
*/
|
|
26
|
+
enum class MedicationDoseEventScheduleType {
|
|
27
|
+
ASNEEDED SWIFT_NAME(asneeded) = 1,
|
|
28
|
+
SCHEDULE SWIFT_NAME(schedule) = 2,
|
|
29
|
+
} CLOSED_ENUM;
|
|
30
|
+
|
|
31
|
+
} // namespace margelo::nitro::healthkit
|
|
32
|
+
|
|
33
|
+
namespace margelo::nitro {
|
|
34
|
+
|
|
35
|
+
// C++ MedicationDoseEventScheduleType <> JS MedicationDoseEventScheduleType (enum)
|
|
36
|
+
template <>
|
|
37
|
+
struct JSIConverter<margelo::nitro::healthkit::MedicationDoseEventScheduleType> final {
|
|
38
|
+
static inline margelo::nitro::healthkit::MedicationDoseEventScheduleType fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
39
|
+
int enumValue = JSIConverter<int>::fromJSI(runtime, arg);
|
|
40
|
+
return static_cast<margelo::nitro::healthkit::MedicationDoseEventScheduleType>(enumValue);
|
|
41
|
+
}
|
|
42
|
+
static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::healthkit::MedicationDoseEventScheduleType arg) {
|
|
43
|
+
int enumValue = static_cast<int>(arg);
|
|
44
|
+
return JSIConverter<int>::toJSI(runtime, enumValue);
|
|
45
|
+
}
|
|
46
|
+
static inline bool canConvert(jsi::Runtime&, const jsi::Value& value) {
|
|
47
|
+
if (!value.isNumber()) {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
double number = value.getNumber();
|
|
51
|
+
int integer = static_cast<int>(number);
|
|
52
|
+
if (number != integer) {
|
|
53
|
+
// The integer is not the same value as the double - we truncated floating points.
|
|
54
|
+
// Enums are all integers, so the input floating point number is obviously invalid.
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
// Check if we are within the bounds of the enum.
|
|
58
|
+
return integer >= 1 && integer <= 2;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
} // namespace margelo::nitro
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// MedicationDoseEventsWithAnchorResponse.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#if __has_include(<NitroModules/JSIConverter.hpp>)
|
|
11
|
+
#include <NitroModules/JSIConverter.hpp>
|
|
12
|
+
#else
|
|
13
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
14
|
+
#endif
|
|
15
|
+
#if __has_include(<NitroModules/NitroDefines.hpp>)
|
|
16
|
+
#include <NitroModules/NitroDefines.hpp>
|
|
17
|
+
#else
|
|
18
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
19
|
+
#endif
|
|
20
|
+
#if __has_include(<NitroModules/JSIHelpers.hpp>)
|
|
21
|
+
#include <NitroModules/JSIHelpers.hpp>
|
|
22
|
+
#else
|
|
23
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
// Forward declaration of `MedicationDoseEvent` to properly resolve imports.
|
|
27
|
+
namespace margelo::nitro::healthkit { struct MedicationDoseEvent; }
|
|
28
|
+
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
29
|
+
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
30
|
+
|
|
31
|
+
#include "MedicationDoseEvent.hpp"
|
|
32
|
+
#include <vector>
|
|
33
|
+
#include "DeletedSample.hpp"
|
|
34
|
+
#include <string>
|
|
35
|
+
|
|
36
|
+
namespace margelo::nitro::healthkit {
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* A struct which can be represented as a JavaScript object (MedicationDoseEventsWithAnchorResponse).
|
|
40
|
+
*/
|
|
41
|
+
struct MedicationDoseEventsWithAnchorResponse {
|
|
42
|
+
public:
|
|
43
|
+
std::vector<MedicationDoseEvent> samples SWIFT_PRIVATE;
|
|
44
|
+
std::vector<DeletedSample> deletedSamples SWIFT_PRIVATE;
|
|
45
|
+
std::string newAnchor SWIFT_PRIVATE;
|
|
46
|
+
|
|
47
|
+
public:
|
|
48
|
+
MedicationDoseEventsWithAnchorResponse() = default;
|
|
49
|
+
explicit MedicationDoseEventsWithAnchorResponse(std::vector<MedicationDoseEvent> samples, std::vector<DeletedSample> deletedSamples, std::string newAnchor): samples(samples), deletedSamples(deletedSamples), newAnchor(newAnchor) {}
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
} // namespace margelo::nitro::healthkit
|
|
53
|
+
|
|
54
|
+
namespace margelo::nitro {
|
|
55
|
+
|
|
56
|
+
// C++ MedicationDoseEventsWithAnchorResponse <> JS MedicationDoseEventsWithAnchorResponse (object)
|
|
57
|
+
template <>
|
|
58
|
+
struct JSIConverter<margelo::nitro::healthkit::MedicationDoseEventsWithAnchorResponse> final {
|
|
59
|
+
static inline margelo::nitro::healthkit::MedicationDoseEventsWithAnchorResponse fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
60
|
+
jsi::Object obj = arg.asObject(runtime);
|
|
61
|
+
return margelo::nitro::healthkit::MedicationDoseEventsWithAnchorResponse(
|
|
62
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::MedicationDoseEvent>>::fromJSI(runtime, obj.getProperty(runtime, "samples")),
|
|
63
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::fromJSI(runtime, obj.getProperty(runtime, "deletedSamples")),
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "newAnchor"))
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::MedicationDoseEventsWithAnchorResponse& arg) {
|
|
68
|
+
jsi::Object obj(runtime);
|
|
69
|
+
obj.setProperty(runtime, "samples", JSIConverter<std::vector<margelo::nitro::healthkit::MedicationDoseEvent>>::toJSI(runtime, arg.samples));
|
|
70
|
+
obj.setProperty(runtime, "deletedSamples", JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::toJSI(runtime, arg.deletedSamples));
|
|
71
|
+
obj.setProperty(runtime, "newAnchor", JSIConverter<std::string>::toJSI(runtime, arg.newAnchor));
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
75
|
+
if (!value.isObject()) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
jsi::Object obj = value.getObject(runtime);
|
|
79
|
+
if (!nitro::isPlainObject(runtime, obj)) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::MedicationDoseEvent>>::canConvert(runtime, obj.getProperty(runtime, "samples"))) return false;
|
|
83
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::canConvert(runtime, obj.getProperty(runtime, "deletedSamples"))) return false;
|
|
84
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "newAnchor"))) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
} // namespace margelo::nitro
|
|
@@ -102,99 +102,99 @@ namespace margelo::nitro::healthkit {
|
|
|
102
102
|
HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE SWIFT_NAME(hkcorrelationtypeidentifierbloodpressure) = 70,
|
|
103
103
|
HKCORRELATIONTYPEIDENTIFIERFOOD SWIFT_NAME(hkcorrelationtypeidentifierfood) = 71,
|
|
104
104
|
HKQUANTITYTYPEIDENTIFIERWALKINGHEARTRATEAVERAGE SWIFT_NAME(hkquantitytypeidentifierwalkingheartrateaverage) = 72,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
105
|
+
HKQUANTITYTYPEIDENTIFIERATRIALFIBRILLATIONBURDEN SWIFT_NAME(hkquantitytypeidentifieratrialfibrillationburden) = 73,
|
|
106
|
+
HKQUANTITYTYPEIDENTIFIERAPPLEEXERCISETIME SWIFT_NAME(hkquantitytypeidentifierappleexercisetime) = 74,
|
|
107
|
+
HKQUANTITYTYPEIDENTIFIERAPPLESTANDTIME SWIFT_NAME(hkquantitytypeidentifierapplestandtime) = 75,
|
|
108
|
+
HKQUANTITYTYPEIDENTIFIERAPPLEWALKINGSTEADINESS SWIFT_NAME(hkquantitytypeidentifierapplewalkingsteadiness) = 76,
|
|
109
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX SWIFT_NAME(hkquantitytypeidentifierbodymassindex) = 77,
|
|
110
|
+
HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierbodyfatpercentage) = 78,
|
|
111
|
+
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 79,
|
|
112
|
+
HKQUANTITYTYPEIDENTIFIERBODYMASS SWIFT_NAME(hkquantitytypeidentifierbodymass) = 80,
|
|
113
|
+
HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 81,
|
|
114
|
+
HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 82,
|
|
115
|
+
HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 83,
|
|
116
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWALKINGRUNNING SWIFT_NAME(hkquantitytypeidentifierdistancewalkingrunning) = 84,
|
|
117
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECYCLING SWIFT_NAME(hkquantitytypeidentifierdistancecycling) = 85,
|
|
118
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEWHEELCHAIR SWIFT_NAME(hkquantitytypeidentifierdistancewheelchair) = 86,
|
|
119
|
+
HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED SWIFT_NAME(hkquantitytypeidentifierbasalenergyburned) = 87,
|
|
120
|
+
HKQUANTITYTYPEIDENTIFIERACTIVEENERGYBURNED SWIFT_NAME(hkquantitytypeidentifieractiveenergyburned) = 88,
|
|
121
|
+
HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED SWIFT_NAME(hkquantitytypeidentifierflightsclimbed) = 89,
|
|
122
|
+
HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 90,
|
|
123
|
+
HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 91,
|
|
124
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING SWIFT_NAME(hkquantitytypeidentifierdistanceswimming) = 92,
|
|
125
|
+
HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 93,
|
|
126
|
+
HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 94,
|
|
127
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS SWIFT_NAME(hkquantitytypeidentifierdistancedownhillsnowsports) = 95,
|
|
128
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 96,
|
|
129
|
+
HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbodytemperature) = 97,
|
|
130
|
+
HKQUANTITYTYPEIDENTIFIERBASALBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbasalbodytemperature) = 98,
|
|
131
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressuresystolic) = 99,
|
|
132
|
+
HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressurediastolic) = 100,
|
|
133
|
+
HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 101,
|
|
134
|
+
HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 102,
|
|
135
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 103,
|
|
136
|
+
HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 104,
|
|
137
|
+
HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 105,
|
|
138
|
+
HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 106,
|
|
139
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 107,
|
|
140
|
+
HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 108,
|
|
141
|
+
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 109,
|
|
142
|
+
HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 110,
|
|
143
|
+
HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 111,
|
|
144
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 112,
|
|
145
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 113,
|
|
146
|
+
HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 114,
|
|
147
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 115,
|
|
148
|
+
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 116,
|
|
149
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 117,
|
|
150
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 118,
|
|
151
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 119,
|
|
152
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 120,
|
|
153
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 121,
|
|
154
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 122,
|
|
155
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 123,
|
|
156
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 124,
|
|
157
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 125,
|
|
158
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 126,
|
|
159
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 127,
|
|
160
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 128,
|
|
161
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 129,
|
|
162
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 130,
|
|
163
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 131,
|
|
164
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 132,
|
|
165
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 133,
|
|
166
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 134,
|
|
167
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 135,
|
|
168
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 136,
|
|
169
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 137,
|
|
170
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 138,
|
|
171
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 139,
|
|
172
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 140,
|
|
173
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 141,
|
|
174
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 142,
|
|
175
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 143,
|
|
176
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 144,
|
|
177
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 145,
|
|
178
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 146,
|
|
179
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 147,
|
|
180
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 148,
|
|
181
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 149,
|
|
182
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 150,
|
|
183
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 151,
|
|
184
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 152,
|
|
185
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 153,
|
|
186
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 154,
|
|
187
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 155,
|
|
188
|
+
HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 156,
|
|
189
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 157,
|
|
190
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 158,
|
|
191
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 159,
|
|
192
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 160,
|
|
193
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 161,
|
|
194
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 162,
|
|
195
|
+
HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 163,
|
|
196
|
+
HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME SWIFT_NAME(hkquantitytypeidentifierapplemovetime) = 164,
|
|
197
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 165,
|
|
198
198
|
HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 166,
|
|
199
199
|
HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 167,
|
|
200
200
|
HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierapplesleepingwristtemperature) = 168,
|
|
@@ -312,6 +312,10 @@ namespace margelo::nitro {
|
|
|
312
312
|
case hashString("HKCorrelationTypeIdentifierBloodPressure"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE;
|
|
313
313
|
case hashString("HKCorrelationTypeIdentifierFood"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKCORRELATIONTYPEIDENTIFIERFOOD;
|
|
314
314
|
case hashString("HKQuantityTypeIdentifierWalkingHeartRateAverage"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWALKINGHEARTRATEAVERAGE;
|
|
315
|
+
case hashString("HKQuantityTypeIdentifierAtrialFibrillationBurden"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERATRIALFIBRILLATIONBURDEN;
|
|
316
|
+
case hashString("HKQuantityTypeIdentifierAppleExerciseTime"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEEXERCISETIME;
|
|
317
|
+
case hashString("HKQuantityTypeIdentifierAppleStandTime"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESTANDTIME;
|
|
318
|
+
case hashString("HKQuantityTypeIdentifierAppleWalkingSteadiness"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEWALKINGSTEADINESS;
|
|
315
319
|
case hashString("HKQuantityTypeIdentifierBodyMassIndex"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX;
|
|
316
320
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE;
|
|
317
321
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
@@ -326,13 +330,11 @@ namespace margelo::nitro {
|
|
|
326
330
|
case hashString("HKQuantityTypeIdentifierActiveEnergyBurned"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERACTIVEENERGYBURNED;
|
|
327
331
|
case hashString("HKQuantityTypeIdentifierFlightsClimbed"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED;
|
|
328
332
|
case hashString("HKQuantityTypeIdentifierNikeFuel"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNIKEFUEL;
|
|
329
|
-
case hashString("HKQuantityTypeIdentifierAppleExerciseTime"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEEXERCISETIME;
|
|
330
333
|
case hashString("HKQuantityTypeIdentifierPushCount"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPUSHCOUNT;
|
|
331
334
|
case hashString("HKQuantityTypeIdentifierDistanceSwimming"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING;
|
|
332
335
|
case hashString("HKQuantityTypeIdentifierSwimmingStrokeCount"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT;
|
|
333
336
|
case hashString("HKQuantityTypeIdentifierVO2Max"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERVO2MAX;
|
|
334
337
|
case hashString("HKQuantityTypeIdentifierDistanceDownhillSnowSports"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS;
|
|
335
|
-
case hashString("HKQuantityTypeIdentifierAppleStandTime"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESTANDTIME;
|
|
336
338
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
337
339
|
case hashString("HKQuantityTypeIdentifierBodyTemperature"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE;
|
|
338
340
|
case hashString("HKQuantityTypeIdentifierBasalBodyTemperature"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBASALBODYTEMPERATURE;
|
|
@@ -402,9 +404,7 @@ namespace margelo::nitro {
|
|
|
402
404
|
case hashString("HKQuantityTypeIdentifierStairDescentSpeed"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED;
|
|
403
405
|
case hashString("HKQuantityTypeIdentifierUVExposure"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUVEXPOSURE;
|
|
404
406
|
case hashString("HKQuantityTypeIdentifierAppleMoveTime"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME;
|
|
405
|
-
case hashString("HKQuantityTypeIdentifierAppleWalkingSteadiness"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEWALKINGSTEADINESS;
|
|
406
407
|
case hashString("HKQuantityTypeIdentifierNumberOfAlcoholicBeverages"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES;
|
|
407
|
-
case hashString("HKQuantityTypeIdentifierAtrialFibrillationBurden"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERATRIALFIBRILLATIONBURDEN;
|
|
408
408
|
case hashString("HKQuantityTypeIdentifierUnderwaterDepth"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH;
|
|
409
409
|
case hashString("HKQuantityTypeIdentifierWaterTemperature"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE;
|
|
410
410
|
case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"): return margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE;
|
|
@@ -516,6 +516,10 @@ namespace margelo::nitro {
|
|
|
516
516
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE: return JSIConverter<std::string>::toJSI(runtime, "HKCorrelationTypeIdentifierBloodPressure");
|
|
517
517
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKCORRELATIONTYPEIDENTIFIERFOOD: return JSIConverter<std::string>::toJSI(runtime, "HKCorrelationTypeIdentifierFood");
|
|
518
518
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWALKINGHEARTRATEAVERAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierWalkingHeartRateAverage");
|
|
519
|
+
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERATRIALFIBRILLATIONBURDEN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAtrialFibrillationBurden");
|
|
520
|
+
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEEXERCISETIME: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleExerciseTime");
|
|
521
|
+
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESTANDTIME: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleStandTime");
|
|
522
|
+
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEWALKINGSTEADINESS: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleWalkingSteadiness");
|
|
519
523
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyMassIndex");
|
|
520
524
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyFatPercentage");
|
|
521
525
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
@@ -530,13 +534,11 @@ namespace margelo::nitro {
|
|
|
530
534
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERACTIVEENERGYBURNED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierActiveEnergyBurned");
|
|
531
535
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierFlightsClimbed");
|
|
532
536
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNIKEFUEL: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierNikeFuel");
|
|
533
|
-
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEEXERCISETIME: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleExerciseTime");
|
|
534
537
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPUSHCOUNT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierPushCount");
|
|
535
538
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierDistanceSwimming");
|
|
536
539
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierSwimmingStrokeCount");
|
|
537
540
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERVO2MAX: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierVO2Max");
|
|
538
541
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierDistanceDownhillSnowSports");
|
|
539
|
-
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESTANDTIME: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleStandTime");
|
|
540
542
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
541
543
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyTemperature");
|
|
542
544
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBASALBODYTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBasalBodyTemperature");
|
|
@@ -606,9 +608,7 @@ namespace margelo::nitro {
|
|
|
606
608
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierStairDescentSpeed");
|
|
607
609
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUVEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierUVExposure");
|
|
608
610
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleMoveTime");
|
|
609
|
-
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLEWALKINGSTEADINESS: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleWalkingSteadiness");
|
|
610
611
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages");
|
|
611
|
-
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERATRIALFIBRILLATIONBURDEN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAtrialFibrillationBurden");
|
|
612
612
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierUnderwaterDepth");
|
|
613
613
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierWaterTemperature");
|
|
614
614
|
case margelo::nitro::healthkit::ObjectTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleSleepingWristTemperature");
|
|
@@ -725,6 +725,10 @@ namespace margelo::nitro {
|
|
|
725
725
|
case hashString("HKCorrelationTypeIdentifierBloodPressure"):
|
|
726
726
|
case hashString("HKCorrelationTypeIdentifierFood"):
|
|
727
727
|
case hashString("HKQuantityTypeIdentifierWalkingHeartRateAverage"):
|
|
728
|
+
case hashString("HKQuantityTypeIdentifierAtrialFibrillationBurden"):
|
|
729
|
+
case hashString("HKQuantityTypeIdentifierAppleExerciseTime"):
|
|
730
|
+
case hashString("HKQuantityTypeIdentifierAppleStandTime"):
|
|
731
|
+
case hashString("HKQuantityTypeIdentifierAppleWalkingSteadiness"):
|
|
728
732
|
case hashString("HKQuantityTypeIdentifierBodyMassIndex"):
|
|
729
733
|
case hashString("HKQuantityTypeIdentifierBodyFatPercentage"):
|
|
730
734
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
@@ -739,13 +743,11 @@ namespace margelo::nitro {
|
|
|
739
743
|
case hashString("HKQuantityTypeIdentifierActiveEnergyBurned"):
|
|
740
744
|
case hashString("HKQuantityTypeIdentifierFlightsClimbed"):
|
|
741
745
|
case hashString("HKQuantityTypeIdentifierNikeFuel"):
|
|
742
|
-
case hashString("HKQuantityTypeIdentifierAppleExerciseTime"):
|
|
743
746
|
case hashString("HKQuantityTypeIdentifierPushCount"):
|
|
744
747
|
case hashString("HKQuantityTypeIdentifierDistanceSwimming"):
|
|
745
748
|
case hashString("HKQuantityTypeIdentifierSwimmingStrokeCount"):
|
|
746
749
|
case hashString("HKQuantityTypeIdentifierVO2Max"):
|
|
747
750
|
case hashString("HKQuantityTypeIdentifierDistanceDownhillSnowSports"):
|
|
748
|
-
case hashString("HKQuantityTypeIdentifierAppleStandTime"):
|
|
749
751
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
750
752
|
case hashString("HKQuantityTypeIdentifierBodyTemperature"):
|
|
751
753
|
case hashString("HKQuantityTypeIdentifierBasalBodyTemperature"):
|
|
@@ -815,9 +817,7 @@ namespace margelo::nitro {
|
|
|
815
817
|
case hashString("HKQuantityTypeIdentifierStairDescentSpeed"):
|
|
816
818
|
case hashString("HKQuantityTypeIdentifierUVExposure"):
|
|
817
819
|
case hashString("HKQuantityTypeIdentifierAppleMoveTime"):
|
|
818
|
-
case hashString("HKQuantityTypeIdentifierAppleWalkingSteadiness"):
|
|
819
820
|
case hashString("HKQuantityTypeIdentifierNumberOfAlcoholicBeverages"):
|
|
820
|
-
case hashString("HKQuantityTypeIdentifierAtrialFibrillationBurden"):
|
|
821
821
|
case hashString("HKQuantityTypeIdentifierUnderwaterDepth"):
|
|
822
822
|
case hashString("HKQuantityTypeIdentifierWaterTemperature"):
|
|
823
823
|
case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"):
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
-
// Forward declaration of `
|
|
27
|
-
namespace margelo::nitro::healthkit { enum class
|
|
26
|
+
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
27
|
+
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
28
28
|
|
|
29
29
|
#include <string>
|
|
30
|
-
#include "
|
|
30
|
+
#include "ComparisonPredicateOperator.hpp"
|
|
31
31
|
#include <optional>
|
|
32
32
|
#include <chrono>
|
|
33
33
|
#include <variant>
|
|
@@ -40,12 +40,12 @@ namespace margelo::nitro::healthkit {
|
|
|
40
40
|
struct PredicateWithMetadataKey {
|
|
41
41
|
public:
|
|
42
42
|
std::string withMetadataKey SWIFT_PRIVATE;
|
|
43
|
-
std::optional<
|
|
43
|
+
std::optional<ComparisonPredicateOperator> operatorType SWIFT_PRIVATE;
|
|
44
44
|
std::optional<std::variant<bool, std::string, double, std::chrono::system_clock::time_point>> value SWIFT_PRIVATE;
|
|
45
45
|
|
|
46
46
|
public:
|
|
47
47
|
PredicateWithMetadataKey() = default;
|
|
48
|
-
explicit PredicateWithMetadataKey(std::string withMetadataKey, std::optional<
|
|
48
|
+
explicit PredicateWithMetadataKey(std::string withMetadataKey, std::optional<ComparisonPredicateOperator> operatorType, std::optional<std::variant<bool, std::string, double, std::chrono::system_clock::time_point>> value): withMetadataKey(withMetadataKey), operatorType(operatorType), value(value) {}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
} // namespace margelo::nitro::healthkit
|
|
@@ -59,14 +59,14 @@ namespace margelo::nitro {
|
|
|
59
59
|
jsi::Object obj = arg.asObject(runtime);
|
|
60
60
|
return margelo::nitro::healthkit::PredicateWithMetadataKey(
|
|
61
61
|
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "withMetadataKey")),
|
|
62
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::
|
|
62
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::ComparisonPredicateOperator>>::fromJSI(runtime, obj.getProperty(runtime, "operatorType")),
|
|
63
63
|
JSIConverter<std::optional<std::variant<bool, std::string, double, std::chrono::system_clock::time_point>>>::fromJSI(runtime, obj.getProperty(runtime, "value"))
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::PredicateWithMetadataKey& arg) {
|
|
67
67
|
jsi::Object obj(runtime);
|
|
68
68
|
obj.setProperty(runtime, "withMetadataKey", JSIConverter<std::string>::toJSI(runtime, arg.withMetadataKey));
|
|
69
|
-
obj.setProperty(runtime, "operatorType", JSIConverter<std::optional<margelo::nitro::healthkit::
|
|
69
|
+
obj.setProperty(runtime, "operatorType", JSIConverter<std::optional<margelo::nitro::healthkit::ComparisonPredicateOperator>>::toJSI(runtime, arg.operatorType));
|
|
70
70
|
obj.setProperty(runtime, "value", JSIConverter<std::optional<std::variant<bool, std::string, double, std::chrono::system_clock::time_point>>>::toJSI(runtime, arg.value));
|
|
71
71
|
return obj;
|
|
72
72
|
}
|
|
@@ -79,7 +79,7 @@ namespace margelo::nitro {
|
|
|
79
79
|
return false;
|
|
80
80
|
}
|
|
81
81
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "withMetadataKey"))) return false;
|
|
82
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::
|
|
82
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::ComparisonPredicateOperator>>::canConvert(runtime, obj.getProperty(runtime, "operatorType"))) return false;
|
|
83
83
|
if (!JSIConverter<std::optional<std::variant<bool, std::string, double, std::chrono::system_clock::time_point>>>::canConvert(runtime, obj.getProperty(runtime, "value"))) return false;
|
|
84
84
|
return true;
|
|
85
85
|
}
|