@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.
- package/ios/QuantityTypeModule.swift +2 -2
- package/nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb +2 -2
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +43 -43
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +71 -45
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +1 -7
- package/nitrogen/generated/ios/swift/AggregationStyle.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthDataTypes.swift +56 -19
- package/nitrogen/generated/ios/swift/AuthorizationRequestStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthorizationStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/BiologicalSex.swift +1 -1
- package/nitrogen/generated/ios/swift/BloodType.swift +1 -1
- package/nitrogen/generated/ios/swift/CategorySample.swift +445 -166
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +56 -13
- package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +491 -187
- package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/DateFilter.swift +86 -37
- package/nitrogen/generated/ios/swift/DeletedSample.swift +31 -12
- package/nitrogen/generated/ios/swift/Device.swift +170 -73
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +53 -16
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +66 -23
- package/nitrogen/generated/ios/swift/ElectrocardiogramClassification.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramLead.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +508 -195
- package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +26 -7
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +221 -76
- package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +140 -49
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +221 -67
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +140 -40
- package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_double.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift +3 -2
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift +3 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift +3 -2
- package/nitrogen/generated/ios/swift/GeneralForm.swift +1 -1
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +1 -1
- package/nitrogen/generated/ios/swift/Heartbeat.swift +18 -5
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +443 -164
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +4 -3
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +2 -9
- package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +18 -5
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +1 -1
- package/nitrogen/generated/ios/swift/IntervalComponents.swift +72 -46
- package/nitrogen/generated/ios/swift/LocationForSaving.swift +66 -17
- package/nitrogen/generated/ios/swift/MedicationConcept.swift +40 -9
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +510 -197
- package/nitrogen/generated/ios/swift/MedicationDoseEventLogStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEventScheduleType.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEventsWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +31 -12
- package/nitrogen/generated/ios/swift/PerObjectTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +74 -32
- package/nitrogen/generated/ios/swift/Quantity.swift +18 -5
- package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +18 -5
- package/nitrogen/generated/ios/swift/QuantitySample.swift +453 -168
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +77 -22
- package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +45 -14
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +66 -23
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +45 -14
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +66 -23
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +163 -39
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +157 -39
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +45 -11
- package/nitrogen/generated/ios/swift/RelatedCoding.swift +39 -14
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleType.swift +34 -9
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +1 -1
- package/nitrogen/generated/ios/swift/Source.swift +18 -5
- package/nitrogen/generated/ios/swift/SourceRevision.swift +67 -27
- package/nitrogen/generated/ios/swift/StateOfMindAssociation.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindKind.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindLabel.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +481 -172
- package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +38 -7
- package/nitrogen/generated/ios/swift/StateOfMindValenceClassification.swift +1 -1
- package/nitrogen/generated/ios/swift/StatisticsOptions.swift +1 -1
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +37 -12
- package/nitrogen/generated/ios/swift/UpdateFrequency.swift +1 -1
- package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +47 -16
- package/nitrogen/generated/ios/swift/Variant_Bool_String_Double_Date.swift +1 -1
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +1 -1
- package/nitrogen/generated/ios/swift/WheelchairUse.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutActivity.swift +34 -9
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +24 -5
- package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +18 -5
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +26 -7
- package/nitrogen/generated/ios/swift/WorkoutEventType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutPlan.swift +18 -5
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +45 -14
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +45 -14
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +51 -21
- package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +88 -28
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +590 -203
- package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutTotals.swift +30 -19
- package/nitrogen/generated/shared/c++/AggregationStyle.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthDataTypes.hpp +8 -16
- package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/BiologicalSex.hpp +1 -1
- package/nitrogen/generated/shared/c++/BloodType.hpp +1 -1
- package/nitrogen/generated/shared/c++/CategorySample.hpp +92 -100
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +20 -28
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +1 -1
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +95 -103
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/DateFilter.hpp +14 -22
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +8 -16
- package/nitrogen/generated/shared/c++/Device.hpp +26 -34
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +14 -22
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +14 -22
- package/nitrogen/generated/shared/c++/ElectrocardiogramClassification.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramLead.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +104 -112
- package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +11 -19
- package/nitrogen/generated/shared/c++/FilterForSamples.hpp +29 -37
- package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +20 -28
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +32 -40
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +23 -31
- package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +1 -1
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +1 -1
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +1 -1
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +8 -16
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +89 -97
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +8 -16
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +1 -1
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +17 -25
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +26 -34
- package/nitrogen/generated/shared/c++/MedicationConcept.hpp +14 -22
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +107 -115
- package/nitrogen/generated/shared/c++/MedicationDoseEventLogStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEventScheduleType.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEventsWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +8 -16
- package/nitrogen/generated/shared/c++/PerObjectTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +11 -19
- package/nitrogen/generated/shared/c++/Quantity.hpp +8 -16
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +8 -16
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +95 -103
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +23 -31
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +11 -19
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +14 -22
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +11 -19
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +14 -22
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +32 -40
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +32 -40
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/RelatedCoding.hpp +11 -19
- package/nitrogen/generated/shared/c++/SampleType.hpp +14 -22
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +1 -1
- package/nitrogen/generated/shared/c++/Source.hpp +8 -16
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +14 -22
- package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +101 -109
- package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +11 -19
- package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +1 -1
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +1 -1
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +8 -16
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +1 -1
- package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +14 -22
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +1 -1
- package/nitrogen/generated/shared/c++/WheelchairUse.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +14 -22
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +8 -16
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +8 -16
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +11 -19
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +8 -16
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +11 -19
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +11 -19
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +11 -19
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +32 -40
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +116 -124
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +8 -16
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// Quantity.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
|
|
|
@@ -37,7 +32,7 @@ namespace margelo::nitro::healthkit {
|
|
|
37
32
|
/**
|
|
38
33
|
* A struct which can be represented as a JavaScript object (Quantity).
|
|
39
34
|
*/
|
|
40
|
-
struct Quantity
|
|
35
|
+
struct Quantity {
|
|
41
36
|
public:
|
|
42
37
|
std::string unit SWIFT_PRIVATE;
|
|
43
38
|
double quantity SWIFT_PRIVATE;
|
|
@@ -45,9 +40,6 @@ namespace margelo::nitro::healthkit {
|
|
|
45
40
|
public:
|
|
46
41
|
Quantity() = default;
|
|
47
42
|
explicit Quantity(std::string unit, double quantity): unit(unit), quantity(quantity) {}
|
|
48
|
-
|
|
49
|
-
public:
|
|
50
|
-
friend bool operator==(const Quantity& lhs, const Quantity& rhs) = default;
|
|
51
43
|
};
|
|
52
44
|
|
|
53
45
|
} // namespace margelo::nitro::healthkit
|
|
@@ -60,14 +52,14 @@ namespace margelo::nitro {
|
|
|
60
52
|
static inline margelo::nitro::healthkit::Quantity fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
61
53
|
jsi::Object obj = arg.asObject(runtime);
|
|
62
54
|
return margelo::nitro::healthkit::Quantity(
|
|
63
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime,
|
|
64
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
55
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "unit")),
|
|
56
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "quantity"))
|
|
65
57
|
);
|
|
66
58
|
}
|
|
67
59
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::Quantity& arg) {
|
|
68
60
|
jsi::Object obj(runtime);
|
|
69
|
-
obj.setProperty(runtime,
|
|
70
|
-
obj.setProperty(runtime,
|
|
61
|
+
obj.setProperty(runtime, "unit", JSIConverter<std::string>::toJSI(runtime, arg.unit));
|
|
62
|
+
obj.setProperty(runtime, "quantity", JSIConverter<double>::toJSI(runtime, arg.quantity));
|
|
71
63
|
return obj;
|
|
72
64
|
}
|
|
73
65
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -78,8 +70,8 @@ namespace margelo::nitro {
|
|
|
78
70
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
79
71
|
return false;
|
|
80
72
|
}
|
|
81
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime,
|
|
82
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
73
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "unit"))) return false;
|
|
74
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "quantity"))) return false;
|
|
83
75
|
return true;
|
|
84
76
|
}
|
|
85
77
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QuantityDateInterval.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
|
|
|
@@ -37,7 +32,7 @@ namespace margelo::nitro::healthkit {
|
|
|
37
32
|
/**
|
|
38
33
|
* A struct which can be represented as a JavaScript object (QuantityDateInterval).
|
|
39
34
|
*/
|
|
40
|
-
struct QuantityDateInterval
|
|
35
|
+
struct QuantityDateInterval {
|
|
41
36
|
public:
|
|
42
37
|
std::chrono::system_clock::time_point from SWIFT_PRIVATE;
|
|
43
38
|
std::chrono::system_clock::time_point to SWIFT_PRIVATE;
|
|
@@ -45,9 +40,6 @@ namespace margelo::nitro::healthkit {
|
|
|
45
40
|
public:
|
|
46
41
|
QuantityDateInterval() = default;
|
|
47
42
|
explicit QuantityDateInterval(std::chrono::system_clock::time_point from, std::chrono::system_clock::time_point to): from(from), to(to) {}
|
|
48
|
-
|
|
49
|
-
public:
|
|
50
|
-
friend bool operator==(const QuantityDateInterval& lhs, const QuantityDateInterval& rhs) = default;
|
|
51
43
|
};
|
|
52
44
|
|
|
53
45
|
} // namespace margelo::nitro::healthkit
|
|
@@ -60,14 +52,14 @@ namespace margelo::nitro {
|
|
|
60
52
|
static inline margelo::nitro::healthkit::QuantityDateInterval fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
61
53
|
jsi::Object obj = arg.asObject(runtime);
|
|
62
54
|
return margelo::nitro::healthkit::QuantityDateInterval(
|
|
63
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
64
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
55
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "from")),
|
|
56
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "to"))
|
|
65
57
|
);
|
|
66
58
|
}
|
|
67
59
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QuantityDateInterval& arg) {
|
|
68
60
|
jsi::Object obj(runtime);
|
|
69
|
-
obj.setProperty(runtime,
|
|
70
|
-
obj.setProperty(runtime,
|
|
61
|
+
obj.setProperty(runtime, "from", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.from));
|
|
62
|
+
obj.setProperty(runtime, "to", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.to));
|
|
71
63
|
return obj;
|
|
72
64
|
}
|
|
73
65
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -78,8 +70,8 @@ namespace margelo::nitro {
|
|
|
78
70
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
79
71
|
return false;
|
|
80
72
|
}
|
|
81
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
82
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
73
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "from"))) return false;
|
|
74
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "to"))) return false;
|
|
83
75
|
return true;
|
|
84
76
|
}
|
|
85
77
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QuantitySample.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 `QuantityTypeIdentifier` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
@@ -63,7 +58,7 @@ namespace margelo::nitro::healthkit {
|
|
|
63
58
|
/**
|
|
64
59
|
* A struct which can be represented as a JavaScript object (QuantitySample).
|
|
65
60
|
*/
|
|
66
|
-
struct QuantitySample
|
|
61
|
+
struct QuantitySample {
|
|
67
62
|
public:
|
|
68
63
|
QuantityTypeIdentifier quantityType SWIFT_PRIVATE;
|
|
69
64
|
double quantity SWIFT_PRIVATE;
|
|
@@ -100,9 +95,6 @@ namespace margelo::nitro::healthkit {
|
|
|
100
95
|
public:
|
|
101
96
|
QuantitySample() = default;
|
|
102
97
|
explicit QuantitySample(QuantityTypeIdentifier quantityType, double quantity, std::string unit, 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): quantityType(quantityType), quantity(quantity), unit(unit), 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) {}
|
|
103
|
-
|
|
104
|
-
public:
|
|
105
|
-
friend bool operator==(const QuantitySample& lhs, const QuantitySample& rhs) = default;
|
|
106
98
|
};
|
|
107
99
|
|
|
108
100
|
} // namespace margelo::nitro::healthkit
|
|
@@ -115,72 +107,72 @@ namespace margelo::nitro {
|
|
|
115
107
|
static inline margelo::nitro::healthkit::QuantitySample fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
116
108
|
jsi::Object obj = arg.asObject(runtime);
|
|
117
109
|
return margelo::nitro::healthkit::QuantitySample(
|
|
118
|
-
JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::fromJSI(runtime, obj.getProperty(runtime,
|
|
119
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
120
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime,
|
|
121
|
-
JSIConverter<margelo::nitro::healthkit::SampleType>::fromJSI(runtime, obj.getProperty(runtime,
|
|
122
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
123
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
124
|
-
JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime,
|
|
125
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
126
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
127
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
128
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
129
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
130
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime,
|
|
131
|
-
JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime,
|
|
132
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
133
|
-
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
134
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
135
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
136
|
-
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
137
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
138
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
139
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
140
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
141
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
142
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
143
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
144
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
145
|
-
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
146
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
147
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
148
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
110
|
+
JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::fromJSI(runtime, obj.getProperty(runtime, "quantityType")),
|
|
111
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "quantity")),
|
|
112
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "unit")),
|
|
113
|
+
JSIConverter<margelo::nitro::healthkit::SampleType>::fromJSI(runtime, obj.getProperty(runtime, "sampleType")),
|
|
114
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "startDate")),
|
|
115
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "endDate")),
|
|
116
|
+
JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, "hasUndeterminedDuration")),
|
|
117
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherCondition")),
|
|
118
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherHumidity")),
|
|
119
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWeatherTemperature")),
|
|
120
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::fromJSI(runtime, obj.getProperty(runtime, "metadataInsulinDeliveryReason")),
|
|
121
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::fromJSI(runtime, obj.getProperty(runtime, "metadataHeartRateMotionContext")),
|
|
122
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
|
|
123
|
+
JSIConverter<margelo::nitro::healthkit::SourceRevision>::fromJSI(runtime, obj.getProperty(runtime, "sourceRevision")),
|
|
124
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::fromJSI(runtime, obj.getProperty(runtime, "device")),
|
|
125
|
+
JSIConverter<std::shared_ptr<AnyMap>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
126
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataExternalUUID")),
|
|
127
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataTimeZone")),
|
|
128
|
+
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWasUserEntered")),
|
|
129
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceSerialNumber")),
|
|
130
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataUdiDeviceIdentifier")),
|
|
131
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataUdiProductionIdentifier")),
|
|
132
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDigitalSignature")),
|
|
133
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceName")),
|
|
134
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataDeviceManufacturerName")),
|
|
135
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "metadataSyncIdentifier")),
|
|
136
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataSyncVersion")),
|
|
137
|
+
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "metadataWasTakenInLab")),
|
|
138
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataReferenceRangeLowerLimit")),
|
|
139
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataReferenceRangeUpperLimit")),
|
|
140
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "metadataAlgorithmVersion"))
|
|
149
141
|
);
|
|
150
142
|
}
|
|
151
143
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QuantitySample& arg) {
|
|
152
144
|
jsi::Object obj(runtime);
|
|
153
|
-
obj.setProperty(runtime,
|
|
154
|
-
obj.setProperty(runtime,
|
|
155
|
-
obj.setProperty(runtime,
|
|
156
|
-
obj.setProperty(runtime,
|
|
157
|
-
obj.setProperty(runtime,
|
|
158
|
-
obj.setProperty(runtime,
|
|
159
|
-
obj.setProperty(runtime,
|
|
160
|
-
obj.setProperty(runtime,
|
|
161
|
-
obj.setProperty(runtime,
|
|
162
|
-
obj.setProperty(runtime,
|
|
163
|
-
obj.setProperty(runtime,
|
|
164
|
-
obj.setProperty(runtime,
|
|
165
|
-
obj.setProperty(runtime,
|
|
166
|
-
obj.setProperty(runtime,
|
|
167
|
-
obj.setProperty(runtime,
|
|
168
|
-
obj.setProperty(runtime,
|
|
169
|
-
obj.setProperty(runtime,
|
|
170
|
-
obj.setProperty(runtime,
|
|
171
|
-
obj.setProperty(runtime,
|
|
172
|
-
obj.setProperty(runtime,
|
|
173
|
-
obj.setProperty(runtime,
|
|
174
|
-
obj.setProperty(runtime,
|
|
175
|
-
obj.setProperty(runtime,
|
|
176
|
-
obj.setProperty(runtime,
|
|
177
|
-
obj.setProperty(runtime,
|
|
178
|
-
obj.setProperty(runtime,
|
|
179
|
-
obj.setProperty(runtime,
|
|
180
|
-
obj.setProperty(runtime,
|
|
181
|
-
obj.setProperty(runtime,
|
|
182
|
-
obj.setProperty(runtime,
|
|
183
|
-
obj.setProperty(runtime,
|
|
145
|
+
obj.setProperty(runtime, "quantityType", JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::toJSI(runtime, arg.quantityType));
|
|
146
|
+
obj.setProperty(runtime, "quantity", JSIConverter<double>::toJSI(runtime, arg.quantity));
|
|
147
|
+
obj.setProperty(runtime, "unit", JSIConverter<std::string>::toJSI(runtime, arg.unit));
|
|
148
|
+
obj.setProperty(runtime, "sampleType", JSIConverter<margelo::nitro::healthkit::SampleType>::toJSI(runtime, arg.sampleType));
|
|
149
|
+
obj.setProperty(runtime, "startDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
|
|
150
|
+
obj.setProperty(runtime, "endDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
|
|
151
|
+
obj.setProperty(runtime, "hasUndeterminedDuration", JSIConverter<bool>::toJSI(runtime, arg.hasUndeterminedDuration));
|
|
152
|
+
obj.setProperty(runtime, "metadataWeatherCondition", JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::toJSI(runtime, arg.metadataWeatherCondition));
|
|
153
|
+
obj.setProperty(runtime, "metadataWeatherHumidity", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherHumidity));
|
|
154
|
+
obj.setProperty(runtime, "metadataWeatherTemperature", JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::toJSI(runtime, arg.metadataWeatherTemperature));
|
|
155
|
+
obj.setProperty(runtime, "metadataInsulinDeliveryReason", JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::toJSI(runtime, arg.metadataInsulinDeliveryReason));
|
|
156
|
+
obj.setProperty(runtime, "metadataHeartRateMotionContext", JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::toJSI(runtime, arg.metadataHeartRateMotionContext));
|
|
157
|
+
obj.setProperty(runtime, "uuid", JSIConverter<std::string>::toJSI(runtime, arg.uuid));
|
|
158
|
+
obj.setProperty(runtime, "sourceRevision", JSIConverter<margelo::nitro::healthkit::SourceRevision>::toJSI(runtime, arg.sourceRevision));
|
|
159
|
+
obj.setProperty(runtime, "device", JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::toJSI(runtime, arg.device));
|
|
160
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::shared_ptr<AnyMap>>::toJSI(runtime, arg.metadata));
|
|
161
|
+
obj.setProperty(runtime, "metadataExternalUUID", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataExternalUUID));
|
|
162
|
+
obj.setProperty(runtime, "metadataTimeZone", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataTimeZone));
|
|
163
|
+
obj.setProperty(runtime, "metadataWasUserEntered", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasUserEntered));
|
|
164
|
+
obj.setProperty(runtime, "metadataDeviceSerialNumber", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceSerialNumber));
|
|
165
|
+
obj.setProperty(runtime, "metadataUdiDeviceIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiDeviceIdentifier));
|
|
166
|
+
obj.setProperty(runtime, "metadataUdiProductionIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataUdiProductionIdentifier));
|
|
167
|
+
obj.setProperty(runtime, "metadataDigitalSignature", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDigitalSignature));
|
|
168
|
+
obj.setProperty(runtime, "metadataDeviceName", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceName));
|
|
169
|
+
obj.setProperty(runtime, "metadataDeviceManufacturerName", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataDeviceManufacturerName));
|
|
170
|
+
obj.setProperty(runtime, "metadataSyncIdentifier", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.metadataSyncIdentifier));
|
|
171
|
+
obj.setProperty(runtime, "metadataSyncVersion", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataSyncVersion));
|
|
172
|
+
obj.setProperty(runtime, "metadataWasTakenInLab", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.metadataWasTakenInLab));
|
|
173
|
+
obj.setProperty(runtime, "metadataReferenceRangeLowerLimit", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeLowerLimit));
|
|
174
|
+
obj.setProperty(runtime, "metadataReferenceRangeUpperLimit", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataReferenceRangeUpperLimit));
|
|
175
|
+
obj.setProperty(runtime, "metadataAlgorithmVersion", JSIConverter<std::optional<double>>::toJSI(runtime, arg.metadataAlgorithmVersion));
|
|
184
176
|
return obj;
|
|
185
177
|
}
|
|
186
178
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -191,37 +183,37 @@ namespace margelo::nitro {
|
|
|
191
183
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
192
184
|
return false;
|
|
193
185
|
}
|
|
194
|
-
if (!JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::canConvert(runtime, obj.getProperty(runtime,
|
|
195
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
196
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime,
|
|
197
|
-
if (!JSIConverter<margelo::nitro::healthkit::SampleType>::canConvert(runtime, obj.getProperty(runtime,
|
|
198
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
199
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
200
|
-
if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime,
|
|
201
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::canConvert(runtime, obj.getProperty(runtime,
|
|
202
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime,
|
|
203
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime,
|
|
204
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::canConvert(runtime, obj.getProperty(runtime,
|
|
205
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::canConvert(runtime, obj.getProperty(runtime,
|
|
206
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime,
|
|
207
|
-
if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime,
|
|
208
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime,
|
|
209
|
-
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime,
|
|
210
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
211
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
212
|
-
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime,
|
|
213
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
214
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
215
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
216
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
217
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
218
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
219
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
220
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime,
|
|
221
|
-
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime,
|
|
222
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime,
|
|
223
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime,
|
|
224
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime,
|
|
186
|
+
if (!JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::canConvert(runtime, obj.getProperty(runtime, "quantityType"))) return false;
|
|
187
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "quantity"))) return false;
|
|
188
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "unit"))) return false;
|
|
189
|
+
if (!JSIConverter<margelo::nitro::healthkit::SampleType>::canConvert(runtime, obj.getProperty(runtime, "sampleType"))) return false;
|
|
190
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "startDate"))) return false;
|
|
191
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "endDate"))) return false;
|
|
192
|
+
if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, "hasUndeterminedDuration"))) return false;
|
|
193
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WeatherCondition>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherCondition"))) return false;
|
|
194
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherHumidity"))) return false;
|
|
195
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Quantity>>::canConvert(runtime, obj.getProperty(runtime, "metadataWeatherTemperature"))) return false;
|
|
196
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::InsulinDeliveryReason>>::canConvert(runtime, obj.getProperty(runtime, "metadataInsulinDeliveryReason"))) return false;
|
|
197
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::HeartRateMotionContext>>::canConvert(runtime, obj.getProperty(runtime, "metadataHeartRateMotionContext"))) return false;
|
|
198
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
|
|
199
|
+
if (!JSIConverter<margelo::nitro::healthkit::SourceRevision>::canConvert(runtime, obj.getProperty(runtime, "sourceRevision"))) return false;
|
|
200
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::Device>>::canConvert(runtime, obj.getProperty(runtime, "device"))) return false;
|
|
201
|
+
if (!JSIConverter<std::shared_ptr<AnyMap>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
202
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataExternalUUID"))) return false;
|
|
203
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataTimeZone"))) return false;
|
|
204
|
+
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "metadataWasUserEntered"))) return false;
|
|
205
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceSerialNumber"))) return false;
|
|
206
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataUdiDeviceIdentifier"))) return false;
|
|
207
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataUdiProductionIdentifier"))) return false;
|
|
208
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDigitalSignature"))) return false;
|
|
209
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceName"))) return false;
|
|
210
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataDeviceManufacturerName"))) return false;
|
|
211
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "metadataSyncIdentifier"))) return false;
|
|
212
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataSyncVersion"))) return false;
|
|
213
|
+
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "metadataWasTakenInLab"))) return false;
|
|
214
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataReferenceRangeLowerLimit"))) return false;
|
|
215
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataReferenceRangeUpperLimit"))) return false;
|
|
216
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "metadataAlgorithmVersion"))) return false;
|
|
225
217
|
return true;
|
|
226
218
|
}
|
|
227
219
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QuantitySampleForSaving.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 `QuantityTypeIdentifier` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
@@ -45,7 +40,7 @@ namespace margelo::nitro::healthkit {
|
|
|
45
40
|
/**
|
|
46
41
|
* A struct which can be represented as a JavaScript object (QuantitySampleForSaving).
|
|
47
42
|
*/
|
|
48
|
-
struct QuantitySampleForSaving
|
|
43
|
+
struct QuantitySampleForSaving {
|
|
49
44
|
public:
|
|
50
45
|
std::chrono::system_clock::time_point startDate SWIFT_PRIVATE;
|
|
51
46
|
std::chrono::system_clock::time_point endDate SWIFT_PRIVATE;
|
|
@@ -58,9 +53,6 @@ namespace margelo::nitro::healthkit {
|
|
|
58
53
|
public:
|
|
59
54
|
QuantitySampleForSaving() = default;
|
|
60
55
|
explicit QuantitySampleForSaving(std::chrono::system_clock::time_point startDate, std::chrono::system_clock::time_point endDate, QuantityTypeIdentifier quantityType, double quantity, std::string unit, std::optional<std::shared_ptr<AnyMap>> metadata, std::optional<SourceRevision> sourceRevision): startDate(startDate), endDate(endDate), quantityType(quantityType), quantity(quantity), unit(unit), metadata(metadata), sourceRevision(sourceRevision) {}
|
|
61
|
-
|
|
62
|
-
public:
|
|
63
|
-
friend bool operator==(const QuantitySampleForSaving& lhs, const QuantitySampleForSaving& rhs) = default;
|
|
64
56
|
};
|
|
65
57
|
|
|
66
58
|
} // namespace margelo::nitro::healthkit
|
|
@@ -73,24 +65,24 @@ namespace margelo::nitro {
|
|
|
73
65
|
static inline margelo::nitro::healthkit::QuantitySampleForSaving fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
74
66
|
jsi::Object obj = arg.asObject(runtime);
|
|
75
67
|
return margelo::nitro::healthkit::QuantitySampleForSaving(
|
|
76
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
77
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime,
|
|
78
|
-
JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::fromJSI(runtime, obj.getProperty(runtime,
|
|
79
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
80
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime,
|
|
81
|
-
JSIConverter<std::optional<std::shared_ptr<AnyMap>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
82
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::SourceRevision>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
68
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "startDate")),
|
|
69
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "endDate")),
|
|
70
|
+
JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::fromJSI(runtime, obj.getProperty(runtime, "quantityType")),
|
|
71
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "quantity")),
|
|
72
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "unit")),
|
|
73
|
+
JSIConverter<std::optional<std::shared_ptr<AnyMap>>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
74
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::SourceRevision>>::fromJSI(runtime, obj.getProperty(runtime, "sourceRevision"))
|
|
83
75
|
);
|
|
84
76
|
}
|
|
85
77
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QuantitySampleForSaving& arg) {
|
|
86
78
|
jsi::Object obj(runtime);
|
|
87
|
-
obj.setProperty(runtime,
|
|
88
|
-
obj.setProperty(runtime,
|
|
89
|
-
obj.setProperty(runtime,
|
|
90
|
-
obj.setProperty(runtime,
|
|
91
|
-
obj.setProperty(runtime,
|
|
92
|
-
obj.setProperty(runtime,
|
|
93
|
-
obj.setProperty(runtime,
|
|
79
|
+
obj.setProperty(runtime, "startDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.startDate));
|
|
80
|
+
obj.setProperty(runtime, "endDate", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.endDate));
|
|
81
|
+
obj.setProperty(runtime, "quantityType", JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::toJSI(runtime, arg.quantityType));
|
|
82
|
+
obj.setProperty(runtime, "quantity", JSIConverter<double>::toJSI(runtime, arg.quantity));
|
|
83
|
+
obj.setProperty(runtime, "unit", JSIConverter<std::string>::toJSI(runtime, arg.unit));
|
|
84
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::optional<std::shared_ptr<AnyMap>>>::toJSI(runtime, arg.metadata));
|
|
85
|
+
obj.setProperty(runtime, "sourceRevision", JSIConverter<std::optional<margelo::nitro::healthkit::SourceRevision>>::toJSI(runtime, arg.sourceRevision));
|
|
94
86
|
return obj;
|
|
95
87
|
}
|
|
96
88
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -101,13 +93,13 @@ namespace margelo::nitro {
|
|
|
101
93
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
102
94
|
return false;
|
|
103
95
|
}
|
|
104
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
105
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime,
|
|
106
|
-
if (!JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::canConvert(runtime, obj.getProperty(runtime,
|
|
107
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
108
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime,
|
|
109
|
-
if (!JSIConverter<std::optional<std::shared_ptr<AnyMap>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
110
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::SourceRevision>>::canConvert(runtime, obj.getProperty(runtime,
|
|
96
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "startDate"))) return false;
|
|
97
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "endDate"))) return false;
|
|
98
|
+
if (!JSIConverter<margelo::nitro::healthkit::QuantityTypeIdentifier>::canConvert(runtime, obj.getProperty(runtime, "quantityType"))) return false;
|
|
99
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "quantity"))) return false;
|
|
100
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "unit"))) return false;
|
|
101
|
+
if (!JSIConverter<std::optional<std::shared_ptr<AnyMap>>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
102
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::SourceRevision>>::canConvert(runtime, obj.getProperty(runtime, "sourceRevision"))) return false;
|
|
111
103
|
return true;
|
|
112
104
|
}
|
|
113
105
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QuantitySamplesWithAnchorResponse.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 `QuantitySample` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct QuantitySample; }
|
|
@@ -43,7 +38,7 @@ namespace margelo::nitro::healthkit {
|
|
|
43
38
|
/**
|
|
44
39
|
* A struct which can be represented as a JavaScript object (QuantitySamplesWithAnchorResponse).
|
|
45
40
|
*/
|
|
46
|
-
struct QuantitySamplesWithAnchorResponse
|
|
41
|
+
struct QuantitySamplesWithAnchorResponse {
|
|
47
42
|
public:
|
|
48
43
|
std::vector<QuantitySample> samples SWIFT_PRIVATE;
|
|
49
44
|
std::vector<DeletedSample> deletedSamples SWIFT_PRIVATE;
|
|
@@ -52,9 +47,6 @@ namespace margelo::nitro::healthkit {
|
|
|
52
47
|
public:
|
|
53
48
|
QuantitySamplesWithAnchorResponse() = default;
|
|
54
49
|
explicit QuantitySamplesWithAnchorResponse(std::vector<QuantitySample> samples, std::vector<DeletedSample> deletedSamples, std::string newAnchor): samples(samples), deletedSamples(deletedSamples), newAnchor(newAnchor) {}
|
|
55
|
-
|
|
56
|
-
public:
|
|
57
|
-
friend bool operator==(const QuantitySamplesWithAnchorResponse& lhs, const QuantitySamplesWithAnchorResponse& rhs) = default;
|
|
58
50
|
};
|
|
59
51
|
|
|
60
52
|
} // namespace margelo::nitro::healthkit
|
|
@@ -67,16 +59,16 @@ namespace margelo::nitro {
|
|
|
67
59
|
static inline margelo::nitro::healthkit::QuantitySamplesWithAnchorResponse fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
68
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
69
61
|
return margelo::nitro::healthkit::QuantitySamplesWithAnchorResponse(
|
|
70
|
-
JSIConverter<std::vector<margelo::nitro::healthkit::QuantitySample>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
71
|
-
JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
72
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime,
|
|
62
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::QuantitySample>>::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"))
|
|
73
65
|
);
|
|
74
66
|
}
|
|
75
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QuantitySamplesWithAnchorResponse& arg) {
|
|
76
68
|
jsi::Object obj(runtime);
|
|
77
|
-
obj.setProperty(runtime,
|
|
78
|
-
obj.setProperty(runtime,
|
|
79
|
-
obj.setProperty(runtime,
|
|
69
|
+
obj.setProperty(runtime, "samples", JSIConverter<std::vector<margelo::nitro::healthkit::QuantitySample>>::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));
|
|
80
72
|
return obj;
|
|
81
73
|
}
|
|
82
74
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -87,9 +79,9 @@ namespace margelo::nitro {
|
|
|
87
79
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
88
80
|
return false;
|
|
89
81
|
}
|
|
90
|
-
if (!JSIConverter<std::vector<margelo::nitro::healthkit::QuantitySample>>::canConvert(runtime, obj.getProperty(runtime,
|
|
91
|
-
if (!JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::canConvert(runtime, obj.getProperty(runtime,
|
|
92
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime,
|
|
82
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::QuantitySample>>::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;
|
|
93
85
|
return true;
|
|
94
86
|
}
|
|
95
87
|
};
|