@kingstinct/react-native-healthkit 13.1.0 → 13.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +4 -1
- package/ios/QuantityTypeModule.swift +2 -2
- package/ios/module.modulemap +5 -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 +45 -71
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/swift/AggregationStyle.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthDataTypes.swift +19 -56
- 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 +166 -445
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +13 -56
- package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +7 -38
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +187 -491
- package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/DateFilter.swift +37 -86
- package/nitrogen/generated/ios/swift/DeletedSample.swift +12 -31
- package/nitrogen/generated/ios/swift/Device.swift +73 -170
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +16 -53
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +23 -66
- 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 +195 -508
- package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +7 -38
- package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +7 -26
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +76 -221
- package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +49 -140
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +67 -221
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +40 -140
- package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_double.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift +2 -3
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift +2 -3
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift +2 -3
- 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 +5 -18
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +164 -443
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +7 -38
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +5 -18
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +1 -1
- package/nitrogen/generated/ios/swift/IntervalComponents.swift +46 -72
- package/nitrogen/generated/ios/swift/LocationForSaving.swift +17 -66
- package/nitrogen/generated/ios/swift/MedicationConcept.swift +9 -40
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +197 -510
- 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 +7 -38
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +12 -31
- package/nitrogen/generated/ios/swift/PerObjectTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +32 -74
- package/nitrogen/generated/ios/swift/Quantity.swift +5 -18
- package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +5 -18
- package/nitrogen/generated/ios/swift/QuantitySample.swift +168 -453
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +22 -77
- package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +7 -38
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +7 -38
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +14 -45
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +23 -66
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +14 -45
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +23 -66
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +39 -163
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +39 -157
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +11 -45
- package/nitrogen/generated/ios/swift/RelatedCoding.swift +14 -39
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleType.swift +9 -34
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +1 -1
- package/nitrogen/generated/ios/swift/Source.swift +5 -18
- package/nitrogen/generated/ios/swift/SourceRevision.swift +27 -67
- 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 +172 -481
- package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +7 -38
- 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 +12 -37
- package/nitrogen/generated/ios/swift/UpdateFrequency.swift +1 -1
- package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +16 -47
- 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 +9 -34
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +5 -24
- package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +5 -18
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +7 -26
- package/nitrogen/generated/ios/swift/WorkoutEventType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutPlan.swift +5 -18
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +14 -45
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +14 -45
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +21 -51
- package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +28 -88
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +203 -590
- package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutTotals.swift +19 -30
- package/nitrogen/generated/shared/c++/AggregationStyle.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthDataTypes.hpp +16 -8
- 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 +100 -92
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +28 -20
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +1 -1
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +103 -95
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/DateFilter.hpp +22 -14
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +16 -8
- package/nitrogen/generated/shared/c++/Device.hpp +34 -26
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +22 -14
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +22 -14
- 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 +112 -104
- package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +19 -11
- package/nitrogen/generated/shared/c++/FilterForSamples.hpp +37 -29
- package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +28 -20
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +40 -32
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +31 -23
- 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 +16 -8
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +97 -89
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +16 -8
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +1 -1
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +25 -17
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +34 -26
- package/nitrogen/generated/shared/c++/MedicationConcept.hpp +22 -14
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +115 -107
- 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 +19 -11
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +16 -8
- package/nitrogen/generated/shared/c++/PerObjectTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +19 -11
- package/nitrogen/generated/shared/c++/Quantity.hpp +16 -8
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +16 -8
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +103 -95
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +31 -23
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +19 -11
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +22 -14
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +19 -11
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +22 -14
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +40 -32
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +40 -32
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +19 -11
- package/nitrogen/generated/shared/c++/RelatedCoding.hpp +19 -11
- package/nitrogen/generated/shared/c++/SampleType.hpp +22 -14
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +1 -1
- package/nitrogen/generated/shared/c++/Source.hpp +16 -8
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +22 -14
- 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 +109 -101
- package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +19 -11
- 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 +16 -8
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +1 -1
- package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +22 -14
- 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 +22 -14
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +16 -8
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +16 -8
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +19 -11
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +16 -8
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +19 -11
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +19 -11
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +19 -11
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +40 -32
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +124 -116
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +16 -8
- package/package.json +4 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridStateOfMindModuleSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridStateOfMindModuleSpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridWorkoutProxySpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridWorkoutProxySpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridWorkoutsModuleSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridWorkoutsModuleSpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// IdentifierWithUnit.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::healthkit {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (IdentifierWithUnit).
|
|
34
39
|
*/
|
|
35
|
-
struct IdentifierWithUnit {
|
|
40
|
+
struct IdentifierWithUnit final {
|
|
36
41
|
public:
|
|
37
42
|
std::string typeIdentifier SWIFT_PRIVATE;
|
|
38
43
|
std::string unit SWIFT_PRIVATE;
|
|
@@ -40,6 +45,9 @@ namespace margelo::nitro::healthkit {
|
|
|
40
45
|
public:
|
|
41
46
|
IdentifierWithUnit() = default;
|
|
42
47
|
explicit IdentifierWithUnit(std::string typeIdentifier, std::string unit): typeIdentifier(typeIdentifier), unit(unit) {}
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
friend bool operator==(const IdentifierWithUnit& lhs, const IdentifierWithUnit& rhs) = default;
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
} // namespace margelo::nitro::healthkit
|
|
@@ -52,14 +60,14 @@ namespace margelo::nitro {
|
|
|
52
60
|
static inline margelo::nitro::healthkit::IdentifierWithUnit fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
53
61
|
jsi::Object obj = arg.asObject(runtime);
|
|
54
62
|
return margelo::nitro::healthkit::IdentifierWithUnit(
|
|
55
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "typeIdentifier")),
|
|
56
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "unit"))
|
|
63
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "typeIdentifier"))),
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unit")))
|
|
57
65
|
);
|
|
58
66
|
}
|
|
59
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::IdentifierWithUnit& arg) {
|
|
60
68
|
jsi::Object obj(runtime);
|
|
61
|
-
obj.setProperty(runtime, "typeIdentifier", JSIConverter<std::string>::toJSI(runtime, arg.typeIdentifier));
|
|
62
|
-
obj.setProperty(runtime, "unit", JSIConverter<std::string>::toJSI(runtime, arg.unit));
|
|
69
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "typeIdentifier"), JSIConverter<std::string>::toJSI(runtime, arg.typeIdentifier));
|
|
70
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "unit"), JSIConverter<std::string>::toJSI(runtime, arg.unit));
|
|
63
71
|
return obj;
|
|
64
72
|
}
|
|
65
73
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -70,8 +78,8 @@ namespace margelo::nitro {
|
|
|
70
78
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
79
|
return false;
|
|
72
80
|
}
|
|
73
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "typeIdentifier"))) return false;
|
|
74
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "unit"))) return false;
|
|
81
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "typeIdentifier")))) return false;
|
|
82
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "unit")))) return false;
|
|
75
83
|
return true;
|
|
76
84
|
}
|
|
77
85
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// IntervalComponents.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::healthkit {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (IntervalComponents).
|
|
34
39
|
*/
|
|
35
|
-
struct IntervalComponents {
|
|
40
|
+
struct IntervalComponents final {
|
|
36
41
|
public:
|
|
37
42
|
std::optional<double> minute SWIFT_PRIVATE;
|
|
38
43
|
std::optional<double> hour SWIFT_PRIVATE;
|
|
@@ -43,6 +48,9 @@ namespace margelo::nitro::healthkit {
|
|
|
43
48
|
public:
|
|
44
49
|
IntervalComponents() = default;
|
|
45
50
|
explicit IntervalComponents(std::optional<double> minute, std::optional<double> hour, std::optional<double> day, std::optional<double> month, std::optional<double> year): minute(minute), hour(hour), day(day), month(month), year(year) {}
|
|
51
|
+
|
|
52
|
+
public:
|
|
53
|
+
friend bool operator==(const IntervalComponents& lhs, const IntervalComponents& rhs) = default;
|
|
46
54
|
};
|
|
47
55
|
|
|
48
56
|
} // namespace margelo::nitro::healthkit
|
|
@@ -55,20 +63,20 @@ namespace margelo::nitro {
|
|
|
55
63
|
static inline margelo::nitro::healthkit::IntervalComponents fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
56
64
|
jsi::Object obj = arg.asObject(runtime);
|
|
57
65
|
return margelo::nitro::healthkit::IntervalComponents(
|
|
58
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "minute")),
|
|
59
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "hour")),
|
|
60
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "day")),
|
|
61
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "month")),
|
|
62
|
-
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, "year"))
|
|
66
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minute"))),
|
|
67
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hour"))),
|
|
68
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "day"))),
|
|
69
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "month"))),
|
|
70
|
+
JSIConverter<std::optional<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "year")))
|
|
63
71
|
);
|
|
64
72
|
}
|
|
65
73
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::IntervalComponents& arg) {
|
|
66
74
|
jsi::Object obj(runtime);
|
|
67
|
-
obj.setProperty(runtime, "minute", JSIConverter<std::optional<double>>::toJSI(runtime, arg.minute));
|
|
68
|
-
obj.setProperty(runtime, "hour", JSIConverter<std::optional<double>>::toJSI(runtime, arg.hour));
|
|
69
|
-
obj.setProperty(runtime, "day", JSIConverter<std::optional<double>>::toJSI(runtime, arg.day));
|
|
70
|
-
obj.setProperty(runtime, "month", JSIConverter<std::optional<double>>::toJSI(runtime, arg.month));
|
|
71
|
-
obj.setProperty(runtime, "year", JSIConverter<std::optional<double>>::toJSI(runtime, arg.year));
|
|
75
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "minute"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.minute));
|
|
76
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "hour"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.hour));
|
|
77
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "day"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.day));
|
|
78
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "month"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.month));
|
|
79
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "year"), JSIConverter<std::optional<double>>::toJSI(runtime, arg.year));
|
|
72
80
|
return obj;
|
|
73
81
|
}
|
|
74
82
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -79,11 +87,11 @@ namespace margelo::nitro {
|
|
|
79
87
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
80
88
|
return false;
|
|
81
89
|
}
|
|
82
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "minute"))) return false;
|
|
83
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "hour"))) return false;
|
|
84
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "day"))) return false;
|
|
85
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "month"))) return false;
|
|
86
|
-
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, "year"))) return false;
|
|
90
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minute")))) return false;
|
|
91
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "hour")))) return false;
|
|
92
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "day")))) return false;
|
|
93
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "month")))) return false;
|
|
94
|
+
if (!JSIConverter<std::optional<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "year")))) return false;
|
|
87
95
|
return true;
|
|
88
96
|
}
|
|
89
97
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// LocationForSaving.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::healthkit {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (LocationForSaving).
|
|
34
39
|
*/
|
|
35
|
-
struct LocationForSaving {
|
|
40
|
+
struct LocationForSaving final {
|
|
36
41
|
public:
|
|
37
42
|
double altitude SWIFT_PRIVATE;
|
|
38
43
|
double course SWIFT_PRIVATE;
|
|
@@ -46,6 +51,9 @@ namespace margelo::nitro::healthkit {
|
|
|
46
51
|
public:
|
|
47
52
|
LocationForSaving() = default;
|
|
48
53
|
explicit LocationForSaving(double altitude, double course, std::chrono::system_clock::time_point date, double horizontalAccuracy, double latitude, double longitude, double speed, double verticalAccuracy): altitude(altitude), course(course), date(date), horizontalAccuracy(horizontalAccuracy), latitude(latitude), longitude(longitude), speed(speed), verticalAccuracy(verticalAccuracy) {}
|
|
54
|
+
|
|
55
|
+
public:
|
|
56
|
+
friend bool operator==(const LocationForSaving& lhs, const LocationForSaving& rhs) = default;
|
|
49
57
|
};
|
|
50
58
|
|
|
51
59
|
} // namespace margelo::nitro::healthkit
|
|
@@ -58,26 +66,26 @@ namespace margelo::nitro {
|
|
|
58
66
|
static inline margelo::nitro::healthkit::LocationForSaving fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
59
67
|
jsi::Object obj = arg.asObject(runtime);
|
|
60
68
|
return margelo::nitro::healthkit::LocationForSaving(
|
|
61
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "altitude")),
|
|
62
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "course")),
|
|
63
|
-
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, "date")),
|
|
64
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "horizontalAccuracy")),
|
|
65
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "latitude")),
|
|
66
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "longitude")),
|
|
67
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "speed")),
|
|
68
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "verticalAccuracy"))
|
|
69
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "altitude"))),
|
|
70
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "course"))),
|
|
71
|
+
JSIConverter<std::chrono::system_clock::time_point>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "date"))),
|
|
72
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "horizontalAccuracy"))),
|
|
73
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latitude"))),
|
|
74
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "longitude"))),
|
|
75
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "speed"))),
|
|
76
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "verticalAccuracy")))
|
|
69
77
|
);
|
|
70
78
|
}
|
|
71
79
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::LocationForSaving& arg) {
|
|
72
80
|
jsi::Object obj(runtime);
|
|
73
|
-
obj.setProperty(runtime, "altitude", JSIConverter<double>::toJSI(runtime, arg.altitude));
|
|
74
|
-
obj.setProperty(runtime, "course", JSIConverter<double>::toJSI(runtime, arg.course));
|
|
75
|
-
obj.setProperty(runtime, "date", JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.date));
|
|
76
|
-
obj.setProperty(runtime, "horizontalAccuracy", JSIConverter<double>::toJSI(runtime, arg.horizontalAccuracy));
|
|
77
|
-
obj.setProperty(runtime, "latitude", JSIConverter<double>::toJSI(runtime, arg.latitude));
|
|
78
|
-
obj.setProperty(runtime, "longitude", JSIConverter<double>::toJSI(runtime, arg.longitude));
|
|
79
|
-
obj.setProperty(runtime, "speed", JSIConverter<double>::toJSI(runtime, arg.speed));
|
|
80
|
-
obj.setProperty(runtime, "verticalAccuracy", JSIConverter<double>::toJSI(runtime, arg.verticalAccuracy));
|
|
81
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "altitude"), JSIConverter<double>::toJSI(runtime, arg.altitude));
|
|
82
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "course"), JSIConverter<double>::toJSI(runtime, arg.course));
|
|
83
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "date"), JSIConverter<std::chrono::system_clock::time_point>::toJSI(runtime, arg.date));
|
|
84
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "horizontalAccuracy"), JSIConverter<double>::toJSI(runtime, arg.horizontalAccuracy));
|
|
85
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "latitude"), JSIConverter<double>::toJSI(runtime, arg.latitude));
|
|
86
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "longitude"), JSIConverter<double>::toJSI(runtime, arg.longitude));
|
|
87
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "speed"), JSIConverter<double>::toJSI(runtime, arg.speed));
|
|
88
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "verticalAccuracy"), JSIConverter<double>::toJSI(runtime, arg.verticalAccuracy));
|
|
81
89
|
return obj;
|
|
82
90
|
}
|
|
83
91
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -88,14 +96,14 @@ namespace margelo::nitro {
|
|
|
88
96
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
89
97
|
return false;
|
|
90
98
|
}
|
|
91
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "altitude"))) return false;
|
|
92
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "course"))) return false;
|
|
93
|
-
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, "date"))) return false;
|
|
94
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "horizontalAccuracy"))) return false;
|
|
95
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "latitude"))) return false;
|
|
96
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "longitude"))) return false;
|
|
97
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "speed"))) return false;
|
|
98
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "verticalAccuracy"))) return false;
|
|
99
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "altitude")))) return false;
|
|
100
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "course")))) return false;
|
|
101
|
+
if (!JSIConverter<std::chrono::system_clock::time_point>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "date")))) return false;
|
|
102
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "horizontalAccuracy")))) return false;
|
|
103
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "latitude")))) return false;
|
|
104
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "longitude")))) return false;
|
|
105
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "speed")))) return false;
|
|
106
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "verticalAccuracy")))) return false;
|
|
99
107
|
return true;
|
|
100
108
|
}
|
|
101
109
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// MedicationConcept.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
// Forward declaration of `GeneralForm` to properly resolve imports.
|
|
27
32
|
namespace margelo::nitro::healthkit { enum class GeneralForm; }
|
|
@@ -38,7 +43,7 @@ namespace margelo::nitro::healthkit {
|
|
|
38
43
|
/**
|
|
39
44
|
* A struct which can be represented as a JavaScript object (MedicationConcept).
|
|
40
45
|
*/
|
|
41
|
-
struct MedicationConcept {
|
|
46
|
+
struct MedicationConcept final {
|
|
42
47
|
public:
|
|
43
48
|
std::string identifier SWIFT_PRIVATE;
|
|
44
49
|
std::string displayText SWIFT_PRIVATE;
|
|
@@ -48,6 +53,9 @@ namespace margelo::nitro::healthkit {
|
|
|
48
53
|
public:
|
|
49
54
|
MedicationConcept() = default;
|
|
50
55
|
explicit MedicationConcept(std::string identifier, std::string displayText, GeneralForm generalForm, std::vector<RelatedCoding> relatedCodings): identifier(identifier), displayText(displayText), generalForm(generalForm), relatedCodings(relatedCodings) {}
|
|
56
|
+
|
|
57
|
+
public:
|
|
58
|
+
friend bool operator==(const MedicationConcept& lhs, const MedicationConcept& rhs) = default;
|
|
51
59
|
};
|
|
52
60
|
|
|
53
61
|
} // namespace margelo::nitro::healthkit
|
|
@@ -60,18 +68,18 @@ namespace margelo::nitro {
|
|
|
60
68
|
static inline margelo::nitro::healthkit::MedicationConcept fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
61
69
|
jsi::Object obj = arg.asObject(runtime);
|
|
62
70
|
return margelo::nitro::healthkit::MedicationConcept(
|
|
63
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "identifier")),
|
|
64
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "displayText")),
|
|
65
|
-
JSIConverter<margelo::nitro::healthkit::GeneralForm>::fromJSI(runtime, obj.getProperty(runtime, "generalForm")),
|
|
66
|
-
JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::fromJSI(runtime, obj.getProperty(runtime, "relatedCodings"))
|
|
71
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "identifier"))),
|
|
72
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "displayText"))),
|
|
73
|
+
JSIConverter<margelo::nitro::healthkit::GeneralForm>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "generalForm"))),
|
|
74
|
+
JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "relatedCodings")))
|
|
67
75
|
);
|
|
68
76
|
}
|
|
69
77
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::healthkit::MedicationConcept& arg) {
|
|
70
78
|
jsi::Object obj(runtime);
|
|
71
|
-
obj.setProperty(runtime, "identifier", JSIConverter<std::string>::toJSI(runtime, arg.identifier));
|
|
72
|
-
obj.setProperty(runtime, "displayText", JSIConverter<std::string>::toJSI(runtime, arg.displayText));
|
|
73
|
-
obj.setProperty(runtime, "generalForm", JSIConverter<margelo::nitro::healthkit::GeneralForm>::toJSI(runtime, arg.generalForm));
|
|
74
|
-
obj.setProperty(runtime, "relatedCodings", JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::toJSI(runtime, arg.relatedCodings));
|
|
79
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "identifier"), JSIConverter<std::string>::toJSI(runtime, arg.identifier));
|
|
80
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "displayText"), JSIConverter<std::string>::toJSI(runtime, arg.displayText));
|
|
81
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "generalForm"), JSIConverter<margelo::nitro::healthkit::GeneralForm>::toJSI(runtime, arg.generalForm));
|
|
82
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "relatedCodings"), JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::toJSI(runtime, arg.relatedCodings));
|
|
75
83
|
return obj;
|
|
76
84
|
}
|
|
77
85
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -82,10 +90,10 @@ namespace margelo::nitro {
|
|
|
82
90
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
83
91
|
return false;
|
|
84
92
|
}
|
|
85
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "identifier"))) return false;
|
|
86
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "displayText"))) return false;
|
|
87
|
-
if (!JSIConverter<margelo::nitro::healthkit::GeneralForm>::canConvert(runtime, obj.getProperty(runtime, "generalForm"))) return false;
|
|
88
|
-
if (!JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::canConvert(runtime, obj.getProperty(runtime, "relatedCodings"))) return false;
|
|
93
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "identifier")))) return false;
|
|
94
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "displayText")))) return false;
|
|
95
|
+
if (!JSIConverter<margelo::nitro::healthkit::GeneralForm>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "generalForm")))) return false;
|
|
96
|
+
if (!JSIConverter<std::vector<margelo::nitro::healthkit::RelatedCoding>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "relatedCodings")))) return false;
|
|
89
97
|
return true;
|
|
90
98
|
}
|
|
91
99
|
};
|