@kingstinct/react-native-healthkit 13.1.2 → 13.1.4

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 +71 -45
  8. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +1 -1
  9. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -7
  10. package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +1 -1
  11. package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +1 -7
  12. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +1 -1
  13. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +1 -7
  14. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +1 -1
  15. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -7
  16. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +1 -1
  17. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -7
  18. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +1 -1
  19. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -7
  20. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +1 -1
  21. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -7
  22. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +1 -1
  23. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +1 -7
  24. package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +1 -1
  25. package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +1 -7
  26. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +1 -1
  27. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +1 -7
  28. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +1 -1
  29. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +1 -7
  30. package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +1 -1
  31. package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +1 -7
  32. package/nitrogen/generated/ios/swift/AggregationStyle.swift +1 -1
  33. package/nitrogen/generated/ios/swift/AuthDataTypes.swift +56 -19
  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 +445 -166
  39. package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +56 -13
  40. package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +38 -7
  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 +491 -187
  45. package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +1 -1
  46. package/nitrogen/generated/ios/swift/DateFilter.swift +86 -37
  47. package/nitrogen/generated/ios/swift/DeletedSample.swift +31 -12
  48. package/nitrogen/generated/ios/swift/Device.swift +170 -73
  49. package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +53 -16
  50. package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +66 -23
  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 +508 -195
  54. package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +38 -7
  55. package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +1 -1
  56. package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +26 -7
  57. package/nitrogen/generated/ios/swift/FilterForSamples.swift +221 -76
  58. package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +140 -49
  59. package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +221 -67
  60. package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +140 -40
  61. package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +1 -1
  62. package/nitrogen/generated/ios/swift/Func_void.swift +2 -1
  63. package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +2 -1
  64. package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +2 -1
  65. package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +2 -1
  66. package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +2 -1
  67. package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +2 -1
  68. package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +2 -1
  69. package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +2 -1
  70. package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +2 -1
  71. package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +2 -1
  72. package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +2 -1
  73. package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +2 -1
  74. package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +2 -1
  75. package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +2 -1
  76. package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +2 -1
  77. package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +2 -1
  78. package/nitrogen/generated/ios/swift/Func_void_bool.swift +2 -1
  79. package/nitrogen/generated/ios/swift/Func_void_double.swift +2 -1
  80. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +2 -1
  81. package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +2 -1
  82. package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +2 -1
  83. package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +2 -1
  84. package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +2 -1
  85. package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +2 -1
  86. package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +2 -1
  87. package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +2 -1
  88. package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift +3 -2
  89. package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +2 -1
  90. package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +2 -1
  91. package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +2 -1
  92. package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +2 -1
  93. package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +2 -1
  94. package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +2 -1
  95. package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +2 -1
  96. package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +2 -1
  97. package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +2 -1
  98. package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +2 -1
  99. package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +2 -1
  100. package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +2 -1
  101. package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +2 -1
  102. package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +2 -1
  103. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift +3 -2
  104. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift +3 -2
  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 +18 -5
  108. package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +443 -164
  109. package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +38 -7
  110. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +4 -3
  111. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +2 -9
  112. package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +4 -3
  113. package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +2 -9
  114. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +4 -3
  115. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +2 -9
  116. package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +4 -3
  117. package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +2 -9
  118. package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +4 -3
  119. package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +2 -9
  120. package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +4 -3
  121. package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +2 -9
  122. package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +4 -3
  123. package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +2 -9
  124. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +4 -3
  125. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +2 -9
  126. package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +4 -3
  127. package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +2 -9
  128. package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +4 -3
  129. package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +2 -9
  130. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +4 -3
  131. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -9
  132. package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +4 -3
  133. package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +2 -9
  134. package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +18 -5
  135. package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +1 -1
  136. package/nitrogen/generated/ios/swift/IntervalComponents.swift +72 -46
  137. package/nitrogen/generated/ios/swift/LocationForSaving.swift +66 -17
  138. package/nitrogen/generated/ios/swift/MedicationConcept.swift +40 -9
  139. package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +510 -197
  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 +38 -7
  143. package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +1 -1
  144. package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +31 -12
  145. package/nitrogen/generated/ios/swift/PerObjectTypeIdentifier.swift +1 -1
  146. package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +74 -32
  147. package/nitrogen/generated/ios/swift/Quantity.swift +18 -5
  148. package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +18 -5
  149. package/nitrogen/generated/ios/swift/QuantitySample.swift +453 -168
  150. package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +77 -22
  151. package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +38 -7
  152. package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +1 -1
  153. package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +38 -7
  154. package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +45 -14
  155. package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +66 -23
  156. package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +45 -14
  157. package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +66 -23
  158. package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +163 -39
  159. package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +157 -39
  160. package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +45 -11
  161. package/nitrogen/generated/ios/swift/RelatedCoding.swift +39 -14
  162. package/nitrogen/generated/ios/swift/SampleForSaving.swift +1 -1
  163. package/nitrogen/generated/ios/swift/SampleType.swift +34 -9
  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 +18 -5
  167. package/nitrogen/generated/ios/swift/SourceRevision.swift +67 -27
  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 +481 -172
  172. package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +38 -7
  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 +37 -12
  176. package/nitrogen/generated/ios/swift/UpdateFrequency.swift +1 -1
  177. package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +47 -16
  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 +34 -9
  182. package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +1 -1
  183. package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +24 -5
  184. package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +18 -5
  185. package/nitrogen/generated/ios/swift/WorkoutEvent.swift +26 -7
  186. package/nitrogen/generated/ios/swift/WorkoutEventType.swift +1 -1
  187. package/nitrogen/generated/ios/swift/WorkoutPlan.swift +18 -5
  188. package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +45 -14
  189. package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +45 -14
  190. package/nitrogen/generated/ios/swift/WorkoutRoute.swift +51 -21
  191. package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +88 -28
  192. package/nitrogen/generated/ios/swift/WorkoutSample.swift +590 -203
  193. package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +1 -1
  194. package/nitrogen/generated/ios/swift/WorkoutTotals.swift +30 -19
  195. package/nitrogen/generated/shared/c++/AggregationStyle.hpp +1 -1
  196. package/nitrogen/generated/shared/c++/AuthDataTypes.hpp +8 -16
  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 +92 -100
  202. package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +20 -28
  203. package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +11 -19
  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 +95 -103
  207. package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +1 -1
  208. package/nitrogen/generated/shared/c++/DateFilter.hpp +14 -22
  209. package/nitrogen/generated/shared/c++/DeletedSample.hpp +8 -16
  210. package/nitrogen/generated/shared/c++/Device.hpp +26 -34
  211. package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +14 -22
  212. package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +14 -22
  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 +104 -112
  216. package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +11 -19
  217. package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +1 -1
  218. package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +11 -19
  219. package/nitrogen/generated/shared/c++/FilterForSamples.hpp +29 -37
  220. package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +20 -28
  221. package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +32 -40
  222. package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +23 -31
  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 +8 -16
  227. package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +89 -97
  228. package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +11 -19
  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 +8 -16
  254. package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +1 -1
  255. package/nitrogen/generated/shared/c++/IntervalComponents.hpp +17 -25
  256. package/nitrogen/generated/shared/c++/LocationForSaving.hpp +26 -34
  257. package/nitrogen/generated/shared/c++/MedicationConcept.hpp +14 -22
  258. package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +107 -115
  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 +11 -19
  262. package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +1 -1
  263. package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +8 -16
  264. package/nitrogen/generated/shared/c++/PerObjectTypeIdentifier.hpp +1 -1
  265. package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +11 -19
  266. package/nitrogen/generated/shared/c++/Quantity.hpp +8 -16
  267. package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +8 -16
  268. package/nitrogen/generated/shared/c++/QuantitySample.hpp +95 -103
  269. package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +23 -31
  270. package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +11 -19
  271. package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +1 -1
  272. package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +11 -19
  273. package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +11 -19
  274. package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +14 -22
  275. package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +11 -19
  276. package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +14 -22
  277. package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +32 -40
  278. package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +32 -40
  279. package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +11 -19
  280. package/nitrogen/generated/shared/c++/RelatedCoding.hpp +11 -19
  281. package/nitrogen/generated/shared/c++/SampleType.hpp +14 -22
  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 +8 -16
  285. package/nitrogen/generated/shared/c++/SourceRevision.hpp +14 -22
  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 +101 -109
  290. package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +11 -19
  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 +8 -16
  294. package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +1 -1
  295. package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +14 -22
  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 +14 -22
  299. package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +1 -1
  300. package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +8 -16
  301. package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +8 -16
  302. package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +11 -19
  303. package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +1 -1
  304. package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +8 -16
  305. package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +11 -19
  306. package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +11 -19
  307. package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +11 -19
  308. package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +32 -40
  309. package/nitrogen/generated/shared/c++/WorkoutSample.hpp +116 -124
  310. package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
  311. package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +8 -16
  312. package/package.json +3 -3
