@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
|
/// QuantityTypeIdentifier.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
|
|
@@ -64,90 +64,92 @@ namespace margelo::nitro::healthkit {
|
|
|
64
64
|
HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION SWIFT_NAME(hkquantitytypeidentifieroxygensaturation) = 32,
|
|
65
65
|
HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX SWIFT_NAME(hkquantitytypeidentifierperipheralperfusionindex) = 33,
|
|
66
66
|
HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE SWIFT_NAME(hkquantitytypeidentifierbloodglucose) = 34,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
67
|
+
HKQUANTITYTYPEIDENTIFIERBLOODKETONES SWIFT_NAME(hkquantitytypeidentifierbloodketones) = 35,
|
|
68
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN SWIFT_NAME(hkquantitytypeidentifiernumberoftimesfallen) = 36,
|
|
69
|
+
HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY SWIFT_NAME(hkquantitytypeidentifierelectrodermalactivity) = 37,
|
|
70
|
+
HKQUANTITYTYPEIDENTIFIERINHALERUSAGE SWIFT_NAME(hkquantitytypeidentifierinhalerusage) = 38,
|
|
71
|
+
HKQUANTITYTYPEIDENTIFIERINSULINDELIVERY SWIFT_NAME(hkquantitytypeidentifierinsulindelivery) = 39,
|
|
72
|
+
HKQUANTITYTYPEIDENTIFIERBLOODALCOHOLCONTENT SWIFT_NAME(hkquantitytypeidentifierbloodalcoholcontent) = 40,
|
|
73
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDVITALCAPACITY SWIFT_NAME(hkquantitytypeidentifierforcedvitalcapacity) = 41,
|
|
74
|
+
HKQUANTITYTYPEIDENTIFIERFORCEDEXPIRATORYVOLUME1 SWIFT_NAME(hkquantitytypeidentifierforcedexpiratoryvolume1) = 42,
|
|
75
|
+
HKQUANTITYTYPEIDENTIFIERPEAKEXPIRATORYFLOWRATE SWIFT_NAME(hkquantitytypeidentifierpeakexpiratoryflowrate) = 43,
|
|
76
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierenvironmentalaudioexposure) = 44,
|
|
77
|
+
HKQUANTITYTYPEIDENTIFIERHEADPHONEAUDIOEXPOSURE SWIFT_NAME(hkquantitytypeidentifierheadphoneaudioexposure) = 45,
|
|
78
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATTOTAL SWIFT_NAME(hkquantitytypeidentifierdietaryfattotal) = 46,
|
|
79
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATPOLYUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatpolyunsaturated) = 47,
|
|
80
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATMONOUNSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatmonounsaturated) = 48,
|
|
81
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFATSATURATED SWIFT_NAME(hkquantitytypeidentifierdietaryfatsaturated) = 49,
|
|
82
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHOLESTEROL SWIFT_NAME(hkquantitytypeidentifierdietarycholesterol) = 50,
|
|
83
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSODIUM SWIFT_NAME(hkquantitytypeidentifierdietarysodium) = 51,
|
|
84
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCARBOHYDRATES SWIFT_NAME(hkquantitytypeidentifierdietarycarbohydrates) = 52,
|
|
85
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFIBER SWIFT_NAME(hkquantitytypeidentifierdietaryfiber) = 53,
|
|
86
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSUGAR SWIFT_NAME(hkquantitytypeidentifierdietarysugar) = 54,
|
|
87
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYENERGYCONSUMED SWIFT_NAME(hkquantitytypeidentifierdietaryenergyconsumed) = 55,
|
|
88
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPROTEIN SWIFT_NAME(hkquantitytypeidentifierdietaryprotein) = 56,
|
|
89
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINA SWIFT_NAME(hkquantitytypeidentifierdietaryvitamina) = 57,
|
|
90
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB6 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb6) = 58,
|
|
91
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINB12 SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminb12) = 59,
|
|
92
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINC SWIFT_NAME(hkquantitytypeidentifierdietaryvitaminc) = 60,
|
|
93
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMIND SWIFT_NAME(hkquantitytypeidentifierdietaryvitamind) = 61,
|
|
94
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINE SWIFT_NAME(hkquantitytypeidentifierdietaryvitamine) = 62,
|
|
95
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYVITAMINK SWIFT_NAME(hkquantitytypeidentifierdietaryvitamink) = 63,
|
|
96
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCALCIUM SWIFT_NAME(hkquantitytypeidentifierdietarycalcium) = 64,
|
|
97
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIRON SWIFT_NAME(hkquantitytypeidentifierdietaryiron) = 65,
|
|
98
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYTHIAMIN SWIFT_NAME(hkquantitytypeidentifierdietarythiamin) = 66,
|
|
99
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYRIBOFLAVIN SWIFT_NAME(hkquantitytypeidentifierdietaryriboflavin) = 67,
|
|
100
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYNIACIN SWIFT_NAME(hkquantitytypeidentifierdietaryniacin) = 68,
|
|
101
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYFOLATE SWIFT_NAME(hkquantitytypeidentifierdietaryfolate) = 69,
|
|
102
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYBIOTIN SWIFT_NAME(hkquantitytypeidentifierdietarybiotin) = 70,
|
|
103
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPANTOTHENICACID SWIFT_NAME(hkquantitytypeidentifierdietarypantothenicacid) = 71,
|
|
104
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPHOSPHORUS SWIFT_NAME(hkquantitytypeidentifierdietaryphosphorus) = 72,
|
|
105
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYIODINE SWIFT_NAME(hkquantitytypeidentifierdietaryiodine) = 73,
|
|
106
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMAGNESIUM SWIFT_NAME(hkquantitytypeidentifierdietarymagnesium) = 74,
|
|
107
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYZINC SWIFT_NAME(hkquantitytypeidentifierdietaryzinc) = 75,
|
|
108
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYSELENIUM SWIFT_NAME(hkquantitytypeidentifierdietaryselenium) = 76,
|
|
109
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCOPPER SWIFT_NAME(hkquantitytypeidentifierdietarycopper) = 77,
|
|
110
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMANGANESE SWIFT_NAME(hkquantitytypeidentifierdietarymanganese) = 78,
|
|
111
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHROMIUM SWIFT_NAME(hkquantitytypeidentifierdietarychromium) = 79,
|
|
112
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYMOLYBDENUM SWIFT_NAME(hkquantitytypeidentifierdietarymolybdenum) = 80,
|
|
113
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCHLORIDE SWIFT_NAME(hkquantitytypeidentifierdietarychloride) = 81,
|
|
114
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYPOTASSIUM SWIFT_NAME(hkquantitytypeidentifierdietarypotassium) = 82,
|
|
115
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYCAFFEINE SWIFT_NAME(hkquantitytypeidentifierdietarycaffeine) = 83,
|
|
116
|
+
HKQUANTITYTYPEIDENTIFIERDIETARYWATER SWIFT_NAME(hkquantitytypeidentifierdietarywater) = 84,
|
|
117
|
+
HKQUANTITYTYPEIDENTIFIERSIXMINUTEWALKTESTDISTANCE SWIFT_NAME(hkquantitytypeidentifiersixminutewalktestdistance) = 85,
|
|
118
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSPEED SWIFT_NAME(hkquantitytypeidentifierwalkingspeed) = 86,
|
|
119
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGSTEPLENGTH SWIFT_NAME(hkquantitytypeidentifierwalkingsteplength) = 87,
|
|
120
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGASYMMETRYPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingasymmetrypercentage) = 88,
|
|
121
|
+
HKQUANTITYTYPEIDENTIFIERWALKINGDOUBLESUPPORTPERCENTAGE SWIFT_NAME(hkquantitytypeidentifierwalkingdoublesupportpercentage) = 89,
|
|
122
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRASCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairascentspeed) = 90,
|
|
123
|
+
HKQUANTITYTYPEIDENTIFIERSTAIRDESCENTSPEED SWIFT_NAME(hkquantitytypeidentifierstairdescentspeed) = 91,
|
|
124
|
+
HKQUANTITYTYPEIDENTIFIERUVEXPOSURE SWIFT_NAME(hkquantitytypeidentifieruvexposure) = 92,
|
|
125
|
+
HKQUANTITYTYPEIDENTIFIERAPPLEMOVETIME SWIFT_NAME(hkquantitytypeidentifierapplemovetime) = 93,
|
|
126
|
+
HKQUANTITYTYPEIDENTIFIERNUMBEROFALCOHOLICBEVERAGES SWIFT_NAME(hkquantitytypeidentifiernumberofalcoholicbeverages) = 94,
|
|
127
|
+
HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH SWIFT_NAME(hkquantitytypeidentifierunderwaterdepth) = 95,
|
|
128
|
+
HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierwatertemperature) = 96,
|
|
129
|
+
HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE SWIFT_NAME(hkquantitytypeidentifierapplesleepingwristtemperature) = 97,
|
|
130
|
+
HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES SWIFT_NAME(hkquantitytypeidentifierapplesleepingbreathingdisturbances) = 98,
|
|
131
|
+
HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT SWIFT_NAME(hkquantitytypeidentifiertimeindaylight) = 99,
|
|
132
|
+
HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT SWIFT_NAME(hkquantitytypeidentifierphysicaleffort) = 100,
|
|
133
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED SWIFT_NAME(hkquantitytypeidentifiercyclingspeed) = 101,
|
|
134
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingpower) = 102,
|
|
135
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGFUNCTIONALTHRESHOLDPOWER SWIFT_NAME(hkquantitytypeidentifiercyclingfunctionalthresholdpower) = 103,
|
|
136
|
+
HKQUANTITYTYPEIDENTIFIERCYCLINGCADENCE SWIFT_NAME(hkquantitytypeidentifiercyclingcadence) = 104,
|
|
137
|
+
HKQUANTITYTYPEIDENTIFIERENVIRONMENTALSOUNDREDUCTION SWIFT_NAME(hkquantitytypeidentifierenvironmentalsoundreduction) = 105,
|
|
138
|
+
HKQUANTITYTYPEIDENTIFIERHEARTRATERECOVERYONEMINUTE SWIFT_NAME(hkquantitytypeidentifierheartraterecoveryoneminute) = 106,
|
|
139
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGGROUNDCONTACTTIME SWIFT_NAME(hkquantitytypeidentifierrunninggroundcontacttime) = 107,
|
|
140
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSTRIDELENGTH SWIFT_NAME(hkquantitytypeidentifierrunningstridelength) = 108,
|
|
141
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGPOWER SWIFT_NAME(hkquantitytypeidentifierrunningpower) = 109,
|
|
142
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGVERTICALOSCILLATION SWIFT_NAME(hkquantitytypeidentifierrunningverticaloscillation) = 110,
|
|
143
|
+
HKQUANTITYTYPEIDENTIFIERRUNNINGSPEED SWIFT_NAME(hkquantitytypeidentifierrunningspeed) = 111,
|
|
144
|
+
HKQUANTITYTYPEIDENTIFIERCROSSCOUNTRYSKIINGSPEED SWIFT_NAME(hkquantitytypeidentifiercrosscountryskiingspeed) = 112,
|
|
145
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCECROSSCOUNTRYSKIING SWIFT_NAME(hkquantitytypeidentifierdistancecrosscountryskiing) = 113,
|
|
146
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEPADDLESPORTS SWIFT_NAME(hkquantitytypeidentifierdistancepaddlesports) = 114,
|
|
147
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCEROWING SWIFT_NAME(hkquantitytypeidentifierdistancerowing) = 115,
|
|
148
|
+
HKQUANTITYTYPEIDENTIFIERDISTANCESKATINGSPORTS SWIFT_NAME(hkquantitytypeidentifierdistanceskatingsports) = 116,
|
|
149
|
+
HKQUANTITYTYPEIDENTIFIERESTIMATEDWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierestimatedworkouteffortscore) = 117,
|
|
150
|
+
HKQUANTITYTYPEIDENTIFIERPADDLESPORTSSPEED SWIFT_NAME(hkquantitytypeidentifierpaddlesportsspeed) = 118,
|
|
151
|
+
HKQUANTITYTYPEIDENTIFIERROWINGSPEED SWIFT_NAME(hkquantitytypeidentifierrowingspeed) = 119,
|
|
152
|
+
HKQUANTITYTYPEIDENTIFIERWORKOUTEFFORTSCORE SWIFT_NAME(hkquantitytypeidentifierworkouteffortscore) = 120,
|
|
151
153
|
} CLOSED_ENUM;
|
|
152
154
|
|
|
153
155
|
} // namespace margelo::nitro::healthkit
|
|
@@ -195,6 +197,7 @@ namespace margelo::nitro {
|
|
|
195
197
|
case hashString("HKQuantityTypeIdentifierOxygenSaturation"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION;
|
|
196
198
|
case hashString("HKQuantityTypeIdentifierPeripheralPerfusionIndex"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX;
|
|
197
199
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE;
|
|
200
|
+
case hashString("HKQuantityTypeIdentifierBloodKetones"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODKETONES;
|
|
198
201
|
case hashString("HKQuantityTypeIdentifierNumberOfTimesFallen"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN;
|
|
199
202
|
case hashString("HKQuantityTypeIdentifierElectrodermalActivity"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY;
|
|
200
203
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE;
|
|
@@ -257,6 +260,7 @@ namespace margelo::nitro {
|
|
|
257
260
|
case hashString("HKQuantityTypeIdentifierUnderwaterDepth"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH;
|
|
258
261
|
case hashString("HKQuantityTypeIdentifierWaterTemperature"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE;
|
|
259
262
|
case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE;
|
|
263
|
+
case hashString("HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES;
|
|
260
264
|
case hashString("HKQuantityTypeIdentifierTimeInDaylight"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT;
|
|
261
265
|
case hashString("HKQuantityTypeIdentifierPhysicalEffort"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT;
|
|
262
266
|
case hashString("HKQuantityTypeIdentifierCyclingSpeed"): return margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED;
|
|
@@ -320,6 +324,7 @@ namespace margelo::nitro {
|
|
|
320
324
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIEROXYGENSATURATION: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierOxygenSaturation");
|
|
321
325
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPERIPHERALPERFUSIONINDEX: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierPeripheralPerfusionIndex");
|
|
322
326
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODGLUCOSE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodGlucose");
|
|
327
|
+
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERBLOODKETONES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierBloodKetones");
|
|
323
328
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERNUMBEROFTIMESFALLEN: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierNumberOfTimesFallen");
|
|
324
329
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERELECTRODERMALACTIVITY: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierElectrodermalActivity");
|
|
325
330
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERINHALERUSAGE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierInhalerUsage");
|
|
@@ -382,6 +387,7 @@ namespace margelo::nitro {
|
|
|
382
387
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERUNDERWATERDEPTH: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierUnderwaterDepth");
|
|
383
388
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERWATERTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierWaterTemperature");
|
|
384
389
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGWRISTTEMPERATURE: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleSleepingWristTemperature");
|
|
390
|
+
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERAPPLESLEEPINGBREATHINGDISTURBANCES: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances");
|
|
385
391
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERTIMEINDAYLIGHT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierTimeInDaylight");
|
|
386
392
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERPHYSICALEFFORT: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierPhysicalEffort");
|
|
387
393
|
case margelo::nitro::healthkit::QuantityTypeIdentifier::HKQUANTITYTYPEIDENTIFIERCYCLINGSPEED: return JSIConverter<std::string>::toJSI(runtime, "HKQuantityTypeIdentifierCyclingSpeed");
|
|
@@ -450,6 +456,7 @@ namespace margelo::nitro {
|
|
|
450
456
|
case hashString("HKQuantityTypeIdentifierOxygenSaturation"):
|
|
451
457
|
case hashString("HKQuantityTypeIdentifierPeripheralPerfusionIndex"):
|
|
452
458
|
case hashString("HKQuantityTypeIdentifierBloodGlucose"):
|
|
459
|
+
case hashString("HKQuantityTypeIdentifierBloodKetones"):
|
|
453
460
|
case hashString("HKQuantityTypeIdentifierNumberOfTimesFallen"):
|
|
454
461
|
case hashString("HKQuantityTypeIdentifierElectrodermalActivity"):
|
|
455
462
|
case hashString("HKQuantityTypeIdentifierInhalerUsage"):
|
|
@@ -512,6 +519,7 @@ namespace margelo::nitro {
|
|
|
512
519
|
case hashString("HKQuantityTypeIdentifierUnderwaterDepth"):
|
|
513
520
|
case hashString("HKQuantityTypeIdentifierWaterTemperature"):
|
|
514
521
|
case hashString("HKQuantityTypeIdentifierAppleSleepingWristTemperature"):
|
|
522
|
+
case hashString("HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances"):
|
|
515
523
|
case hashString("HKQuantityTypeIdentifierTimeInDaylight"):
|
|
516
524
|
case hashString("HKQuantityTypeIdentifierPhysicalEffort"):
|
|
517
525
|
case hashString("HKQuantityTypeIdentifierCyclingSpeed"):
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QueryCorrelationSamplesWithAnchorResponse.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 `CorrelationSample` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct CorrelationSample; }
|
|
@@ -43,7 +38,7 @@ namespace margelo::nitro::healthkit {
|
|
|
43
38
|
/**
|
|
44
39
|
* A struct which can be represented as a JavaScript object (QueryCorrelationSamplesWithAnchorResponse).
|
|
45
40
|
*/
|
|
46
|
-
struct QueryCorrelationSamplesWithAnchorResponse
|
|
41
|
+
struct QueryCorrelationSamplesWithAnchorResponse {
|
|
47
42
|
public:
|
|
48
43
|
std::vector<CorrelationSample> correlations SWIFT_PRIVATE;
|
|
49
44
|
std::vector<DeletedSample> deletedSamples SWIFT_PRIVATE;
|
|
@@ -52,9 +47,6 @@ namespace margelo::nitro::healthkit {
|
|
|
52
47
|
public:
|
|
53
48
|
QueryCorrelationSamplesWithAnchorResponse() = default;
|
|
54
49
|
explicit QueryCorrelationSamplesWithAnchorResponse(std::vector<CorrelationSample> correlations, std::vector<DeletedSample> deletedSamples, std::string newAnchor): correlations(correlations), deletedSamples(deletedSamples), newAnchor(newAnchor) {}
|
|
55
|
-
|
|
56
|
-
public:
|
|
57
|
-
friend bool operator==(const QueryCorrelationSamplesWithAnchorResponse& lhs, const QueryCorrelationSamplesWithAnchorResponse& 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::QueryCorrelationSamplesWithAnchorResponse fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
68
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
69
61
|
return margelo::nitro::healthkit::QueryCorrelationSamplesWithAnchorResponse(
|
|
70
|
-
JSIConverter<std::vector<margelo::nitro::healthkit::CorrelationSample>>::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::CorrelationSample>>::fromJSI(runtime, obj.getProperty(runtime, "correlations")),
|
|
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::QueryCorrelationSamplesWithAnchorResponse& arg) {
|
|
76
68
|
jsi::Object obj(runtime);
|
|
77
|
-
obj.setProperty(runtime,
|
|
78
|
-
obj.setProperty(runtime,
|
|
79
|
-
obj.setProperty(runtime,
|
|
69
|
+
obj.setProperty(runtime, "correlations", JSIConverter<std::vector<margelo::nitro::healthkit::CorrelationSample>>::toJSI(runtime, arg.correlations));
|
|
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::CorrelationSample>>::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::CorrelationSample>>::canConvert(runtime, obj.getProperty(runtime, "correlations"))) 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
|
/// QueryOptionsWithAnchor.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
-
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
-
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
-
#else
|
|
28
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
-
#endif
|
|
30
25
|
|
|
31
26
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
@@ -40,7 +35,7 @@ namespace margelo::nitro::healthkit {
|
|
|
40
35
|
/**
|
|
41
36
|
* A struct which can be represented as a JavaScript object (QueryOptionsWithAnchor).
|
|
42
37
|
*/
|
|
43
|
-
struct QueryOptionsWithAnchor
|
|
38
|
+
struct QueryOptionsWithAnchor {
|
|
44
39
|
public:
|
|
45
40
|
std::optional<std::string> anchor SWIFT_PRIVATE;
|
|
46
41
|
std::optional<FilterForSamples> filter SWIFT_PRIVATE;
|
|
@@ -49,9 +44,6 @@ namespace margelo::nitro::healthkit {
|
|
|
49
44
|
public:
|
|
50
45
|
QueryOptionsWithAnchor() = default;
|
|
51
46
|
explicit QueryOptionsWithAnchor(std::optional<std::string> anchor, std::optional<FilterForSamples> filter, double limit): anchor(anchor), filter(filter), limit(limit) {}
|
|
52
|
-
|
|
53
|
-
public:
|
|
54
|
-
friend bool operator==(const QueryOptionsWithAnchor& lhs, const QueryOptionsWithAnchor& rhs) = default;
|
|
55
47
|
};
|
|
56
48
|
|
|
57
49
|
} // namespace margelo::nitro::healthkit
|
|
@@ -64,16 +56,16 @@ namespace margelo::nitro {
|
|
|
64
56
|
static inline margelo::nitro::healthkit::QueryOptionsWithAnchor fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
65
57
|
jsi::Object obj = arg.asObject(runtime);
|
|
66
58
|
return margelo::nitro::healthkit::QueryOptionsWithAnchor(
|
|
67
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
68
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
69
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
59
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
|
|
60
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
|
|
61
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit"))
|
|
70
62
|
);
|
|
71
63
|
}
|
|
72
64
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QueryOptionsWithAnchor& arg) {
|
|
73
65
|
jsi::Object obj(runtime);
|
|
74
|
-
obj.setProperty(runtime,
|
|
75
|
-
obj.setProperty(runtime,
|
|
76
|
-
obj.setProperty(runtime,
|
|
66
|
+
obj.setProperty(runtime, "anchor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
|
|
67
|
+
obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
|
|
68
|
+
obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
|
|
77
69
|
return obj;
|
|
78
70
|
}
|
|
79
71
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -84,9 +76,9 @@ namespace margelo::nitro {
|
|
|
84
76
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
85
77
|
return false;
|
|
86
78
|
}
|
|
87
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
88
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime,
|
|
89
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
79
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
|
|
80
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
|
|
81
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
|
|
90
82
|
return true;
|
|
91
83
|
}
|
|
92
84
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QueryOptionsWithAnchorAndUnit.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
-
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
-
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
-
#else
|
|
28
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
-
#endif
|
|
30
25
|
|
|
31
26
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
@@ -40,7 +35,7 @@ namespace margelo::nitro::healthkit {
|
|
|
40
35
|
/**
|
|
41
36
|
* A struct which can be represented as a JavaScript object (QueryOptionsWithAnchorAndUnit).
|
|
42
37
|
*/
|
|
43
|
-
struct QueryOptionsWithAnchorAndUnit
|
|
38
|
+
struct QueryOptionsWithAnchorAndUnit {
|
|
44
39
|
public:
|
|
45
40
|
std::optional<std::string> unit SWIFT_PRIVATE;
|
|
46
41
|
std::optional<std::string> anchor SWIFT_PRIVATE;
|
|
@@ -50,9 +45,6 @@ namespace margelo::nitro::healthkit {
|
|
|
50
45
|
public:
|
|
51
46
|
QueryOptionsWithAnchorAndUnit() = default;
|
|
52
47
|
explicit QueryOptionsWithAnchorAndUnit(std::optional<std::string> unit, std::optional<std::string> anchor, std::optional<FilterForSamples> filter, double limit): unit(unit), anchor(anchor), filter(filter), limit(limit) {}
|
|
53
|
-
|
|
54
|
-
public:
|
|
55
|
-
friend bool operator==(const QueryOptionsWithAnchorAndUnit& lhs, const QueryOptionsWithAnchorAndUnit& rhs) = default;
|
|
56
48
|
};
|
|
57
49
|
|
|
58
50
|
} // namespace margelo::nitro::healthkit
|
|
@@ -65,18 +57,18 @@ namespace margelo::nitro {
|
|
|
65
57
|
static inline margelo::nitro::healthkit::QueryOptionsWithAnchorAndUnit fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
66
58
|
jsi::Object obj = arg.asObject(runtime);
|
|
67
59
|
return margelo::nitro::healthkit::QueryOptionsWithAnchorAndUnit(
|
|
68
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
69
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
70
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
71
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
60
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "unit")),
|
|
61
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "anchor")),
|
|
62
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
|
|
63
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit"))
|
|
72
64
|
);
|
|
73
65
|
}
|
|
74
66
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QueryOptionsWithAnchorAndUnit& arg) {
|
|
75
67
|
jsi::Object obj(runtime);
|
|
76
|
-
obj.setProperty(runtime,
|
|
77
|
-
obj.setProperty(runtime,
|
|
78
|
-
obj.setProperty(runtime,
|
|
79
|
-
obj.setProperty(runtime,
|
|
68
|
+
obj.setProperty(runtime, "unit", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.unit));
|
|
69
|
+
obj.setProperty(runtime, "anchor", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.anchor));
|
|
70
|
+
obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
|
|
71
|
+
obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
|
|
80
72
|
return obj;
|
|
81
73
|
}
|
|
82
74
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -87,10 +79,10 @@ namespace margelo::nitro {
|
|
|
87
79
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
88
80
|
return false;
|
|
89
81
|
}
|
|
90
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
91
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime,
|
|
92
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime,
|
|
93
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
82
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "unit"))) return false;
|
|
83
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "anchor"))) return false;
|
|
84
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
|
|
85
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
|
|
94
86
|
return true;
|
|
95
87
|
}
|
|
96
88
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QueryOptionsWithSortOrder.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,11 +22,6 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
-
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
-
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
-
#else
|
|
28
|
-
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
-
#endif
|
|
30
25
|
|
|
31
26
|
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
32
27
|
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
@@ -39,7 +34,7 @@ namespace margelo::nitro::healthkit {
|
|
|
39
34
|
/**
|
|
40
35
|
* A struct which can be represented as a JavaScript object (QueryOptionsWithSortOrder).
|
|
41
36
|
*/
|
|
42
|
-
struct QueryOptionsWithSortOrder
|
|
37
|
+
struct QueryOptionsWithSortOrder {
|
|
43
38
|
public:
|
|
44
39
|
std::optional<bool> ascending SWIFT_PRIVATE;
|
|
45
40
|
std::optional<FilterForSamples> filter SWIFT_PRIVATE;
|
|
@@ -48,9 +43,6 @@ namespace margelo::nitro::healthkit {
|
|
|
48
43
|
public:
|
|
49
44
|
QueryOptionsWithSortOrder() = default;
|
|
50
45
|
explicit QueryOptionsWithSortOrder(std::optional<bool> ascending, std::optional<FilterForSamples> filter, double limit): ascending(ascending), filter(filter), limit(limit) {}
|
|
51
|
-
|
|
52
|
-
public:
|
|
53
|
-
friend bool operator==(const QueryOptionsWithSortOrder& lhs, const QueryOptionsWithSortOrder& rhs) = default;
|
|
54
46
|
};
|
|
55
47
|
|
|
56
48
|
} // namespace margelo::nitro::healthkit
|
|
@@ -63,16 +55,16 @@ namespace margelo::nitro {
|
|
|
63
55
|
static inline margelo::nitro::healthkit::QueryOptionsWithSortOrder fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
64
56
|
jsi::Object obj = arg.asObject(runtime);
|
|
65
57
|
return margelo::nitro::healthkit::QueryOptionsWithSortOrder(
|
|
66
|
-
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
67
|
-
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime,
|
|
68
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime,
|
|
58
|
+
JSIConverter<std::optional<bool>>::fromJSI(runtime, obj.getProperty(runtime, "ascending")),
|
|
59
|
+
JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::fromJSI(runtime, obj.getProperty(runtime, "filter")),
|
|
60
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "limit"))
|
|
69
61
|
);
|
|
70
62
|
}
|
|
71
63
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::QueryOptionsWithSortOrder& arg) {
|
|
72
64
|
jsi::Object obj(runtime);
|
|
73
|
-
obj.setProperty(runtime,
|
|
74
|
-
obj.setProperty(runtime,
|
|
75
|
-
obj.setProperty(runtime,
|
|
65
|
+
obj.setProperty(runtime, "ascending", JSIConverter<std::optional<bool>>::toJSI(runtime, arg.ascending));
|
|
66
|
+
obj.setProperty(runtime, "filter", JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::toJSI(runtime, arg.filter));
|
|
67
|
+
obj.setProperty(runtime, "limit", JSIConverter<double>::toJSI(runtime, arg.limit));
|
|
76
68
|
return obj;
|
|
77
69
|
}
|
|
78
70
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -83,9 +75,9 @@ namespace margelo::nitro {
|
|
|
83
75
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
84
76
|
return false;
|
|
85
77
|
}
|
|
86
|
-
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime,
|
|
87
|
-
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime,
|
|
88
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime,
|
|
78
|
+
if (!JSIConverter<std::optional<bool>>::canConvert(runtime, obj.getProperty(runtime, "ascending"))) return false;
|
|
79
|
+
if (!JSIConverter<std::optional<margelo::nitro::healthkit::FilterForSamples>>::canConvert(runtime, obj.getProperty(runtime, "filter"))) return false;
|
|
80
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "limit"))) return false;
|
|
89
81
|
return true;
|
|
90
82
|
}
|
|
91
83
|
};
|