@kingstinct/react-native-healthkit 13.1.2 → 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 (321) hide show
  1. package/ios/MedicationModule.swift +51 -4
  2. package/ios/QuantityTypeModule.swift +2 -2
  3. package/lib/typescript/specs/MedicationModule.nitro.d.ts +1 -0
  4. package/lib/typescript/types/CategoryTypeIdentifier.d.ts +31 -1
  5. package/lib/typescript/types/QuantityTypeIdentifier.d.ts +12 -0
  6. package/lib/typescript/types/Workouts.d.ts +4 -0
  7. package/nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb +2 -2
  8. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +1 -1
  9. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +43 -43
  10. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +1 -1
  11. package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +1 -1
  12. package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +71 -45
  13. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +1 -1
  14. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -7
  15. package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +1 -1
  16. package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +1 -7
  17. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +1 -1
  18. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +1 -7
  19. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +1 -1
  20. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -7
  21. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +1 -1
  22. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -7
  23. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +1 -1
  24. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -7
  25. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +1 -1
  26. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -7
  27. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +1 -1
  28. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +1 -7
  29. package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +1 -1
  30. package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +1 -7
  31. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +1 -1
  32. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +1 -7
  33. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +1 -1
  34. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +18 -8
  35. package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +1 -1
  36. package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +1 -7
  37. package/nitrogen/generated/ios/swift/AggregationStyle.swift +1 -1
  38. package/nitrogen/generated/ios/swift/AuthDataTypes.swift +56 -19
  39. package/nitrogen/generated/ios/swift/AuthorizationRequestStatus.swift +1 -1
  40. package/nitrogen/generated/ios/swift/AuthorizationStatus.swift +1 -1
  41. package/nitrogen/generated/ios/swift/BiologicalSex.swift +1 -1
  42. package/nitrogen/generated/ios/swift/BloodType.swift +1 -1
  43. package/nitrogen/generated/ios/swift/CategorySample.swift +445 -166
  44. package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +56 -13
  45. package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +38 -7
  46. package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +21 -1
  47. package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +1 -1
  48. package/nitrogen/generated/ios/swift/CorrelationObject.swift +1 -1
  49. package/nitrogen/generated/ios/swift/CorrelationSample.swift +491 -187
  50. package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +1 -1
  51. package/nitrogen/generated/ios/swift/DateFilter.swift +86 -37
  52. package/nitrogen/generated/ios/swift/DeletedSample.swift +31 -12
  53. package/nitrogen/generated/ios/swift/Device.swift +170 -73
  54. package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +53 -16
  55. package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +66 -23
  56. package/nitrogen/generated/ios/swift/ElectrocardiogramClassification.swift +1 -1
  57. package/nitrogen/generated/ios/swift/ElectrocardiogramLead.swift +1 -1
  58. package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +508 -195
  59. package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +38 -7
  60. package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +1 -1
  61. package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +26 -7
  62. package/nitrogen/generated/ios/swift/FilterForSamples.swift +221 -76
  63. package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +140 -49
  64. package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +221 -67
  65. package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +140 -40
  66. package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +1 -1
  67. package/nitrogen/generated/ios/swift/Func_void.swift +2 -1
  68. package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +2 -1
  69. package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +2 -1
  70. package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +2 -1
  71. package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +2 -1
  72. package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +2 -1
  73. package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +2 -1
  74. package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +2 -1
  75. package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +2 -1
  76. package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +2 -1
  77. package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +2 -1
  78. package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +2 -1
  79. package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +2 -1
  80. package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +2 -1
  81. package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +2 -1
  82. package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +2 -1
  83. package/nitrogen/generated/ios/swift/Func_void_bool.swift +2 -1
  84. package/nitrogen/generated/ios/swift/Func_void_double.swift +2 -1
  85. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +2 -1
  86. package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +2 -1
  87. package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +2 -1
  88. package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +2 -1
  89. package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +2 -1
  90. package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +2 -1
  91. package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +2 -1
  92. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +2 -1
  93. package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift +3 -2
  94. package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +2 -1
  95. package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +2 -1
  96. package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +2 -1
  97. package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +2 -1
  98. package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +2 -1
  99. package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +2 -1
  100. package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +2 -1
  101. package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +2 -1
  102. package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +2 -1
  103. package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +2 -1
  104. package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +2 -1
  105. package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +2 -1
  106. package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +2 -1
  107. package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +2 -1
  108. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift +3 -2
  109. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift +3 -2
  110. package/nitrogen/generated/ios/swift/GeneralForm.swift +1 -1
  111. package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +1 -1
  112. package/nitrogen/generated/ios/swift/Heartbeat.swift +18 -5
  113. package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +443 -164
  114. package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +38 -7
  115. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +4 -3
  116. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +2 -9
  117. package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +4 -3
  118. package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +2 -9
  119. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +4 -3
  120. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +2 -9
  121. package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +4 -3
  122. package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +2 -9
  123. package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +4 -3
  124. package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +2 -9
  125. package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +4 -3
  126. package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +2 -9
  127. package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +4 -3
  128. package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +2 -9
  129. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +4 -3
  130. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +2 -9
  131. package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +4 -3
  132. package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +2 -9
  133. package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +4 -3
  134. package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +2 -9
  135. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +8 -3
  136. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +54 -9
  137. package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +4 -3
  138. package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +2 -9
  139. package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +18 -5
  140. package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +1 -1
  141. package/nitrogen/generated/ios/swift/IntervalComponents.swift +72 -46
  142. package/nitrogen/generated/ios/swift/LocationForSaving.swift +66 -17
  143. package/nitrogen/generated/ios/swift/MedicationConcept.swift +40 -9
  144. package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +542 -199
  145. package/nitrogen/generated/ios/swift/MedicationDoseEventLogStatus.swift +1 -1
  146. package/nitrogen/generated/ios/swift/MedicationDoseEventScheduleType.swift +1 -1
  147. package/nitrogen/generated/ios/swift/MedicationDoseEventsWithAnchorResponse.swift +38 -7
  148. package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +29 -1
  149. package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +31 -12
  150. package/nitrogen/generated/ios/swift/PerObjectTypeIdentifier.swift +1 -1
  151. package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +74 -32
  152. package/nitrogen/generated/ios/swift/Quantity.swift +18 -5
  153. package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +18 -5
  154. package/nitrogen/generated/ios/swift/QuantitySample.swift +453 -168
  155. package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +77 -22
  156. package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +38 -7
  157. package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +9 -1
  158. package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +38 -7
  159. package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +45 -14
  160. package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +66 -23
  161. package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +45 -14
  162. package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +66 -23
  163. package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +163 -39
  164. package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +157 -39
  165. package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +45 -11
  166. package/nitrogen/generated/ios/swift/RelatedCoding.swift +39 -14
  167. package/nitrogen/generated/ios/swift/SampleForSaving.swift +1 -1
  168. package/nitrogen/generated/ios/swift/SampleType.swift +34 -9
  169. package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +29 -1
  170. package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +29 -1
  171. package/nitrogen/generated/ios/swift/Source.swift +18 -5
  172. package/nitrogen/generated/ios/swift/SourceRevision.swift +67 -27
  173. package/nitrogen/generated/ios/swift/StateOfMindAssociation.swift +1 -1
  174. package/nitrogen/generated/ios/swift/StateOfMindKind.swift +1 -1
  175. package/nitrogen/generated/ios/swift/StateOfMindLabel.swift +1 -1
  176. package/nitrogen/generated/ios/swift/StateOfMindSample.swift +481 -172
  177. package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +38 -7
  178. package/nitrogen/generated/ios/swift/StateOfMindValenceClassification.swift +1 -1
  179. package/nitrogen/generated/ios/swift/StatisticsOptions.swift +1 -1
  180. package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +37 -12
  181. package/nitrogen/generated/ios/swift/UpdateFrequency.swift +1 -1
  182. package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +47 -16
  183. package/nitrogen/generated/ios/swift/Variant_Bool_String_Double_Date.swift +1 -1
  184. package/nitrogen/generated/ios/swift/WeatherCondition.swift +1 -1
  185. package/nitrogen/generated/ios/swift/WheelchairUse.swift +1 -1
  186. package/nitrogen/generated/ios/swift/WorkoutActivity.swift +34 -9
  187. package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +1 -1
  188. package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +24 -5
  189. package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +18 -5
  190. package/nitrogen/generated/ios/swift/WorkoutEvent.swift +26 -7
  191. package/nitrogen/generated/ios/swift/WorkoutEventType.swift +1 -1
  192. package/nitrogen/generated/ios/swift/WorkoutPlan.swift +18 -5
  193. package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +45 -14
  194. package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +45 -14
  195. package/nitrogen/generated/ios/swift/WorkoutRoute.swift +51 -21
  196. package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +88 -28
  197. package/nitrogen/generated/ios/swift/WorkoutSample.swift +684 -205
  198. package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +1 -1
  199. package/nitrogen/generated/ios/swift/WorkoutTotals.swift +30 -19
  200. package/nitrogen/generated/shared/c++/AggregationStyle.hpp +1 -1
  201. package/nitrogen/generated/shared/c++/AuthDataTypes.hpp +8 -16
  202. package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +1 -1
  203. package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +1 -1
  204. package/nitrogen/generated/shared/c++/BiologicalSex.hpp +1 -1
  205. package/nitrogen/generated/shared/c++/BloodType.hpp +1 -1
  206. package/nitrogen/generated/shared/c++/CategorySample.hpp +92 -100
  207. package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +20 -28
  208. package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +11 -19
  209. package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +21 -1
  210. package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +1 -1
  211. package/nitrogen/generated/shared/c++/CorrelationSample.hpp +95 -103
  212. package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +1 -1
  213. package/nitrogen/generated/shared/c++/DateFilter.hpp +14 -22
  214. package/nitrogen/generated/shared/c++/DeletedSample.hpp +8 -16
  215. package/nitrogen/generated/shared/c++/Device.hpp +26 -34
  216. package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +14 -22
  217. package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +14 -22
  218. package/nitrogen/generated/shared/c++/ElectrocardiogramClassification.hpp +1 -1
  219. package/nitrogen/generated/shared/c++/ElectrocardiogramLead.hpp +1 -1
  220. package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +104 -112
  221. package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +11 -19
  222. package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +1 -1
  223. package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +11 -19
  224. package/nitrogen/generated/shared/c++/FilterForSamples.hpp +29 -37
  225. package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +20 -28
  226. package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +32 -40
  227. package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +23 -31
  228. package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +1 -1
  229. package/nitrogen/generated/shared/c++/GeneralForm.hpp +1 -1
  230. package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +1 -1
  231. package/nitrogen/generated/shared/c++/Heartbeat.hpp +8 -16
  232. package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +89 -97
  233. package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +11 -19
  234. package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +1 -1
  235. package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +1 -1
  236. package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +1 -1
  237. package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +1 -1
  238. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -1
  239. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +1 -1
  240. package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -1
  241. package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +1 -1
  242. package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.cpp +1 -1
  243. package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -1
  244. package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +1 -1
  245. package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -1
  246. package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +1 -1
  247. package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +1 -1
  248. package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +1 -1
  249. package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +1 -1
  250. package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +1 -1
  251. package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +1 -1
  252. package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -1
  253. package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +1 -1
  254. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +5 -1
  255. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +6 -2
  256. package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +1 -1
  257. package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +1 -1
  258. package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +8 -16
  259. package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +1 -1
  260. package/nitrogen/generated/shared/c++/IntervalComponents.hpp +17 -25
  261. package/nitrogen/generated/shared/c++/LocationForSaving.hpp +26 -34
  262. package/nitrogen/generated/shared/c++/MedicationConcept.hpp +14 -22
  263. package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +113 -117
  264. package/nitrogen/generated/shared/c++/MedicationDoseEventLogStatus.hpp +1 -1
  265. package/nitrogen/generated/shared/c++/MedicationDoseEventScheduleType.hpp +1 -1
  266. package/nitrogen/generated/shared/c++/MedicationDoseEventsWithAnchorResponse.hpp +11 -19
  267. package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +163 -135
  268. package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +8 -16
  269. package/nitrogen/generated/shared/c++/PerObjectTypeIdentifier.hpp +1 -1
  270. package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +11 -19
  271. package/nitrogen/generated/shared/c++/Quantity.hpp +8 -16
  272. package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +8 -16
  273. package/nitrogen/generated/shared/c++/QuantitySample.hpp +95 -103
  274. package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +23 -31
  275. package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +11 -19
  276. package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +93 -85
  277. package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +11 -19
  278. package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +11 -19
  279. package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +14 -22
  280. package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +11 -19
  281. package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +14 -22
  282. package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +32 -40
  283. package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +32 -40
  284. package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +11 -19
  285. package/nitrogen/generated/shared/c++/RelatedCoding.hpp +11 -19
  286. package/nitrogen/generated/shared/c++/SampleType.hpp +14 -22
  287. package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +156 -128
  288. package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +150 -122
  289. package/nitrogen/generated/shared/c++/Source.hpp +8 -16
  290. package/nitrogen/generated/shared/c++/SourceRevision.hpp +14 -22
  291. package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +1 -1
  292. package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +1 -1
  293. package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +1 -1
  294. package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +101 -109
  295. package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +11 -19
  296. package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +1 -1
  297. package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +1 -1
  298. package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +8 -16
  299. package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +1 -1
  300. package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +14 -22
  301. package/nitrogen/generated/shared/c++/WeatherCondition.hpp +1 -1
  302. package/nitrogen/generated/shared/c++/WheelchairUse.hpp +1 -1
  303. package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +14 -22
  304. package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +1 -1
  305. package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +8 -16
  306. package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +8 -16
  307. package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +11 -19
  308. package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +1 -1
  309. package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +8 -16
  310. package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +11 -19
  311. package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +11 -19
  312. package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +11 -19
  313. package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +32 -40
  314. package/nitrogen/generated/shared/c++/WorkoutSample.hpp +134 -126
  315. package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
  316. package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +8 -16
  317. package/package.json +3 -3
  318. package/src/specs/MedicationModule.nitro.ts +1 -0
  319. package/src/types/CategoryTypeIdentifier.ts +35 -0
  320. package/src/types/QuantityTypeIdentifier.ts +14 -0
  321. package/src/types/Workouts.ts +4 -0