@@ -2,7 +2,7 @@
2
2
  /// Device.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 (Device).
40
35
  */
41
- struct Device final {
36
+ struct Device {
42
37
  public:
43
38
  std::optional<std::string> name SWIFT_PRIVATE;
44
39
  std::optional<std::string> firmwareVersion SWIFT_PRIVATE;
@@ -52,9 +47,6 @@ namespace margelo::nitro::healthkit {
52
47
  public:
53
48
  Device() = default;
54
49
  explicit Device(std::optional<std::string> name, std::optional<std::string> firmwareVersion, std::optional<std::string> hardwareVersion, std::optional<std::string> localIdentifier, std::optional<std::string> manufacturer, std::optional<std::string> model, std::optional<std::string> softwareVersion, std::optional<std::string> udiDeviceIdentifier): name(name), firmwareVersion(firmwareVersion), hardwareVersion(hardwareVersion), localIdentifier(localIdentifier), manufacturer(manufacturer), model(model), softwareVersion(softwareVersion), udiDeviceIdentifier(udiDeviceIdentifier) {}
55
-
56
- public:
57
- friend bool operator==(const Device& lhs, const Device& rhs) = default;
58
50
  };
59
51
 
60
52
  } // namespace margelo::nitro::healthkit
@@ -67,26 +59,26 @@ namespace margelo::nitro {
67
59
  static inline margelo::nitro::healthkit::Device fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
68
60
  jsi::Object obj = arg.asObject(runtime);
69
61
  return margelo::nitro::healthkit::Device(
70
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "name"))),
71
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "firmwareVersion"))),
72
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hardwareVersion"))),
73
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "localIdentifier"))),
74
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "manufacturer"))),
75
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "model"))),
76
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "softwareVersion"))),
77
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "udiDeviceIdentifier")))
62
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "name")),
63
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "firmwareVersion")),
64
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "hardwareVersion")),
65
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "localIdentifier")),
66
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "manufacturer")),
67
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "model")),
68
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "softwareVersion")),
69
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "udiDeviceIdentifier"))
78
70
  );
