@kingstinct/react-native-healthkit 13.1.4 → 13.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/ios/MedicationModule.swift +51 -4
  2. package/lib/typescript/specs/MedicationModule.nitro.d.ts +1 -0
  3. package/lib/typescript/types/CategoryTypeIdentifier.d.ts +31 -1
  4. package/lib/typescript/types/QuantityTypeIdentifier.d.ts +12 -0
  5. package/lib/typescript/types/Workouts.d.ts +4 -0
  6. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +17 -1
  7. package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +20 -0
  8. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +4 -0
  9. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +52 -0
  10. package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +32 -2
  11. package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +28 -0
  12. package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +8 -0
  13. package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +28 -0
  14. package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +28 -0
  15. package/nitrogen/generated/ios/swift/WorkoutSample.swift +94 -2
  16. package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +20 -0
  17. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +4 -0
  18. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +5 -1
  19. package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +6 -2
  20. package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +162 -134
  21. package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +92 -84
  22. package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +155 -127
  23. package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +149 -121
  24. package/nitrogen/generated/shared/c++/WorkoutSample.hpp +18 -2
  25. package/package.json +1 -1
  26. package/src/specs/MedicationModule.nitro.ts +1 -0
  27. package/src/types/CategoryTypeIdentifier.ts +35 -0
  28. package/src/types/QuantityTypeIdentifier.ts +14 -0
  29. package/src/types/Workouts.ts +4 -0
@@ -89,127 +89,134 @@ namespace margelo::nitro::healthkit {
89
89
  HKCATEGORYTYPEIDENTIFIERWHEEZING SWIFT_NAME(hkcategorytypeidentifierwheezing) = 57,
90
90
  HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingafterpregnancy) = 58,
91
91
  HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY SWIFT_NAME(hkcategorytypeidentifierbleedingduringpregnancy) = 59,