@@ -2,7 +2,7 @@
2
2
  /// WorkoutActivity.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
 
32
27
 
@@ -38,7 +33,7 @@ namespace margelo::nitro::healthkit {
38
33
  /**
39
34
  * A struct which can be represented as a JavaScript object (WorkoutActivity).
40
35
  */
41
- struct WorkoutActivity final {
36
+ struct WorkoutActivity {
42
37
  public:
43
38
  std::chrono::system_clock::time_point startDate SWIFT_PRIVATE;
44
39
  std::chrono::system_clock::time_point endDate SWIFT_PRIVATE;
@@ -48,9 +43,6 @@ namespace margelo::nitro::healthkit {
48
43
  public:
49
44
  WorkoutActivity() = default;
50
45
  explicit WorkoutActivity(std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, std::string uuid, double duration): startDate(startDate), endDate(endDate), uuid(uuid), duration(duration) {}
51
-
52
- public:
53
- friend bool operator==(const WorkoutActivity& lhs, const WorkoutActivity& rhs) = default;
54
46
  };
55
47
 
56
48
  } // namespace margelo::nitro::healthkit
@@ -63,18 +55,18 @@ namespace margelo::nitro {
63
55
  static inline margelo::nitro::healthkit::WorkoutActivity fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
64
56
  jsi::Object obj = arg.asObject(runtime);
65
57
  return margelo::nitro::healthkit::WorkoutActivity(
66
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
67
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate"))),
68
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid"))),
69
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "duration")))
58
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "startDate")),
59
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "endDate")),
60
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
61
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "duration"))
70
62
  );