79
71
  }
80
72
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::Device& arg) {
81
73
  jsi::Object obj(runtime);
82
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "name"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.name));
83
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "firmwareVersion"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.firmwareVersion));
84
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "hardwareVersion"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.hardwareVersion));
85
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "localIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.localIdentifier));
86
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "manufacturer"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.manufacturer));
87
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "model"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.model));
88
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "softwareVersion"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.softwareVersion));
89
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "udiDeviceIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.udiDeviceIdentifier));
74
+ obj.setProperty(runtime, "name", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.name));
75
+ obj.setProperty(runtime, "firmwareVersion", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.firmwareVersion));
76
+ obj.setProperty(runtime, "hardwareVersion", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.hardwareVersion));
77
+ obj.setProperty(runtime, "localIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.localIdentifier));
78
+ obj.setProperty(runtime, "manufacturer", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.manufacturer));
79
+ obj.setProperty(runtime, "model", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.model));
80
+ obj.setProperty(runtime, "softwareVersion", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.softwareVersion));
81
+ obj.setProperty(runtime, "udiDeviceIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.udiDeviceIdentifier));
90
82
  return obj;
91
83
  }
92
84
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -97,14 +89,14 @@ namespace margelo::nitro {
97
89
  if (!nitro::isPlainObject(runtime, obj)) {
98
90
  return false;
99
91
  }
100
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "name")))) return false;
101
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "firmwareVersion")))) return false;
102
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hardwareVersion")))) return false;
103
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "localIdentifier")))) return false;
104
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "manufacturer")))) return false;
105
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "model")))) return false;
106
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "softwareVersion")))) return false;
107
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "udiDeviceIdentifier")))) return false;
92
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "name"))) return false;
93
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "firmwareVersion"))) return false;
94
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "hardwareVersion"))) return false;
95
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "localIdentifier"))) return false;
96
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "manufacturer"))) return false;
97
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "model"))) return false;
98
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "softwareVersion"))) return false;
99
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "udiDeviceIdentifier"))) return false;
108
100
  return true;
109
101
  }
110
102
  };
@@ -2,7 +2,7 @@
2
2
  /// ECGQueryOptionsWithAnchor.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 `FilterForSamples` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { struct FilterForSamples; }