92
- HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE SWIFT_NAME(hkcorrelationtypeidentifierbloodpressure) = 60,
93
- HKCORRELATIONTYPEIDENTIFIERFOOD SWIFT_NAME(hkcorrelationtypeidentifierfood) = 61,
94
- HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX SWIFT_NAME(hkquantitytypeidentifierbodymassindex) = 62,
95
- HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierbodyfatpercentage) = 63,
96
- HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 64,
97
- HKQUANTITYTYPEIDENTIFIERBODYMASS SWIFT_NAME(hkquantitytypeidentifierbodymass) = 65,
98
- HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 66,
99
- HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 67,
100
- HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 68,
101
- HKQUANTITYTYPEIDENTIFIERDISTANCEWALKINGRUNNING SWIFT_NAME(hkquantitytypeidentifierdistancewalkingrunning) = 69,
102
- HKQUANTITYTYPEIDENTIFIERDISTANCECYCLING SWIFT_NAME(hkquantitytypeidentifierdistancecycling) = 70,
103
- HKQUANTITYTYPEIDENTIFIERDISTANCEWHEELCHAIR SWIFT_NAME(hkquantitytypeidentifierdistancewheelchair) = 71,
104
- HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED SWIFT_NAME(hkquantitytypeidentifierbasalenergyburned) = 72,
105
- HKQUANTITYTYPEIDENTIFIERACTIVEENERGYBURNED SWIFT_NAME(hkquantitytypeidentifieractiveenergyburned) = 73,
106
- HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED SWIFT_NAME(hkquantitytypeidentifierflightsclimbed) = 74,
107
- HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 75,
108
- HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 76,
109
- HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING SWIFT_NAME(hkquantitytypeidentifierdistanceswimming) = 77,
110
- HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 78,
111
- HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 79,
112
- HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS SWIFT_NAME(hkquantitytypeidentifierdistancedownhillsnowsports) = 80,
113
- HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 81,
114
- HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbodytemperature) = 82,
115
- HKQUANTITYTYPEIDENTIFIERBASALBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbasalbodytemperature) = 83,
116
- HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressuresystolic) = 84,
117
- HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressurediastolic) = 85,
118
- HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 86,
119
- HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 87,
120
- HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 88,
121
- HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 89,
122
- HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 90,
123
- HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 91,
124
- HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 92,
125
- HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 93,
126
- HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 94,
127
- HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 95,
128
- HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 96,
129
- HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 97,
130
- HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 98,
131
- HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 99,
132
- HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 100,
133
- HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 101,
134
- HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 102,
135
- HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 103,
136
- HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 104,
137
- HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 105,
138
- HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 106,
139
- HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 107,
140
- HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 108,
141
- HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 109,
142
- HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 110,
143
- HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 111,
144
- HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 112,
145
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 113,
146
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 114,
147
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 115,
148
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 116,
149
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 117,
150
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 118,
151
- HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 119,
152
- HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 120,
153
- HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 121,
154
- HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 122,
155
- HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 123,
156
- HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 124,
157
- HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 125,
158
- HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 126,
159
- HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 127,
160
- HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 128,
161
- HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 129,
162
- HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 130,
163
- HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 131,
164
- HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 132,
165
- HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 133,
166
- HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 134,
167
- HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 135,
168
- HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 136,
169
- HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 137,
170
- HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 138,
171
- HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 139,
172
- HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 140,
173
- HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 141,
174
- HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 142,
175
- HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 143,
176
- HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 144,
177
- HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 145,
178
- HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 146,
179
- HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 147,
180
- HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 148,
181
- HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME SWIFT_NAME(hkquantitytypeidentifierapplemovetime) = 149,
182
- HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 150,
183
- HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 151,
184
- HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 152,
185
- HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierapplesleepingwristtemperature) = 153,
186
- HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 154,
187
- HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 155,
188
- HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED SWIFT_NAME(hkquantitytypeidentifiercyclingspeed) = 156,
189
- HKQUANTITYTYPEIDENTIFIERCYCLINGPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingpower) = 157,
190
- HKQUANTITYTYPEIDENTIFIERCYCLINGFUNCTIONALTHRESHOLDPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingfunctionalthresholdpower) = 158,
191
- HKQUANTITYTYPEIDENTIFIERCYCLINGCADENCE SWIFT_NAME(hkquantitytypeidentifiercyclingcadence) = 159,
192
- HKQUANTITYTYPEIDENTIFIERENVIRONMENTALSOUNDREDUCTION SWIFT_NAME(hkquantitytypeidentifierenvironmentalsoundreduction) = 160,
193
- HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 161,
194
- HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 162,
195
- HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 163,
196
- HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 164,
197
- HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 165,
198
- HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 166,
199
- HKQUANTITYTYPEIDENTIFIERCROSSCOUNTRYSKIINGSPEED SWIFT_NAME(hkquantitytypeidentifiercrosscountryskiingspeed) = 167,
200
- HKQUANTITYTYPEIDENTIFIERDISTANCECROSSCOUNTRYSKIING SWIFT_NAME(hkquantitytypeidentifierdistancecrosscountryskiing) = 168,
201
- HKQUANTITYTYPEIDENTIFIERDISTANCEPADDLESPORTS SWIFT_NAME(hkquantitytypeidentifierdistancepaddlesports) = 169,
202
- HKQUANTITYTYPEIDENTIFIERDISTANCEROWING SWIFT_NAME(hkquantitytypeidentifierdistancerowing) = 170,
203
- HKQUANTITYTYPEIDENTIFIERDISTANCESKATINGSPORTS SWIFT_NAME(hkquantitytypeidentifierdistanceskatingsports) = 171,
204
- HKQUANTITYTYPEIDENTIFIERESTIMATEDWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierestimatedworkouteffortscore) = 172,
205
- HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 173,
206
- HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 174,
207
- HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 175,
208
- HKSTATEOFMINDTYPEIDENTIFIER SWIFT_NAME(hkstateofmindtypeidentifier) = 176,
209
- HKAUDIOGRAMSAMPLETYPE SWIFT_NAME(hkaudiogramsampletype) = 177,
210
- HKDATATYPEIDENTIFIERHEARTBEATSERIES SWIFT_NAME(hkdatatypeidentifierheartbeatseries) = 178,
211
- HKWORKOUTROUTETYPEIDENTIFIER SWIFT_NAME(hkworkoutroutetypeidentifier) = 179,
212
- HKWORKOUTTYPEIDENTIFIER SWIFT_NAME(hkworkouttypeidentifier) = 180,
92
+ HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierinfrequentmenstrualcycles) = 60,
93
+ HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES SWIFT_NAME(hkcategorytypeidentifierirregularmenstrualcycles) = 61,
94
+ HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING SWIFT_NAME(hkcategorytypeidentifierpersistentintermenstrualbleeding) = 62,
95
+ HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS SWIFT_NAME(hkcategorytypeidentifierprolongedmenstrualperiods) = 63,
96
+ HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT SWIFT_NAME(hkcategorytypeidentifiersleepapneaevent) = 64,
97
+ HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE SWIFT_NAME(hkcorrelationtypeidentifierbloodpressure) = 65,
98
+ HKCORRELATIONTYPEIDENTIFIERFOOD SWIFT_NAME(hkcorrelationtypeidentifierfood) = 66,
99
+ HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX SWIFT_NAME(hkquantitytypeidentifierbodymassindex) = 67,
100
+ HKQUANTITYTYPEIDENTIFIERBODYFATPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierbodyfatpercentage) = 68,
101
+ HKQUANTITYTYPEIDENTIFIERHEIGHT SWIFT_NAME(hkquantitytypeidentifierheight) = 69,
102
+ HKQUANTITYTYPEIDENTIFIERBODYMASS SWIFT_NAME(hkquantitytypeidentifierbodymass) = 70,
103
+ HKQUANTITYTYPEIDENTIFIERLEANBODYMASS SWIFT_NAME(hkquantitytypeidentifierleanbodymass) = 71,
104
+ HKQUANTITYTYPEIDENTIFIERWAISTCIRCUMFERENCE SWIFT_NAME(hkquantitytypeidentifierwaistcircumference) = 72,
105
+ HKQUANTITYTYPEIDENTIFIERSTEPCOUNT SWIFT_NAME(hkquantitytypeidentifierstepcount) = 73,
106
+ HKQUANTITYTYPEIDENTIFIERDISTANCEWALKINGRUNNING SWIFT_NAME(hkquantitytypeidentifierdistancewalkingrunning) = 74,
107
+ HKQUANTITYTYPEIDENTIFIERDISTANCECYCLING SWIFT_NAME(hkquantitytypeidentifierdistancecycling) = 75,
108
+ HKQUANTITYTYPEIDENTIFIERDISTANCEWHEELCHAIR SWIFT_NAME(hkquantitytypeidentifierdistancewheelchair) = 76,
109
+ HKQUANTITYTYPEIDENTIFIERBASALENERGYBURNED SWIFT_NAME(hkquantitytypeidentifierbasalenergyburned) = 77,
110
+ HKQUANTITYTYPEIDENTIFIERACTIVEENERGYBURNED SWIFT_NAME(hkquantitytypeidentifieractiveenergyburned) = 78,
111
+ HKQUANTITYTYPEIDENTIFIERFLIGHTSCLIMBED SWIFT_NAME(hkquantitytypeidentifierflightsclimbed) = 79,
112
+ HKQUANTITYTYPEIDENTIFIERNIKEFUEL SWIFT_NAME(hkquantitytypeidentifiernikefuel) = 80,
113
+ HKQUANTITYTYPEIDENTIFIERPUSHCOUNT SWIFT_NAME(hkquantitytypeidentifierpushcount) = 81,
114
+ HKQUANTITYTYPEIDENTIFIERDISTANCESWIMMING SWIFT_NAME(hkquantitytypeidentifierdistanceswimming) = 82,
115
+ HKQUANTITYTYPEIDENTIFIERSWIMMINGSTROKECOUNT SWIFT_NAME(hkquantitytypeidentifierswimmingstrokecount) = 83,
116
+ HKQUANTITYTYPEIDENTIFIERVO2MAX SWIFT_NAME(hkquantitytypeidentifiervo2max) = 84,
117
+ HKQUANTITYTYPEIDENTIFIERDISTANCEDOWNHILLSNOWSPORTS SWIFT_NAME(hkquantitytypeidentifierdistancedownhillsnowsports) = 85,
118
+ HKQUANTITYTYPEIDENTIFIERHEARTRATE SWIFT_NAME(hkquantitytypeidentifierheartrate) = 86,
119
+ HKQUANTITYTYPEIDENTIFIERBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbodytemperature) = 87,
120
+ HKQUANTITYTYPEIDENTIFIERBASALBODYTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierbasalbodytemperature) = 88,
121
+ HKQUANTITYTYPEIDENTIFIERBLOODPRESSURESYSTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressuresystolic) = 89,
122
+ HKQUANTITYTYPEIDENTIFIERBLOODPRESSUREDIASTOLIC SWIFT_NAME(hkquantitytypeidentifierbloodpressurediastolic) = 90,
123
+ HKQUANTITYTYPEIDENTIFIERRESPIRATORYRATE SWIFT_NAME(hkquantitytypeidentifierrespiratoryrate) = 91,
124
+ HKQUANTITYTYPEIDENTIFIERRESTINGHEARTRATE SWIFT_NAME(hkquantitytypeidentifierrestingheartrate) = 92,
125
+ HKQUANTITYTYPEIDENTIFIERHEARTRATEVARIABILITYSDNN SWIFT_NAME(hkquantitytypeidentifierheartratevariabilitysdnn) = 93,
126
+ HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 94,
127
+ HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 95,
128
+ HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 96,
129
+ HKQUANTITYTYPEIDENTIFIERBLOODKETONES SWIFT_NAME(hkquantitytypeidentifierbloodketones) = 97,
130
+ HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 98,
131
+ HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 99,
132
+ HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 100,
133
+ HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 101,
134
+ HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 102,
135
+ HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 103,
136
+ HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 104,
137
+ HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 105,
138
+ HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 106,
139
+ HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 107,
140
+ HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 108,
141
+ HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 109,
142
+ HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 110,
143
+ HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 111,
144
+ HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 112,
145
+ HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 113,
146
+ HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 114,
147
+ HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 115,
148
+ HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 116,
149
+ HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 117,
150
+ HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 118,
151
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 119,
152
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 120,
153
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 121,
154
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 122,
155
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 123,
156
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 124,
157
+ HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 125,
158
+ HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 126,
159
+ HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 127,
160
+ HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 128,
161
+ HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 129,
162
+ HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 130,
163
+ HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 131,
164
+ HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 132,
165
+ HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 133,
166
+ HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 134,
167
+ HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 135,
168
+ HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 136,
169
+ HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 137,
170
+ HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 138,
171
+ HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 139,
172
+ HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 140,
173
+ HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 141,
174
+ HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 142,
175
+ HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 143,
176
+ HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 144,
177
+ HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 145,
178
+ HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 146,
179
+ HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 147,
180
+ HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 148,
181
+ HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 149,
182
+ HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 150,
183
+ HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 151,
184
+ HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 152,
185
+ HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 153,
186
+ HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 154,
187
+ HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME SWIFT_NAME(hkquantitytypeidentifierapplemovetime) = 155,
188
+ HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 156,
189
+ HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 157,
190
+ HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 158,
191
+ HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierapplesleepingwristtemperature) = 159,
192
+ HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES SWIFT_NAME(hkquantitytypeidentifierapplesleepingbreathingdisturbances) = 160,
193
+ HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 161,
194
+ HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 162,
195
+ HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED SWIFT_NAME(hkquantitytypeidentifiercyclingspeed) = 163,
196
+ HKQUANTITYTYPEIDENTIFIERCYCLINGPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingpower) = 164,
197
+ HKQUANTITYTYPEIDENTIFIERCYCLINGFUNCTIONALTHRESHOLDPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingfunctionalthresholdpower) = 165,
198
+ HKQUANTITYTYPEIDENTIFIERCYCLINGCADENCE SWIFT_NAME(hkquantitytypeidentifiercyclingcadence) = 166,
199
+ HKQUANTITYTYPEIDENTIFIERENVIRONMENTALSOUNDREDUCTION SWIFT_NAME(hkquantitytypeidentifierenvironmentalsoundreduction) = 167,
200
+ HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 168,
201
+ HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 169,
202
+ HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 170,
203
+ HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 171,
204
+ HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 172,
205
+ HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 173,
206
+ HKQUANTITYTYPEIDENTIFIERCROSSCOUNTRYSKIINGSPEED SWIFT_NAME(hkquantitytypeidentifiercrosscountryskiingspeed) = 174,
207
+ HKQUANTITYTYPEIDENTIFIERDISTANCECROSSCOUNTRYSKIING SWIFT_NAME(hkquantitytypeidentifierdistancecrosscountryskiing) = 175,
208
+ HKQUANTITYTYPEIDENTIFIERDISTANCEPADDLESPORTS SWIFT_NAME(hkquantitytypeidentifierdistancepaddlesports) = 176,
209
+ HKQUANTITYTYPEIDENTIFIERDISTANCEROWING SWIFT_NAME(hkquantitytypeidentifierdistancerowing) = 177,
210
+ HKQUANTITYTYPEIDENTIFIERDISTANCESKATINGSPORTS SWIFT_NAME(hkquantitytypeidentifierdistanceskatingsports) = 178,
211
+ HKQUANTITYTYPEIDENTIFIERESTIMATEDWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierestimatedworkouteffortscore) = 179,
212
+ HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 180,
213
+ HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 181,
214
+ HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 182,
215
+ HKSTATEOFMINDTYPEIDENTIFIER SWIFT_NAME(hkstateofmindtypeidentifier) = 183,
216
+ HKAUDIOGRAMSAMPLETYPE SWIFT_NAME(hkaudiogramsampletype) = 184,
217
+ HKDATATYPEIDENTIFIERHEARTBEATSERIES SWIFT_NAME(hkdatatypeidentifierheartbeatseries) = 185,
218
+ HKWORKOUTROUTETYPEIDENTIFIER SWIFT_NAME(hkworkoutroutetypeidentifier) = 186,
219
+ HKWORKOUTTYPEIDENTIFIER SWIFT_NAME(hkworkouttypeidentifier) = 187,
213
220
  } CLOSED_ENUM;
