@kingstinct/react-native-healthkit 15.1.0 → 16.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/README.md +5 -1
- package/ReactNativeHealthkit.podspec +11 -7
- package/app.plugin.js +18 -34
- package/app.plugin.ts +25 -50
- package/ios/CategoryTypeModule.swift +1 -0
- package/ios/CharacteristicTypeModule.swift +7 -6
- package/ios/Constants.swift +9 -34
- package/ios/CoreModule.swift +72 -41
- package/ios/CorrelationTypeModule.swift +3 -2
- package/ios/ElectrocardiogramModule.swift +4 -3
- package/ios/HeartbeatSeriesModule.swift +4 -3
- package/ios/Helpers.swift +10 -243
- package/ios/MedicationModule.swift +9 -8
- package/ios/MemoryEstimation.swift +1 -0
- package/ios/PredicateHelpers.swift +16 -86
- package/ios/QuantityTypeModule.swift +3 -2
- package/ios/Serializers.swift +16 -67
- package/ios/SourceProxy.swift +1 -0
- package/ios/StateOfMindModule.swift +3 -2
- package/ios/WorkoutProxy.swift +3 -2
- package/ios/WorkoutsModule.swift +4 -3
- package/lib/commonjs/generated/healthkit.generated.js +2 -0
- package/lib/commonjs/healthkit.ios.js +4 -2
- package/lib/commonjs/healthkit.js +21 -78
- package/lib/commonjs/types/Auth.js +3 -18
- package/lib/commonjs/types/Background.js +2 -10
- package/lib/commonjs/types/QueryOptions.js +2 -17
- package/lib/module/generated/healthkit.generated.js +2 -0
- package/lib/module/healthkit.ios.js +2 -0
- package/lib/module/healthkit.js +20 -77
- package/lib/module/types/Auth.js +1 -18
- package/lib/module/types/Background.js +1 -10
- package/lib/module/types/QueryOptions.js +1 -17
- package/lib/typescript/generated/healthkit.generated.d.ts +4 -1
- package/lib/typescript/healthkit.d.ts +3 -2
- package/lib/typescript/healthkit.ios.d.ts +11 -9
- package/lib/typescript/specs/CoreModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/SourceProxy.nitro.d.ts +2 -4
- package/lib/typescript/types/Auth.d.ts +1 -16
- package/lib/typescript/types/Background.d.ts +1 -9
- package/lib/typescript/types/Device.d.ts +1 -13
- package/lib/typescript/types/QuantityType.d.ts +1 -1
- package/lib/typescript/types/QueryOptions.d.ts +3 -37
- package/lib/typescript/types/Shared.d.ts +2 -25
- package/lib/typescript/types/Source.d.ts +1 -10
- package/lib/typescript/types/Subscriptions.d.ts +2 -3
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +8 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +68 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +8 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/swift/CategorySample.swift +8 -8
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +8 -8
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +8 -8
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__std__chrono__system_clock__time_point_.swift +54 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +8 -8
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +1 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +25 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +8 -8
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +4 -0
- package/nitrogen/generated/ios/swift/QuantitySample.swift +8 -8
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +4 -0
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +4 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +4 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +4 -0
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +8 -8
- package/nitrogen/generated/shared/c++/CategorySample.hpp +7 -7
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +7 -7
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +3 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -7
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +49 -45
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +7 -7
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +42 -38
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +42 -38
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +48 -44
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +47 -43
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +7 -7
- package/package.json +4 -1
- package/src/generated/healthkit-schema.json +8 -0
- package/src/generated/healthkit.generated.ts +4 -0
- package/src/healthkit.ios.ts +3 -0
- package/src/healthkit.ts +27 -84
- package/src/specs/CoreModule.nitro.ts +19 -0
- package/src/specs/SourceProxy.nitro.ts +2 -4
- package/src/test-setup.ts +1 -0
- package/src/types/Auth.ts +4 -17
- package/src/types/Background.ts +1 -9
- package/src/types/Device.ts +1 -13
- package/src/types/QuantityType.ts +1 -1
- package/src/types/QueryOptions.ts +7 -65
- package/src/types/Shared.ts +7 -28
- package/src/types/Source.ts +1 -11
- package/src/types/Subscriptions.ts +2 -3
- package/ios/BackgroundDeliveryManager.swift +0 -284
- package/ios/BackgroundLaunchHook.mm +0 -41
- package/ios/Bridge.h +0 -10
- package/ios/ExceptionCatcher.h +0 -5
- package/ios/ExceptionCatcher.mm +0 -32
- package/ios/module.modulemap +0 -5
|
@@ -106,44 +106,45 @@ namespace margelo::nitro::healthkit {
|
|
|
106
106
|
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 74,
|
|
107
107
|
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 75,
|
|
108
108
|
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 76,
|
|
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
|
-
|
|
109
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD SWIFT_NAME(hkquantitytypeidentifierheartratevariabilityrmssd) = 77,
|
|
110
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 78,
|
|
111
|
+
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 79,
|
|
112
|
+
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 80,
|
|
113
|
+
HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 81,
|
|
114
|
+
HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 82,
|
|
115
|
+
HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 83,
|
|
116
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 84,
|
|
117
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 85,
|
|
118
|
+
HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 86,
|
|
119
|
+
HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 87,
|
|
120
|
+
HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 88,
|
|
121
|
+
HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 89,
|
|
122
|
+
HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 90,
|
|
123
|
+
HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 91,
|
|
124
|
+
HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 92,
|
|
125
|
+
HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 93,
|
|
126
|
+
HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 94,
|
|
127
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 95,
|
|
128
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 96,
|
|
129
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 97,
|
|
130
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 98,
|
|
131
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 99,
|
|
132
|
+
HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 100,
|
|
133
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 101,
|
|
134
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 102,
|
|
135
|
+
HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 103,
|
|
136
|
+
HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 104,
|
|
137
|
+
HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 105,
|
|
138
|
+
HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 106,
|
|
139
|
+
HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 107,
|
|
140
|
+
HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 108,
|
|
141
|
+
HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 109,
|
|
142
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 110,
|
|
143
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 111,
|
|
144
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 112,
|
|
145
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 113,
|
|
146
|
+
HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 114,
|
|
147
|
+
HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 115,
|
|
147
148
|
} CLOSED_ENUM;
|
|
148
149
|
|
|
149
150
|
} // namespace margelo::nitro::healthkit
|
|
@@ -233,6 +234,7 @@ namespace margelo::nitro {
|
|
|
233
234
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE;
|
|
234
235
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
235
236
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE;
|
|
237
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD;
|
|
236
238
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN;
|
|
237
239
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
238
240
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -354,6 +356,7 @@ namespace margelo::nitro {
|
|
|
354
356
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeadphoneAudioExposure");
|
|
355
357
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
356
358
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute");
|
|
359
|
+
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD");
|
|
357
360
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilitySDNN");
|
|
358
361
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
359
362
|
case margelo::nitro::healthkit::QuantityTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -480,6 +483,7 @@ namespace margelo::nitro {
|
|
|
480
483
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"):
|
|
481
484
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
482
485
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"):
|
|
486
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"):
|
|
483
487
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"):
|
|
484
488
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
485
489
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -185,50 +185,51 @@ namespace margelo::nitro::healthkit {
|
|
|
185
185
|
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 153,
|
|
186
186
|
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 154,
|
|
187
187
|
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 155,
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
188
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD SWIFT_NAME(hkquantitytypeidentifierheartratevariabilityrmssd) = 156,
|
|
189
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 157,
|
|
190
|
+
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 158,
|
|
191
|
+
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 159,
|
|
192
|
+
HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 160,
|
|
193
|
+
HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 161,
|
|
194
|
+
HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 162,
|
|
195
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 163,
|
|
196
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 164,
|
|
197
|
+
HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 165,
|
|
198
|
+
HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 166,
|
|
199
|
+
HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 167,
|
|
200
|
+
HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 168,
|
|
201
|
+
HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 169,
|
|
202
|
+
HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 170,
|
|
203
|
+
HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 171,
|
|
204
|
+
HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 172,
|
|
205
|
+
HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 173,
|
|
206
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 174,
|
|
207
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 175,
|
|
208
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 176,
|
|
209
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 177,
|
|
210
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 178,
|
|
211
|
+
HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 179,
|
|
212
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 180,
|
|
213
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 181,
|
|
214
|
+
HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 182,
|
|
215
|
+
HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 183,
|
|
216
|
+
HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 184,
|
|
217
|
+
HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 185,
|
|
218
|
+
HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 186,
|
|
219
|
+
HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 187,
|
|
220
|
+
HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 188,
|
|
221
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 189,
|
|
222
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 190,
|
|
223
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 191,
|
|
224
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 192,
|
|
225
|
+
HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 193,
|
|
226
|
+
HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 194,
|
|
227
|
+
HKSTATEOFMINDTYPEIDENTIFIER SWIFT_NAME(hkstateofmindtypeidentifier) = 195,
|
|
228
|
+
HKAUDIOGRAMSAMPLETYPE SWIFT_NAME(hkaudiogramsampletype) = 196,
|
|
229
|
+
HKDATATYPEIDENTIFIERHEARTBEATSERIES SWIFT_NAME(hkdatatypeidentifierheartbeatseries) = 197,
|
|
230
|
+
HKWORKOUTROUTETYPEIDENTIFIER SWIFT_NAME(hkworkoutroutetypeidentifier) = 198,
|
|
231
|
+
HKWORKOUTTYPEIDENTIFIER SWIFT_NAME(hkworkouttypeidentifier) = 199,
|
|
232
|
+
HKELECTROCARDIOGRAMTYPE SWIFT_NAME(hkelectrocardiogramtype) = 200,
|
|
232
233
|
} CLOSED_ENUM;
|
|
233
234
|
|
|
234
235
|
} // namespace margelo::nitro::healthkit
|
|
@@ -397,6 +398,7 @@ namespace margelo::nitro {
|
|
|
397
398
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE;
|
|
398
399
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
399
400
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE;
|
|
401
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD;
|
|
400
402
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN;
|
|
401
403
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
402
404
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -603,6 +605,7 @@ namespace margelo::nitro {
|
|
|
603
605
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeadphoneAudioExposure");
|
|
604
606
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
605
607
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute");
|
|
608
|
+
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD");
|
|
606
609
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilitySDNN");
|
|
607
610
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
608
611
|
case margelo::nitro::healthkit::SampleTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -814,6 +817,7 @@ namespace margelo::nitro {
|
|
|
814
817
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"):
|
|
815
818
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
816
819
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"):
|
|
820
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"):
|
|
817
821
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"):
|
|
818
822
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
819
823
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -175,49 +175,50 @@ namespace margelo::nitro::healthkit {
|
|
|
175
175
|
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 143,
|
|
176
176
|
HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 144,
|
|
177
177
|
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 145,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
178
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD SWIFT_NAME(hkquantitytypeidentifierheartratevariabilityrmssd) = 146,
|
|
179
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 147,
|
|
180
|
+
HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 148,
|
|
181
|
+
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 149,
|
|
182
|
+
HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 150,
|
|
183
|
+
HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 151,
|
|
184
|
+
HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 152,
|
|
185
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 153,
|
|
186
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 154,
|
|
187
|
+
HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 155,
|
|
188
|
+
HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 156,
|
|
189
|
+
HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 157,
|
|
190
|
+
HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 158,
|
|
191
|
+
HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 159,
|
|
192
|
+
HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 160,
|
|
193
|
+
HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 161,
|
|
194
|
+
HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 162,
|
|
195
|
+
HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 163,
|
|
196
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 164,
|
|
197
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 165,
|
|
198
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 166,
|
|
199
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 167,
|
|
200
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 168,
|
|
201
|
+
HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 169,
|
|
202
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 170,
|
|
203
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 171,
|
|
204
|
+
HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 172,
|
|
205
|
+
HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 173,
|
|
206
|
+
HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 174,
|
|
207
|
+
HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 175,
|
|
208
|
+
HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 176,
|
|
209
|
+
HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 177,
|
|
210
|
+
HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 178,
|
|
211
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 179,
|
|
212
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 180,
|
|
213
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 181,
|
|
214
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 182,
|
|
215
|
+
HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 183,
|
|
216
|
+
HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 184,
|
|
217
|
+
HKSTATEOFMINDTYPEIDENTIFIER SWIFT_NAME(hkstateofmindtypeidentifier) = 185,
|
|
218
|
+
HKAUDIOGRAMSAMPLETYPE SWIFT_NAME(hkaudiogramsampletype) = 186,
|
|
219
|
+
HKDATATYPEIDENTIFIERHEARTBEATSERIES SWIFT_NAME(hkdatatypeidentifierheartbeatseries) = 187,
|
|
220
|
+
HKWORKOUTROUTETYPEIDENTIFIER SWIFT_NAME(hkworkoutroutetypeidentifier) = 188,
|
|
221
|
+
HKWORKOUTTYPEIDENTIFIER SWIFT_NAME(hkworkouttypeidentifier) = 189,
|
|
221
222
|
} CLOSED_ENUM;
|
|
222
223
|
|
|
223
224
|
} // namespace margelo::nitro::healthkit
|
|
@@ -376,6 +377,7 @@ namespace margelo::nitro {
|
|
|
376
377
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE;
|
|
377
378
|
case hashString("HKQuantityTypeIdentifierHeartRate"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE;
|
|
378
379
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE;
|
|
380
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD;
|
|
379
381
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN;
|
|
380
382
|
case hashString("HKQuantityTypeIdentifierHeight"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT;
|
|
381
383
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -571,6 +573,7 @@ namespace margelo::nitro {
|
|
|
571
573
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeadphoneAudioExposure");
|
|
572
574
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRate");
|
|
573
575
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute");
|
|
576
|
+
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYRMSSD: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD");
|
|
574
577
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeartRateVariabilitySDNN");
|
|
575
578
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERHEIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierHeight");
|
|
576
579
|
case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -771,6 +774,7 @@ namespace margelo::nitro {
|
|
|
771
774
|
case hashString("HKQuantityTypeIdentifierHeadphoneAudioExposure"):
|
|
772
775
|
case hashString("HKQuantityTypeIdentifierHeartRate"):
|
|
773
776
|
case hashString("HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"):
|
|
777
|
+
case hashString("HKQuantityTypeIdentifierHeartRateVariabilityRMSSD"):
|
|
774
778
|
case hashString("HKQuantityTypeIdentifierHeartRateVariabilitySDNN"):
|
|
775
779
|
case hashString("HKQuantityTypeIdentifierHeight"):
|
|
776
780
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -50,11 +50,11 @@ namespace margelo::nitro::healthkit { struct Device; }
|
|
|
50
50
|
#include "StateOfMindLabel.hpp"
|
|
51
51
|
#include "SampleType.hpp"
|
|
52
52
|
#include <chrono>
|
|
53
|
-
#include <NitroModules/AnyMap.hpp>
|
|
54
53
|
#include <string>
|
|
55
54
|
#include "SourceRevision.hpp"
|
|
56
55
|
#include "Device.hpp"
|
|
57
56
|
#include <optional>
|
|
57
|
+
#include <NitroModules/AnyMap.hpp>
|
|
58
58
|
|
|
59
59
|
namespace margelo::nitro::healthkit {
|
|
60
60
|
|
|
@@ -72,14 +72,14 @@ namespace margelo::nitro::healthkit {
|
|
|
72
72
|
std::chrono::system_clock::time_point startDate SWIFT_PRIVATE;
|
|
73
73
|
std::chrono::system_clock::time_point endDate SWIFT_PRIVATE;
|
|
74
74
|
bool hasUndeterminedDuration SWIFT_PRIVATE;
|
|
75
|
-
std::shared_ptr<AnyMap> metadata SWIFT_PRIVATE;
|
|
76
75
|
std::string uuid SWIFT_PRIVATE;
|
|
77
76
|
SourceRevision sourceRevision SWIFT_PRIVATE;
|
|
78
77
|
std::optional<Device> device SWIFT_PRIVATE;
|
|
78
|
+
std::shared_ptr<AnyMap> metadata SWIFT_PRIVATE;
|
|
79
79
|
|
|
80
80
|
public:
|
|
81
81
|
StateOfMindSample() = default;
|
|
82
|
-
explicit StateOfMindSample(double valence, StateOfMindKind kind, StateOfMindValenceClassification valenceClassification, std::vector<StateOfMindAssociation> associations, std::vector<StateOfMindLabel> labels, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::
|
|
82
|
+
explicit StateOfMindSample(double valence, StateOfMindKind kind, StateOfMindValenceClassification valenceClassification, std::vector<StateOfMindAssociation> associations, std::vector<StateOfMindLabel> labels, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::string uuid, SourceRevision sourceRevision, std::optional<Device> device, std::shared_ptr<AnyMap> metadata): valence(valence), kind(kind), valenceClassification(valenceClassification), associations(associations), labels(labels), sampleType(sampleType), startDate(startDate), endDate(endDate), hasUndeterminedDuration(hasUndeterminedDuration), uuid(uuid), sourceRevision(sourceRevision), device(device), metadata(metadata) {}
|
|
83
83
|
|
|
84
84
|
public:
|
|
85
85
|
friend bool operator==(const StateOfMindSample& lhs, const StateOfMindSample& rhs) = default;
|
|
@@ -104,10 +104,10 @@ namespace margelo::nitro {
|
|
|
104
104
|
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
|
|
105
105
|
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate"))),
|
|
106
106
|
JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"))),
|
|
107
|
-
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata"))),
|
|
108
107
|
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid"))),
|
|
109
108
|
JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"))),
|
|
110
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device")))
|
|
109
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device"))),
|
|
110
|
+
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
113
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::StateOfMindSample& arg) {
|
|
@@ -121,10 +121,10 @@ namespace margelo::nitro {
|
|
|
121
121
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
|
|
122
122
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
|
|
123
123
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"), JSIConverter<bool>::toJSI(runtime, arg.hasUndeterminedDuration));
|
|
124
|
-
obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata"), JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
|
|
125
124
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "uuid"), JSIConverter<std::string>::toJSI(runtime, arg.uuid));
|
|
126
125
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"), JSIConverter<margelo::nitro::healthkit::SourceRevision>::toJSI(runtime, arg.sourceRevision));
|
|
127
126
|
obj.setProperty(runtime, PropNameIDCache::get(runtime, "device"), JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::toJSI(runtime, arg.device));
|
|
127
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata"), JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
|
|
128
128
|
return obj;
|
|
129
129
|
}
|
|
130
130
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -144,10 +144,10 @@ namespace margelo::nitro {
|
|
|
144
144
|
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
|
|
145
145
|
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
|
|
146
146
|
if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration")))) return false;
|
|
147
|
-
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))) return false;
|
|
148
147
|
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid")))) return false;
|
|
149
148
|
if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision")))) return false;
|
|
150
149
|
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device")))) return false;
|
|
150
|
+
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))) return false;
|
|
151
151
|
return true;
|
|
152
152
|
}
|
|
153
153
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kingstinct/react-native-healthkit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "React Native bindings for HealthKit",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -102,6 +102,9 @@
|
|
|
102
102
|
"react-native-nitro-modules": "^0.35.0",
|
|
103
103
|
"typescript": "~5.9.3"
|
|
104
104
|
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@react-native-healthkit/core": "16.0.0"
|
|
107
|
+
},
|
|
105
108
|
"peerDependencies": {
|
|
106
109
|
"react": ">=19",
|
|
107
110
|
"react-native": ">=0.79",
|
|
@@ -648,6 +648,14 @@
|
|
|
648
648
|
"writeable": true,
|
|
649
649
|
"legacy": false
|
|
650
650
|
},
|
|
651
|
+
{
|
|
652
|
+
"name": "HKQuantityTypeIdentifierHeartRateVariabilityRMSSD",
|
|
653
|
+
"ios": "27.0",
|
|
654
|
+
"canonicalUnit": "ms",
|
|
655
|
+
"aggregationStyle": "Discrete (Arithmetic)",
|
|
656
|
+
"writeable": true,
|
|
657
|
+
"legacy": false
|
|
658
|
+
},
|
|
651
659
|
{
|
|
652
660
|
"name": "HKQuantityTypeIdentifierHeartRateVariabilitySDNN",
|
|
653
661
|
"ios": "11.0",
|
|
@@ -99,6 +99,7 @@ export type QuantityTypeIdentifierWriteable =
|
|
|
99
99
|
| 'HKQuantityTypeIdentifierHeadphoneAudioExposure'
|
|
100
100
|
| 'HKQuantityTypeIdentifierHeartRate'
|
|
101
101
|
| 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute'
|
|
102
|
+
| 'HKQuantityTypeIdentifierHeartRateVariabilityRMSSD'
|
|
102
103
|
| 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN'
|
|
103
104
|
| 'HKQuantityTypeIdentifierHeight'
|
|
104
105
|
| 'HKQuantityTypeIdentifierInhalerUsage'
|
|
@@ -299,6 +300,7 @@ export const QUANTITY_IDENTIFIER_IOS_AVAILABILITY = {
|
|
|
299
300
|
HKQuantityTypeIdentifierHeadphoneAudioExposure: '13.0',
|
|
300
301
|
HKQuantityTypeIdentifierHeartRate: '8.0',
|
|
301
302
|
HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: '16.0',
|
|
303
|
+
HKQuantityTypeIdentifierHeartRateVariabilityRMSSD: '27.0',
|
|
302
304
|
HKQuantityTypeIdentifierHeartRateVariabilitySDNN: '11.0',
|
|
303
305
|
HKQuantityTypeIdentifierHeight: '8.0',
|
|
304
306
|
HKQuantityTypeIdentifierInhalerUsage: '8.0',
|
|
@@ -495,6 +497,7 @@ export const QUANTITY_IDENTIFIER_CANONICAL_UNITS = {
|
|
|
495
497
|
HKQuantityTypeIdentifierHeadphoneAudioExposure: 'dBASPL',
|
|
496
498
|
HKQuantityTypeIdentifierHeartRate: 'count/s',
|
|
497
499
|
HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: 'count/min',
|
|
500
|
+
HKQuantityTypeIdentifierHeartRateVariabilityRMSSD: 'ms',
|
|
498
501
|
HKQuantityTypeIdentifierHeartRateVariabilitySDNN: 'ms',
|
|
499
502
|
HKQuantityTypeIdentifierHeight: 'm',
|
|
500
503
|
HKQuantityTypeIdentifierInhalerUsage: 'count',
|
|
@@ -1267,6 +1270,7 @@ export interface QuantityUnitByIdentifierMap {
|
|
|
1267
1270
|
readonly HKQuantityTypeIdentifierHeadphoneAudioExposure: PressureUnit
|
|
1268
1271
|
readonly HKQuantityTypeIdentifierHeartRate: CountPerTime<TimeUnit>
|
|
1269
1272
|
readonly HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: CountPerTime<TimeUnit>
|
|
1273
|
+
readonly HKQuantityTypeIdentifierHeartRateVariabilityRMSSD: string
|
|
1270
1274
|
readonly HKQuantityTypeIdentifierHeartRateVariabilitySDNN: string
|
|
1271
1275
|
readonly HKQuantityTypeIdentifierHeight: LengthUnit
|
|
1272
1276
|
readonly HKQuantityTypeIdentifierInhalerUsage: 'count'
|
package/src/healthkit.ios.ts
CHANGED
|
@@ -300,6 +300,8 @@ const MedicationBindings = {
|
|
|
300
300
|
export const authorizationStatusFor = Core.authorizationStatusFor.bind(Core)
|
|
301
301
|
export const requestPerObjectReadAuthorization =
|
|
302
302
|
Core.requestPerObjectReadAuthorization.bind(Core)
|
|
303
|
+
export const getEarliestAuthorizedSampleDates =
|
|
304
|
+
Core.getEarliestAuthorizedSampleDates.bind(Core)
|
|
303
305
|
export const disableAllBackgroundDelivery =
|
|
304
306
|
Core.disableAllBackgroundDelivery.bind(Core)
|
|
305
307
|
export const disableBackgroundDelivery =
|
|
@@ -454,6 +456,7 @@ export default {
|
|
|
454
456
|
querySources,
|
|
455
457
|
requestAuthorization,
|
|
456
458
|
requestPerObjectReadAuthorization,
|
|
459
|
+
getEarliestAuthorizedSampleDates,
|
|
457
460
|
deleteObjects,
|
|
458
461
|
saveCategorySample,
|
|
459
462
|
saveCorrelationSample,
|