@@ -40,7 +35,7 @@ namespace margelo::nitro::healthkit {
40
35
  /**
41
36
  * A struct which can be represented as a JavaScript object (ECGQueryOptionsWithAnchor).
42
37
  */
43
- struct ECGQueryOptionsWithAnchor final {
38
+ struct ECGQueryOptionsWithAnchor {
44
39
  public:
45
40
  bool includeVoltages SWIFT_PRIVATE;
46
41
  std::optional<std::string> anchor SWIFT_PRIVATE;
@@ -50,9 +45,6 @@ namespace margelo::nitro::healthkit {
50
45
  public:
51
46
  ECGQueryOptionsWithAnchor() = default;
52
47
  explicit ECGQueryOptionsWithAnchor(bool includeVoltages, std::optional<std::string> anchor, std::optional<FilterForSamples> filter, double limit): includeVoltages(includeVoltages), anchor(anchor), filter(filter), limit(limit) {}
53
-
54
- public:
55
- friend bool operator==(const ECGQueryOptionsWithAnchor& lhs, const ECGQueryOptionsWithAnchor& rhs) = default;
56
48
  };
57
49
 
58
50
  } // namespace margelo::nitro::healthkit
@@ -65,18 +57,18 @@ namespace margelo::nitro {
65
57
  static inline margelo::nitro::healthkit::ECGQueryOptionsWithAnchor fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
66
58
  jsi::Object obj = arg.asObject(runtime);
67
59
  return margelo::nitro::healthkit::ECGQueryOptionsWithAnchor(
68
- JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages"))),
69
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor"))),
70
- JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter"))),
71
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))
60
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, "includeVoltages")),
61
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
62
+ JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
63
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit"))
72
64
  );
73
65
  }
74
66
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::ECGQueryOptionsWithAnchor& arg) {
75
67
  jsi::Object obj(runtime);
76
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages"), JSIConverter<bool>::toJSI(runtime, arg.includeVoltages));
77
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "anchor"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
78
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "filter"), JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
79
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "limit"), JSIConverter<double>::toJSI(runtime, arg.limit));
68
+ obj.setProperty(runtime, "includeVoltages", JSIConverter<bool>::toJSI(runtime, arg.includeVoltages));
69
+ obj.setProperty(runtime, "anchor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
70
+ obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
71
+ obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
80
72
  return obj;
81
73
  }
82
74
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -87,10 +79,10 @@ namespace margelo::nitro {
87
79
  if (!nitro::isPlainObject(runtime, obj)) {
88
80
  return false;
89
81
  }
90
- if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages")))) return false;
91
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "anchor")))) return false;
92
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter")))) return false;
93
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))) return false;
82
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, "includeVoltages"))) return false;
83
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
84
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
85
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
94
86
  return true;
95
87
  }
96
88
  };
@@ -2,7 +2,7 @@
2
2
  /// ECGQueryOptionsWithSortOrder.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 `FilterForSamples` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { struct FilterForSamples; }
@@ -39,7 +34,7 @@ namespace margelo::nitro::healthkit {
39
34
  /**
40
35
  * A struct which can be represented as a JavaScript object (ECGQueryOptionsWithSortOrder).
41
36
  */
42
- struct ECGQueryOptionsWithSortOrder final {
37
+ struct ECGQueryOptionsWithSortOrder {
43
38
  public:
44
39
  std::optional<bool> includeVoltages SWIFT_PRIVATE;
45
40
  std::optional<bool> ascending SWIFT_PRIVATE;
@@ -49,9 +44,6 @@ namespace margelo::nitro::healthkit {
49
44
  public:
50
45
  ECGQueryOptionsWithSortOrder() = default;
51
46
  explicit ECGQueryOptionsWithSortOrder(std::optional<bool> includeVoltages, std::optional<bool> ascending, std::optional<FilterForSamples> filter, double limit): includeVoltages(includeVoltages), ascending(ascending), filter(filter), limit(limit) {}
52
-
53
- public:
54
- friend bool operator==(const ECGQueryOptionsWithSortOrder& lhs, const ECGQueryOptionsWithSortOrder& rhs) = default;
55
47
  };
56
48
 
57
49
  } // namespace margelo::nitro::healthkit
@@ -64,18 +56,18 @@ namespace margelo::nitro {
64
56
  static inline margelo::nitro::healthkit::ECGQueryOptionsWithSortOrder fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
65
57
  jsi::Object obj = arg.asObject(runtime);
66
58
  return margelo::nitro::healthkit::ECGQueryOptionsWithSortOrder(
67
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages"))),
68
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ascending"))),
69
- JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter"))),
70
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))
59
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "includeVoltages")),
60
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "ascending")),
61
+ JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
62
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit"))
71
63
  );
72
64
  }
73
65
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::ECGQueryOptionsWithSortOrder& arg) {
74
66
  jsi::Object obj(runtime);
75
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.includeVoltages));
76
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "ascending"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.ascending));
77
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "filter"), JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
78
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "limit"), JSIConverter<double>::toJSI(runtime, arg.limit));
67
+ obj.setProperty(runtime, "includeVoltages", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.includeVoltages));
68
+ obj.setProperty(runtime, "ascending", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.ascending));
69
+ obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
70
+ obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
79
71
  return obj;
80
72
  }