214
221
 
215
222
  } // namespace margelo::nitro::healthkit
@@ -282,6 +289,11 @@ namespace margelo::nitro {
282
289
  case hashString("HKCategoryTypeIdentifierWheezing"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERWHEEZING;
283
290
  case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY;
284
291
  case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY;
292
+ case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES;
293
+ case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES;
294
+ case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING;
295
+ case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS;
296
+ case hashString("HKCategoryTypeIdentifierSleepApneaEvent"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT;
285
297
  case hashString("HKCorrelationTypeIdentifierBloodPressure"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE;
286
298
  case hashString("HKCorrelationTypeIdentifierFood"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCORRELATIONTYPEIDENTIFIERFOOD;
287
299
  case hashString("HKQuantityTypeIdentifierBodyMassIndex"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX;
@@ -314,6 +326,7 @@ namespace margelo::nitro {
314
326
  case hashString("HKQuantityTypeIdentifierOxygenSaturation"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION;
315
327
  case hashString("HKQuantityTypeIdentifierPeripheralPerfusionIndex"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX;
316
328
  case hashString("HKQuantityTypeIdentifierBloodGlucose"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE;
329
+ case hashString("HKQuantityTypeIdentifierBloodKetones"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODKETONES;
317
330
  case hashString("HKQuantityTypeIdentifierNumberOfTimesFallen"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN;
318
331
  case hashString("HKQuantityTypeIdentifierElectrodermalActivity"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY;
319
332
  case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
@@ -376,6 +389,7 @@ namespace margelo::nitro {
376
389
  case hashString("HKQuantityTypeIdentifierUnderwaterDepth"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH;
377
390
  case hashString("HKQuantityTypeIdentifierWaterTemperature"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE;
378
391
  case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE;
392
+ case hashString("HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES;
379
393
  case hashString("HKQuantityTypeIdentifierTimeInDaylight"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT;
380
394
  case hashString("HKQuantityTypeIdentifierPhysicalEffort"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT;
381
395
  case hashString("HKQuantityTypeIdentifierCyclingSpeed"): return margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED;
@@ -469,6 +483,11 @@ namespace margelo::nitro {
469
483
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERWHEEZING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierWheezing");
470
484
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERBLEEDINGAFTERPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingAfterPregnancy");
471
485
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERBLEEDINGDURINGPREGNANCY: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierBleedingDuringPregnancy");
486
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERINFREQUENTMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierInfrequentMenstrualCycles");
487
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERIRREGULARMENSTRUALCYCLES: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierIrregularMenstrualCycles");
488
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERPERSISTENTINTERMENSTRUALBLEEDING: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding");
489
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERPROLONGEDMENSTRUALPERIODS: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierProlongedMenstrualPeriods");
490
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCATEGORYTYPEIDENTIFIERSLEEPAPNEAEVENT: return JSIConverter<std::string>::toJSI(runtime, "HKCategoryTypeIdentifierSleepApneaEvent");
472
491
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCORRELATIONTYPEIDENTIFIERBLOODPRESSURE: return JSIConverter<std::string>::toJSI(runtime, "HKCorrelationTypeIdentifierBloodPressure");
473
492
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKCORRELATIONTYPEIDENTIFIERFOOD: return JSIConverter<std::string>::toJSI(runtime, "HKCorrelationTypeIdentifierFood");
474
493
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBODYMASSINDEX: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBodyMassIndex");
@@ -501,6 +520,7 @@ namespace margelo::nitro {
501
520
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierOxygenSaturation");
502
521
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierPeripheralPerfusionIndex");
503
522
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodGlucose");
523
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERBLOODKETONES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodKetones");
504
524
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierNumberOfTimesFallen");
505
525
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierElectrodermalActivity");
506
526
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
@@ -563,6 +583,7 @@ namespace margelo::nitro {
563
583
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierUnderwaterDepth");
564
584
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierWaterTemperature");
565
585
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleSleepingWristTemperature");
586
+ case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances");
566
587
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierTimeInDaylight");
567
588
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierPhysicalEffort");
568
589
  case margelo::nitro::healthkit::SampleTypeIdentifierWriteable::HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierCyclingSpeed");
@@ -661,6 +682,11 @@ namespace margelo::nitro {
661
682
  case hashString("HKCategoryTypeIdentifierWheezing"):
662
683
  case hashString("HKCategoryTypeIdentifierBleedingAfterPregnancy"):
663
684
  case hashString("HKCategoryTypeIdentifierBleedingDuringPregnancy"):
685
+ case hashString("HKCategoryTypeIdentifierInfrequentMenstrualCycles"):
686
+ case hashString("HKCategoryTypeIdentifierIrregularMenstrualCycles"):
687
+ case hashString("HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"):
688
+ case hashString("HKCategoryTypeIdentifierProlongedMenstrualPeriods"):
689
+ case hashString("HKCategoryTypeIdentifierSleepApneaEvent"):
664
690
  case hashString("HKCorrelationTypeIdentifierBloodPressure"):
665
691
  case hashString("HKCorrelationTypeIdentifierFood"):
666
692
  case hashString("HKQuantityTypeIdentifierBodyMassIndex"):
@@ -693,6 +719,7 @@ namespace margelo::nitro {
693
719
  case hashString("HKQuantityTypeIdentifierOxygenSaturation"):
694
720
  case hashString("HKQuantityTypeIdentifierPeripheralPerfusionIndex"):
695
721
  case hashString("HKQuantityTypeIdentifierBloodGlucose"):
722
+ case hashString("HKQuantityTypeIdentifierBloodKetones"):
696
723
  case hashString("HKQuantityTypeIdentifierNumberOfTimesFallen"):
697
724
  case hashString("HKQuantityTypeIdentifierElectrodermalActivity"):
698
725
  case hashString("HKQuantityTypeIdentifierInhalerUsage"):
@@ -755,6 +782,7 @@ namespace margelo::nitro {
755
782
  case hashString("HKQuantityTypeIdentifierUnderwaterDepth"):
756
783
  case hashString("HKQuantityTypeIdentifierWaterTemperature"):
757
784
  case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"):
785
+ case hashString("HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances"):
758
786
  case hashString("HKQuantityTypeIdentifierTimeInDaylight"):
759
787
  case hashString("HKQuantityTypeIdentifierPhysicalEffort"):
760
788
  case hashString("HKQuantityTypeIdentifierCyclingSpeed"):
@@ -46,9 +46,9 @@ namespace margelo::nitro::healthkit { struct Device; }
46
46
 
47
47
  #include "WorkoutActivityType.hpp"
48
48
  #include "Quantity.hpp"
49
+ #include <optional>
49
50
  #include "WorkoutEvent.hpp"
50
51
  #include <vector>
51
- #include <optional>
52
52
  #include "WorkoutActivity.hpp"
53
53
  #include "SampleType.hpp"
54
54
  #include <chrono>
@@ -69,6 +69,10 @@ namespace margelo::nitro::healthkit {
69
69
  public:
70
70
  WorkoutActivityType workoutActivityType SWIFT_PRIVATE;
71
71
  Quantity duration SWIFT_PRIVATE;
72
+ std::optional<Quantity> totalEnergyBurned SWIFT_PRIVATE;
73
+ std::optional<Quantity> totalDistance SWIFT_PRIVATE;
74
+ std::optional<Quantity> totalSwimmingStrokeCount SWIFT_PRIVATE;
75
+ std::optional<Quantity> totalFlightsClimbed SWIFT_PRIVATE;
72
76
  std::optional<std::vector<WorkoutEvent>> events SWIFT_PRIVATE;
73
77
  std::optional<std::vector<WorkoutActivity>> activities SWIFT_PRIVATE;
74
78
  std::optional<Quantity> metadataAverageMETs SWIFT_PRIVATE;
@@ -108,7 +112,7 @@ namespace margelo::nitro::healthkit {
108
112
 
109
113
  public:
110
114
  WorkoutSample() = default;
111
- explicit WorkoutSample(WorkoutActivityType workoutActivityType, Quantity duration, std::optional<std::vector<WorkoutEvent>> events, std::optional<std::vector<WorkoutActivity>> activities, std::optional<Quantity> metadataAverageMETs, std::optional<Quantity> metadataElevationAscended, std::optional<Quantity> metadataElevationDescended, std::optional<bool> metadataIndoorWorkout, std::optional<Quantity> metadataAverageSpeed, std::optional<Quantity> metadataMaximumSpeed, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::optional<WeatherCondition> metadataWeatherCondition, std::optional<Quantity> metadataWeatherHumidity, std::optional<Quantity> metadataWeatherTemperature, std::optional<InsulinDeliveryReason> metadataInsulinDeliveryReason, std::optional<HeartRateMotionContext> metadataHeartRateMotionContext, std::string uuid, SourceRevision sourceRevision, std::optional<Device> device, std::shared_ptr<AnyMap> metadata, std::optional<std::string> metadataExternalUUID, std::optional<std::string> metadataTimeZone, std::optional<bool> metadataWasUserEntered, std::optional<std::string> metadataDeviceSerialNumber, std::optional<std::string> metadataUdiDeviceIdentifier, std::optional<std::string> metadataUdiProductionIdentifier, std::optional<std::string> metadataDigitalSignature, std::optional<std::string> metadataDeviceName, std::optional<std::string> metadataDeviceManufacturerName, std::optional<std::string> metadataSyncIdentifier, std::optional<double> metadataSyncVersion, std::optional<bool> metadataWasTakenInLab, std::optional<double> metadataReferenceRangeLowerLimit, std::optional<double> metadataReferenceRangeUpperLimit, std::optional<double> metadataAlgorithmVersion): workoutActivityType(workoutActivityType), duration(duration), events(events), activities(activities), metadataAverageMETs(metadataAverageMETs), metadataElevationAscended(metadataElevationAscended), metadataElevationDescended(metadataElevationDescended), metadataIndoorWorkout(metadataIndoorWorkout), metadataAverageSpeed(metadataAverageSpeed), metadataMaximumSpeed(metadataMaximumSpeed), sampleType(sampleType), startDate(startDate), endDate(endDate), hasUndeterminedDuration(hasUndeterminedDuration), metadataWeatherCondition(metadataWeatherCondition), metadataWeatherHumidity(metadataWeatherHumidity), metadataWeatherTemperature(metadataWeatherTemperature), metadataInsulinDeliveryReason(metadataInsulinDeliveryReason), metadataHeartRateMotionContext(metadataHeartRateMotionContext), uuid(uuid), sourceRevision(sourceRevision), device(device), metadata(metadata), metadataExternalUUID(metadataExternalUUID), metadataTimeZone(metadataTimeZone), metadataWasUserEntered(metadataWasUserEntered), metadataDeviceSerialNumber(metadataDeviceSerialNumber), metadataUdiDeviceIdentifier(metadataUdiDeviceIdentifier), metadataUdiProductionIdentifier(metadataUdiProductionIdentifier), metadataDigitalSignature(metadataDigitalSignature), metadataDeviceName(metadataDeviceName), metadataDeviceManufacturerName(metadataDeviceManufacturerName), metadataSyncIdentifier(metadataSyncIdentifier), metadataSyncVersion(metadataSyncVersion), metadataWasTakenInLab(metadataWasTakenInLab), metadataReferenceRangeLowerLimit(metadataReferenceRangeLowerLimit), metadataReferenceRangeUpperLimit(metadataReferenceRangeUpperLimit), metadataAlgorithmVersion(metadataAlgorithmVersion) {}
115
+ explicit WorkoutSample(WorkoutActivityType workoutActivityType, Quantity duration, std::optional<Quantity> totalEnergyBurned, std::optional<Quantity> totalDistance, std::optional<Quantity> totalSwimmingStrokeCount, std::optional<Quantity> totalFlightsClimbed, std::optional<std::vector<WorkoutEvent>> events, std::optional<std::vector<WorkoutActivity>> activities, std::optional<Quantity> metadataAverageMETs, std::optional<Quantity> metadataElevationAscended, std::optional<Quantity> metadataElevationDescended, std::optional<bool> metadataIndoorWorkout, std::optional<Quantity> metadataAverageSpeed, std::optional<Quantity> metadataMaximumSpeed, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::optional<WeatherCondition> metadataWeatherCondition, std::optional<Quantity> metadataWeatherHumidity, std::optional<Quantity> metadataWeatherTemperature, std::optional<InsulinDeliveryReason> metadataInsulinDeliveryReason, std::optional<HeartRateMotionContext> metadataHeartRateMotionContext, std::string uuid, SourceRevision sourceRevision, std::optional<Device> device, std::shared_ptr<AnyMap> metadata, std::optional<std::string> metadataExternalUUID, std::optional<std::string> metadataTimeZone, std::optional<bool> metadataWasUserEntered, std::optional<std::string> metadataDeviceSerialNumber, std::optional<std::string> metadataUdiDeviceIdentifier, std::optional<std::string> metadataUdiProductionIdentifier, std::optional<std::string> metadataDigitalSignature, std::optional<std::string> metadataDeviceName, std::optional<std::string> metadataDeviceManufacturerName, std::optional<std::string> metadataSyncIdentifier, std::optional<double> metadataSyncVersion, std::optional<bool> metadataWasTakenInLab, std::optional<double> metadataReferenceRangeLowerLimit, std::optional<double> metadataReferenceRangeUpperLimit, std::optional<double> metadataAlgorithmVersion): workoutActivityType(workoutActivityType), duration(duration), totalEnergyBurned(totalEnergyBurned), totalDistance(totalDistance), totalSwimmingStrokeCount(totalSwimmingStrokeCount), totalFlightsClimbed(totalFlightsClimbed), events(events), activities(activities), metadataAverageMETs(metadataAverageMETs), metadataElevationAscended(metadataElevationAscended), metadataElevationDescended(metadataElevationDescended), metadataIndoorWorkout(metadataIndoorWorkout), metadataAverageSpeed(metadataAverageSpeed), metadataMaximumSpeed(metadataMaximumSpeed), sampleType(sampleType), startDate(startDate), endDate(endDate), hasUndeterminedDuration(hasUndeterminedDuration), metadataWeatherCondition(metadataWeatherCondition), metadataWeatherHumidity(metadataWeatherHumidity), metadataWeatherTemperature(metadataWeatherTemperature), metadataInsulinDeliveryReason(metadataInsulinDeliveryReason), metadataHeartRateMotionContext(metadataHeartRateMotionContext), uuid(uuid), sourceRevision(sourceRevision), device(device), metadata(metadata), metadataExternalUUID(metadataExternalUUID), metadataTimeZone(metadataTimeZone), metadataWasUserEntered(metadataWasUserEntered), metadataDeviceSerialNumber(metadataDeviceSerialNumber), metadataUdiDeviceIdentifier(metadataUdiDeviceIdentifier), metadataUdiProductionIdentifier(metadataUdiProductionIdentifier), metadataDigitalSignature(metadataDigitalSignature), metadataDeviceName(metadataDeviceName), metadataDeviceManufacturerName(metadataDeviceManufacturerName), metadataSyncIdentifier(metadataSyncIdentifier), metadataSyncVersion(metadataSyncVersion), metadataWasTakenInLab(metadataWasTakenInLab), metadataReferenceRangeLowerLimit(metadataReferenceRangeLowerLimit), metadataReferenceRangeUpperLimit(metadataReferenceRangeUpperLimit), metadataAlgorithmVersion(metadataAlgorithmVersion) {}
112
116
  };
113
117
 
114
118
  } // namespace margelo::nitro::healthkit
@@ -123,6 +127,10 @@ namespace margelo::nitro {
123
127
  return margelo::nitro::healthkit::WorkoutSample(
124
128
  JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::fromJSI(runtime, obj.getProperty(runtime, "workoutActivityType")),
125
129
  JSIConverter<margelo::nitro::healthkit::Quantity>::fromJSI(runtime, obj.getProperty(runtime, "duration")),
130
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "totalEnergyBurned")),
131
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "totalDistance")),
132
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "totalSwimmingStrokeCount")),
133
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "totalFlightsClimbed")),
126
134
  JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutEvent>>>::fromJSI(runtime, obj.getProperty(runtime, "events")),
127
135
  JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutActivity>>>::fromJSI(runtime, obj.getProperty(runtime, "activities")),
128
136
  JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "metadataAverageMETs")),
@@ -165,6 +173,10 @@ namespace margelo::nitro {
165
173
  jsi::Object obj(runtime);
166
174
  obj.setProperty(runtime, "workoutActivityType", JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::toJSI(runtime, arg.workoutActivityType));
167
175
  obj.setProperty(runtime, "duration", JSIConverter<margelo::nitro::healthkit::Quantity>::toJSI(runtime, arg.duration));
176
+ obj.setProperty(runtime, "totalEnergyBurned", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.totalEnergyBurned));
177
+ obj.setProperty(runtime, "totalDistance", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.totalDistance));
178
+ obj.setProperty(runtime, "totalSwimmingStrokeCount", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.totalSwimmingStrokeCount));
179
+ obj.setProperty(runtime, "totalFlightsClimbed", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.totalFlightsClimbed));
168
180
  obj.setProperty(runtime, "events", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutEvent>>>::toJSI(runtime, arg.events));
169
181
  obj.setProperty(runtime, "activities", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutActivity>>>::toJSI(runtime, arg.activities));
170
182
  obj.setProperty(runtime, "metadataAverageMETs", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataAverageMETs));
@@ -213,6 +225,10 @@ namespace margelo::nitro {
213
225
  }
214
226
  if (!JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::canConvert(runtime, obj.getProperty(runtime, "workoutActivityType"))) return false;
215
227
  if (!JSIConverter<margelo::nitro::healthkit::Quantity>::canConvert(runtime, obj.getProperty(runtime, "duration"))) return false;
228
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "totalEnergyBurned"))) return false;
229
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "totalDistance"))) return false;
230
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "totalSwimmingStrokeCount"))) return false;
231
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "totalFlightsClimbed"))) return false;
216
232
  if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutEvent>>>::canConvert(runtime, obj.getProperty(runtime, "events"))) return false;