71
63
  }
72
64
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutActivity& arg) {
73
65
  jsi::Object obj(runtime);
74
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
76
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "uuid"), JSIConverter<std::string>::toJSI(runtime, arg.uuid));
77
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "duration"), JSIConverter<double>::toJSI(runtime, arg.duration));
66
+ obj.setProperty(runtime, "startDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
67
+ obj.setProperty(runtime, "endDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
68
+ obj.setProperty(runtime, "uuid", JSIConverter<std::string>::toJSI(runtime, arg.uuid));
69
+ obj.setProperty(runtime, "duration", JSIConverter<double>::toJSI(runtime, arg.duration));
78
70
  return obj;
79
71
  }
80
72
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -85,10 +77,10 @@ namespace margelo::nitro {
85
77
  if (!nitro::isPlainObject(runtime, obj)) {
86
78
  return false;
87
79
  }
88
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
89
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
90
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid")))) return false;
91
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "duration")))) return false;
80
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "startDate"))) return false;
81
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "endDate"))) return false;
82
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
83
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "duration"))) return false;
92
84
  return true;
93
85
  }
94
86
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutActivityType.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// WorkoutConfiguration.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `WorkoutActivityType` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
@@ -42,7 +37,7 @@ namespace margelo::nitro::healthkit {
42
37
  /**
43
38
  * A struct which can be represented as a JavaScript object (WorkoutConfiguration).
44
39
  */
45
- struct WorkoutConfiguration final {
40
+ struct WorkoutConfiguration {
46
41
  public:
47
42
  WorkoutActivityType activityType SWIFT_PRIVATE;
48
43
  std::optional<WorkoutSessionLocationType> locationType SWIFT_PRIVATE;
@@ -50,9 +45,6 @@ namespace margelo::nitro::healthkit {
50
45
  public:
51
46
  WorkoutConfiguration() = default;
52
47
  explicit WorkoutConfiguration(WorkoutActivityType activityType, std::optional<WorkoutSessionLocationType> locationType): activityType(activityType), locationType(locationType) {}
53
-
54
- public:
55
- friend bool operator==(const WorkoutConfiguration& lhs, const WorkoutConfiguration& rhs) = default;
56
48
  };
57
49
 
58
50
  } // namespace margelo::nitro::healthkit
@@ -65,14 +57,14 @@ namespace margelo::nitro {
65
57
  static inline margelo::nitro::healthkit::WorkoutConfiguration fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
66
58
  jsi::Object obj = arg.asObject(runtime);
67
59
  return margelo::nitro::healthkit::WorkoutConfiguration(
68
- JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "activityType"))),
69
- JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locationType")))
60
+ JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::fromJSI(runtime, obj.getProperty(runtime, "activityType")),
61
+ JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::fromJSI(runtime, obj.getProperty(runtime, "locationType"))
70
62
  );
