@kingstinct/react-native-healthkit 13.1.1 → 13.1.2

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