@kingstinct/react-native-healthkit 13.4.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +1 -0
- package/app.plugin.ts +40 -2
- package/ios/BackgroundDeliveryManager.swift +196 -0
- package/ios/CategoryTypeModule.swift +1 -1
- package/ios/CoreModule.swift +24 -0
- package/ios/CorrelationTypeModule.swift +2 -35
- package/ios/ElectrocardiogramModule.swift +2 -34
- package/ios/HeartbeatSeriesModule.swift +2 -34
- package/ios/MedicationModule.swift +3 -35
- package/ios/PredicateHelpers.swift +2 -2
- package/ios/QuantityTypeModule.swift +11 -11
- package/ios/Serializers.swift +58 -90
- package/ios/StateOfMindModule.swift +2 -34
- package/ios/WorkoutProxy.swift +3 -149
- package/ios/generated/HealthkitGenerated.swift +52 -0
- package/lib/commonjs/generated/healthkit.generated.js +745 -0
- package/lib/commonjs/healthkit.ios.js +51 -17
- package/lib/commonjs/healthkit.js +120 -34
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/commonjs/type-tests/generated-typing.js +2 -0
- package/lib/commonjs/types/CategoryType.js +19 -99
- package/lib/commonjs/types/Medication.js +2 -0
- package/lib/commonjs/types/MetadataEnums.js +17 -0
- package/lib/commonjs/types/QuantityType.js +4 -15
- package/lib/commonjs/types/WeatherCondition.js +2 -32
- package/lib/commonjs/types/Workouts.js +3 -98
- package/lib/commonjs/types/index.js +2 -0
- package/lib/module/generated/healthkit.generated.js +742 -0
- package/lib/module/healthkit.ios.js +49 -15
- package/lib/module/healthkit.js +94 -20
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/type-tests/generated-typing.js +1 -0
- package/lib/module/types/CategoryType.js +2 -98
- package/lib/module/types/Medication.js +1 -0
- package/lib/module/types/MetadataEnums.js +1 -0
- package/lib/module/types/QuantityType.js +2 -14
- package/lib/module/types/WeatherCondition.js +1 -32
- package/lib/module/types/Workouts.js +2 -98
- package/lib/module/types/index.js +2 -0
- package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
- package/lib/typescript/healthkit.d.ts +39 -36
- package/lib/typescript/healthkit.ios.d.ts +64 -53
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
- package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
- package/lib/typescript/modules.d.ts +2 -2
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
- package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
- package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
- package/lib/typescript/types/CategoryType.d.ts +10 -104
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
- package/lib/typescript/types/CorrelationType.d.ts +8 -2
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
- package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
- package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
- package/lib/typescript/types/Medication.d.ts +10 -0
- package/lib/typescript/types/MetadataEnums.d.ts +1 -0
- package/lib/typescript/types/QuantitySample.d.ts +9 -1
- package/lib/typescript/types/QuantityType.d.ts +14 -18
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
- package/lib/typescript/types/QueryOptions.d.ts +8 -4
- package/lib/typescript/types/Shared.d.ts +12 -41
- package/lib/typescript/types/StateOfMind.d.ts +8 -1
- package/lib/typescript/types/Subscriptions.d.ts +11 -11
- package/lib/typescript/types/WeatherCondition.d.ts +1 -30
- package/lib/typescript/types/Workouts.d.ts +18 -104
- package/lib/typescript/types/index.d.ts +2 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
- package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
- package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
- package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +2 -115
- package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
- package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
- package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
- package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
- package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
- package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
- package/package.json +5 -2
- package/src/generated/healthkit-schema.json +3680 -0
- package/src/generated/healthkit.generated.ts +1307 -0
- package/src/healthkit.ios.ts +225 -19
- package/src/healthkit.ts +181 -55
- package/src/hooks/useMostRecentQuantitySample.ts +6 -5
- package/src/hooks/useMostRecentWorkout.ts +2 -2
- package/src/hooks/useQuantitySampleById.ts +6 -5
- package/src/hooks/useStatisticsForQuantity.ts +2 -1
- package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
- package/src/modules.ts +7 -2
- package/src/specs/CategoryTypeModule.nitro.ts +8 -5
- package/src/specs/CoreModule.nitro.ts +20 -0
- package/src/specs/QuantityTypeModule.nitro.ts +81 -7
- package/src/test-setup.ts +2 -0
- package/src/type-tests/generated-typing.ts +133 -0
- package/src/types/CategoryType.ts +52 -148
- package/src/types/CategoryTypeIdentifier.ts +5 -134
- package/src/types/CorrelationType.ts +13 -3
- package/src/types/ElectrocardiogramSample.ts +13 -1
- package/src/types/HeartbeatSeries.ts +13 -1
- package/src/types/InterfaceVerification.ts +38 -1
- package/src/types/Medication.ts +19 -0
- package/src/types/MetadataEnums.ts +15 -0
- package/src/types/QuantitySample.ts +14 -2
- package/src/types/QuantityType.ts +22 -122
- package/src/types/QuantityTypeIdentifier.ts +5 -772
- package/src/types/QueryOptions.ts +11 -4
- package/src/types/Shared.ts +22 -49
- package/src/types/StateOfMind.ts +13 -1
- package/src/types/Subscriptions.ts +19 -13
- package/src/types/WeatherCondition.ts +1 -31
- package/src/types/Workouts.ts +44 -108
- package/src/types/index.ts +2 -0
- package/src/utils/getMostRecentQuantitySample.ts +4 -3
- package/src/utils/getMostRecentWorkout.ts +5 -2
- package/src/utils/getPreferredUnit.ts +5 -4
- package/src/utils/getQuantitySampleById.ts +4 -3
- package/src/utils/subscribeToQuantitySamples.ts +5 -3
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
|
@@ -30,74 +30,75 @@ namespace margelo::nitro::healthkit {
|
|
|
30
30
|
*/
|
|
31
31
|
enum class CategoryTypeIdentifier {
|
|
32
32
|
HKCATEGORYTYPEIDENTIFIERAPPLESTANDHOUR SWIFT_NAME(hkcategorytypeidentifierapplestandhour) = 0,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
33
|
+
HKCATEGORYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSUREEVENT SWIFT_NAME(hkcategorytypeidentifierheadphoneaudioexposureevent) = 1,
|
|
34
|
+
HKCATEGORYTYPEIDENTIFIERHIGHHEARTRATEEVENT SWIFT_NAME(hkcategorytypeidentifierhighheartrateevent) = 2,
|
|
35
|
+
HKCATEGORYTYPEIDENTIFIERHYPERTENSIONEVENT SWIFT_NAME(hkcategorytypeidentifierhypertensionevent) = 3,
|
|
36
|
+
HKCATEGORYTYPEIDENTIFIERLOWHEARTRATEEVENT SWIFT_NAME(hkcategorytypeidentifierlowheartrateevent) = 4,
|
|
37
|
+
HKCATEGORYTYPEIDENTIFIERABDOMINALCRAMPS SWIFT_NAME(hkcategorytypeidentifierabdominalcramps) = 5,
|
|
38
|
+
HKCATEGORYTYPEIDENTIFIERACNE SWIFT_NAME(hkcategorytypeidentifieracne) = 6,
|
|
39
|
+
HKCATEGORYTYPEIDENTIFIERAPPETITECHANGES SWIFT_NAME(hkcategorytypeidentifierappetitechanges) = 7,
|
|
40
|
+
HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT SWIFT_NAME(hkcategorytypeidentifierapplewalkingsteadinessevent) = 8,
|
|
41
|
+
HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT SWIFT_NAME(hkcategorytypeidentifieraudioexposureevent) = 9,
|
|
42
|
+
HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE SWIFT_NAME(hkcategorytypeidentifierbladderincontinence) = 10,
|
|
43
|
+
HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingafterpregnancy) = 11,
|
|
44
|
+
HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingduringpregnancy) = 12,
|
|
45
|
+
HKCATEGORYTYPEIDENTIFIERBLOATING SWIFT_NAME(hkcategorytypeidentifierbloating) = 13,
|
|
46
|
+
HKCATEGORYTYPEIDENTIFIERBREASTPAIN SWIFT_NAME(hkcategorytypeidentifierbreastpain) = 14,
|
|
47
|
+
HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY SWIFT_NAME(hkcategorytypeidentifiercervicalmucusquality) = 15,
|
|
48
|
+
HKCATEGORYTYPEIDENTIFIERCHESTTIGHTNESSORPAIN SWIFT_NAME(hkcategorytypeidentifierchesttightnessorpain) = 16,
|
|
49
|
+
HKCATEGORYTYPEIDENTIFIERCHILLS SWIFT_NAME(hkcategorytypeidentifierchills) = 17,
|
|
50
|
+
HKCATEGORYTYPEIDENTIFIERCONSTIPATION SWIFT_NAME(hkcategorytypeidentifierconstipation) = 18,
|
|
51
|
+
HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE SWIFT_NAME(hkcategorytypeidentifiercontraceptive) = 19,
|
|
52
|
+
HKCATEGORYTYPEIDENTIFIERCOUGHING SWIFT_NAME(hkcategorytypeidentifiercoughing) = 20,
|
|
53
|
+
HKCATEGORYTYPEIDENTIFIERDIARRHEA SWIFT_NAME(hkcategorytypeidentifierdiarrhea) = 21,
|
|
54
|
+
HKCATEGORYTYPEIDENTIFIERDIZZINESS SWIFT_NAME(hkcategorytypeidentifierdizziness) = 22,
|
|
55
|
+
HKCATEGORYTYPEIDENTIFIERDRYSKIN SWIFT_NAME(hkcategorytypeidentifierdryskin) = 23,
|
|
56
|
+
HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT SWIFT_NAME(hkcategorytypeidentifierenvironmentalaudioexposureevent) = 24,
|
|
57
|
+
HKCATEGORYTYPEIDENTIFIERFAINTING SWIFT_NAME(hkcategorytypeidentifierfainting) = 25,
|
|
58
|
+
HKCATEGORYTYPEIDENTIFIERFATIGUE SWIFT_NAME(hkcategorytypeidentifierfatigue) = 26,
|
|
59
|
+
HKCATEGORYTYPEIDENTIFIERFEVER SWIFT_NAME(hkcategorytypeidentifierfever) = 27,
|
|
60
|
+
HKCATEGORYTYPEIDENTIFIERGENERALIZEDBODYACHE SWIFT_NAME(hkcategorytypeidentifiergeneralizedbodyache) = 28,
|
|
61
|
+
HKCATEGORYTYPEIDENTIFIERHAIRLOSS SWIFT_NAME(hkcategorytypeidentifierhairloss) = 29,
|
|
62
|
+
HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT SWIFT_NAME(hkcategorytypeidentifierhandwashingevent) = 30,
|
|
63
|
+
HKCATEGORYTYPEIDENTIFIERHEADACHE SWIFT_NAME(hkcategorytypeidentifierheadache) = 31,
|
|
64
|
+
HKCATEGORYTYPEIDENTIFIERHEARTBURN SWIFT_NAME(hkcategorytypeidentifierheartburn) = 32,
|
|
65
|
+
HKCATEGORYTYPEIDENTIFIERHOTFLASHES SWIFT_NAME(hkcategorytypeidentifierhotflashes) = 33,
|
|
66
|
+
HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierinfrequentmenstrualcycles) = 34,
|
|
67
|
+
HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING SWIFT_NAME(hkcategorytypeidentifierintermenstrualbleeding) = 35,
|
|
68
|
+
HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT SWIFT_NAME(hkcategorytypeidentifierirregularheartrhythmevent) = 36,
|
|
69
|
+
HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierirregularmenstrualcycles) = 37,
|
|
70
|
+
HKCATEGORYTYPEIDENTIFIERLACTATION SWIFT_NAME(hkcategorytypeidentifierlactation) = 38,
|
|
71
|
+
HKCATEGORYTYPEIDENTIFIERLOSSOFSMELL SWIFT_NAME(hkcategorytypeidentifierlossofsmell) = 39,
|
|
72
|
+
HKCATEGORYTYPEIDENTIFIERLOSSOFTASTE SWIFT_NAME(hkcategorytypeidentifierlossoftaste) = 40,
|
|
73
|
+
HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT SWIFT_NAME(hkcategorytypeidentifierlowcardiofitnessevent) = 41,
|
|
74
|
+
HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN SWIFT_NAME(hkcategorytypeidentifierlowerbackpain) = 42,
|
|
75
|
+
HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE SWIFT_NAME(hkcategorytypeidentifiermemorylapse) = 43,
|
|
76
|
+
HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW SWIFT_NAME(hkcategorytypeidentifiermenstrualflow) = 44,
|
|
77
|
+
HKCATEGORYTYPEIDENTIFIERMINDFULSESSION SWIFT_NAME(hkcategorytypeidentifiermindfulsession) = 45,
|
|
78
|
+
HKCATEGORYTYPEIDENTIFIERMOODCHANGES SWIFT_NAME(hkcategorytypeidentifiermoodchanges) = 46,
|
|
79
|
+
HKCATEGORYTYPEIDENTIFIERNAUSEA SWIFT_NAME(hkcategorytypeidentifiernausea) = 47,
|
|
80
|
+
HKCATEGORYTYPEIDENTIFIERNIGHTSWEATS SWIFT_NAME(hkcategorytypeidentifiernightsweats) = 48,
|
|
81
|
+
HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT SWIFT_NAME(hkcategorytypeidentifierovulationtestresult) = 49,
|
|
82
|
+
HKCATEGORYTYPEIDENTIFIERPELVICPAIN SWIFT_NAME(hkcategorytypeidentifierpelvicpain) = 50,
|
|
83
|
+
HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING SWIFT_NAME(hkcategorytypeidentifierpersistentintermenstrualbleeding) = 51,
|
|
84
|
+
HKCATEGORYTYPEIDENTIFIERPREGNANCY SWIFT_NAME(hkcategorytypeidentifierpregnancy) = 52,
|
|
85
|
+
HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT SWIFT_NAME(hkcategorytypeidentifierpregnancytestresult) = 53,
|
|
86
|
+
HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT SWIFT_NAME(hkcategorytypeidentifierprogesteronetestresult) = 54,
|
|
87
|
+
HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS SWIFT_NAME(hkcategorytypeidentifierprolongedmenstrualperiods) = 55,
|
|
88
|
+
HKCATEGORYTYPEIDENTIFIERRAPIDPOUNDINGORFLUTTERINGHEARTBEAT SWIFT_NAME(hkcategorytypeidentifierrapidpoundingorflutteringheartbeat) = 56,
|
|
89
|
+
HKCATEGORYTYPEIDENTIFIERRUNNYNOSE SWIFT_NAME(hkcategorytypeidentifierrunnynose) = 57,
|
|
90
|
+
HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY SWIFT_NAME(hkcategorytypeidentifiersexualactivity) = 58,
|
|
91
|
+
HKCATEGORYTYPEIDENTIFIERSHORTNESSOFBREATH SWIFT_NAME(hkcategorytypeidentifiershortnessofbreath) = 59,
|
|
92
|
+
HKCATEGORYTYPEIDENTIFIERSINUSCONGESTION SWIFT_NAME(hkcategorytypeidentifiersinuscongestion) = 60,
|
|
93
|
+
HKCATEGORYTYPEIDENTIFIERSKIPPEDHEARTBEAT SWIFT_NAME(hkcategorytypeidentifierskippedheartbeat) = 61,
|
|
94
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS SWIFT_NAME(hkcategorytypeidentifiersleepanalysis) = 62,
|
|
95
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT SWIFT_NAME(hkcategorytypeidentifiersleepapneaevent) = 63,
|
|
96
|
+
HKCATEGORYTYPEIDENTIFIERSLEEPCHANGES SWIFT_NAME(hkcategorytypeidentifiersleepchanges) = 64,
|
|
97
|
+
HKCATEGORYTYPEIDENTIFIERSORETHROAT SWIFT_NAME(hkcategorytypeidentifiersorethroat) = 65,
|
|
98
|
+
HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT SWIFT_NAME(hkcategorytypeidentifiertoothbrushingevent) = 66,
|
|
99
|
+
HKCATEGORYTYPEIDENTIFIERVAGINALDRYNESS SWIFT_NAME(hkcategorytypeidentifiervaginaldryness) = 67,
|
|
100
|
+
HKCATEGORYTYPEIDENTIFIERVOMITING SWIFT_NAME(hkcategorytypeidentifiervomiting) = 68,
|
|
101
|
+
HKCATEGORYTYPEIDENTIFIERWHEEZING SWIFT_NAME(hkcategorytypeidentifierwheezing) = 69,
|
|
101
102
|
} CLOSED_ENUM;
|
|
102
103
|
|
|
103
104
|
} // namespace margelo::nitro::healthkit
|
|
@@ -111,74 +112,75 @@ namespace margelo::nitro {
|
|
|
111
112
|
std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
|
|
112
113
|
switch (hashString(unionValue.c_str(), unionValue.size())) {
|
|
113
114
|
case hashString("HKCategoryTypeIdentifierAppleStandHour"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLESTANDHOUR;
|
|
115
|
+
case hashString("HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSUREEVENT;
|
|
114
116
|
case hashString("HKCategoryTypeIdentifierHighHeartRateEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHIGHHEARTRATEEVENT;
|
|
117
|
+
case hashString("HKCategoryTypeIdentifierHypertensionEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHYPERTENSIONEVENT;
|
|
115
118
|
case hashString("HKCategoryTypeIdentifierLowHeartRateEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWHEARTRATEEVENT;
|
|
116
|
-
case hashString("HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSUREEVENT;
|
|
117
|
-
case hashString("HKCategoryTypeIdentifierSleepAnalysis"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS;
|
|
118
|
-
case hashString("HKCategoryTypeIdentifierCervicalMucusQuality"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY;
|
|
119
|
-
case hashString("HKCategoryTypeIdentifierOvulationTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT;
|
|
120
|
-
case hashString("HKCategoryTypeIdentifierMenstrualFlow"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW;
|
|
121
|
-
case hashString("HKCategoryTypeIdentifierIntermenstrualBleeding"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING;
|
|
122
|
-
case hashString("HKCategoryTypeIdentifierSexualActivity"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY;
|
|
123
|
-
case hashString("HKCategoryTypeIdentifierMindfulSession"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION;
|
|
124
|
-
case hashString("HKCategoryTypeIdentifierIrregularHeartRhythmEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT;
|
|
125
|
-
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT;
|
|
126
|
-
case hashString("HKCategoryTypeIdentifierToothbrushingEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT;
|
|
127
|
-
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT;
|
|
128
|
-
case hashString("HKCategoryTypeIdentifierContraceptive"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE;
|
|
129
|
-
case hashString("HKCategoryTypeIdentifierLactation"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLACTATION;
|
|
130
|
-
case hashString("HKCategoryTypeIdentifierPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCY;
|
|
131
|
-
case hashString("HKCategoryTypeIdentifierPregnancyTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT;
|
|
132
|
-
case hashString("HKCategoryTypeIdentifierProgesteroneTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT;
|
|
133
|
-
case hashString("HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT;
|
|
134
|
-
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT;
|
|
135
|
-
case hashString("HKCategoryTypeIdentifierHandwashingEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT;
|
|
136
119
|
case hashString("HKCategoryTypeIdentifierAbdominalCramps"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERABDOMINALCRAMPS;
|
|
137
120
|
case hashString("HKCategoryTypeIdentifierAcne"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERACNE;
|
|
138
121
|
case hashString("HKCategoryTypeIdentifierAppetiteChanges"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPETITECHANGES;
|
|
122
|
+
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT;
|
|
123
|
+
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT;
|
|
139
124
|
case hashString("HKCategoryTypeIdentifierBladderIncontinence"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE;
|
|
125
|
+
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY;
|
|
126
|
+
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY;
|
|
140
127
|
case hashString("HKCategoryTypeIdentifierBloating"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLOATING;
|
|
141
128
|
case hashString("HKCategoryTypeIdentifierBreastPain"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBREASTPAIN;
|
|
129
|
+
case hashString("HKCategoryTypeIdentifierCervicalMucusQuality"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY;
|
|
142
130
|
case hashString("HKCategoryTypeIdentifierChestTightnessOrPain"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCHESTTIGHTNESSORPAIN;
|
|
143
131
|
case hashString("HKCategoryTypeIdentifierChills"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCHILLS;
|
|
144
132
|
case hashString("HKCategoryTypeIdentifierConstipation"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONSTIPATION;
|
|
133
|
+
case hashString("HKCategoryTypeIdentifierContraceptive"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE;
|
|
145
134
|
case hashString("HKCategoryTypeIdentifierCoughing"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCOUGHING;
|
|
146
135
|
case hashString("HKCategoryTypeIdentifierDiarrhea"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDIARRHEA;
|
|
147
136
|
case hashString("HKCategoryTypeIdentifierDizziness"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDIZZINESS;
|
|
148
137
|
case hashString("HKCategoryTypeIdentifierDrySkin"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDRYSKIN;
|
|
138
|
+
case hashString("HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT;
|
|
149
139
|
case hashString("HKCategoryTypeIdentifierFainting"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFAINTING;
|
|
150
140
|
case hashString("HKCategoryTypeIdentifierFatigue"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFATIGUE;
|
|
151
141
|
case hashString("HKCategoryTypeIdentifierFever"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFEVER;
|
|
152
142
|
case hashString("HKCategoryTypeIdentifierGeneralizedBodyAche"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERGENERALIZEDBODYACHE;
|
|
153
143
|
case hashString("HKCategoryTypeIdentifierHairLoss"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHAIRLOSS;
|
|
144
|
+
case hashString("HKCategoryTypeIdentifierHandwashingEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT;
|
|
154
145
|
case hashString("HKCategoryTypeIdentifierHeadache"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADACHE;
|
|
155
146
|
case hashString("HKCategoryTypeIdentifierHeartburn"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEARTBURN;
|
|
156
147
|
case hashString("HKCategoryTypeIdentifierHotFlashes"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHOTFLASHES;
|
|
148
|
+
case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES;
|
|
149
|
+
case hashString("HKCategoryTypeIdentifierIntermenstrualBleeding"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING;
|
|
150
|
+
case hashString("HKCategoryTypeIdentifierIrregularHeartRhythmEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT;
|
|
151
|
+
case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES;
|
|
152
|
+
case hashString("HKCategoryTypeIdentifierLactation"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLACTATION;
|
|
157
153
|
case hashString("HKCategoryTypeIdentifierLossOfSmell"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOSSOFSMELL;
|
|
158
154
|
case hashString("HKCategoryTypeIdentifierLossOfTaste"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOSSOFTASTE;
|
|
155
|
+
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT;
|
|
159
156
|
case hashString("HKCategoryTypeIdentifierLowerBackPain"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN;
|
|
160
157
|
case hashString("HKCategoryTypeIdentifierMemoryLapse"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE;
|
|
158
|
+
case hashString("HKCategoryTypeIdentifierMenstrualFlow"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW;
|
|
159
|
+
case hashString("HKCategoryTypeIdentifierMindfulSession"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION;
|
|
161
160
|
case hashString("HKCategoryTypeIdentifierMoodChanges"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMOODCHANGES;
|
|
162
161
|
case hashString("HKCategoryTypeIdentifierNausea"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERNAUSEA;
|
|
163
162
|
case hashString("HKCategoryTypeIdentifierNightSweats"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERNIGHTSWEATS;
|
|
163
|
+
case hashString("HKCategoryTypeIdentifierOvulationTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT;
|
|
164
164
|
case hashString("HKCategoryTypeIdentifierPelvicPain"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPELVICPAIN;
|
|
165
|
+
case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING;
|
|
166
|
+
case hashString("HKCategoryTypeIdentifierPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCY;
|
|
167
|
+
case hashString("HKCategoryTypeIdentifierPregnancyTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT;
|
|
168
|
+
case hashString("HKCategoryTypeIdentifierProgesteroneTestResult"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT;
|
|
169
|
+
case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS;
|
|
165
170
|
case hashString("HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERRAPIDPOUNDINGORFLUTTERINGHEARTBEAT;
|
|
166
171
|
case hashString("HKCategoryTypeIdentifierRunnyNose"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERRUNNYNOSE;
|
|
172
|
+
case hashString("HKCategoryTypeIdentifierSexualActivity"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY;
|
|
167
173
|
case hashString("HKCategoryTypeIdentifierShortnessOfBreath"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSHORTNESSOFBREATH;
|
|
168
174
|
case hashString("HKCategoryTypeIdentifierSinusCongestion"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSINUSCONGESTION;
|
|
169
175
|
case hashString("HKCategoryTypeIdentifierSkippedHeartbeat"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSKIPPEDHEARTBEAT;
|
|
176
|
+
case hashString("HKCategoryTypeIdentifierSleepAnalysis"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS;
|
|
177
|
+
case hashString("HKCategoryTypeIdentifierSleepApneaEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT;
|
|
170
178
|
case hashString("HKCategoryTypeIdentifierSleepChanges"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPCHANGES;
|
|
171
179
|
case hashString("HKCategoryTypeIdentifierSoreThroat"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSORETHROAT;
|
|
180
|
+
case hashString("HKCategoryTypeIdentifierToothbrushingEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT;
|
|
172
181
|
case hashString("HKCategoryTypeIdentifierVaginalDryness"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERVAGINALDRYNESS;
|
|
173
182
|
case hashString("HKCategoryTypeIdentifierVomiting"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERVOMITING;
|
|
174
183
|
case hashString("HKCategoryTypeIdentifierWheezing"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERWHEEZING;
|
|
175
|
-
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY;
|
|
176
|
-
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY;
|
|
177
|
-
case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES;
|
|
178
|
-
case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES;
|
|
179
|
-
case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING;
|
|
180
|
-
case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS;
|
|
181
|
-
case hashString("HKCategoryTypeIdentifierSleepApneaEvent"): return margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT;
|
|
182
184
|
default: [[unlikely]]
|
|
183
185
|
throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum CategoryTypeIdentifier - invalid value!");
|
|
184
186
|
}
|
|
@@ -186,74 +188,75 @@ namespace margelo::nitro {
|
|
|
186
188
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::healthkit::CategoryTypeIdentifier arg) {
|
|
187
189
|
switch (arg) {
|
|
188
190
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLESTANDHOUR: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAppleStandHour");
|
|
191
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent");
|
|
189
192
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHIGHHEARTRATEEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHighHeartRateEvent");
|
|
193
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHYPERTENSIONEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHypertensionEvent");
|
|
190
194
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWHEARTRATEEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowHeartRateEvent");
|
|
191
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent");
|
|
192
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepAnalysis");
|
|
193
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierCervicalMucusQuality");
|
|
194
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierOvulationTestResult");
|
|
195
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMenstrualFlow");
|
|
196
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIntermenstrualBleeding");
|
|
197
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSexualActivity");
|
|
198
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMindfulSession");
|
|
199
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIrregularHeartRhythmEvent");
|
|
200
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAudioExposureEvent");
|
|
201
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierToothbrushingEvent");
|
|
202
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowCardioFitnessEvent");
|
|
203
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierContraceptive");
|
|
204
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLACTATION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLactation");
|
|
205
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPregnancy");
|
|
206
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPregnancyTestResult");
|
|
207
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierProgesteroneTestResult");
|
|
208
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent");
|
|
209
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent");
|
|
210
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHandwashingEvent");
|
|
211
195
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERABDOMINALCRAMPS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAbdominalCramps");
|
|
212
196
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERACNE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAcne");
|
|
213
197
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPETITECHANGES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAppetiteChanges");
|
|
198
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAPPLEWALKINGSTEADINESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent");
|
|
199
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierAudioExposureEvent");
|
|
214
200
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLADDERINCONTINENCE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBladderIncontinence");
|
|
201
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingAfterPregnancy");
|
|
202
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingDuringPregnancy");
|
|
215
203
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLOATING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBloating");
|
|
216
204
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBREASTPAIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBreastPain");
|
|
205
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCERVICALMUCUSQUALITY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierCervicalMucusQuality");
|
|
217
206
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCHESTTIGHTNESSORPAIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierChestTightnessOrPain");
|
|
218
207
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCHILLS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierChills");
|
|
219
208
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONSTIPATION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierConstipation");
|
|
209
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCONTRACEPTIVE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierContraceptive");
|
|
220
210
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERCOUGHING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierCoughing");
|
|
221
211
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDIARRHEA: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierDiarrhea");
|
|
222
212
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDIZZINESS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierDizziness");
|
|
223
213
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERDRYSKIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierDrySkin");
|
|
214
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSUREEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent");
|
|
224
215
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFAINTING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierFainting");
|
|
225
216
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFATIGUE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierFatigue");
|
|
226
217
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERFEVER: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierFever");
|
|
227
218
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERGENERALIZEDBODYACHE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierGeneralizedBodyAche");
|
|
228
219
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHAIRLOSS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHairLoss");
|
|
220
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHANDWASHINGEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHandwashingEvent");
|
|
229
221
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEADACHE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHeadache");
|
|
230
222
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHEARTBURN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHeartburn");
|
|
231
223
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERHOTFLASHES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierHotFlashes");
|
|
224
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierInfrequentMenstrualCycles");
|
|
225
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINTERMENSTRUALBLEEDING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIntermenstrualBleeding");
|
|
226
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARHEARTRHYTHMEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIrregularHeartRhythmEvent");
|
|
227
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIrregularMenstrualCycles");
|
|
228
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLACTATION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLactation");
|
|
232
229
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOSSOFSMELL: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLossOfSmell");
|
|
233
230
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOSSOFTASTE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLossOfTaste");
|
|
231
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWCARDIOFITNESSEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowCardioFitnessEvent");
|
|
234
232
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERLOWERBACKPAIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierLowerBackPain");
|
|
235
233
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMEMORYLAPSE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMemoryLapse");
|
|
234
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMENSTRUALFLOW: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMenstrualFlow");
|
|
235
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMINDFULSESSION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMindfulSession");
|
|
236
236
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERMOODCHANGES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierMoodChanges");
|
|
237
237
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERNAUSEA: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierNausea");
|
|
238
238
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERNIGHTSWEATS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierNightSweats");
|
|
239
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIEROVULATIONTESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierOvulationTestResult");
|
|
239
240
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPELVICPAIN: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPelvicPain");
|
|
241
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding");
|
|
242
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPregnancy");
|
|
243
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPREGNANCYTESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPregnancyTestResult");
|
|
244
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROGESTERONETESTRESULT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierProgesteroneTestResult");
|
|
245
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierProlongedMenstrualPeriods");
|
|
240
246
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERRAPIDPOUNDINGORFLUTTERINGHEARTBEAT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat");
|
|
241
247
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERRUNNYNOSE: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierRunnyNose");
|
|
248
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSEXUALACTIVITY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSexualActivity");
|
|
242
249
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSHORTNESSOFBREATH: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierShortnessOfBreath");
|
|
243
250
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSINUSCONGESTION: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSinusCongestion");
|
|
244
251
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSKIPPEDHEARTBEAT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSkippedHeartbeat");
|
|
252
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPANALYSIS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepAnalysis");
|
|
253
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepApneaEvent");
|
|
245
254
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPCHANGES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepChanges");
|
|
246
255
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSORETHROAT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSoreThroat");
|
|
256
|
+
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERTOOTHBRUSHINGEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierToothbrushingEvent");
|
|
247
257
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERVAGINALDRYNESS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierVaginalDryness");
|
|
248
258
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERVOMITING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierVomiting");
|
|
249
259
|
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERWHEEZING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierWheezing");
|
|
250
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingAfterPregnancy");
|
|
251
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingDuringPregnancy");
|
|
252
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierInfrequentMenstrualCycles");
|
|
253
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIrregularMenstrualCycles");
|
|
254
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding");
|
|
255
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierProlongedMenstrualPeriods");
|
|
256
|
-
case margelo::nitro::healthkit::CategoryTypeIdentifier::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepApneaEvent");
|
|
257
260
|
default: [[unlikely]]
|
|
258
261
|
throw std::invalid_argument("Cannot convert CategoryTypeIdentifier to JS - invalid value: "
|
|
259
262
|
+ std::to_string(static_cast<int>(arg)) + "!");
|
|
@@ -266,74 +269,75 @@ namespace margelo::nitro {
|
|
|
266
269
|
std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, value);
|
|
267
270
|
switch (hashString(unionValue.c_str(), unionValue.size())) {
|
|
268
271
|
case hashString("HKCategoryTypeIdentifierAppleStandHour"):
|
|
272
|
+
case hashString("HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"):
|
|
269
273
|
case hashString("HKCategoryTypeIdentifierHighHeartRateEvent"):
|
|
274
|
+
case hashString("HKCategoryTypeIdentifierHypertensionEvent"):
|
|
270
275
|
case hashString("HKCategoryTypeIdentifierLowHeartRateEvent"):
|
|
271
|
-
case hashString("HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"):
|
|
272
|
-
case hashString("HKCategoryTypeIdentifierSleepAnalysis"):
|
|
273
|
-
case hashString("HKCategoryTypeIdentifierCervicalMucusQuality"):
|
|
274
|
-
case hashString("HKCategoryTypeIdentifierOvulationTestResult"):
|
|
275
|
-
case hashString("HKCategoryTypeIdentifierMenstrualFlow"):
|
|
276
|
-
case hashString("HKCategoryTypeIdentifierIntermenstrualBleeding"):
|
|
277
|
-
case hashString("HKCategoryTypeIdentifierSexualActivity"):
|
|
278
|
-
case hashString("HKCategoryTypeIdentifierMindfulSession"):
|
|
279
|
-
case hashString("HKCategoryTypeIdentifierIrregularHeartRhythmEvent"):
|
|
280
|
-
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"):
|
|
281
|
-
case hashString("HKCategoryTypeIdentifierToothbrushingEvent"):
|
|
282
|
-
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"):
|
|
283
|
-
case hashString("HKCategoryTypeIdentifierContraceptive"):
|
|
284
|
-
case hashString("HKCategoryTypeIdentifierLactation"):
|
|
285
|
-
case hashString("HKCategoryTypeIdentifierPregnancy"):
|
|
286
|
-
case hashString("HKCategoryTypeIdentifierPregnancyTestResult"):
|
|
287
|
-
case hashString("HKCategoryTypeIdentifierProgesteroneTestResult"):
|
|
288
|
-
case hashString("HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"):
|
|
289
|
-
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"):
|
|
290
|
-
case hashString("HKCategoryTypeIdentifierHandwashingEvent"):
|
|
291
276
|
case hashString("HKCategoryTypeIdentifierAbdominalCramps"):
|
|
292
277
|
case hashString("HKCategoryTypeIdentifierAcne"):
|
|
293
278
|
case hashString("HKCategoryTypeIdentifierAppetiteChanges"):
|
|
279
|
+
case hashString("HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"):
|
|
280
|
+
case hashString("HKCategoryTypeIdentifierAudioExposureEvent"):
|
|
294
281
|
case hashString("HKCategoryTypeIdentifierBladderIncontinence"):
|
|
282
|
+
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"):
|
|
283
|
+
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"):
|
|
295
284
|
case hashString("HKCategoryTypeIdentifierBloating"):
|
|
296
285
|
case hashString("HKCategoryTypeIdentifierBreastPain"):
|
|
286
|
+
case hashString("HKCategoryTypeIdentifierCervicalMucusQuality"):
|
|
297
287
|
case hashString("HKCategoryTypeIdentifierChestTightnessOrPain"):
|
|
298
288
|
case hashString("HKCategoryTypeIdentifierChills"):
|
|
299
289
|
case hashString("HKCategoryTypeIdentifierConstipation"):
|
|
290
|
+
case hashString("HKCategoryTypeIdentifierContraceptive"):
|
|
300
291
|
case hashString("HKCategoryTypeIdentifierCoughing"):
|
|
301
292
|
case hashString("HKCategoryTypeIdentifierDiarrhea"):
|
|
302
293
|
case hashString("HKCategoryTypeIdentifierDizziness"):
|
|
303
294
|
case hashString("HKCategoryTypeIdentifierDrySkin"):
|
|
295
|
+
case hashString("HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"):
|
|
304
296
|
case hashString("HKCategoryTypeIdentifierFainting"):
|
|
305
297
|
case hashString("HKCategoryTypeIdentifierFatigue"):
|
|
306
298
|
case hashString("HKCategoryTypeIdentifierFever"):
|
|
307
299
|
case hashString("HKCategoryTypeIdentifierGeneralizedBodyAche"):
|
|
308
300
|
case hashString("HKCategoryTypeIdentifierHairLoss"):
|
|
301
|
+
case hashString("HKCategoryTypeIdentifierHandwashingEvent"):
|
|
309
302
|
case hashString("HKCategoryTypeIdentifierHeadache"):
|
|
310
303
|
case hashString("HKCategoryTypeIdentifierHeartburn"):
|
|
311
304
|
case hashString("HKCategoryTypeIdentifierHotFlashes"):
|
|
305
|
+
case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"):
|
|
306
|
+
case hashString("HKCategoryTypeIdentifierIntermenstrualBleeding"):
|
|
307
|
+
case hashString("HKCategoryTypeIdentifierIrregularHeartRhythmEvent"):
|
|
308
|
+
case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"):
|
|
309
|
+
case hashString("HKCategoryTypeIdentifierLactation"):
|
|
312
310
|
case hashString("HKCategoryTypeIdentifierLossOfSmell"):
|
|
313
311
|
case hashString("HKCategoryTypeIdentifierLossOfTaste"):
|
|
312
|
+
case hashString("HKCategoryTypeIdentifierLowCardioFitnessEvent"):
|
|
314
313
|
case hashString("HKCategoryTypeIdentifierLowerBackPain"):
|
|
315
314
|
case hashString("HKCategoryTypeIdentifierMemoryLapse"):
|
|
315
|
+
case hashString("HKCategoryTypeIdentifierMenstrualFlow"):
|
|
316
|
+
case hashString("HKCategoryTypeIdentifierMindfulSession"):
|
|
316
317
|
case hashString("HKCategoryTypeIdentifierMoodChanges"):
|
|
317
318
|
case hashString("HKCategoryTypeIdentifierNausea"):
|
|
318
319
|
case hashString("HKCategoryTypeIdentifierNightSweats"):
|
|
320
|
+
case hashString("HKCategoryTypeIdentifierOvulationTestResult"):
|
|
319
321
|
case hashString("HKCategoryTypeIdentifierPelvicPain"):
|
|
322
|
+
case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"):
|
|
323
|
+
case hashString("HKCategoryTypeIdentifierPregnancy"):
|
|
324
|
+
case hashString("HKCategoryTypeIdentifierPregnancyTestResult"):
|
|
325
|
+
case hashString("HKCategoryTypeIdentifierProgesteroneTestResult"):
|
|
326
|
+
case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"):
|
|
320
327
|
case hashString("HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat"):
|
|
321
328
|
case hashString("HKCategoryTypeIdentifierRunnyNose"):
|
|
329
|
+
case hashString("HKCategoryTypeIdentifierSexualActivity"):
|
|
322
330
|
case hashString("HKCategoryTypeIdentifierShortnessOfBreath"):
|
|
323
331
|
case hashString("HKCategoryTypeIdentifierSinusCongestion"):
|
|
324
332
|
case hashString("HKCategoryTypeIdentifierSkippedHeartbeat"):
|
|
333
|
+
case hashString("HKCategoryTypeIdentifierSleepAnalysis"):
|
|
334
|
+
case hashString("HKCategoryTypeIdentifierSleepApneaEvent"):
|
|
325
335
|
case hashString("HKCategoryTypeIdentifierSleepChanges"):
|
|
326
336
|
case hashString("HKCategoryTypeIdentifierSoreThroat"):
|
|
337
|
+
case hashString("HKCategoryTypeIdentifierToothbrushingEvent"):
|
|
327
338
|
case hashString("HKCategoryTypeIdentifierVaginalDryness"):
|
|
328
339
|
case hashString("HKCategoryTypeIdentifierVomiting"):
|
|
329
340
|
case hashString("HKCategoryTypeIdentifierWheezing"):
|
|
330
|
-
case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"):
|
|
331
|
-
case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"):
|
|
332
|
-
case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"):
|
|
333
|
-
case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"):
|
|
334
|
-
case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"):
|
|
335
|
-
case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"):
|
|
336
|
-
case hashString("HKCategoryTypeIdentifierSleepApneaEvent"):
|
|
337
341
|
return true;
|
|
338
342
|
default:
|
|
339
343
|
return false;
|