71
63
  }
72
64
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutConfiguration& arg) {
73
65
  jsi::Object obj(runtime);
74
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "activityType"), JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::toJSI(runtime, arg.activityType));
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "locationType"), JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::toJSI(runtime, arg.locationType));
66
+ obj.setProperty(runtime, "activityType", JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::toJSI(runtime, arg.activityType));
67
+ obj.setProperty(runtime, "locationType", JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::toJSI(runtime, arg.locationType));
76
68
  return obj;
77
69
  }
78
70
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -83,8 +75,8 @@ namespace margelo::nitro {
83
75
  if (!nitro::isPlainObject(runtime, obj)) {
84
76
  return false;
85
77
  }
86
- if (!JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "activityType")))) return false;
87
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locationType")))) return false;
78
+ if (!JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::canConvert(runtime, obj.getProperty(runtime, "activityType"))) return false;
79
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutSessionLocationType>>::canConvert(runtime, obj.getProperty(runtime, "locationType"))) return false;
88
80
  return true;
89
81
  }
90
82
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutDurationPredicate.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
@@ -38,7 +33,7 @@ namespace margelo::nitro::healthkit {
38
33
  /**
39
34
  * A struct which can be represented as a JavaScript object (WorkoutDurationPredicate).
40
35
  */
41
- struct WorkoutDurationPredicate final {
36
+ struct WorkoutDurationPredicate {
42
37
  public:
43
38
  ComparisonPredicateOperator predicateOperator SWIFT_PRIVATE;
44
39
  double durationInSeconds SWIFT_PRIVATE;
@@ -46,9 +41,6 @@ namespace margelo::nitro::healthkit {
46
41
  public:
47
42
  WorkoutDurationPredicate() = default;
48
43
  explicit WorkoutDurationPredicate(ComparisonPredicateOperator predicateOperator, double durationInSeconds): predicateOperator(predicateOperator), durationInSeconds(durationInSeconds) {}
49
-
50
- public:
51
- friend bool operator==(const WorkoutDurationPredicate& lhs, const WorkoutDurationPredicate& rhs) = default;
52
44
  };
53
45
 
54
46
  } // namespace margelo::nitro::healthkit
@@ -61,14 +53,14 @@ namespace margelo::nitro {
61
53
  static inline margelo::nitro::healthkit::WorkoutDurationPredicate fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
62
54
  jsi::Object obj = arg.asObject(runtime);
63
55
  return margelo::nitro::healthkit::WorkoutDurationPredicate(
64
- JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "predicateOperator"))),
65
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "durationInSeconds")))
56
+ JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::fromJSI(runtime, obj.getProperty(runtime, "predicateOperator")),
57
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "durationInSeconds"))
66
58
  );