217
233
  if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::WorkoutActivity>>>::canConvert(runtime, obj.getProperty(runtime, "activities"))) return false;
218
234
  if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "metadataAverageMETs"))) return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingstinct/react-native-healthkit",
3
- "version": "13.1.4",
3
+ "version": "13.2.0",
4
4
  "description": "React Native bindings for HealthKit",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -107,6 +107,7 @@ export interface UserAnnotatedMedication {
107
107
  export interface MedicationDoseEvent extends BaseSample {
108
108
  scheduleType: MedicationDoseEventScheduleType
109
109
  medicationConceptIdentifier: string // not sure here
110
+ medicationDisplayText?: string
110
111
  scheduledDate?: Date
111
112
  scheduledDoseQuantity?: number
112
113
  doseQuantity?: number
@@ -91,6 +91,41 @@ export type CategoryTypeIdentifierWriteable =
91
91
  */
92
92
  | 'HKCategoryTypeIdentifierBleedingDuringPregnancy'
93
93
 
94
+ /**
95
+ * Infrequent Menstrual Cycles
96
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/infrequentmenstrualcycles Apple Docs }
97
+ * @since iOS 16
98
+ */
99
+ | 'HKCategoryTypeIdentifierInfrequentMenstrualCycles'
100
+
101
+ /**
102
+ * Irregular Menstrual Cycles
103
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/irregularmenstrualcycles Apple Docs }
104
+ * @since iOS 16
105
+ */
106
+ | 'HKCategoryTypeIdentifierIrregularMenstrualCycles'
107
+
108
+ /**
109
+ * Persistent Intermenstrual Bleeding
110
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/persistentintermenstrualbleeding Apple Docs }
111
+ * @since iOS 16
112
+ */
113
+ | 'HKCategoryTypeIdentifierPersistentIntermenstrualBleeding'
114
+
115
+ /**
116
+ * Prolonged Menstrual Periods
117
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/prolongedmenstrualperiods Apple Docs }
118
+ * @since iOS 16
119
+ */
120
+ | 'HKCategoryTypeIdentifierProlongedMenstrualPeriods'
121
+
122
+ /**
123
+ * Sleep Apnea Event
124
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier/sleepapneaevent Apple Docs }
125
+ * @since iOS 18
126
+ */
127
+ | 'HKCategoryTypeIdentifierSleepApneaEvent'
128
+
94
129
  /**
95
130
  * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }
96
131
  */
@@ -204,6 +204,13 @@ export type QuantityTypeIdentifierWriteable =
204
204
  */
205
205
  | 'HKQuantityTypeIdentifierBloodGlucose'
206
206
 
207
+ /**
208
+ * Blood Ketones
209
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodketones Apple Docs HKQuantityTypeIdentifierBloodKetones}
210
+ * @since iOS 8.0
211
+ */
212
+ | 'HKQuantityTypeIdentifierBloodKetones'
213
+
207
214
  /**
208
215
  * Number Of Times Fallen
209
216
  * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}
@@ -599,6 +606,13 @@ export type QuantityTypeIdentifierWriteable =
599
606
  */
600
607
  | 'HKQuantityTypeIdentifierAppleSleepingWristTemperature'
601
608
 
609
+ /**
610
+ * Apple Sleeping Breathing Disturbances
611
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier/applesleepingbreathingdisturbances Apple Docs HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances}
612
+ * @since iOS 18
613
+ */
614
+ | 'HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances'
615
+
602
616
  /**
603
617
  * Time In Daylight
604
618
  * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}
@@ -199,6 +199,10 @@ export interface WorkoutTotals {
199
199
  export interface WorkoutSample extends BaseSample {
200
200
  readonly workoutActivityType: WorkoutActivityType
201
201
  readonly duration: Quantity
202
+ readonly totalEnergyBurned?: Quantity
203
+ readonly totalDistance?: Quantity
204
+ readonly totalSwimmingStrokeCount?: Quantity
205
+ readonly totalFlightsClimbed?: Quantity
202
206
  readonly events?: readonly WorkoutEvent[]
203
207
  readonly activities?: readonly WorkoutActivity[]
204
208