81
73
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -86,10 +78,10 @@ namespace margelo::nitro {
86
78
  if (!nitro::isPlainObject(runtime, obj)) {
87
79
  return false;
88
80
  }
89
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "includeVoltages")))) return false;
90
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ascending")))) return false;
91
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "filter")))) return false;
92
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "limit")))) return false;
81
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "includeVoltages"))) return false;
82
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "ascending"))) return false;
83
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
84
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
93
85
  return true;
94
86
  }
95
87
  };
@@ -2,7 +2,7 @@
2
2
  /// ElectrocardiogramClassification.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
  /// ElectrocardiogramLead.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
  /// ElectrocardiogramSample.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 `ElectrocardiogramClassification` to properly resolve imports.
32
27
  namespace margelo::nitro::healthkit { enum class ElectrocardiogramClassification; }
@@ -70,7 +65,7 @@ namespace margelo::nitro::healthkit {
70
65
  /**
71
66
  * A struct which can be represented as a JavaScript object (ElectrocardiogramSample).
72
67
  */
73
- struct ElectrocardiogramSample final {
68
+ struct ElectrocardiogramSample {
74
69
  public:
75
70
  ElectrocardiogramClassification classification SWIFT_PRIVATE;
76
71
  ElectrocardiogramSymptomsStatus symptomsStatus SWIFT_PRIVATE;
@@ -110,9 +105,6 @@ namespace margelo::nitro::healthkit {
110
105
  public:
111
106
  ElectrocardiogramSample() = default;
112
107
  explicit ElectrocardiogramSample(ElectrocardiogramClassification classification, ElectrocardiogramSymptomsStatus symptomsStatus, std::optional<double> averageHeartRateBpm, std::optional<double> samplingFrequencyHz, double numberOfVoltageMeasurements, std::optional<std::vector<ElectrocardiogramVoltage>> voltages, SampleType sampleType, std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, bool hasUndeterminedDuration, std::optional<WeatherCondition> metadataWeatherCondition, std::optional<Quantity> metadataWeatherHumidity, std::optional<Quantity> metadataWeatherTemperature, std::optional<InsulinDeliveryReason> metadataInsulinDeliveryReason, std::optional<HeartRateMotionContext> metadataHeartRateMotionContext, std::string uuid, SourceRevision sourceRevision, std::optional<Device> device, std::shared_ptr<AnyMap> metadata, std::optional<std::string> metadataExternalUUID, std::optional<std::string> metadataTimeZone, std::optional<bool> metadataWasUserEntered, std::optional<std::string> metadataDeviceSerialNumber, std::optional<std::string> metadataUdiDeviceIdentifier, std::optional<std::string> metadataUdiProductionIdentifier, std::optional<std::string> metadataDigitalSignature, std::optional<std::string> metadataDeviceName, std::optional<std::string> metadataDeviceManufacturerName, std::optional<std::string> metadataSyncIdentifier, std::optional<double> metadataSyncVersion, std::optional<bool> metadataWasTakenInLab, std::optional<double> metadataReferenceRangeLowerLimit, std::optional<double> metadataReferenceRangeUpperLimit, std::optional<double> metadataAlgorithmVersion): classification(classification), symptomsStatus(symptomsStatus), averageHeartRateBpm(averageHeartRateBpm), samplingFrequencyHz(samplingFrequencyHz), numberOfVoltageMeasurements(numberOfVoltageMeasurements), voltages(voltages), sampleType(sampleType), startDate(startDate), endDate(endDate), hasUndeterminedDuration(hasUndeterminedDuration), metadataWeatherCondition(metadataWeatherCondition), metadataWeatherHumidity(metadataWeatherHumidity), metadataWeatherTemperature(metadataWeatherTemperature), metadataInsulinDeliveryReason(metadataInsulinDeliveryReason), metadataHeartRateMotionContext(metadataHeartRateMotionContext), uuid(uuid), sourceRevision(sourceRevision), device(device), metadata(metadata), metadataExternalUUID(metadataExternalUUID), metadataTimeZone(metadataTimeZone), metadataWasUserEntered(metadataWasUserEntered), metadataDeviceSerialNumber(metadataDeviceSerialNumber), metadataUdiDeviceIdentifier(metadataUdiDeviceIdentifier), metadataUdiProductionIdentifier(metadataUdiProductionIdentifier), metadataDigitalSignature(metadataDigitalSignature), metadataDeviceName(metadataDeviceName), metadataDeviceManufacturerName(metadataDeviceManufacturerName), metadataSyncIdentifier(metadataSyncIdentifier), metadataSyncVersion(metadataSyncVersion), metadataWasTakenInLab(metadataWasTakenInLab), metadataReferenceRangeLowerLimit(metadataReferenceRangeLowerLimit), metadataReferenceRangeUpperLimit(metadataReferenceRangeUpperLimit), metadataAlgorithmVersion(metadataAlgorithmVersion) {}
113
-
114
- public:
115
- friend bool operator==(const ElectrocardiogramSample& lhs, const ElectrocardiogramSample& rhs) = default;
116
108
  };
117
109
 
118
110
  } // namespace margelo::nitro::healthkit
@@ -125,78 +117,78 @@ namespace margelo::nitro {
125
117
  static inline margelo::nitro::healthkit::ElectrocardiogramSample fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
126
118
  jsi::Object obj = arg.asObject(runtime);
127
119
  return margelo::nitro::healthkit::ElectrocardiogramSample(
128
- JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "classification"))),
129
- JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "symptomsStatus"))),
130
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "averageHeartRateBpm"))),
131
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "samplingFrequencyHz"))),
132
- JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "numberOfVoltageMeasurements"))),
133
- JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "voltages"))),
134
- JSIConverter<margelo::nitro::healthkit::SampleType>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sampleType"))),
135
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate"))),
136
- JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate"))),
137
- JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"))),
138
- JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherCondition"))),
139
- JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherHumidity"))),
140
- JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherTemperature"))),
141
- JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataInsulinDeliveryReason"))),
142
- JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataHeartRateMotionContext"))),
143
- JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid"))),
144
- JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"))),
145
- JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device"))),
146
- JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata"))),
147
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataExternalUUID"))),
148
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataTimeZone"))),
149
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWasUserEntered"))),
150
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceSerialNumber"))),
151
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiDeviceIdentifier"))),
152
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiProductionIdentifier"))),
153
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDigitalSignature"))),
154
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceName"))),
155
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceManufacturerName"))),
156
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncIdentifier"))),
157
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncVersion"))),
158
- JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWasTakenInLab"))),
159
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeLowerLimit"))),
160
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeUpperLimit"))),
161
- JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataAlgorithmVersion")))
120
+ JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::fromJSI(runtime, obj.getProperty(runtime, "classification")),
121
+ JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::fromJSI(runtime, obj.getProperty(runtime, "symptomsStatus")),
122
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "averageHeartRateBpm")),
123
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "samplingFrequencyHz")),
124
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "numberOfVoltageMeasurements")),
125
+ JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::fromJSI(runtime, obj.getProperty(runtime, "voltages")),
126
+ JSIConverter<margelo::nitro::healthkit::SampleType>::fromJSI(runtime, obj.getProperty(runtime, "sampleType")),
127
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "startDate")),
128
+ JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "endDate")),
129
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, "hasUndeterminedDuration")),
130
+ JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherCondition")),
131
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherHumidity")),
132
+ JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherTemperature")),
133
+ JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::fromJSI(runtime, obj.getProperty(runtime, "metadataInsulinDeliveryReason")),
134
+ JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::fromJSI(runtime, obj.getProperty(runtime, "metadataHeartRateMotionContext")),
135
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
136
+ JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime, "sourceRevision")),
137
+ JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, "device")),
138
+ JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
139
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataExternalUUID")),
140
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataTimeZone")),
141
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWasUserEntered")),
142
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceSerialNumber")),
143
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataUdiDeviceIdentifier")),
144
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataUdiProductionIdentifier")),
145
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDigitalSignature")),
146
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceName")),
147
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceManufacturerName")),
148
+ JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataSyncIdentifier")),
149
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataSyncVersion")),
150
+ JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWasTakenInLab")),
151
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataReferenceRangeLowerLimit")),
152
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataReferenceRangeUpperLimit")),
153
+ JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataAlgorithmVersion"))
162
154
  );