67
59
  }
68
60
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutDurationPredicate& arg) {
69
61
  jsi::Object obj(runtime);
70
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "predicateOperator"), JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::toJSI(runtime, arg.predicateOperator));
71
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "durationInSeconds"), JSIConverter<double>::toJSI(runtime, arg.durationInSeconds));
62
+ obj.setProperty(runtime, "predicateOperator", JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::toJSI(runtime, arg.predicateOperator));
63
+ obj.setProperty(runtime, "durationInSeconds", JSIConverter<double>::toJSI(runtime, arg.durationInSeconds));
72
64
  return obj;
73
65
  }
74
66
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -79,8 +71,8 @@ namespace margelo::nitro {
79
71
  if (!nitro::isPlainObject(runtime, obj)) {
80
72
  return false;
81
73
  }
82
- if (!JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "predicateOperator")))) return false;
83
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "durationInSeconds")))) return false;
74
+ if (!JSIConverter<margelo::nitro::healthkit::ComparisonPredicateOperator>::canConvert(runtime, obj.getProperty(runtime, "predicateOperator"))) return false;
75
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "durationInSeconds"))) return false;
84
76
  return true;
85
77
  }
86
78
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutEvent.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `WorkoutEventType` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { enum class WorkoutEventType; }
@@ -39,7 +34,7 @@ namespace margelo::nitro::healthkit {
39
34
  /**
40
35
  * A struct which can be represented as a JavaScript object (WorkoutEvent).
41
36
  */
42
- struct WorkoutEvent final {
37
+ struct WorkoutEvent {
43
38
  public:
44
39
  WorkoutEventType type SWIFT_PRIVATE;
45
40
  std::chrono::system_clock::time_point startDate SWIFT_PRIVATE;
@@ -48,9 +43,6 @@ namespace margelo::nitro::healthkit {
48
43
  public:
49
44
  WorkoutEvent() = default;
50
45
  explicit WorkoutEvent(WorkoutEventType type, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate): type(type), startDate(startDate), endDate(endDate) {}
51
-
52
- public:
53
- friend bool operator==(const WorkoutEvent& lhs, const WorkoutEvent& rhs) = default;
54
46
  };
55
47
 
56
48
  } // namespace margelo::nitro::healthkit
@@ -63,16 +55,16 @@ namespace margelo::nitro {
63
55
  static inline margelo::nitro::healthkit::WorkoutEvent fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
64
56
  jsi::Object obj = arg.asObject(runtime);
65
57
  return margelo::nitro::healthkit::WorkoutEvent(
66
- JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "type"))),
67
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
68
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))
58
+ JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::fromJSI(runtime, obj.getProperty(runtime, "type")),
59
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "startDate")),
60
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "endDate"))
69
61
  );
