@kingstinct/react-native-healthkit 13.1.2 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/MedicationModule.swift +51 -4
- package/ios/QuantityTypeModule.swift +2 -2
- package/lib/typescript/specs/MedicationModule.nitro.d.ts +1 -0
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +31 -1
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +12 -0
- package/lib/typescript/types/Workouts.d.ts +4 -0
- 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 +18 -8
- 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 +21 -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 +8 -3
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +54 -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 +542 -199
- 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 +29 -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 +9 -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 +29 -1
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +29 -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 +684 -205
- 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 +21 -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 +5 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +6 -2
- 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 +113 -117
- 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 +163 -135
- 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 +93 -85
- 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 +156 -128
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +150 -122
- 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 +134 -126
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +8 -16
- package/package.json +3 -3
- package/src/specs/MedicationModule.nitro.ts +1 -0
- package/src/types/CategoryTypeIdentifier.ts +35 -0
- package/src/types/QuantityTypeIdentifier.ts +14 -0
- package/src/types/Workouts.ts +4 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ElectrocardiogramSamplesWithAnchorResponse.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 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 `ElectrocardiogramSample` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct ElectrocardiogramSample; }
|
|
@@ -43,7 +38,7 @@ namespace margelo::nitro::healthkit {
|
|
|
43
38
|
/**
|
|
44
39
|
* A struct which can be represented as a JavaScript object (ElectrocardiogramSamplesWithAnchorResponse).
|
|
45
40
|
*/
|
|
46
|
-
struct ElectrocardiogramSamplesWithAnchorResponse
|
|
41
|
+
struct ElectrocardiogramSamplesWithAnchorResponse {
|
|
47
42
|
public:
|
|
48
43
|
std::vector<ElectrocardiogramSample> samples SWIFT_PRIVATE;
|
|
49
44
|
std::vector<DeletedSample> deletedSamples SWIFT_PRIVATE;
|
|
@@ -52,9 +47,6 @@ namespace margelo::nitro::healthkit {
|
|
|
52
47
|
public:
|
|
53
48
|
ElectrocardiogramSamplesWithAnchorResponse() = default;
|
|
54
49
|
explicit ElectrocardiogramSamplesWithAnchorResponse(std::vector<ElectrocardiogramSample> samples, std::vector<DeletedSample> deletedSamples, std::string newAnchor): samples(samples), deletedSamples(deletedSamples), newAnchor(newAnchor) {}
|
|
55
|
-
|
|
56
|
-
public:
|
|
57
|
-
friend bool operator==(const ElectrocardiogramSamplesWithAnchorResponse& lhs, const ElectrocardiogramSamplesWithAnchorResponse& rhs) = default;
|
|
58
50
|
};
|
|
59
51
|
|
|
60
52
|
} // namespace margelo::nitro::healthkit
|
|
@@ -67,16 +59,16 @@ namespace margelo::nitro {
|
|
|
67
59
|
static inline margelo::nitro::healthkit::ElectrocardiogramSamplesWithAnchorResponse fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
68
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
69
61
|
return margelo::nitro::healthkit::ElectrocardiogramSamplesWithAnchorResponse(
|
|
70
|
-
JSIConverter<std::vector<margelo::nitro::healthkit::ElectrocardiogramSample>>::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::ElectrocardiogramSample>>::fromJSI(runtime, obj.getProperty(runtime, "samples")),
|
|
63
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::fromJSI(runtime, obj.getProperty(runtime, "deletedSamples")),
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "newAnchor"))
|
|
73
65
|
);
|
|
74
66
|
}
|
|
75
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::ElectrocardiogramSamplesWithAnchorResponse& 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::ElectrocardiogramSample>>::toJSI(runtime, arg.samples));
|
|
70
|
+
obj.setProperty(runtime, "deletedSamples", JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::toJSI(runtime, arg.deletedSamples));
|
|
71
|
+
obj.setProperty(runtime, "newAnchor", JSIConverter<std::string>::toJSI(runtime, arg.newAnchor));
|
|
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::ElectrocardiogramSample>>::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::ElectrocardiogramSample>>::canConvert(runtime, obj.getProperty(runtime, "samples"))) return false;
|
|
83
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::DeletedSample>>::canConvert(runtime, obj.getProperty(runtime, "deletedSamples"))) return false;
|
|
84
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "newAnchor"))) return false;
|
|
93
85
|
return true;
|
|
94
86
|
}
|
|
95
87
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ElectrocardiogramVoltage.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 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 `ElectrocardiogramLead` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { enum class ElectrocardiogramLead; }
|
|
@@ -38,7 +33,7 @@ namespace margelo::nitro::healthkit {
|
|
|
38
33
|
/**
|
|
39
34
|
* A struct which can be represented as a JavaScript object (ElectrocardiogramVoltage).
|
|
40
35
|
*/
|
|
41
|
-
struct ElectrocardiogramVoltage
|
|
36
|
+
struct ElectrocardiogramVoltage {
|
|
42
37
|
public:
|
|
43
38
|
double timeSinceSampleStart SWIFT_PRIVATE;
|
|
44
39
|
double voltage SWIFT_PRIVATE;
|
|
@@ -47,9 +42,6 @@ namespace margelo::nitro::healthkit {
|
|
|
47
42
|
public:
|
|
48
43
|
ElectrocardiogramVoltage() = default;
|
|
49
44
|
explicit ElectrocardiogramVoltage(double timeSinceSampleStart, double voltage, ElectrocardiogramLead lead): timeSinceSampleStart(timeSinceSampleStart), voltage(voltage), lead(lead) {}
|
|
50
|
-
|
|
51
|
-
public:
|
|
52
|
-
friend bool operator==(const ElectrocardiogramVoltage& lhs, const ElectrocardiogramVoltage& rhs) = default;
|
|
53
45
|
};
|
|
54
46
|
|
|
55
47
|
} // namespace margelo::nitro::healthkit
|
|
@@ -62,16 +54,16 @@ namespace margelo::nitro {
|
|
|
62
54
|
static inline margelo::nitro::healthkit::ElectrocardiogramVoltage fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
63
55
|
jsi::Object obj = arg.asObject(runtime);
|
|
64
56
|
return margelo::nitro::healthkit::ElectrocardiogramVoltage(
|
|
65
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
66
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
67
|
-
JSIConverter<margelo::nitro::healthkit::ElectrocardiogramLead>::fromJSI(runtime, obj.getProperty(runtime,
|
|
57
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "timeSinceSampleStart")),
|
|
58
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "voltage")),
|
|
59
|
+
JSIConverter<margelo::nitro::healthkit::ElectrocardiogramLead>::fromJSI(runtime, obj.getProperty(runtime, "lead"))
|
|
68
60
|
);
|
|
69
61
|
}
|
|
70
62
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::ElectrocardiogramVoltage& arg) {
|
|
71
63
|
jsi::Object obj(runtime);
|
|
72
|
-
obj.setProperty(runtime,
|
|
73
|
-
obj.setProperty(runtime,
|
|
74
|
-
obj.setProperty(runtime,
|
|
64
|
+
obj.setProperty(runtime, "timeSinceSampleStart", JSIConverter<double>::toJSI(runtime, arg.timeSinceSampleStart));
|
|
65
|
+
obj.setProperty(runtime, "voltage", JSIConverter<double>::toJSI(runtime, arg.voltage));
|
|
66
|
+
obj.setProperty(runtime, "lead", JSIConverter<margelo::nitro::healthkit::ElectrocardiogramLead>::toJSI(runtime, arg.lead));
|
|
75
67
|
return obj;
|
|
76
68
|
}
|
|
77
69
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -82,9 +74,9 @@ namespace margelo::nitro {
|
|
|
82
74
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
83
75
|
return false;
|
|
84
76
|
}
|
|
85
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
86
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
87
|
-
if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramLead>::canConvert(runtime, obj.getProperty(runtime,
|
|
77
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "timeSinceSampleStart"))) return false;
|
|
78
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "voltage"))) return false;
|
|
79
|
+
if (!JSIConverter<margelo::nitro::healthkit::ElectrocardiogramLead>::canConvert(runtime, obj.getProperty(runtime, "lead"))) return false;
|
|
88
80
|
return true;
|
|
89
81
|
}
|
|
90
82
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FilterForSamples.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 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 `FilterForSamplesBase` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
@@ -54,7 +49,7 @@ namespace margelo::nitro::healthkit {
|
|
|
54
49
|
/**
|
|
55
50
|
* A struct which can be represented as a JavaScript object (FilterForSamples).
|
|
56
51
|
*/
|
|
57
|
-
struct FilterForSamples
|
|
52
|
+
struct FilterForSamples {
|
|
58
53
|
public:
|
|
59
54
|
std::optional<std::vector<FilterForSamplesBase>> OR SWIFT_PRIVATE;
|
|
60
55
|
std::optional<std::vector<FilterForSamplesBase>> NOT SWIFT_PRIVATE;
|
|
@@ -69,9 +64,6 @@ namespace margelo::nitro::healthkit {
|
|
|
69
64
|
public:
|
|
70
65
|
FilterForSamples() = default;
|
|
71
66
|
explicit FilterForSamples(std::optional<std::vector<FilterForSamplesBase>> OR, std::optional<std::vector<FilterForSamplesBase>> NOT, std::optional<std::vector<FilterForSamplesBase>> AND, std::optional<std::string> uuid, std::optional<std::vector<std::string>> uuids, std::optional<PredicateWithMetadataKey> metadata, std::optional<DateFilter> date, std::optional<std::shared_ptr<HybridWorkoutProxySpec>> workout, std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>> sources): OR(OR), NOT(NOT), AND(AND), uuid(uuid), uuids(uuids), metadata(metadata), date(date), workout(workout), sources(sources) {}
|
|
72
|
-
|
|
73
|
-
public:
|
|
74
|
-
friend bool operator==(const FilterForSamples& lhs, const FilterForSamples& rhs) = default;
|
|
75
67
|
};
|
|
76
68
|
|
|
77
69
|
} // namespace margelo::nitro::healthkit
|
|
@@ -84,28 +76,28 @@ namespace margelo::nitro {
|
|
|
84
76
|
static inline margelo::nitro::healthkit::FilterForSamples fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
85
77
|
jsi::Object obj = arg.asObject(runtime);
|
|
86
78
|
return margelo::nitro::healthkit::FilterForSamples(
|
|
87
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
88
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
89
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
90
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
91
|
-
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
92
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
93
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
94
|
-
JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
95
|
-
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
79
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime, "OR")),
|
|
80
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime, "NOT")),
|
|
81
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::fromJSI(runtime, obj.getProperty(runtime, "AND")),
|
|
82
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
|
|
83
|
+
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime, "uuids")),
|
|
84
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
85
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime, "date")),
|
|
86
|
+
JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::fromJSI(runtime, obj.getProperty(runtime, "workout")),
|
|
87
|
+
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime, "sources"))
|
|
96
88
|
);
|
|
97
89
|
}
|
|
98
90
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::FilterForSamples& arg) {
|
|
99
91
|
jsi::Object obj(runtime);
|
|
100
|
-
obj.setProperty(runtime,
|
|
101
|
-
obj.setProperty(runtime,
|
|
102
|
-
obj.setProperty(runtime,
|
|
103
|
-
obj.setProperty(runtime,
|
|
104
|
-
obj.setProperty(runtime,
|
|
105
|
-
obj.setProperty(runtime,
|
|
106
|
-
obj.setProperty(runtime,
|
|
107
|
-
obj.setProperty(runtime,
|
|
108
|
-
obj.setProperty(runtime,
|
|
92
|
+
obj.setProperty(runtime, "OR", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::toJSI(runtime, arg.OR));
|
|
93
|
+
obj.setProperty(runtime, "NOT", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::toJSI(runtime, arg.NOT));
|
|
94
|
+
obj.setProperty(runtime, "AND", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::toJSI(runtime, arg.AND));
|
|
95
|
+
obj.setProperty(runtime, "uuid", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.uuid));
|
|
96
|
+
obj.setProperty(runtime, "uuids", JSIConverter<std::optional<std::vector<std::string>>>::toJSI(runtime, arg.uuids));
|
|
97
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::toJSI(runtime, arg.metadata));
|
|
98
|
+
obj.setProperty(runtime, "date", JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::toJSI(runtime, arg.date));
|
|
99
|
+
obj.setProperty(runtime, "workout", JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::toJSI(runtime, arg.workout));
|
|
100
|
+
obj.setProperty(runtime, "sources", JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::toJSI(runtime, arg.sources));
|
|
109
101
|
return obj;
|
|
110
102
|
}
|
|
111
103
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -116,15 +108,15 @@ namespace margelo::nitro {
|
|
|
116
108
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
117
109
|
return false;
|
|
118
110
|
}
|
|
119
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
120
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
121
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
122
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
123
|
-
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
124
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime,
|
|
125
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime,
|
|
126
|
-
if (!JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
127
|
-
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
111
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime, "OR"))) return false;
|
|
112
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime, "NOT"))) return false;
|
|
113
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForSamplesBase>>>::canConvert(runtime, obj.getProperty(runtime, "AND"))) return false;
|
|
114
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
|
|
115
|
+
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime, "uuids"))) return false;
|
|
116
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
117
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime, "date"))) return false;
|
|
118
|
+
if (!JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::canConvert(runtime, obj.getProperty(runtime, "workout"))) return false;
|
|
119
|
+
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime, "sources"))) return false;
|
|
128
120
|
return true;
|
|
129
121
|
}
|
|
130
122
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FilterForSamplesBase.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 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 `PredicateWithMetadataKey` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
@@ -51,7 +46,7 @@ namespace margelo::nitro::healthkit {
|
|
|
51
46
|
/**
|
|
52
47
|
* A struct which can be represented as a JavaScript object (FilterForSamplesBase).
|
|
53
48
|
*/
|
|
54
|
-
struct FilterForSamplesBase
|
|
49
|
+
struct FilterForSamplesBase {
|
|
55
50
|
public:
|
|
56
51
|
std::optional<std::string> uuid SWIFT_PRIVATE;
|
|
57
52
|
std::optional<std::vector<std::string>> uuids SWIFT_PRIVATE;
|
|
@@ -63,9 +58,6 @@ namespace margelo::nitro::healthkit {
|
|
|
63
58
|
public:
|
|
64
59
|
FilterForSamplesBase() = default;
|
|
65
60
|
explicit FilterForSamplesBase(std::optional<std::string> uuid, std::optional<std::vector<std::string>> uuids, std::optional<PredicateWithMetadataKey> metadata, std::optional<DateFilter> date, std::optional<std::shared_ptr<HybridWorkoutProxySpec>> workout, std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>> sources): uuid(uuid), uuids(uuids), metadata(metadata), date(date), workout(workout), sources(sources) {}
|
|
66
|
-
|
|
67
|
-
public:
|
|
68
|
-
friend bool operator==(const FilterForSamplesBase& lhs, const FilterForSamplesBase& rhs) = default;
|
|
69
61
|
};
|
|
70
62
|
|
|
71
63
|
} // namespace margelo::nitro::healthkit
|
|
@@ -78,22 +70,22 @@ namespace margelo::nitro {
|
|
|
78
70
|
static inline margelo::nitro::healthkit::FilterForSamplesBase fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
79
71
|
jsi::Object obj = arg.asObject(runtime);
|
|
80
72
|
return margelo::nitro::healthkit::FilterForSamplesBase(
|
|
81
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
82
|
-
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
83
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
84
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
85
|
-
JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
86
|
-
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
73
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
|
|
74
|
+
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime, "uuids")),
|
|
75
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
76
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime, "date")),
|
|
77
|
+
JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::fromJSI(runtime, obj.getProperty(runtime, "workout")),
|
|
78
|
+
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime, "sources"))
|
|
87
79
|
);
|
|
88
80
|
}
|
|
89
81
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::FilterForSamplesBase& arg) {
|
|
90
82
|
jsi::Object obj(runtime);
|
|
91
|
-
obj.setProperty(runtime,
|
|
92
|
-
obj.setProperty(runtime,
|
|
93
|
-
obj.setProperty(runtime,
|
|
94
|
-
obj.setProperty(runtime,
|
|
95
|
-
obj.setProperty(runtime,
|
|
96
|
-
obj.setProperty(runtime,
|
|
83
|
+
obj.setProperty(runtime, "uuid", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.uuid));
|
|
84
|
+
obj.setProperty(runtime, "uuids", JSIConverter<std::optional<std::vector<std::string>>>::toJSI(runtime, arg.uuids));
|
|
85
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::toJSI(runtime, arg.metadata));
|
|
86
|
+
obj.setProperty(runtime, "date", JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::toJSI(runtime, arg.date));
|
|
87
|
+
obj.setProperty(runtime, "workout", JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::toJSI(runtime, arg.workout));
|
|
88
|
+
obj.setProperty(runtime, "sources", JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::toJSI(runtime, arg.sources));
|
|
97
89
|
return obj;
|
|
98
90
|
}
|
|
99
91
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -104,12 +96,12 @@ namespace margelo::nitro {
|
|
|
104
96
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
105
97
|
return false;
|
|
106
98
|
}
|
|
107
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
108
|
-
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
109
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime,
|
|
110
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime,
|
|
111
|
-
if (!JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
112
|
-
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
99
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
|
|
100
|
+
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime, "uuids"))) return false;
|
|
101
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
102
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime, "date"))) return false;
|
|
103
|
+
if (!JSIConverter<std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::canConvert(runtime, obj.getProperty(runtime, "workout"))) return false;
|
|
104
|
+
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime, "sources"))) return false;
|
|
113
105
|
return true;
|
|
114
106
|
}
|
|
115
107
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FilterForWorkouts.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © 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 `FilterForWorkoutsBase` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct FilterForWorkoutsBase; }
|
|
@@ -57,7 +52,7 @@ namespace margelo::nitro::healthkit {
|
|
|
57
52
|
/**
|
|
58
53
|
* A struct which can be represented as a JavaScript object (FilterForWorkouts).
|
|
59
54
|
*/
|
|
60
|
-
struct FilterForWorkouts
|
|
55
|
+
struct FilterForWorkouts {
|
|
61
56
|
public:
|
|
62
57
|
std::optional<std::vector<FilterForWorkoutsBase>> OR SWIFT_PRIVATE;
|
|
63
58
|
std::optional<std::vector<FilterForWorkoutsBase>> NOT SWIFT_PRIVATE;
|
|
@@ -73,9 +68,6 @@ namespace margelo::nitro::healthkit {
|
|
|
73
68
|
public:
|
|
74
69
|
FilterForWorkouts() = default;
|
|
75
70
|
explicit FilterForWorkouts(std::optional<std::vector<FilterForWorkoutsBase>> OR, std::optional<std::vector<FilterForWorkoutsBase>> NOT, std::optional<std::vector<FilterForWorkoutsBase>> AND, std::optional<WorkoutActivityType> workoutActivityType, std::optional<WorkoutDurationPredicate> duration, std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>> sources, std::optional<std::string> uuid, std::optional<std::vector<std::string>> uuids, std::optional<PredicateWithMetadataKey> metadata, std::optional<DateFilter> date): OR(OR), NOT(NOT), AND(AND), workoutActivityType(workoutActivityType), duration(duration), sources(sources), uuid(uuid), uuids(uuids), metadata(metadata), date(date) {}
|
|
76
|
-
|
|
77
|
-
public:
|
|
78
|
-
friend bool operator==(const FilterForWorkouts& lhs, const FilterForWorkouts& rhs) = default;
|
|
79
71
|
};
|
|
80
72
|
|
|
81
73
|
} // namespace margelo::nitro::healthkit
|
|
@@ -88,30 +80,30 @@ namespace margelo::nitro {
|
|
|
88
80
|
static inline margelo::nitro::healthkit::FilterForWorkouts fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
89
81
|
jsi::Object obj = arg.asObject(runtime);
|
|
90
82
|
return margelo::nitro::healthkit::FilterForWorkouts(
|
|
91
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
92
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
93
|
-
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
94
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
95
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
96
|
-
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
97
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
98
|
-
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
99
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
100
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
83
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime, "OR")),
|
|
84
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime, "NOT")),
|
|
85
|
+
JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::fromJSI(runtime, obj.getProperty(runtime, "AND")),
|
|
86
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::fromJSI(runtime, obj.getProperty(runtime, "workoutActivityType")),
|
|
87
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::fromJSI(runtime, obj.getProperty(runtime, "duration")),
|
|
88
|
+
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime, "sources")),
|
|
89
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
|
|
90
|
+
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime, "uuids")),
|
|
91
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
92
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime, "date"))
|
|
101
93
|
);
|
|
102
94
|
}
|
|
103
95
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::FilterForWorkouts& arg) {
|
|
104
96
|
jsi::Object obj(runtime);
|
|
105
|
-
obj.setProperty(runtime,
|
|
106
|
-
obj.setProperty(runtime,
|
|
107
|
-
obj.setProperty(runtime,
|
|
108
|
-
obj.setProperty(runtime,
|
|
109
|
-
obj.setProperty(runtime,
|
|
110
|
-
obj.setProperty(runtime,
|
|
111
|
-
obj.setProperty(runtime,
|
|
112
|
-
obj.setProperty(runtime,
|
|
113
|
-
obj.setProperty(runtime,
|
|
114
|
-
obj.setProperty(runtime,
|
|
97
|
+
obj.setProperty(runtime, "OR", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::toJSI(runtime, arg.OR));
|
|
98
|
+
obj.setProperty(runtime, "NOT", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::toJSI(runtime, arg.NOT));
|
|
99
|
+
obj.setProperty(runtime, "AND", JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::toJSI(runtime, arg.AND));
|
|
100
|
+
obj.setProperty(runtime, "workoutActivityType", JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::toJSI(runtime, arg.workoutActivityType));
|
|
101
|
+
obj.setProperty(runtime, "duration", JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::toJSI(runtime, arg.duration));
|
|
102
|
+
obj.setProperty(runtime, "sources", JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::toJSI(runtime, arg.sources));
|
|
103
|
+
obj.setProperty(runtime, "uuid", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.uuid));
|
|
104
|
+
obj.setProperty(runtime, "uuids", JSIConverter<std::optional<std::vector<std::string>>>::toJSI(runtime, arg.uuids));
|
|
105
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::toJSI(runtime, arg.metadata));
|
|
106
|
+
obj.setProperty(runtime, "date", JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::toJSI(runtime, arg.date));
|
|
115
107
|
return obj;
|
|
116
108
|
}
|
|
117
109
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -122,16 +114,16 @@ namespace margelo::nitro {
|
|
|
122
114
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
123
115
|
return false;
|
|
124
116
|
}
|
|
125
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
126
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
127
|
-
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
128
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::canConvert(runtime, obj.getProperty(runtime,
|
|
129
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::canConvert(runtime, obj.getProperty(runtime,
|
|
130
|
-
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
131
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
132
|
-
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
133
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime,
|
|
134
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime,
|
|
117
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime, "OR"))) return false;
|
|
118
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime, "NOT"))) return false;
|
|
119
|
+
if (!JSIConverter<std::optional<std::vector<margelo::nitro::healthkit::FilterForWorkoutsBase>>>::canConvert(runtime, obj.getProperty(runtime, "AND"))) return false;
|
|
120
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::canConvert(runtime, obj.getProperty(runtime, "workoutActivityType"))) return false;
|
|
121
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::canConvert(runtime, obj.getProperty(runtime, "duration"))) return false;
|
|
122
|
+
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime, "sources"))) return false;
|
|
123
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
|
|
124
|
+
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime, "uuids"))) return false;
|
|
125
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
126
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime, "date"))) return false;
|
|
135
127
|
return true;
|
|
136
128
|
}
|
|
137
129
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FilterForWorkoutsBase.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
-
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
-
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
-
#else
|
|
28
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
-
#endif
|
|
30
25
|
|
|
31
26
|
// Forward declaration of `WorkoutActivityType` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
|
|
@@ -54,7 +49,7 @@ namespace margelo::nitro::healthkit {
|
|
|
54
49
|
/**
|
|
55
50
|
* A struct which can be represented as a JavaScript object (FilterForWorkoutsBase).
|
|
56
51
|
*/
|
|
57
|
-
struct FilterForWorkoutsBase
|
|
52
|
+
struct FilterForWorkoutsBase {
|
|
58
53
|
public:
|
|
59
54
|
std::optional<WorkoutActivityType> workoutActivityType SWIFT_PRIVATE;
|
|
60
55
|
std::optional<WorkoutDurationPredicate> duration SWIFT_PRIVATE;
|
|
@@ -67,9 +62,6 @@ namespace margelo::nitro::healthkit {
|
|
|
67
62
|
public:
|
|
68
63
|
FilterForWorkoutsBase() = default;
|
|
69
64
|
explicit FilterForWorkoutsBase(std::optional<WorkoutActivityType> workoutActivityType, std::optional<WorkoutDurationPredicate> duration, std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>> sources, std::optional<std::string> uuid, std::optional<std::vector<std::string>> uuids, std::optional<PredicateWithMetadataKey> metadata, std::optional<DateFilter> date): workoutActivityType(workoutActivityType), duration(duration), sources(sources), uuid(uuid), uuids(uuids), metadata(metadata), date(date) {}
|
|
70
|
-
|
|
71
|
-
public:
|
|
72
|
-
friend bool operator==(const FilterForWorkoutsBase& lhs, const FilterForWorkoutsBase& rhs) = default;
|
|
73
65
|
};
|
|
74
66
|
|
|
75
67
|
} // namespace margelo::nitro::healthkit
|
|
@@ -82,24 +74,24 @@ namespace margelo::nitro {
|
|
|
82
74
|
static inline margelo::nitro::healthkit::FilterForWorkoutsBase fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
83
75
|
jsi::Object obj = arg.asObject(runtime);
|
|
84
76
|
return margelo::nitro::healthkit::FilterForWorkoutsBase(
|
|
85
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
86
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
87
|
-
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
88
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
89
|
-
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
90
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
91
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
77
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::fromJSI(runtime, obj.getProperty(runtime, "workoutActivityType")),
|
|
78
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::fromJSI(runtime, obj.getProperty(runtime, "duration")),
|
|
79
|
+
JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::fromJSI(runtime, obj.getProperty(runtime, "sources")),
|
|
80
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "uuid")),
|
|
81
|
+
JSIConverter<std::optional<std::vector<std::string>>>::fromJSI(runtime, obj.getProperty(runtime, "uuids")),
|
|
82
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::fromJSI(runtime, obj.getProperty(runtime, "metadata")),
|
|
83
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::fromJSI(runtime, obj.getProperty(runtime, "date"))
|
|
92
84
|
);
|
|
93
85
|
}
|
|
94
86
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::FilterForWorkoutsBase& arg) {
|
|
95
87
|
jsi::Object obj(runtime);
|
|
96
|
-
obj.setProperty(runtime,
|
|
97
|
-
obj.setProperty(runtime,
|
|
98
|
-
obj.setProperty(runtime,
|
|
99
|
-
obj.setProperty(runtime,
|
|
100
|
-
obj.setProperty(runtime,
|
|
101
|
-
obj.setProperty(runtime,
|
|
102
|
-
obj.setProperty(runtime,
|
|
88
|
+
obj.setProperty(runtime, "workoutActivityType", JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::toJSI(runtime, arg.workoutActivityType));
|
|
89
|
+
obj.setProperty(runtime, "duration", JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::toJSI(runtime, arg.duration));
|
|
90
|
+
obj.setProperty(runtime, "sources", JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::toJSI(runtime, arg.sources));
|
|
91
|
+
obj.setProperty(runtime, "uuid", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.uuid));
|
|
92
|
+
obj.setProperty(runtime, "uuids", JSIConverter<std::optional<std::vector<std::string>>>::toJSI(runtime, arg.uuids));
|
|
93
|
+
obj.setProperty(runtime, "metadata", JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::toJSI(runtime, arg.metadata));
|
|
94
|
+
obj.setProperty(runtime, "date", JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::toJSI(runtime, arg.date));
|
|
103
95
|
return obj;
|
|
104
96
|
}
|
|
105
97
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -110,13 +102,13 @@ namespace margelo::nitro {
|
|
|
110
102
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
111
103
|
return false;
|
|
112
104
|
}
|
|
113
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::canConvert(runtime, obj.getProperty(runtime,
|
|
114
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::canConvert(runtime, obj.getProperty(runtime,
|
|
115
|
-
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
116
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
117
|
-
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime,
|
|
118
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime,
|
|
119
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime,
|
|
105
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutActivityType>>::canConvert(runtime, obj.getProperty(runtime, "workoutActivityType"))) return false;
|
|
106
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::WorkoutDurationPredicate>>::canConvert(runtime, obj.getProperty(runtime, "duration"))) return false;
|
|
107
|
+
if (!JSIConverter<std::optional<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>::canConvert(runtime, obj.getProperty(runtime, "sources"))) return false;
|
|
108
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "uuid"))) return false;
|
|
109
|
+
if (!JSIConverter<std::optional<std::vector<std::string>>>::canConvert(runtime, obj.getProperty(runtime, "uuids"))) return false;
|
|
110
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::PredicateWithMetadataKey>>::canConvert(runtime, obj.getProperty(runtime, "metadata"))) return false;
|
|
111
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::DateFilter>>::canConvert(runtime, obj.getProperty(runtime, "date"))) return false;
|
|
120
112
|
return true;
|
|
121
113
|
}
|
|
122
114
|
};
|