163
155
  }
164
156
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::ElectrocardiogramSample& arg) {
165
157
  jsi::Object obj(runtime);
166
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "classification"), JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::toJSI(runtime, arg.classification));
167
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "symptomsStatus"), JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::toJSI(runtime, arg.symptomsStatus));
168
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "averageHeartRateBpm"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.averageHeartRateBpm));
169
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "samplingFrequencyHz"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.samplingFrequencyHz));
170
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "numberOfVoltageMeasurements"), JSIConverter<double>::toJSI(runtime, arg.numberOfVoltageMeasurements));
171
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "voltages"), JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::toJSI(runtime, arg.voltages));
172
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "sampleType"), JSIConverter<margelo::nitro::healthkit::SampleType>::toJSI(runtime, arg.sampleType));
173
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "startDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
174
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "endDate"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
175
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration"), JSIConverter<bool>::toJSI(runtime, arg.hasUndeterminedDuration));
176
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherCondition"), JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::toJSI(runtime, arg.metadataWeatherCondition));
177
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherHumidity"), JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherHumidity));
178
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherTemperature"), JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherTemperature));
179
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataInsulinDeliveryReason"), JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::toJSI(runtime, arg.metadataInsulinDeliveryReason));
180
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataHeartRateMotionContext"), JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::toJSI(runtime, arg.metadataHeartRateMotionContext));
181
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "uuid"), JSIConverter<std::string>::toJSI(runtime, arg.uuid));
182
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision"), JSIConverter<margelo::nitro::healthkit::SourceRevision>::toJSI(runtime, arg.sourceRevision));
183
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "device"), JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::toJSI(runtime, arg.device));
184
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadata"), JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
185
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataExternalUUID"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataExternalUUID));
186
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataTimeZone"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataTimeZone));
187
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataWasUserEntered"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasUserEntered));
188
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceSerialNumber"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceSerialNumber));
189
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiDeviceIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiDeviceIdentifier));
190
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiProductionIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiProductionIdentifier));
191
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataDigitalSignature"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDigitalSignature));
192
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceName"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceName));
193
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceManufacturerName"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceManufacturerName));
194
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncIdentifier"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataSyncIdentifier));
195
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncVersion"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataSyncVersion));
196
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataWasTakenInLab"), JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasTakenInLab));
197
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeLowerLimit"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeLowerLimit));
198
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeUpperLimit"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeUpperLimit));
199
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "metadataAlgorithmVersion"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataAlgorithmVersion));
158
+ obj.setProperty(runtime, "classification", JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::toJSI(runtime, arg.classification));
159
+ obj.setProperty(runtime, "symptomsStatus", JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::toJSI(runtime, arg.symptomsStatus));
160
+ obj.setProperty(runtime, "averageHeartRateBpm", JSIConverter<std::optional<double>>::toJSI(runtime, arg.averageHeartRateBpm));
161
+ obj.setProperty(runtime, "samplingFrequencyHz", JSIConverter<std::optional<double>>::toJSI(runtime, arg.samplingFrequencyHz));
162
+ obj.setProperty(runtime, "numberOfVoltageMeasurements", JSIConverter<double>::toJSI(runtime, arg.numberOfVoltageMeasurements));
163
+ obj.setProperty(runtime, "voltages", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::toJSI(runtime, arg.voltages));
164
+ obj.setProperty(runtime, "sampleType", JSIConverter<margelo::nitro::healthkit::SampleType>::toJSI(runtime, arg.sampleType));
165
+ obj.setProperty(runtime, "startDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
166
+ obj.setProperty(runtime, "endDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
167
+ obj.setProperty(runtime, "hasUndeterminedDuration", JSIConverter<bool>::toJSI(runtime, arg.hasUndeterminedDuration));
168
+ obj.setProperty(runtime, "metadataWeatherCondition", JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::toJSI(runtime, arg.metadataWeatherCondition));
169
+ obj.setProperty(runtime, "metadataWeatherHumidity", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherHumidity));
170
+ obj.setProperty(runtime, "metadataWeatherTemperature", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherTemperature));
171
+ obj.setProperty(runtime, "metadataInsulinDeliveryReason", JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::toJSI(runtime, arg.metadataInsulinDeliveryReason));
172
+ obj.setProperty(runtime, "metadataHeartRateMotionContext", JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::toJSI(runtime, arg.metadataHeartRateMotionContext));
173
+ obj.setProperty(runtime, "uuid", JSIConverter<std::string>::toJSI(runtime, arg.uuid));
174
+ obj.setProperty(runtime, "sourceRevision", JSIConverter<margelo::nitro::healthkit::SourceRevision>::toJSI(runtime, arg.sourceRevision));
175
+ obj.setProperty(runtime, "device", JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::toJSI(runtime, arg.device));
176
+ obj.setProperty(runtime, "metadata", JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
177
+ obj.setProperty(runtime, "metadataExternalUUID", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataExternalUUID));
178
+ obj.setProperty(runtime, "metadataTimeZone", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataTimeZone));
179
+ obj.setProperty(runtime, "metadataWasUserEntered", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasUserEntered));
180
+ obj.setProperty(runtime, "metadataDeviceSerialNumber", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceSerialNumber));
181
+ obj.setProperty(runtime, "metadataUdiDeviceIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiDeviceIdentifier));
182
+ obj.setProperty(runtime, "metadataUdiProductionIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiProductionIdentifier));
183
+ obj.setProperty(runtime, "metadataDigitalSignature", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDigitalSignature));
184
+ obj.setProperty(runtime, "metadataDeviceName", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceName));
185
+ obj.setProperty(runtime, "metadataDeviceManufacturerName", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceManufacturerName));
186
+ obj.setProperty(runtime, "metadataSyncIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataSyncIdentifier));
187
+ obj.setProperty(runtime, "metadataSyncVersion", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataSyncVersion));
188
+ obj.setProperty(runtime, "metadataWasTakenInLab", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasTakenInLab));
189
+ obj.setProperty(runtime, "metadataReferenceRangeLowerLimit", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeLowerLimit));
190
+ obj.setProperty(runtime, "metadataReferenceRangeUpperLimit", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeUpperLimit));
191
+ obj.setProperty(runtime, "metadataAlgorithmVersion", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataAlgorithmVersion));
200
192
  return obj;