70
62
  }
71
63
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutEvent& arg) {
72
64
  jsi::Object obj(runtime);
73
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "type"), JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::toJSI(runtime, arg.type));
74
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
65
+ obj.setProperty(runtime, "type", JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::toJSI(runtime, arg.type));
66
+ obj.setProperty(runtime, "startDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
67
+ obj.setProperty(runtime, "endDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
76
68
  return obj;
77
69
  }
78
70
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -83,9 +75,9 @@ namespace margelo::nitro {
83
75
  if (!nitro::isPlainObject(runtime, obj)) {
84
76
  return false;
85
77
  }
86
- if (!JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "type")))) return false;
87
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
88
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
78
+ if (!JSIConverter<margelo::nitro::healthkit::WorkoutEventType>::canConvert(runtime, obj.getProperty(runtime, "type"))) return false;
79
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "startDate"))) return false;
80
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "endDate"))) return false;
89
81
  return true;
90
82
  }
91
83
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutEventType.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -2,7 +2,7 @@
2
2
  /// WorkoutPlan.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `WorkoutActivityType` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
@@ -39,7 +34,7 @@ namespace margelo::nitro::healthkit {
39
34
  /**
40
35
  * A struct which can be represented as a JavaScript object (WorkoutPlan).
41
36
  */
42
- struct WorkoutPlan final {
37
+ struct WorkoutPlan {
43
38
  public:
44
39
  std::string id SWIFT_PRIVATE;
45
40
  WorkoutActivityType activityType SWIFT_PRIVATE;
@@ -47,9 +42,6 @@ namespace margelo::nitro::healthkit {
47
42
  public:
48
43
  WorkoutPlan() = default;
49
44
  explicit WorkoutPlan(std::string id, WorkoutActivityType activityType): id(id), activityType(activityType) {}
50
-
51
- public:
52
- friend bool operator==(const WorkoutPlan& lhs, const WorkoutPlan& rhs) = default;
53
45
  };
54
46
 
55
47
  } // namespace margelo::nitro::healthkit
@@ -62,14 +54,14 @@ namespace margelo::nitro {
62
54
  static inline margelo::nitro::healthkit::WorkoutPlan fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
55
  jsi::Object obj = arg.asObject(runtime);
64
56
  return margelo::nitro::healthkit::WorkoutPlan(
65
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "id"))),
66
- JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "activityType")))
57
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "id")),
58
+ JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::fromJSI(runtime, obj.getProperty(runtime, "activityType"))
67
59
  );
68
60
  }
69
61
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutPlan& arg) {
70
62
  jsi::Object obj(runtime);
71
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "id"), JSIConverter<std::string>::toJSI(runtime, arg.id));
72
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "activityType"), JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::toJSI(runtime, arg.activityType));
63
+ obj.setProperty(runtime, "id", JSIConverter<std::string>::toJSI(runtime, arg.id));
64
+ obj.setProperty(runtime, "activityType", JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::toJSI(runtime, arg.activityType));
73
65
  return obj;
74
66
  }
75
67
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -80,8 +72,8 @@ namespace margelo::nitro {
80
72
  if (!nitro::isPlainObject(runtime, obj)) {
81
73
  return false;
82
74
  }
83
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "id")))) return false;
84
- if (!JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "activityType")))) return false;
75
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "id"))) return false;
76
+ if (!JSIConverter<margelo::nitro::healthkit::WorkoutActivityType>::canConvert(runtime, obj.getProperty(runtime, "activityType"))) return false;
85
77
  return true;
86
78
  }
87
79
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutQueryOptions.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `FilterForWorkouts` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { struct FilterForWorkouts; }
@@ -39,7 +34,7 @@ namespace margelo::nitro::healthkit {
39
34
  /**
40
35
  * A struct which can be represented as a JavaScript object (WorkoutQueryOptions).
41
36
  */
42
- struct WorkoutQueryOptions final {
37
+ struct WorkoutQueryOptions {
43
38
  public:
44
39
  std::optional<FilterForWorkouts> filter SWIFT_PRIVATE;
45
40
  double limit SWIFT_PRIVATE;
@@ -48,9 +43,6 @@ namespace margelo::nitro::healthkit {
48
43
  public:
49
44
  WorkoutQueryOptions() = default;
50
45
  explicit WorkoutQueryOptions(std::optional<FilterForWorkouts> filter, double limit, std::optional<bool> ascending): filter(filter), limit(limit), ascending(ascending) {}
51
-
52
- public:
53
- friend bool operator==(const WorkoutQueryOptions& lhs, const WorkoutQueryOptions& rhs) = default;
54
46
  };
55
47
 
56
48
  } // namespace margelo::nitro::healthkit
@@ -63,16 +55,16 @@ namespace margelo::nitro {
63
55
  static inline margelo::nitro::healthkit::WorkoutQueryOptions fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
64
56
  jsi::Object obj = arg.asObject(runtime);
65
57
  return margelo::nitro::healthkit::WorkoutQueryOptions(
66
- JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter"))),
67
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit"))),
68
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ascending")))
58
+ JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
59
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit")),
60
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "ascending"))
69
61
  );
70
62
  }
71
63
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutQueryOptions& arg) {
72
64
  jsi::Object obj(runtime);
73
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "filter"), JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::toJSI(runtime, arg.filter));
74
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "limit"), JSIConverter<double>::toJSI(runtime, arg.limit));
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "ascending"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.ascending));
65
+ obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::toJSI(runtime, arg.filter));
66
+ obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
67
+ obj.setProperty(runtime, "ascending", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.ascending));
76
68
  return obj;
77
69
  }
78
70
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -83,9 +75,9 @@ namespace margelo::nitro {
83
75
  if (!nitro::isPlainObject(runtime, obj)) {
84
76
  return false;
85
77
  }
86
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter")))) return false;
87
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))) return false;
88
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ascending")))) return false;
78
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
79
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
80
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "ascending"))) return false;
89
81
  return true;
90
82
  }
91
83
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutQueryOptionsWithAnchor.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `FilterForWorkouts` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { struct FilterForWorkouts; }
@@ -40,7 +35,7 @@ namespace margelo::nitro::healthkit {
40
35
  /**
41
36
  * A struct which can be represented as a JavaScript object (WorkoutQueryOptionsWithAnchor).
42
37
  */
43
- struct WorkoutQueryOptionsWithAnchor final {
38
+ struct WorkoutQueryOptionsWithAnchor {
44
39
  public:
45
40
  std::optional<FilterForWorkouts> filter SWIFT_PRIVATE;
46
41
  double limit SWIFT_PRIVATE;
@@ -49,9 +44,6 @@ namespace margelo::nitro::healthkit {
49
44
  public:
50
45
  WorkoutQueryOptionsWithAnchor() = default;
51
46
  explicit WorkoutQueryOptionsWithAnchor(std::optional<FilterForWorkouts> filter, double limit, std::optional<std::string> anchor): filter(filter), limit(limit), anchor(anchor) {}
52
-
53
- public:
54
- friend bool operator==(const WorkoutQueryOptionsWithAnchor& lhs, const WorkoutQueryOptionsWithAnchor& rhs) = default;
55
47
  };
56
48
 
57
49
  } // namespace margelo::nitro::healthkit
@@ -64,16 +56,16 @@ namespace margelo::nitro {
64
56
  static inline margelo::nitro::healthkit::WorkoutQueryOptionsWithAnchor fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
65
57
  jsi::Object obj = arg.asObject(runtime);
66
58
  return margelo::nitro::healthkit::WorkoutQueryOptionsWithAnchor(
67
- JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter"))),
68
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit"))),
69
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor")))
59
+ JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
60
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit")),
61
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "anchor"))
70
62
  );
71
63
  }
72
64
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutQueryOptionsWithAnchor& arg) {
73
65
  jsi::Object obj(runtime);
74
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "filter"), JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::toJSI(runtime, arg.filter));
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "limit"), JSIConverter<double>::toJSI(runtime, arg.limit));
76
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "anchor"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
66
+ obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::toJSI(runtime, arg.filter));
67
+ obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
68
+ obj.setProperty(runtime, "anchor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
77
69
  return obj;
78
70
  }