201
193
  }
202
194
  static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
@@ -207,40 +199,40 @@ namespace margelo::nitro {
207
199
  if (!nitro::isPlainObject(runtime, obj)) {
208
200
  return false;
209
201
  }
210
- if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "classification")))) return false;
211
- if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "symptomsStatus")))) return false;
212
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "averageHeartRateBpm")))) return false;
213
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "samplingFrequencyHz")))) return false;
214
- if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "numberOfVoltageMeasurements")))) return false;
215
- if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "voltages")))) return false;
216
- if (!JSIConverter<margelo::nitro::healthkit::SampleType>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sampleType")))) return false;
217
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "startDate")))) return false;
218
- if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "endDate")))) return false;
219
- if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hasUndeterminedDuration")))) return false;
220
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherCondition")))) return false;
221
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherHumidity")))) return false;
222
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWeatherTemperature")))) return false;
223
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataInsulinDeliveryReason")))) return false;
224
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataHeartRateMotionContext")))) return false;
225
- if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "uuid")))) return false;
226
- if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "sourceRevision")))) return false;
227
- if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "device")))) return false;
228
- if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadata")))) return false;
229
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataExternalUUID")))) return false;
230
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataTimeZone")))) return false;
231
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWasUserEntered")))) return false;
232
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceSerialNumber")))) return false;
233
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiDeviceIdentifier")))) return false;
234
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataUdiProductionIdentifier")))) return false;
235
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDigitalSignature")))) return false;
236
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceName")))) return false;
237
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataDeviceManufacturerName")))) return false;
238
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncIdentifier")))) return false;
239
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataSyncVersion")))) return false;
240
- if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataWasTakenInLab")))) return false;
241
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeLowerLimit")))) return false;
242
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataReferenceRangeUpperLimit")))) return false;
243
- if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "metadataAlgorithmVersion")))) return false;
202
+ if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramClassification>::canConvert(runtime, obj.getProperty(runtime, "classification"))) return false;
203
+ if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramSymptomsStatus>::canConvert(runtime, obj.getProperty(runtime, "symptomsStatus"))) return false;
204
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "averageHeartRateBpm"))) return false;
205
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "samplingFrequencyHz"))) return false;
206
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "numberOfVoltageMeasurements"))) return false;
207
+ if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::ElectrocardiogramVoltage>>>::canConvert(runtime, obj.getProperty(runtime, "voltages"))) return false;
208
+ if (!JSIConverter<margelo::nitro::healthkit::SampleType>::canConvert(runtime, obj.getProperty(runtime, "sampleType"))) return false;
209
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "startDate"))) return false;
210
+ if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "endDate"))) return false;
211
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, "hasUndeterminedDuration"))) return false;
212
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherCondition"))) return false;
213
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherHumidity"))) return false;
214
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherTemperature"))) return false;
215
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::canConvert(runtime, obj.getProperty(runtime, "metadataInsulinDeliveryReason"))) return false;
216
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::canConvert(runtime, obj.getProperty(runtime, "metadataHeartRateMotionContext"))) return false;
217
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
218
+ if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime, "sourceRevision"))) return false;
219
+ if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime, "device"))) return false;
220
+ if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
221
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataExternalUUID"))) return false;
222
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataTimeZone"))) return false;
223
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "metadataWasUserEntered"))) return false;
224
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceSerialNumber"))) return false;
225
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataUdiDeviceIdentifier"))) return false;
226
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataUdiProductionIdentifier"))) return false;
227
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDigitalSignature"))) return false;
228
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceName"))) return false;
229
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceManufacturerName"))) return false;
230
+ if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataSyncIdentifier"))) return false;
231
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataSyncVersion"))) return false;
232
+ if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "metadataWasTakenInLab"))) return false;
233
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataReferenceRangeLowerLimit"))) return false;
234
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataReferenceRangeUpperLimit"))) return false;
235
+ if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataAlgorithmVersion"))) return false;
244
236
  return true;
245
237
  }
246
238
  };