79
71
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -84,9 +76,9 @@ namespace margelo::nitro {
84
76
  if (!nitro::isPlainObject(runtime, obj)) {
85
77
  return false;
86
78
  }
87
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter")))) return false;
88
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))) return false;
89
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor")))) return false;
79
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForWorkouts>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
80
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
81
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
90
82
  return true;
91
83
  }
92
84
  };
@@ -2,7 +2,7 @@
2
2
  /// WorkoutRoute.hpp
3
3
  /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
4
  /// https://github.com/mrousavy/nitro
5
- /// Copyright © Marc Rousavy @ Margelo
5
+ /// Copyright © 2026 Marc Rousavy @ Margelo
6
6
  ///
7
7
 
8
8
  #pragma once
@@ -22,11 +22,6 @@
22
22
  #else
23
23
  #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
24
  #endif
25
- #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
- #include <NitroModules/PropNameIDCache.hpp>
27
- #else
28
- #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
- #endif
30
25
 
31
26
  // Forward declaration of `WorkoutRouteLocation` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { struct WorkoutRouteLocation; }
@@ -41,7 +36,7 @@ namespace margelo::nitro::healthkit {
41
36
  /**
42
37
  * A struct which can be represented as a JavaScript object (WorkoutRoute).
43
38
  */
44
- struct WorkoutRoute final {
39
+ struct WorkoutRoute {
45
40
  public:
46
41
  std::vector<WorkoutRouteLocation> locations SWIFT_PRIVATE;
47
42
  std::optional<std::string> HKMetadataKeySyncIdentifier SWIFT_PRIVATE;
@@ -50,9 +45,6 @@ namespace margelo::nitro::healthkit {
50
45
  public:
51
46
  WorkoutRoute() = default;
52
47
  explicit WorkoutRoute(std::vector<WorkoutRouteLocation> locations, std::optional<std::string> HKMetadataKeySyncIdentifier, std::optional<double> HKMetadataKeySyncVersion): locations(locations), HKMetadataKeySyncIdentifier(HKMetadataKeySyncIdentifier), HKMetadataKeySyncVersion(HKMetadataKeySyncVersion) {}
53
-
54
- public:
55
- friend bool operator==(const WorkoutRoute& lhs, const WorkoutRoute& rhs) = default;
56
48
  };
57
49
 
58
50
  } // namespace margelo::nitro::healthkit
@@ -65,16 +57,16 @@ namespace margelo::nitro {
65
57
  static inline margelo::nitro::healthkit::WorkoutRoute fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
66
58
  jsi::Object obj = arg.asObject(runtime);
67
59
  return margelo::nitro::healthkit::WorkoutRoute(
68
- JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locations"))),
69
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncIdentifier"))),
70
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncVersion")))
60
+ JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::fromJSI(runtime, obj.getProperty(runtime, "locations")),
61
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "HKMetadataKeySyncIdentifier")),
62
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "HKMetadataKeySyncVersion"))
71
63
  );
72
64
  }
73
65
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::WorkoutRoute& arg) {
74
66
  jsi::Object obj(runtime);
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "locations"), JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::toJSI(runtime, arg.locations));
76
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.HKMetadataKeySyncIdentifier));
77
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncVersion"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.HKMetadataKeySyncVersion));
67
+ obj.setProperty(runtime, "locations", JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::toJSI(runtime, arg.locations));
68
+ obj.setProperty(runtime, "HKMetadataKeySyncIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.HKMetadataKeySyncIdentifier));
69
+ obj.setProperty(runtime, "HKMetadataKeySyncVersion", JSIConverter<std::optional<double>>::toJSI(runtime, arg.HKMetadataKeySyncVersion));
78
70
  return obj;
79
71
  }
80
72
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -85,9 +77,9 @@ namespace margelo::nitro {
85
77
  if (!nitro::isPlainObject(runtime, obj)) {
86
78
  return false;
87
79
  }
88
- if (!JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "locations")))) return false;
89
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncIdentifier")))) return false;
90
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "HKMetadataKeySyncVersion")))) return false;
80
+ if (!JSIConverter<std::vector<margelo::nitro::healthkit::WorkoutRouteLocation>>::canConvert(runtime, obj.getProperty(runtime, "locations"))) return false;
81
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "HKMetadataKeySyncIdentifier"))) return false;
82
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "HKMetadataKeySyncVersion"))) return false;
91
83
  return true;
92
84
  }
93
85
  };