@kingstinct/react-native-healthkit 9.0.0 → 9.0.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/README.md +192 -0
- package/app.plugin.js +0 -1
- package/ios/Helpers.swift +33 -37
- package/ios/WorkoutProxy.swift +7 -0
- package/lib/commonjs/hooks/useCategorySampleById.js +36 -0
- package/lib/commonjs/hooks/useHealthkitAuthorization.js +34 -0
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +23 -0
- package/lib/commonjs/hooks/useMostRecentCategorySample.js +21 -0
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js +22 -0
- package/lib/commonjs/hooks/useMostRecentWorkout.js +31 -0
- package/lib/commonjs/hooks/useQuantitySampleById.js +34 -0
- package/lib/commonjs/hooks/useSources.js +17 -0
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +26 -0
- package/lib/commonjs/hooks/useSubscribeToChanges.js +20 -0
- package/lib/commonjs/hooks/useWorkoutById.js +46 -0
- package/lib/commonjs/index.ios.js +144 -0
- package/lib/commonjs/index.js +210 -0
- package/lib/commonjs/modules.js +12 -0
- package/lib/commonjs/specs/CategoryTypeModule.nitro.js +5 -0
- package/lib/commonjs/specs/CharacteristicTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/CoreModule.nitro.js +2 -0
- package/lib/commonjs/specs/CorrelationTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/HeartbeatSeriesModule.nitro.js +2 -0
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/SourceProxy.nitro.js +2 -0
- package/lib/commonjs/specs/StateOfMindModule.nitro.js +2 -0
- package/lib/commonjs/specs/WorkoutProxy.nitro.js +2 -0
- package/lib/commonjs/specs/WorkoutSessionModule.nitro.js +19 -0
- package/lib/commonjs/specs/WorkoutsModule.nitro.js +2 -0
- package/lib/commonjs/types/Auth.js +21 -0
- package/lib/commonjs/types/Background.js +13 -0
- package/lib/commonjs/types/CategoryType.js +101 -0
- package/lib/commonjs/types/CategoryTypeIdentifier.js +2 -0
- package/lib/commonjs/types/Characteristics.js +48 -0
- package/lib/commonjs/types/Constants.js +23 -0
- package/lib/commonjs/types/CorrelationType.js +2 -0
- package/lib/commonjs/types/Device.js +2 -0
- package/lib/commonjs/types/HeartbeatSeries.js +2 -0
- package/lib/commonjs/types/InterfaceVerification.js +24 -0
- package/lib/commonjs/types/InterfaceVerificationExample.js +33 -0
- package/lib/commonjs/types/QuantitySample.js +2 -0
- package/lib/commonjs/types/QuantityType.js +17 -0
- package/lib/commonjs/types/QuantityTypeIdentifier.js +2 -0
- package/lib/commonjs/types/QueryOptions.js +2 -0
- package/lib/commonjs/types/Shared.js +13 -0
- package/lib/commonjs/types/Source.js +2 -0
- package/lib/commonjs/types/StateOfMind.js +90 -0
- package/lib/commonjs/types/Subscriptons.js +2 -0
- package/lib/commonjs/types/Units.js +2 -0
- package/lib/commonjs/types/WeatherCondition.js +35 -0
- package/lib/commonjs/types/WorkoutKit.js +12 -0
- package/lib/commonjs/types/Workouts.js +150 -0
- package/lib/commonjs/utils/getCategorySampleById.js +12 -0
- package/lib/commonjs/utils/getMostRecentCategorySample.js +12 -0
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +11 -0
- package/lib/commonjs/utils/getMostRecentWorkout.js +13 -0
- package/lib/commonjs/utils/getPreferredUnit.js +12 -0
- package/lib/commonjs/utils/getQuantitySampleById.js +14 -0
- package/lib/commonjs/utils/getWorkoutById.js +15 -0
- package/lib/commonjs/utils/subscribeToChanges.js +11 -0
- package/lib/module/hooks/useCategorySampleById.js +30 -0
- package/lib/module/hooks/useHealthkitAuthorization.js +30 -0
- package/lib/module/hooks/useIsHealthDataAvailable.js +19 -0
- package/lib/module/hooks/useMostRecentCategorySample.js +15 -0
- package/lib/module/hooks/useMostRecentQuantitySample.js +16 -0
- package/lib/module/hooks/useMostRecentWorkout.js +25 -0
- package/lib/module/hooks/useQuantitySampleById.js +28 -0
- package/lib/module/hooks/useSources.js +14 -0
- package/lib/module/hooks/useStatisticsForQuantity.js +20 -0
- package/lib/module/hooks/useSubscribeToChanges.js +17 -0
- package/lib/module/hooks/useWorkoutById.js +40 -0
- package/lib/module/index.ios.js +126 -0
- package/lib/module/index.js +202 -0
- package/lib/module/modules.js +9 -0
- package/lib/module/specs/CategoryTypeModule.nitro.js +4 -0
- package/lib/module/specs/CharacteristicTypeModule.nitro.js +1 -0
- package/lib/module/specs/CoreModule.nitro.js +1 -0
- package/lib/module/specs/CorrelationTypeModule.nitro.js +1 -0
- package/lib/module/specs/HeartbeatSeriesModule.nitro.js +1 -0
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/specs/SourceProxy.nitro.js +1 -0
- package/lib/module/specs/StateOfMindModule.nitro.js +1 -0
- package/lib/module/specs/WorkoutProxy.nitro.js +1 -0
- package/lib/module/specs/WorkoutSessionModule.nitro.js +16 -0
- package/lib/module/specs/WorkoutsModule.nitro.js +1 -0
- package/lib/module/types/Auth.js +18 -0
- package/lib/module/types/Background.js +10 -0
- package/lib/module/types/CategoryType.js +98 -0
- package/lib/module/types/CategoryTypeIdentifier.js +1 -0
- package/lib/module/types/Characteristics.js +45 -0
- package/lib/module/types/Constants.js +20 -0
- package/lib/module/types/CorrelationType.js +1 -0
- package/lib/module/types/Device.js +1 -0
- package/lib/module/types/HeartbeatSeries.js +1 -0
- package/lib/module/types/InterfaceVerification.js +23 -0
- package/lib/module/types/InterfaceVerificationExample.js +32 -0
- package/lib/module/types/QuantitySample.js +1 -0
- package/lib/module/types/QuantityType.js +14 -0
- package/lib/module/types/QuantityTypeIdentifier.js +1 -0
- package/lib/module/types/QueryOptions.js +1 -0
- package/lib/module/types/Shared.js +10 -0
- package/lib/module/types/Source.js +1 -0
- package/lib/module/types/StateOfMind.js +87 -0
- package/lib/module/types/Subscriptons.js +1 -0
- package/lib/module/types/Units.js +1 -0
- package/lib/module/types/WeatherCondition.js +32 -0
- package/lib/module/types/WorkoutKit.js +9 -0
- package/lib/module/types/Workouts.js +147 -0
- package/lib/module/utils/getCategorySampleById.js +9 -0
- package/lib/module/utils/getMostRecentCategorySample.js +9 -0
- package/lib/module/utils/getMostRecentQuantitySample.js +9 -0
- package/lib/module/utils/getMostRecentWorkout.js +11 -0
- package/lib/module/utils/getPreferredUnit.js +10 -0
- package/lib/module/utils/getQuantitySampleById.js +12 -0
- package/lib/module/utils/getWorkoutById.js +13 -0
- package/lib/module/utils/subscribeToChanges.js +7 -0
- package/lib/typescript/hooks/useCategorySampleById.d.ts +11 -0
- package/lib/typescript/hooks/useHealthkitAuthorization.d.ts +9 -0
- package/lib/typescript/hooks/useIsHealthDataAvailable.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentCategorySample.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +9 -0
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +14 -0
- package/lib/typescript/hooks/useSources.d.ts +4 -0
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +4 -0
- package/lib/typescript/hooks/useSubscribeToChanges.d.ts +4 -0
- package/lib/typescript/hooks/useWorkoutById.d.ts +13 -0
- package/lib/typescript/index.d.ts +74 -0
- package/lib/typescript/index.ios.d.ts +142 -0
- package/lib/typescript/modules.d.ts +16 -0
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/CharacteristicTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/CoreModule.nitro.d.ts +60 -0
- package/lib/typescript/specs/CorrelationTypeModule.nitro.d.ts +8 -0
- package/lib/typescript/specs/HeartbeatSeriesModule.nitro.d.ts +9 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/SourceProxy.nitro.d.ts +14 -0
- package/lib/typescript/specs/StateOfMindModule.nitro.d.ts +9 -0
- package/lib/typescript/specs/WorkoutProxy.nitro.d.ts +10 -0
- package/lib/typescript/specs/WorkoutSessionModule.nitro.d.ts +47 -0
- package/lib/typescript/specs/WorkoutsModule.nitro.d.ts +13 -0
- package/lib/typescript/types/Auth.d.ts +16 -0
- package/lib/typescript/types/Background.d.ts +9 -0
- package/lib/typescript/types/CategoryType.d.ts +144 -0
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +31 -0
- package/lib/typescript/types/Characteristics.d.ts +41 -0
- package/lib/typescript/types/Constants.d.ts +20 -0
- package/lib/typescript/types/CorrelationType.d.ts +21 -0
- package/lib/typescript/types/Device.d.ts +13 -0
- package/lib/typescript/types/HeartbeatSeries.d.ts +25 -0
- package/lib/typescript/types/InterfaceVerification.d.ts +73 -0
- package/lib/typescript/types/InterfaceVerificationExample.d.ts +58 -0
- package/lib/typescript/types/QuantitySample.d.ts +27 -0
- package/lib/typescript/types/QuantityType.d.ts +63 -0
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +659 -0
- package/lib/typescript/types/QueryOptions.d.ts +47 -0
- package/lib/typescript/types/Shared.d.ts +39 -0
- package/lib/typescript/types/Source.d.ts +10 -0
- package/lib/typescript/types/StateOfMind.d.ts +103 -0
- package/lib/typescript/types/Subscriptons.d.ts +8 -0
- package/lib/typescript/types/Units.d.ts +97 -0
- package/lib/typescript/types/WeatherCondition.d.ts +30 -0
- package/lib/typescript/types/WorkoutKit.d.ts +16 -0
- package/lib/typescript/types/Workouts.d.ts +254 -0
- package/lib/typescript/utils/getCategorySampleById.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentCategorySample.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +3 -0
- package/lib/typescript/utils/getPreferredUnit.d.ts +3 -0
- package/lib/typescript/utils/getQuantitySampleById.d.ts +3 -0
- package/lib/typescript/utils/getWorkoutById.d.ts +3 -0
- package/lib/typescript/utils/subscribeToChanges.d.ts +5 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb +60 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +450 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +2570 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +326 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +89 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +130 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +146 -0
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +155 -0
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +300 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +120 -0
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +138 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +196 -0
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +77 -0
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +138 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +196 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutSessionModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutSessionModuleSpecSwift.hpp +107 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +172 -0
- package/nitrogen/generated/ios/swift/AuthorizationRequestStatus.swift +44 -0
- package/nitrogen/generated/ios/swift/AuthorizationStatus.swift +44 -0
- package/nitrogen/generated/ios/swift/BiologicalSex.swift +48 -0
- package/nitrogen/generated/ios/swift/BloodType.swift +68 -0
- package/nitrogen/generated/ios/swift/CategorySample.swift +148 -0
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +108 -0
- package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +288 -0
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +88 -0
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +16 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +117 -0
- package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +40 -0
- package/nitrogen/generated/ios/swift/DeletedSample.swift +64 -0
- package/nitrogen/generated/ios/swift/Device.swift +256 -0
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +21 -0
- package/nitrogen/generated/ios/swift/FilterForSamplesAnd.swift +94 -0
- package/nitrogen/generated/ios/swift/FilterForSamplesOr.swift +94 -0
- package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +60 -0
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WorkoutEventType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__chrono__system_clock__time_point.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_RemoteSessionSharableData_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__.swift +50 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__.swift +50 -0
- package/nitrogen/generated/ios/swift/Heartbeat.swift +46 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +167 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +50 -0
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +171 -0
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +57 -0
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +257 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +69 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +523 -0
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +158 -0
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +152 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +54 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +285 -0
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +48 -0
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +125 -0
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +158 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +64 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +351 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutSessionModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutSessionModuleSpec_cxx.swift +133 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +51 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +187 -0
- package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +46 -0
- package/nitrogen/generated/ios/swift/IntervalComponents.swift +139 -0
- package/nitrogen/generated/ios/swift/LocationForSaving.swift +112 -0
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +820 -0
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +64 -0
- package/nitrogen/generated/ios/swift/PredicateForSamples.swift +19 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkouts.swift +21 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsAnd.swift +108 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsOr.swift +108 -0
- package/nitrogen/generated/ios/swift/PredicateFromWorkout.swift +45 -0
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +35 -0
- package/nitrogen/generated/ios/swift/PredicateWithStartAndEnd.swift +128 -0
- package/nitrogen/generated/ios/swift/PredicateWithUUID.swift +35 -0
- package/nitrogen/generated/ios/swift/PredicateWithUUIDs.swift +47 -0
- package/nitrogen/generated/ios/swift/Quantity.swift +46 -0
- package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +46 -0
- package/nitrogen/generated/ios/swift/QuantitySample.swift +159 -0
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +119 -0
- package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +508 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +166 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +195 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +160 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +189 -0
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +227 -0
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +91 -0
- package/nitrogen/generated/ios/swift/RemoteSessionSharableData.swift +46 -0
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +16 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +792 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +772 -0
- package/nitrogen/generated/ios/swift/Source.swift +46 -0
- package/nitrogen/generated/ios/swift/SourceRevision.swift +150 -0
- package/nitrogen/generated/ios/swift/StateOfMindAssociation.swift +104 -0
- package/nitrogen/generated/ios/swift/StateOfMindKind.swift +40 -0
- package/nitrogen/generated/ios/swift/StateOfMindLabel.swift +184 -0
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +223 -0
- package/nitrogen/generated/ios/swift/StateOfMindValenceClassification.swift +60 -0
- package/nitrogen/generated/ios/swift/StatisticsOptions.swift +60 -0
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +129 -0
- package/nitrogen/generated/ios/swift/UpdateFrequency.swift +48 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout.swift +19 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr.swift +21 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_WorkoutActivityTypePredicate_WorkoutDurationPredicate_PredicateForWorkoutsOr_PredicateForWorkoutsAnd.swift +23 -0
- package/nitrogen/generated/ios/swift/WheelchairUse.swift +44 -0
- package/nitrogen/generated/ios/swift/WorkoutActivity.swift +68 -0
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +368 -0
- package/nitrogen/generated/ios/swift/WorkoutActivityTypePredicate.swift +35 -0
- package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +58 -0
- package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +46 -0
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +57 -0
- package/nitrogen/generated/ios/swift/WorkoutEventType.swift +64 -0
- package/nitrogen/generated/ios/swift/WorkoutPlan.swift +46 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +232 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +238 -0
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +99 -0
- package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +146 -0
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +364 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +44 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionMirroringStartHandlerOptions.swift +118 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionState.swift +56 -0
- package/nitrogen/generated/ios/swift/WorkoutTotals.swift +70 -0
- package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +65 -0
- package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +65 -0
- package/nitrogen/generated/shared/c++/BiologicalSex.hpp +66 -0
- package/nitrogen/generated/shared/c++/BloodType.hpp +71 -0
- package/nitrogen/generated/shared/c++/CategorySample.hpp +110 -0
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +98 -0
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +326 -0
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +76 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +98 -0
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +78 -0
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +76 -0
- package/nitrogen/generated/shared/c++/Device.hpp +98 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +84 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +84 -0
- package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +69 -0
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +73 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +107 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +30 -0
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +76 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +27 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +123 -0
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +114 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutSessionModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutSessionModuleSpec.hpp +68 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +73 -0
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +85 -0
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +97 -0
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +858 -0
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +76 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +90 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +90 -0
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +71 -0
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +69 -0
- package/nitrogen/generated/shared/c++/PredicateWithStartAndEnd.hpp +82 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +69 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +70 -0
- package/nitrogen/generated/shared/c++/Quantity.hpp +73 -0
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +73 -0
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +114 -0
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +103 -0
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +546 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +99 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +103 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +98 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +103 -0
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +98 -0
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +84 -0
- package/nitrogen/generated/shared/c++/RemoteSessionSharableData.hpp +75 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +830 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +810 -0
- package/nitrogen/generated/shared/c++/Source.hpp +73 -0
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +85 -0
- package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +80 -0
- package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +64 -0
- package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +100 -0
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +132 -0
- package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +69 -0
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +98 -0
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +89 -0
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +66 -0
- package/nitrogen/generated/shared/c++/WheelchairUse.hpp +65 -0
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +82 -0
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +146 -0
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +70 -0
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +78 -0
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +74 -0
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +79 -0
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +70 -0
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +75 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +113 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +113 -0
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +81 -0
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +106 -0
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +144 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +65 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionMirroringStartHandlerOptions.hpp +92 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionState.hpp +68 -0
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +73 -0
- package/package.json +35 -12
- package/src/hooks/useCategorySampleById.ts +41 -0
- package/src/hooks/useQuantitySampleById.ts +44 -0
- package/src/hooks/useWorkoutById.ts +55 -0
- package/src/index.ios.ts +1 -9
- package/src/index.ts +4 -16
- package/src/utils/getCategorySampleById.ts +16 -0
- package/src/utils/getQuantitySampleById.ts +20 -0
- package/src/utils/getWorkoutById.ts +20 -0
|
@@ -0,0 +1,2570 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// ReactNativeHealthkit-Swift-Cxx-Bridge.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AnyMap` to properly resolve imports.
|
|
12
|
+
namespace NitroModules { class AnyMap; }
|
|
13
|
+
// Forward declaration of `AuthorizationRequestStatus` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::healthkit { enum class AuthorizationRequestStatus; }
|
|
15
|
+
// Forward declaration of `AuthorizationStatus` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::healthkit { enum class AuthorizationStatus; }
|
|
17
|
+
// Forward declaration of `BiologicalSex` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::healthkit { enum class BiologicalSex; }
|
|
19
|
+
// Forward declaration of `BloodType` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::healthkit { enum class BloodType; }
|
|
21
|
+
// Forward declaration of `CategorySampleForSaving` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::healthkit { struct CategorySampleForSaving; }
|
|
23
|
+
// Forward declaration of `CategorySample` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::healthkit { struct CategorySample; }
|
|
25
|
+
// Forward declaration of `CategorySamplesWithAnchorResponse` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { struct CategorySamplesWithAnchorResponse; }
|
|
27
|
+
// Forward declaration of `CategoryTypeIdentifier` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::healthkit { enum class CategoryTypeIdentifier; }
|
|
29
|
+
// Forward declaration of `ComparisonPredicateOperator` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
31
|
+
// Forward declaration of `CorrelationSample` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { struct CorrelationSample; }
|
|
33
|
+
// Forward declaration of `CorrelationTypeIdentifier` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { enum class CorrelationTypeIdentifier; }
|
|
35
|
+
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
37
|
+
// Forward declaration of `Device` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct Device; }
|
|
39
|
+
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
41
|
+
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesOr; }
|
|
43
|
+
// Forward declaration of `FitzpatrickSkinType` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { enum class FitzpatrickSkinType; }
|
|
45
|
+
// Forward declaration of `HeartbeatSeriesSample` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSample; }
|
|
47
|
+
// Forward declaration of `HeartbeatSeriesSamplesWithAnchorResponse` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSamplesWithAnchorResponse; }
|
|
49
|
+
// Forward declaration of `Heartbeat` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::healthkit { struct Heartbeat; }
|
|
51
|
+
// Forward declaration of `HybridCategoryTypeModuleSpec` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::healthkit { class HybridCategoryTypeModuleSpec; }
|
|
53
|
+
// Forward declaration of `HybridCharacteristicTypeModuleSpec` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::healthkit { class HybridCharacteristicTypeModuleSpec; }
|
|
55
|
+
// Forward declaration of `HybridCoreModuleSpec` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::healthkit { class HybridCoreModuleSpec; }
|
|
57
|
+
// Forward declaration of `HybridCorrelationTypeModuleSpec` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::healthkit { class HybridCorrelationTypeModuleSpec; }
|
|
59
|
+
// Forward declaration of `HybridHeartbeatSeriesModuleSpec` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::healthkit { class HybridHeartbeatSeriesModuleSpec; }
|
|
61
|
+
// Forward declaration of `HybridQuantityTypeModuleSpec` to properly resolve imports.
|
|
62
|
+
namespace margelo::nitro::healthkit { class HybridQuantityTypeModuleSpec; }
|
|
63
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
65
|
+
// Forward declaration of `HybridStateOfMindModuleSpec` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::healthkit { class HybridStateOfMindModuleSpec; }
|
|
67
|
+
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
68
|
+
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
69
|
+
// Forward declaration of `HybridWorkoutSessionModuleSpec` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::healthkit { class HybridWorkoutSessionModuleSpec; }
|
|
71
|
+
// Forward declaration of `HybridWorkoutsModuleSpec` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::healthkit { class HybridWorkoutsModuleSpec; }
|
|
73
|
+
// Forward declaration of `IdentifierWithUnit` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::healthkit { struct IdentifierWithUnit; }
|
|
75
|
+
// Forward declaration of `LocationForSaving` to properly resolve imports.
|
|
76
|
+
namespace margelo::nitro::healthkit { struct LocationForSaving; }
|
|
77
|
+
// Forward declaration of `ObjectTypeIdentifier` to properly resolve imports.
|
|
78
|
+
namespace margelo::nitro::healthkit { enum class ObjectTypeIdentifier; }
|
|
79
|
+
// Forward declaration of `OnChangeCallbackArgs` to properly resolve imports.
|
|
80
|
+
namespace margelo::nitro::healthkit { struct OnChangeCallbackArgs; }
|
|
81
|
+
// Forward declaration of `PredicateForWorkoutsAnd` to properly resolve imports.
|
|
82
|
+
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsAnd; }
|
|
83
|
+
// Forward declaration of `PredicateForWorkoutsOr` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsOr; }
|
|
85
|
+
// Forward declaration of `PredicateFromWorkout` to properly resolve imports.
|
|
86
|
+
namespace margelo::nitro::healthkit { struct PredicateFromWorkout; }
|
|
87
|
+
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
88
|
+
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
89
|
+
// Forward declaration of `PredicateWithStartAndEnd` to properly resolve imports.
|
|
90
|
+
namespace margelo::nitro::healthkit { struct PredicateWithStartAndEnd; }
|
|
91
|
+
// Forward declaration of `PredicateWithUUID` to properly resolve imports.
|
|
92
|
+
namespace margelo::nitro::healthkit { struct PredicateWithUUID; }
|
|
93
|
+
// Forward declaration of `PredicateWithUUIDs` to properly resolve imports.
|
|
94
|
+
namespace margelo::nitro::healthkit { struct PredicateWithUUIDs; }
|
|
95
|
+
// Forward declaration of `QuantityDateInterval` to properly resolve imports.
|
|
96
|
+
namespace margelo::nitro::healthkit { struct QuantityDateInterval; }
|
|
97
|
+
// Forward declaration of `QuantitySampleForSaving` to properly resolve imports.
|
|
98
|
+
namespace margelo::nitro::healthkit { struct QuantitySampleForSaving; }
|
|
99
|
+
// Forward declaration of `QuantitySample` to properly resolve imports.
|
|
100
|
+
namespace margelo::nitro::healthkit { struct QuantitySample; }
|
|
101
|
+
// Forward declaration of `QuantitySamplesWithAnchorResponse` to properly resolve imports.
|
|
102
|
+
namespace margelo::nitro::healthkit { struct QuantitySamplesWithAnchorResponse; }
|
|
103
|
+
// Forward declaration of `QuantityTypeIdentifier` to properly resolve imports.
|
|
104
|
+
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
105
|
+
// Forward declaration of `Quantity` to properly resolve imports.
|
|
106
|
+
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
107
|
+
// Forward declaration of `QueryOptionsWithSortOrderAndUnit` to properly resolve imports.
|
|
108
|
+
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrderAndUnit; }
|
|
109
|
+
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
110
|
+
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
111
|
+
// Forward declaration of `QueryStatisticsResponse` to properly resolve imports.
|
|
112
|
+
namespace margelo::nitro::healthkit { struct QueryStatisticsResponse; }
|
|
113
|
+
// Forward declaration of `QueryWorkoutSamplesWithAnchorResponse` to properly resolve imports.
|
|
114
|
+
namespace margelo::nitro::healthkit { struct QueryWorkoutSamplesWithAnchorResponse; }
|
|
115
|
+
// Forward declaration of `RemoteSessionSharableData` to properly resolve imports.
|
|
116
|
+
namespace margelo::nitro::healthkit { struct RemoteSessionSharableData; }
|
|
117
|
+
// Forward declaration of `SampleTypeIdentifierWriteable` to properly resolve imports.
|
|
118
|
+
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable; }
|
|
119
|
+
// Forward declaration of `SampleTypeIdentifier` to properly resolve imports.
|
|
120
|
+
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifier; }
|
|
121
|
+
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
122
|
+
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
123
|
+
// Forward declaration of `Source` to properly resolve imports.
|
|
124
|
+
namespace margelo::nitro::healthkit { struct Source; }
|
|
125
|
+
// Forward declaration of `StateOfMindAssociation` to properly resolve imports.
|
|
126
|
+
namespace margelo::nitro::healthkit { enum class StateOfMindAssociation; }
|
|
127
|
+
// Forward declaration of `StateOfMindKind` to properly resolve imports.
|
|
128
|
+
namespace margelo::nitro::healthkit { enum class StateOfMindKind; }
|
|
129
|
+
// Forward declaration of `StateOfMindLabel` to properly resolve imports.
|
|
130
|
+
namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
|
|
131
|
+
// Forward declaration of `StateOfMindSample` to properly resolve imports.
|
|
132
|
+
namespace margelo::nitro::healthkit { struct StateOfMindSample; }
|
|
133
|
+
// Forward declaration of `StateOfMindValenceClassification` to properly resolve imports.
|
|
134
|
+
namespace margelo::nitro::healthkit { enum class StateOfMindValenceClassification; }
|
|
135
|
+
// Forward declaration of `StatisticsOptions` to properly resolve imports.
|
|
136
|
+
namespace margelo::nitro::healthkit { enum class StatisticsOptions; }
|
|
137
|
+
// Forward declaration of `StatisticsQueryOptions` to properly resolve imports.
|
|
138
|
+
namespace margelo::nitro::healthkit { struct StatisticsQueryOptions; }
|
|
139
|
+
// Forward declaration of `WheelchairUse` to properly resolve imports.
|
|
140
|
+
namespace margelo::nitro::healthkit { enum class WheelchairUse; }
|
|
141
|
+
// Forward declaration of `WorkoutActivityTypePredicate` to properly resolve imports.
|
|
142
|
+
namespace margelo::nitro::healthkit { struct WorkoutActivityTypePredicate; }
|
|
143
|
+
// Forward declaration of `WorkoutActivityType` to properly resolve imports.
|
|
144
|
+
namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
|
|
145
|
+
// Forward declaration of `WorkoutActivity` to properly resolve imports.
|
|
146
|
+
namespace margelo::nitro::healthkit { struct WorkoutActivity; }
|
|
147
|
+
// Forward declaration of `WorkoutDurationPredicate` to properly resolve imports.
|
|
148
|
+
namespace margelo::nitro::healthkit { struct WorkoutDurationPredicate; }
|
|
149
|
+
// Forward declaration of `WorkoutEventType` to properly resolve imports.
|
|
150
|
+
namespace margelo::nitro::healthkit { enum class WorkoutEventType; }
|
|
151
|
+
// Forward declaration of `WorkoutEvent` to properly resolve imports.
|
|
152
|
+
namespace margelo::nitro::healthkit { struct WorkoutEvent; }
|
|
153
|
+
// Forward declaration of `WorkoutPlan` to properly resolve imports.
|
|
154
|
+
namespace margelo::nitro::healthkit { struct WorkoutPlan; }
|
|
155
|
+
// Forward declaration of `WorkoutRouteLocation` to properly resolve imports.
|
|
156
|
+
namespace margelo::nitro::healthkit { struct WorkoutRouteLocation; }
|
|
157
|
+
// Forward declaration of `WorkoutRoute` to properly resolve imports.
|
|
158
|
+
namespace margelo::nitro::healthkit { struct WorkoutRoute; }
|
|
159
|
+
// Forward declaration of `WorkoutSample` to properly resolve imports.
|
|
160
|
+
namespace margelo::nitro::healthkit { struct WorkoutSample; }
|
|
161
|
+
// Forward declaration of `WorkoutSessionLocationType` to properly resolve imports.
|
|
162
|
+
namespace margelo::nitro::healthkit { enum class WorkoutSessionLocationType; }
|
|
163
|
+
// Forward declaration of `WorkoutSessionState` to properly resolve imports.
|
|
164
|
+
namespace margelo::nitro::healthkit { enum class WorkoutSessionState; }
|
|
165
|
+
|
|
166
|
+
// Forward declarations of Swift defined types
|
|
167
|
+
// Forward declaration of `HybridCategoryTypeModuleSpec_cxx` to properly resolve imports.
|
|
168
|
+
namespace ReactNativeHealthkit { class HybridCategoryTypeModuleSpec_cxx; }
|
|
169
|
+
// Forward declaration of `HybridCharacteristicTypeModuleSpec_cxx` to properly resolve imports.
|
|
170
|
+
namespace ReactNativeHealthkit { class HybridCharacteristicTypeModuleSpec_cxx; }
|
|
171
|
+
// Forward declaration of `HybridCoreModuleSpec_cxx` to properly resolve imports.
|
|
172
|
+
namespace ReactNativeHealthkit { class HybridCoreModuleSpec_cxx; }
|
|
173
|
+
// Forward declaration of `HybridCorrelationTypeModuleSpec_cxx` to properly resolve imports.
|
|
174
|
+
namespace ReactNativeHealthkit { class HybridCorrelationTypeModuleSpec_cxx; }
|
|
175
|
+
// Forward declaration of `HybridHeartbeatSeriesModuleSpec_cxx` to properly resolve imports.
|
|
176
|
+
namespace ReactNativeHealthkit { class HybridHeartbeatSeriesModuleSpec_cxx; }
|
|
177
|
+
// Forward declaration of `HybridQuantityTypeModuleSpec_cxx` to properly resolve imports.
|
|
178
|
+
namespace ReactNativeHealthkit { class HybridQuantityTypeModuleSpec_cxx; }
|
|
179
|
+
// Forward declaration of `HybridSourceProxySpec_cxx` to properly resolve imports.
|
|
180
|
+
namespace ReactNativeHealthkit { class HybridSourceProxySpec_cxx; }
|
|
181
|
+
// Forward declaration of `HybridStateOfMindModuleSpec_cxx` to properly resolve imports.
|
|
182
|
+
namespace ReactNativeHealthkit { class HybridStateOfMindModuleSpec_cxx; }
|
|
183
|
+
// Forward declaration of `HybridWorkoutProxySpec_cxx` to properly resolve imports.
|
|
184
|
+
namespace ReactNativeHealthkit { class HybridWorkoutProxySpec_cxx; }
|
|
185
|
+
// Forward declaration of `HybridWorkoutSessionModuleSpec_cxx` to properly resolve imports.
|
|
186
|
+
namespace ReactNativeHealthkit { class HybridWorkoutSessionModuleSpec_cxx; }
|
|
187
|
+
// Forward declaration of `HybridWorkoutsModuleSpec_cxx` to properly resolve imports.
|
|
188
|
+
namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
189
|
+
|
|
190
|
+
// Include C++ defined types
|
|
191
|
+
#include "AuthorizationRequestStatus.hpp"
|
|
192
|
+
#include "AuthorizationStatus.hpp"
|
|
193
|
+
#include "BiologicalSex.hpp"
|
|
194
|
+
#include "BloodType.hpp"
|
|
195
|
+
#include "CategorySample.hpp"
|
|
196
|
+
#include "CategorySampleForSaving.hpp"
|
|
197
|
+
#include "CategorySamplesWithAnchorResponse.hpp"
|
|
198
|
+
#include "CategoryTypeIdentifier.hpp"
|
|
199
|
+
#include "ComparisonPredicateOperator.hpp"
|
|
200
|
+
#include "CorrelationSample.hpp"
|
|
201
|
+
#include "CorrelationTypeIdentifier.hpp"
|
|
202
|
+
#include "DeletedSample.hpp"
|
|
203
|
+
#include "Device.hpp"
|
|
204
|
+
#include "FilterForSamplesAnd.hpp"
|
|
205
|
+
#include "FilterForSamplesOr.hpp"
|
|
206
|
+
#include "FitzpatrickSkinType.hpp"
|
|
207
|
+
#include "Heartbeat.hpp"
|
|
208
|
+
#include "HeartbeatSeriesSample.hpp"
|
|
209
|
+
#include "HeartbeatSeriesSamplesWithAnchorResponse.hpp"
|
|
210
|
+
#include "HybridCategoryTypeModuleSpec.hpp"
|
|
211
|
+
#include "HybridCharacteristicTypeModuleSpec.hpp"
|
|
212
|
+
#include "HybridCoreModuleSpec.hpp"
|
|
213
|
+
#include "HybridCorrelationTypeModuleSpec.hpp"
|
|
214
|
+
#include "HybridHeartbeatSeriesModuleSpec.hpp"
|
|
215
|
+
#include "HybridQuantityTypeModuleSpec.hpp"
|
|
216
|
+
#include "HybridSourceProxySpec.hpp"
|
|
217
|
+
#include "HybridStateOfMindModuleSpec.hpp"
|
|
218
|
+
#include "HybridWorkoutProxySpec.hpp"
|
|
219
|
+
#include "HybridWorkoutSessionModuleSpec.hpp"
|
|
220
|
+
#include "HybridWorkoutsModuleSpec.hpp"
|
|
221
|
+
#include "IdentifierWithUnit.hpp"
|
|
222
|
+
#include "LocationForSaving.hpp"
|
|
223
|
+
#include "ObjectTypeIdentifier.hpp"
|
|
224
|
+
#include "OnChangeCallbackArgs.hpp"
|
|
225
|
+
#include "PredicateForWorkoutsAnd.hpp"
|
|
226
|
+
#include "PredicateForWorkoutsOr.hpp"
|
|
227
|
+
#include "PredicateFromWorkout.hpp"
|
|
228
|
+
#include "PredicateWithMetadataKey.hpp"
|
|
229
|
+
#include "PredicateWithStartAndEnd.hpp"
|
|
230
|
+
#include "PredicateWithUUID.hpp"
|
|
231
|
+
#include "PredicateWithUUIDs.hpp"
|
|
232
|
+
#include "Quantity.hpp"
|
|
233
|
+
#include "QuantityDateInterval.hpp"
|
|
234
|
+
#include "QuantitySample.hpp"
|
|
235
|
+
#include "QuantitySampleForSaving.hpp"
|
|
236
|
+
#include "QuantitySamplesWithAnchorResponse.hpp"
|
|
237
|
+
#include "QuantityTypeIdentifier.hpp"
|
|
238
|
+
#include "QueryOptionsWithSortOrder.hpp"
|
|
239
|
+
#include "QueryOptionsWithSortOrderAndUnit.hpp"
|
|
240
|
+
#include "QueryStatisticsResponse.hpp"
|
|
241
|
+
#include "QueryWorkoutSamplesWithAnchorResponse.hpp"
|
|
242
|
+
#include "RemoteSessionSharableData.hpp"
|
|
243
|
+
#include "SampleTypeIdentifier.hpp"
|
|
244
|
+
#include "SampleTypeIdentifierWriteable.hpp"
|
|
245
|
+
#include "Source.hpp"
|
|
246
|
+
#include "SourceRevision.hpp"
|
|
247
|
+
#include "StateOfMindAssociation.hpp"
|
|
248
|
+
#include "StateOfMindKind.hpp"
|
|
249
|
+
#include "StateOfMindLabel.hpp"
|
|
250
|
+
#include "StateOfMindSample.hpp"
|
|
251
|
+
#include "StateOfMindValenceClassification.hpp"
|
|
252
|
+
#include "StatisticsOptions.hpp"
|
|
253
|
+
#include "StatisticsQueryOptions.hpp"
|
|
254
|
+
#include "WheelchairUse.hpp"
|
|
255
|
+
#include "WorkoutActivity.hpp"
|
|
256
|
+
#include "WorkoutActivityType.hpp"
|
|
257
|
+
#include "WorkoutActivityTypePredicate.hpp"
|
|
258
|
+
#include "WorkoutDurationPredicate.hpp"
|
|
259
|
+
#include "WorkoutEvent.hpp"
|
|
260
|
+
#include "WorkoutEventType.hpp"
|
|
261
|
+
#include "WorkoutPlan.hpp"
|
|
262
|
+
#include "WorkoutRoute.hpp"
|
|
263
|
+
#include "WorkoutRouteLocation.hpp"
|
|
264
|
+
#include "WorkoutSample.hpp"
|
|
265
|
+
#include "WorkoutSessionLocationType.hpp"
|
|
266
|
+
#include "WorkoutSessionState.hpp"
|
|
267
|
+
#include <NitroModules/AnyMap.hpp>
|
|
268
|
+
#include <NitroModules/Promise.hpp>
|
|
269
|
+
#include <NitroModules/PromiseHolder.hpp>
|
|
270
|
+
#include <NitroModules/Result.hpp>
|
|
271
|
+
#include <chrono>
|
|
272
|
+
#include <exception>
|
|
273
|
+
#include <functional>
|
|
274
|
+
#include <memory>
|
|
275
|
+
#include <optional>
|
|
276
|
+
#include <string>
|
|
277
|
+
#include <unordered_map>
|
|
278
|
+
#include <variant>
|
|
279
|
+
#include <vector>
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Contains specialized versions of C++ templated types so they can be accessed from Swift,
|
|
283
|
+
* as well as helper functions to interact with those C++ types from Swift.
|
|
284
|
+
*/
|
|
285
|
+
namespace margelo::nitro::healthkit::bridge::swift {
|
|
286
|
+
|
|
287
|
+
// pragma MARK: std::shared_ptr<Promise<bool>>
|
|
288
|
+
/**
|
|
289
|
+
* Specialized version of `std::shared_ptr<Promise<bool>>`.
|
|
290
|
+
*/
|
|
291
|
+
using std__shared_ptr_Promise_bool__ = std::shared_ptr<Promise<bool>>;
|
|
292
|
+
inline std::shared_ptr<Promise<bool>> create_std__shared_ptr_Promise_bool__() {
|
|
293
|
+
return Promise<bool>::create();
|
|
294
|
+
}
|
|
295
|
+
inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) {
|
|
296
|
+
return PromiseHolder<bool>(std::move(promise));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// pragma MARK: std::function<void(bool /* result */)>
|
|
300
|
+
/**
|
|
301
|
+
* Specialized version of `std::function<void(bool)>`.
|
|
302
|
+
*/
|
|
303
|
+
using Func_void_bool = std::function<void(bool /* result */)>;
|
|
304
|
+
/**
|
|
305
|
+
* Wrapper class for a `std::function<void(bool / * result * /)>`, this can be used from Swift.
|
|
306
|
+
*/
|
|
307
|
+
class Func_void_bool_Wrapper final {
|
|
308
|
+
public:
|
|
309
|
+
explicit Func_void_bool_Wrapper(std::function<void(bool /* result */)>&& func): _function(std::make_shared<std::function<void(bool /* result */)>>(std::move(func))) {}
|
|
310
|
+
inline void call(bool result) const {
|
|
311
|
+
_function->operator()(result);
|
|
312
|
+
}
|
|
313
|
+
private:
|
|
314
|
+
std::shared_ptr<std::function<void(bool /* result */)>> _function;
|
|
315
|
+
};
|
|
316
|
+
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper);
|
|
317
|
+
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) {
|
|
318
|
+
return Func_void_bool_Wrapper(std::move(value));
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
|
|
322
|
+
/**
|
|
323
|
+
* Specialized version of `std::function<void(const std::exception_ptr&)>`.
|
|
324
|
+
*/
|
|
325
|
+
using Func_void_std__exception_ptr = std::function<void(const std::exception_ptr& /* error */)>;
|
|
326
|
+
/**
|
|
327
|
+
* Wrapper class for a `std::function<void(const std::exception_ptr& / * error * /)>`, this can be used from Swift.
|
|
328
|
+
*/
|
|
329
|
+
class Func_void_std__exception_ptr_Wrapper final {
|
|
330
|
+
public:
|
|
331
|
+
explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::make_shared<std::function<void(const std::exception_ptr& /* error */)>>(std::move(func))) {}
|
|
332
|
+
inline void call(std::exception_ptr error) const {
|
|
333
|
+
_function->operator()(error);
|
|
334
|
+
}
|
|
335
|
+
private:
|
|
336
|
+
std::shared_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
337
|
+
};
|
|
338
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper);
|
|
339
|
+
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) {
|
|
340
|
+
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// pragma MARK: std::optional<std::string>
|
|
344
|
+
/**
|
|
345
|
+
* Specialized version of `std::optional<std::string>`.
|
|
346
|
+
*/
|
|
347
|
+
using std__optional_std__string_ = std::optional<std::string>;
|
|
348
|
+
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) {
|
|
349
|
+
return std::optional<std::string>(value);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// pragma MARK: std::optional<Device>
|
|
353
|
+
/**
|
|
354
|
+
* Specialized version of `std::optional<Device>`.
|
|
355
|
+
*/
|
|
356
|
+
using std__optional_Device_ = std::optional<Device>;
|
|
357
|
+
inline std::optional<Device> create_std__optional_Device_(const Device& value) {
|
|
358
|
+
return std::optional<Device>(value);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>
|
|
362
|
+
/**
|
|
363
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>`.
|
|
364
|
+
*/
|
|
365
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>;
|
|
366
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_(void* _Nonnull swiftUnsafePointer);
|
|
367
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_(std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_ cppType);
|
|
368
|
+
|
|
369
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>
|
|
370
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>;
|
|
371
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>& strong) { return strong; }
|
|
372
|
+
|
|
373
|
+
// pragma MARK: std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>
|
|
374
|
+
/**
|
|
375
|
+
* Specialized version of `std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>`.
|
|
376
|
+
*/
|
|
377
|
+
using std__optional_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__ = std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>;
|
|
378
|
+
inline std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>> create_std__optional_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__(const std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>& value) {
|
|
379
|
+
return std::optional<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>(value);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// pragma MARK: std::optional<SourceRevision>
|
|
383
|
+
/**
|
|
384
|
+
* Specialized version of `std::optional<SourceRevision>`.
|
|
385
|
+
*/
|
|
386
|
+
using std__optional_SourceRevision_ = std::optional<SourceRevision>;
|
|
387
|
+
inline std::optional<SourceRevision> create_std__optional_SourceRevision_(const SourceRevision& value) {
|
|
388
|
+
return std::optional<SourceRevision>(value);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
// pragma MARK: std::vector<CategorySample>
|
|
392
|
+
/**
|
|
393
|
+
* Specialized version of `std::vector<CategorySample>`.
|
|
394
|
+
*/
|
|
395
|
+
using std__vector_CategorySample_ = std::vector<CategorySample>;
|
|
396
|
+
inline std::vector<CategorySample> create_std__vector_CategorySample_(size_t size) {
|
|
397
|
+
std::vector<CategorySample> vector;
|
|
398
|
+
vector.reserve(size);
|
|
399
|
+
return vector;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<CategorySample>>>
|
|
403
|
+
/**
|
|
404
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<CategorySample>>>`.
|
|
405
|
+
*/
|
|
406
|
+
using std__shared_ptr_Promise_std__vector_CategorySample___ = std::shared_ptr<Promise<std::vector<CategorySample>>>;
|
|
407
|
+
inline std::shared_ptr<Promise<std::vector<CategorySample>>> create_std__shared_ptr_Promise_std__vector_CategorySample___() {
|
|
408
|
+
return Promise<std::vector<CategorySample>>::create();
|
|
409
|
+
}
|
|
410
|
+
inline PromiseHolder<std::vector<CategorySample>> wrap_std__shared_ptr_Promise_std__vector_CategorySample___(std::shared_ptr<Promise<std::vector<CategorySample>>> promise) {
|
|
411
|
+
return PromiseHolder<std::vector<CategorySample>>(std::move(promise));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// pragma MARK: std::function<void(const std::vector<CategorySample>& /* result */)>
|
|
415
|
+
/**
|
|
416
|
+
* Specialized version of `std::function<void(const std::vector<CategorySample>&)>`.
|
|
417
|
+
*/
|
|
418
|
+
using Func_void_std__vector_CategorySample_ = std::function<void(const std::vector<CategorySample>& /* result */)>;
|
|
419
|
+
/**
|
|
420
|
+
* Wrapper class for a `std::function<void(const std::vector<CategorySample>& / * result * /)>`, this can be used from Swift.
|
|
421
|
+
*/
|
|
422
|
+
class Func_void_std__vector_CategorySample__Wrapper final {
|
|
423
|
+
public:
|
|
424
|
+
explicit Func_void_std__vector_CategorySample__Wrapper(std::function<void(const std::vector<CategorySample>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<CategorySample>& /* result */)>>(std::move(func))) {}
|
|
425
|
+
inline void call(std::vector<CategorySample> result) const {
|
|
426
|
+
_function->operator()(result);
|
|
427
|
+
}
|
|
428
|
+
private:
|
|
429
|
+
std::shared_ptr<std::function<void(const std::vector<CategorySample>& /* result */)>> _function;
|
|
430
|
+
};
|
|
431
|
+
Func_void_std__vector_CategorySample_ create_Func_void_std__vector_CategorySample_(void* _Nonnull swiftClosureWrapper);
|
|
432
|
+
inline Func_void_std__vector_CategorySample__Wrapper wrap_Func_void_std__vector_CategorySample_(Func_void_std__vector_CategorySample_ value) {
|
|
433
|
+
return Func_void_std__vector_CategorySample__Wrapper(std::move(value));
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// pragma MARK: std::optional<bool>
|
|
437
|
+
/**
|
|
438
|
+
* Specialized version of `std::optional<bool>`.
|
|
439
|
+
*/
|
|
440
|
+
using std__optional_bool_ = std::optional<bool>;
|
|
441
|
+
inline std::optional<bool> create_std__optional_bool_(const bool& value) {
|
|
442
|
+
return std::optional<bool>(value);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// pragma MARK: std::vector<std::string>
|
|
446
|
+
/**
|
|
447
|
+
* Specialized version of `std::vector<std::string>`.
|
|
448
|
+
*/
|
|
449
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
450
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) {
|
|
451
|
+
std::vector<std::string> vector;
|
|
452
|
+
vector.reserve(size);
|
|
453
|
+
return vector;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
// pragma MARK: std::optional<std::chrono::system_clock::time_point>
|
|
457
|
+
/**
|
|
458
|
+
* Specialized version of `std::optional<std::chrono::system_clock::time_point>`.
|
|
459
|
+
*/
|
|
460
|
+
using std__optional_std__chrono__system_clock__time_point_ = std::optional<std::chrono::system_clock::time_point>;
|
|
461
|
+
inline std::optional<std::chrono::system_clock::time_point> create_std__optional_std__chrono__system_clock__time_point_(const std::chrono::system_clock::time_point& value) {
|
|
462
|
+
return std::optional<std::chrono::system_clock::time_point>(value);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>
|
|
466
|
+
/**
|
|
467
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>`.
|
|
468
|
+
*/
|
|
469
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>;
|
|
470
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_(void* _Nonnull swiftUnsafePointer);
|
|
471
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_(std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_ cppType);
|
|
472
|
+
|
|
473
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>
|
|
474
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>;
|
|
475
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>& strong) { return strong; }
|
|
476
|
+
|
|
477
|
+
// pragma MARK: std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>
|
|
478
|
+
/**
|
|
479
|
+
* Wrapper struct for `std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>`.
|
|
480
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
481
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
482
|
+
*/
|
|
483
|
+
struct std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ {
|
|
484
|
+
std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout> variant;
|
|
485
|
+
std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout> variant): variant(variant) { }
|
|
486
|
+
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>() const {
|
|
487
|
+
return variant;
|
|
488
|
+
}
|
|
489
|
+
inline size_t index() const {
|
|
490
|
+
return variant.index();
|
|
491
|
+
}
|
|
492
|
+
inline PredicateWithUUID get_0() const {
|
|
493
|
+
return std::get<0>(variant);
|
|
494
|
+
}
|
|
495
|
+
inline PredicateWithUUIDs get_1() const {
|
|
496
|
+
return std::get<1>(variant);
|
|
497
|
+
}
|
|
498
|
+
inline PredicateWithMetadataKey get_2() const {
|
|
499
|
+
return std::get<2>(variant);
|
|
500
|
+
}
|
|
501
|
+
inline PredicateWithStartAndEnd get_3() const {
|
|
502
|
+
return std::get<3>(variant);
|
|
503
|
+
}
|
|
504
|
+
inline PredicateFromWorkout get_4() const {
|
|
505
|
+
return std::get<4>(variant);
|
|
506
|
+
}
|
|
507
|
+
};
|
|
508
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithUUID& value) {
|
|
509
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
510
|
+
}
|
|
511
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithUUIDs& value) {
|
|
512
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
513
|
+
}
|
|
514
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithMetadataKey& value) {
|
|
515
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
516
|
+
}
|
|
517
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithStartAndEnd& value) {
|
|
518
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
519
|
+
}
|
|
520
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateFromWorkout& value) {
|
|
521
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// pragma MARK: std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>
|
|
525
|
+
/**
|
|
526
|
+
* Specialized version of `std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>`.
|
|
527
|
+
*/
|
|
528
|
+
using std__vector_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__ = std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>;
|
|
529
|
+
inline std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>> create_std__vector_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__(size_t size) {
|
|
530
|
+
std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>> vector;
|
|
531
|
+
vector.reserve(size);
|
|
532
|
+
return vector;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// pragma MARK: std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>
|
|
536
|
+
/**
|
|
537
|
+
* Wrapper struct for `std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>`.
|
|
538
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
539
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
540
|
+
*/
|
|
541
|
+
struct std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ {
|
|
542
|
+
std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr> variant;
|
|
543
|
+
std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr> variant): variant(variant) { }
|
|
544
|
+
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>() const {
|
|
545
|
+
return variant;
|
|
546
|
+
}
|
|
547
|
+
inline size_t index() const {
|
|
548
|
+
return variant.index();
|
|
549
|
+
}
|
|
550
|
+
inline PredicateWithUUID get_0() const {
|
|
551
|
+
return std::get<0>(variant);
|
|
552
|
+
}
|
|
553
|
+
inline PredicateWithUUIDs get_1() const {
|
|
554
|
+
return std::get<1>(variant);
|
|
555
|
+
}
|
|
556
|
+
inline PredicateWithMetadataKey get_2() const {
|
|
557
|
+
return std::get<2>(variant);
|
|
558
|
+
}
|
|
559
|
+
inline PredicateWithStartAndEnd get_3() const {
|
|
560
|
+
return std::get<3>(variant);
|
|
561
|
+
}
|
|
562
|
+
inline PredicateFromWorkout get_4() const {
|
|
563
|
+
return std::get<4>(variant);
|
|
564
|
+
}
|
|
565
|
+
inline FilterForSamplesAnd get_5() const {
|
|
566
|
+
return std::get<5>(variant);
|
|
567
|
+
}
|
|
568
|
+
inline FilterForSamplesOr get_6() const {
|
|
569
|
+
return std::get<6>(variant);
|
|
570
|
+
}
|
|
571
|
+
};
|
|
572
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithUUID& value) {
|
|
573
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
574
|
+
}
|
|
575
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithUUIDs& value) {
|
|
576
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
577
|
+
}
|
|
578
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithMetadataKey& value) {
|
|
579
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
580
|
+
}
|
|
581
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithStartAndEnd& value) {
|
|
582
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
583
|
+
}
|
|
584
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateFromWorkout& value) {
|
|
585
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
586
|
+
}
|
|
587
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const FilterForSamplesAnd& value) {
|
|
588
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
589
|
+
}
|
|
590
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const FilterForSamplesOr& value) {
|
|
591
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
// pragma MARK: std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>>
|
|
595
|
+
/**
|
|
596
|
+
* Specialized version of `std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>>`.
|
|
597
|
+
*/
|
|
598
|
+
using std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr__ = std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>>;
|
|
599
|
+
inline std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>> create_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr__(const std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>& value) {
|
|
600
|
+
return std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>>(value);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// pragma MARK: std::optional<double>
|
|
604
|
+
/**
|
|
605
|
+
* Specialized version of `std::optional<double>`.
|
|
606
|
+
*/
|
|
607
|
+
using std__optional_double_ = std::optional<double>;
|
|
608
|
+
inline std::optional<double> create_std__optional_double_(const double& value) {
|
|
609
|
+
return std::optional<double>(value);
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
// pragma MARK: std::optional<QueryOptionsWithSortOrder>
|
|
613
|
+
/**
|
|
614
|
+
* Specialized version of `std::optional<QueryOptionsWithSortOrder>`.
|
|
615
|
+
*/
|
|
616
|
+
using std__optional_QueryOptionsWithSortOrder_ = std::optional<QueryOptionsWithSortOrder>;
|
|
617
|
+
inline std::optional<QueryOptionsWithSortOrder> create_std__optional_QueryOptionsWithSortOrder_(const QueryOptionsWithSortOrder& value) {
|
|
618
|
+
return std::optional<QueryOptionsWithSortOrder>(value);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
// pragma MARK: std::optional<std::shared_ptr<AnyMap>>
|
|
622
|
+
/**
|
|
623
|
+
* Specialized version of `std::optional<std::shared_ptr<AnyMap>>`.
|
|
624
|
+
*/
|
|
625
|
+
using std__optional_std__shared_ptr_AnyMap__ = std::optional<std::shared_ptr<AnyMap>>;
|
|
626
|
+
inline std::optional<std::shared_ptr<AnyMap>> create_std__optional_std__shared_ptr_AnyMap__(const std::shared_ptr<AnyMap>& value) {
|
|
627
|
+
return std::optional<std::shared_ptr<AnyMap>>(value);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// pragma MARK: std::vector<DeletedSample>
|
|
631
|
+
/**
|
|
632
|
+
* Specialized version of `std::vector<DeletedSample>`.
|
|
633
|
+
*/
|
|
634
|
+
using std__vector_DeletedSample_ = std::vector<DeletedSample>;
|
|
635
|
+
inline std::vector<DeletedSample> create_std__vector_DeletedSample_(size_t size) {
|
|
636
|
+
std::vector<DeletedSample> vector;
|
|
637
|
+
vector.reserve(size);
|
|
638
|
+
return vector;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
// pragma MARK: std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>
|
|
642
|
+
/**
|
|
643
|
+
* Specialized version of `std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>`.
|
|
644
|
+
*/
|
|
645
|
+
using std__shared_ptr_Promise_CategorySamplesWithAnchorResponse__ = std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>;
|
|
646
|
+
inline std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>> create_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse__() {
|
|
647
|
+
return Promise<CategorySamplesWithAnchorResponse>::create();
|
|
648
|
+
}
|
|
649
|
+
inline PromiseHolder<CategorySamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse__(std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>> promise) {
|
|
650
|
+
return PromiseHolder<CategorySamplesWithAnchorResponse>(std::move(promise));
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// pragma MARK: std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>
|
|
654
|
+
/**
|
|
655
|
+
* Specialized version of `std::function<void(const CategorySamplesWithAnchorResponse&)>`.
|
|
656
|
+
*/
|
|
657
|
+
using Func_void_CategorySamplesWithAnchorResponse = std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>;
|
|
658
|
+
/**
|
|
659
|
+
* Wrapper class for a `std::function<void(const CategorySamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
660
|
+
*/
|
|
661
|
+
class Func_void_CategorySamplesWithAnchorResponse_Wrapper final {
|
|
662
|
+
public:
|
|
663
|
+
explicit Func_void_CategorySamplesWithAnchorResponse_Wrapper(std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_shared<std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
664
|
+
inline void call(CategorySamplesWithAnchorResponse result) const {
|
|
665
|
+
_function->operator()(result);
|
|
666
|
+
}
|
|
667
|
+
private:
|
|
668
|
+
std::shared_ptr<std::function<void(const CategorySamplesWithAnchorResponse& /* result */)>> _function;
|
|
669
|
+
};
|
|
670
|
+
Func_void_CategorySamplesWithAnchorResponse create_Func_void_CategorySamplesWithAnchorResponse(void* _Nonnull swiftClosureWrapper);
|
|
671
|
+
inline Func_void_CategorySamplesWithAnchorResponse_Wrapper wrap_Func_void_CategorySamplesWithAnchorResponse(Func_void_CategorySamplesWithAnchorResponse value) {
|
|
672
|
+
return Func_void_CategorySamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>
|
|
676
|
+
/**
|
|
677
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>`.
|
|
678
|
+
*/
|
|
679
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>;
|
|
680
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
681
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_ cppType);
|
|
682
|
+
|
|
683
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>
|
|
684
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>;
|
|
685
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridCategoryTypeModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridCategoryTypeModuleSpec>& strong) { return strong; }
|
|
686
|
+
|
|
687
|
+
// pragma MARK: Result<std::shared_ptr<Promise<bool>>>
|
|
688
|
+
using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
|
|
689
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) {
|
|
690
|
+
return Result<std::shared_ptr<Promise<bool>>>::withValue(value);
|
|
691
|
+
}
|
|
692
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) {
|
|
693
|
+
return Result<std::shared_ptr<Promise<bool>>>::withError(error);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<CategorySample>>>>
|
|
697
|
+
using Result_std__shared_ptr_Promise_std__vector_CategorySample____ = Result<std::shared_ptr<Promise<std::vector<CategorySample>>>>;
|
|
698
|
+
inline Result_std__shared_ptr_Promise_std__vector_CategorySample____ create_Result_std__shared_ptr_Promise_std__vector_CategorySample____(const std::shared_ptr<Promise<std::vector<CategorySample>>>& value) {
|
|
699
|
+
return Result<std::shared_ptr<Promise<std::vector<CategorySample>>>>::withValue(value);
|
|
700
|
+
}
|
|
701
|
+
inline Result_std__shared_ptr_Promise_std__vector_CategorySample____ create_Result_std__shared_ptr_Promise_std__vector_CategorySample____(const std::exception_ptr& error) {
|
|
702
|
+
return Result<std::shared_ptr<Promise<std::vector<CategorySample>>>>::withError(error);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
// pragma MARK: Result<std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>>
|
|
706
|
+
using Result_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>>;
|
|
707
|
+
inline Result_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse___(const std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>& value) {
|
|
708
|
+
return Result<std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>>::withValue(value);
|
|
709
|
+
}
|
|
710
|
+
inline Result_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_CategorySamplesWithAnchorResponse___(const std::exception_ptr& error) {
|
|
711
|
+
return Result<std::shared_ptr<Promise<CategorySamplesWithAnchorResponse>>>::withError(error);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
// pragma MARK: std::shared_ptr<Promise<BloodType>>
|
|
715
|
+
/**
|
|
716
|
+
* Specialized version of `std::shared_ptr<Promise<BloodType>>`.
|
|
717
|
+
*/
|
|
718
|
+
using std__shared_ptr_Promise_BloodType__ = std::shared_ptr<Promise<BloodType>>;
|
|
719
|
+
inline std::shared_ptr<Promise<BloodType>> create_std__shared_ptr_Promise_BloodType__() {
|
|
720
|
+
return Promise<BloodType>::create();
|
|
721
|
+
}
|
|
722
|
+
inline PromiseHolder<BloodType> wrap_std__shared_ptr_Promise_BloodType__(std::shared_ptr<Promise<BloodType>> promise) {
|
|
723
|
+
return PromiseHolder<BloodType>(std::move(promise));
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// pragma MARK: std::function<void(BloodType /* result */)>
|
|
727
|
+
/**
|
|
728
|
+
* Specialized version of `std::function<void(BloodType)>`.
|
|
729
|
+
*/
|
|
730
|
+
using Func_void_BloodType = std::function<void(BloodType /* result */)>;
|
|
731
|
+
/**
|
|
732
|
+
* Wrapper class for a `std::function<void(BloodType / * result * /)>`, this can be used from Swift.
|
|
733
|
+
*/
|
|
734
|
+
class Func_void_BloodType_Wrapper final {
|
|
735
|
+
public:
|
|
736
|
+
explicit Func_void_BloodType_Wrapper(std::function<void(BloodType /* result */)>&& func): _function(std::make_shared<std::function<void(BloodType /* result */)>>(std::move(func))) {}
|
|
737
|
+
inline void call(int result) const {
|
|
738
|
+
_function->operator()(static_cast<BloodType>(result));
|
|
739
|
+
}
|
|
740
|
+
private:
|
|
741
|
+
std::shared_ptr<std::function<void(BloodType /* result */)>> _function;
|
|
742
|
+
};
|
|
743
|
+
Func_void_BloodType create_Func_void_BloodType(void* _Nonnull swiftClosureWrapper);
|
|
744
|
+
inline Func_void_BloodType_Wrapper wrap_Func_void_BloodType(Func_void_BloodType value) {
|
|
745
|
+
return Func_void_BloodType_Wrapper(std::move(value));
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
// pragma MARK: std::shared_ptr<Promise<std::chrono::system_clock::time_point>>
|
|
749
|
+
/**
|
|
750
|
+
* Specialized version of `std::shared_ptr<Promise<std::chrono::system_clock::time_point>>`.
|
|
751
|
+
*/
|
|
752
|
+
using std__shared_ptr_Promise_std__chrono__system_clock__time_point__ = std::shared_ptr<Promise<std::chrono::system_clock::time_point>>;
|
|
753
|
+
inline std::shared_ptr<Promise<std::chrono::system_clock::time_point>> create_std__shared_ptr_Promise_std__chrono__system_clock__time_point__() {
|
|
754
|
+
return Promise<std::chrono::system_clock::time_point>::create();
|
|
755
|
+
}
|
|
756
|
+
inline PromiseHolder<std::chrono::system_clock::time_point> wrap_std__shared_ptr_Promise_std__chrono__system_clock__time_point__(std::shared_ptr<Promise<std::chrono::system_clock::time_point>> promise) {
|
|
757
|
+
return PromiseHolder<std::chrono::system_clock::time_point>(std::move(promise));
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
// pragma MARK: std::function<void(std::chrono::system_clock::time_point /* result */)>
|
|
761
|
+
/**
|
|
762
|
+
* Specialized version of `std::function<void(std::chrono::system_clock::time_point)>`.
|
|
763
|
+
*/
|
|
764
|
+
using Func_void_std__chrono__system_clock__time_point = std::function<void(std::chrono::system_clock::time_point /* result */)>;
|
|
765
|
+
/**
|
|
766
|
+
* Wrapper class for a `std::function<void(std::chrono::system_clock::time_point / * result * /)>`, this can be used from Swift.
|
|
767
|
+
*/
|
|
768
|
+
class Func_void_std__chrono__system_clock__time_point_Wrapper final {
|
|
769
|
+
public:
|
|
770
|
+
explicit Func_void_std__chrono__system_clock__time_point_Wrapper(std::function<void(std::chrono::system_clock::time_point /* result */)>&& func): _function(std::make_shared<std::function<void(std::chrono::system_clock::time_point /* result */)>>(std::move(func))) {}
|
|
771
|
+
inline void call(std::chrono::system_clock::time_point result) const {
|
|
772
|
+
_function->operator()(result);
|
|
773
|
+
}
|
|
774
|
+
private:
|
|
775
|
+
std::shared_ptr<std::function<void(std::chrono::system_clock::time_point /* result */)>> _function;
|
|
776
|
+
};
|
|
777
|
+
Func_void_std__chrono__system_clock__time_point create_Func_void_std__chrono__system_clock__time_point(void* _Nonnull swiftClosureWrapper);
|
|
778
|
+
inline Func_void_std__chrono__system_clock__time_point_Wrapper wrap_Func_void_std__chrono__system_clock__time_point(Func_void_std__chrono__system_clock__time_point value) {
|
|
779
|
+
return Func_void_std__chrono__system_clock__time_point_Wrapper(std::move(value));
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
// pragma MARK: std::shared_ptr<Promise<BiologicalSex>>
|
|
783
|
+
/**
|
|
784
|
+
* Specialized version of `std::shared_ptr<Promise<BiologicalSex>>`.
|
|
785
|
+
*/
|
|
786
|
+
using std__shared_ptr_Promise_BiologicalSex__ = std::shared_ptr<Promise<BiologicalSex>>;
|
|
787
|
+
inline std::shared_ptr<Promise<BiologicalSex>> create_std__shared_ptr_Promise_BiologicalSex__() {
|
|
788
|
+
return Promise<BiologicalSex>::create();
|
|
789
|
+
}
|
|
790
|
+
inline PromiseHolder<BiologicalSex> wrap_std__shared_ptr_Promise_BiologicalSex__(std::shared_ptr<Promise<BiologicalSex>> promise) {
|
|
791
|
+
return PromiseHolder<BiologicalSex>(std::move(promise));
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
// pragma MARK: std::function<void(BiologicalSex /* result */)>
|
|
795
|
+
/**
|
|
796
|
+
* Specialized version of `std::function<void(BiologicalSex)>`.
|
|
797
|
+
*/
|
|
798
|
+
using Func_void_BiologicalSex = std::function<void(BiologicalSex /* result */)>;
|
|
799
|
+
/**
|
|
800
|
+
* Wrapper class for a `std::function<void(BiologicalSex / * result * /)>`, this can be used from Swift.
|
|
801
|
+
*/
|
|
802
|
+
class Func_void_BiologicalSex_Wrapper final {
|
|
803
|
+
public:
|
|
804
|
+
explicit Func_void_BiologicalSex_Wrapper(std::function<void(BiologicalSex /* result */)>&& func): _function(std::make_shared<std::function<void(BiologicalSex /* result */)>>(std::move(func))) {}
|
|
805
|
+
inline void call(int result) const {
|
|
806
|
+
_function->operator()(static_cast<BiologicalSex>(result));
|
|
807
|
+
}
|
|
808
|
+
private:
|
|
809
|
+
std::shared_ptr<std::function<void(BiologicalSex /* result */)>> _function;
|
|
810
|
+
};
|
|
811
|
+
Func_void_BiologicalSex create_Func_void_BiologicalSex(void* _Nonnull swiftClosureWrapper);
|
|
812
|
+
inline Func_void_BiologicalSex_Wrapper wrap_Func_void_BiologicalSex(Func_void_BiologicalSex value) {
|
|
813
|
+
return Func_void_BiologicalSex_Wrapper(std::move(value));
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
// pragma MARK: std::shared_ptr<Promise<FitzpatrickSkinType>>
|
|
817
|
+
/**
|
|
818
|
+
* Specialized version of `std::shared_ptr<Promise<FitzpatrickSkinType>>`.
|
|
819
|
+
*/
|
|
820
|
+
using std__shared_ptr_Promise_FitzpatrickSkinType__ = std::shared_ptr<Promise<FitzpatrickSkinType>>;
|
|
821
|
+
inline std::shared_ptr<Promise<FitzpatrickSkinType>> create_std__shared_ptr_Promise_FitzpatrickSkinType__() {
|
|
822
|
+
return Promise<FitzpatrickSkinType>::create();
|
|
823
|
+
}
|
|
824
|
+
inline PromiseHolder<FitzpatrickSkinType> wrap_std__shared_ptr_Promise_FitzpatrickSkinType__(std::shared_ptr<Promise<FitzpatrickSkinType>> promise) {
|
|
825
|
+
return PromiseHolder<FitzpatrickSkinType>(std::move(promise));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
// pragma MARK: std::function<void(FitzpatrickSkinType /* result */)>
|
|
829
|
+
/**
|
|
830
|
+
* Specialized version of `std::function<void(FitzpatrickSkinType)>`.
|
|
831
|
+
*/
|
|
832
|
+
using Func_void_FitzpatrickSkinType = std::function<void(FitzpatrickSkinType /* result */)>;
|
|
833
|
+
/**
|
|
834
|
+
* Wrapper class for a `std::function<void(FitzpatrickSkinType / * result * /)>`, this can be used from Swift.
|
|
835
|
+
*/
|
|
836
|
+
class Func_void_FitzpatrickSkinType_Wrapper final {
|
|
837
|
+
public:
|
|
838
|
+
explicit Func_void_FitzpatrickSkinType_Wrapper(std::function<void(FitzpatrickSkinType /* result */)>&& func): _function(std::make_shared<std::function<void(FitzpatrickSkinType /* result */)>>(std::move(func))) {}
|
|
839
|
+
inline void call(int result) const {
|
|
840
|
+
_function->operator()(static_cast<FitzpatrickSkinType>(result));
|
|
841
|
+
}
|
|
842
|
+
private:
|
|
843
|
+
std::shared_ptr<std::function<void(FitzpatrickSkinType /* result */)>> _function;
|
|
844
|
+
};
|
|
845
|
+
Func_void_FitzpatrickSkinType create_Func_void_FitzpatrickSkinType(void* _Nonnull swiftClosureWrapper);
|
|
846
|
+
inline Func_void_FitzpatrickSkinType_Wrapper wrap_Func_void_FitzpatrickSkinType(Func_void_FitzpatrickSkinType value) {
|
|
847
|
+
return Func_void_FitzpatrickSkinType_Wrapper(std::move(value));
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
// pragma MARK: std::shared_ptr<Promise<WheelchairUse>>
|
|
851
|
+
/**
|
|
852
|
+
* Specialized version of `std::shared_ptr<Promise<WheelchairUse>>`.
|
|
853
|
+
*/
|
|
854
|
+
using std__shared_ptr_Promise_WheelchairUse__ = std::shared_ptr<Promise<WheelchairUse>>;
|
|
855
|
+
inline std::shared_ptr<Promise<WheelchairUse>> create_std__shared_ptr_Promise_WheelchairUse__() {
|
|
856
|
+
return Promise<WheelchairUse>::create();
|
|
857
|
+
}
|
|
858
|
+
inline PromiseHolder<WheelchairUse> wrap_std__shared_ptr_Promise_WheelchairUse__(std::shared_ptr<Promise<WheelchairUse>> promise) {
|
|
859
|
+
return PromiseHolder<WheelchairUse>(std::move(promise));
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
// pragma MARK: std::function<void(WheelchairUse /* result */)>
|
|
863
|
+
/**
|
|
864
|
+
* Specialized version of `std::function<void(WheelchairUse)>`.
|
|
865
|
+
*/
|
|
866
|
+
using Func_void_WheelchairUse = std::function<void(WheelchairUse /* result */)>;
|
|
867
|
+
/**
|
|
868
|
+
* Wrapper class for a `std::function<void(WheelchairUse / * result * /)>`, this can be used from Swift.
|
|
869
|
+
*/
|
|
870
|
+
class Func_void_WheelchairUse_Wrapper final {
|
|
871
|
+
public:
|
|
872
|
+
explicit Func_void_WheelchairUse_Wrapper(std::function<void(WheelchairUse /* result */)>&& func): _function(std::make_shared<std::function<void(WheelchairUse /* result */)>>(std::move(func))) {}
|
|
873
|
+
inline void call(int result) const {
|
|
874
|
+
_function->operator()(static_cast<WheelchairUse>(result));
|
|
875
|
+
}
|
|
876
|
+
private:
|
|
877
|
+
std::shared_ptr<std::function<void(WheelchairUse /* result */)>> _function;
|
|
878
|
+
};
|
|
879
|
+
Func_void_WheelchairUse create_Func_void_WheelchairUse(void* _Nonnull swiftClosureWrapper);
|
|
880
|
+
inline Func_void_WheelchairUse_Wrapper wrap_Func_void_WheelchairUse(Func_void_WheelchairUse value) {
|
|
881
|
+
return Func_void_WheelchairUse_Wrapper(std::move(value));
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>
|
|
885
|
+
/**
|
|
886
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>`.
|
|
887
|
+
*/
|
|
888
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>;
|
|
889
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
890
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_ cppType);
|
|
891
|
+
|
|
892
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>
|
|
893
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>;
|
|
894
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridCharacteristicTypeModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridCharacteristicTypeModuleSpec>& strong) { return strong; }
|
|
895
|
+
|
|
896
|
+
// pragma MARK: Result<BloodType>
|
|
897
|
+
using Result_BloodType_ = Result<BloodType>;
|
|
898
|
+
inline Result_BloodType_ create_Result_BloodType_(BloodType value) {
|
|
899
|
+
return Result<BloodType>::withValue(std::move(value));
|
|
900
|
+
}
|
|
901
|
+
inline Result_BloodType_ create_Result_BloodType_(const std::exception_ptr& error) {
|
|
902
|
+
return Result<BloodType>::withError(error);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
// pragma MARK: Result<std::chrono::system_clock::time_point>
|
|
906
|
+
using Result_std__chrono__system_clock__time_point_ = Result<std::chrono::system_clock::time_point>;
|
|
907
|
+
inline Result_std__chrono__system_clock__time_point_ create_Result_std__chrono__system_clock__time_point_(std::chrono::system_clock::time_point value) {
|
|
908
|
+
return Result<std::chrono::system_clock::time_point>::withValue(std::move(value));
|
|
909
|
+
}
|
|
910
|
+
inline Result_std__chrono__system_clock__time_point_ create_Result_std__chrono__system_clock__time_point_(const std::exception_ptr& error) {
|
|
911
|
+
return Result<std::chrono::system_clock::time_point>::withError(error);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
// pragma MARK: Result<BiologicalSex>
|
|
915
|
+
using Result_BiologicalSex_ = Result<BiologicalSex>;
|
|
916
|
+
inline Result_BiologicalSex_ create_Result_BiologicalSex_(BiologicalSex value) {
|
|
917
|
+
return Result<BiologicalSex>::withValue(std::move(value));
|
|
918
|
+
}
|
|
919
|
+
inline Result_BiologicalSex_ create_Result_BiologicalSex_(const std::exception_ptr& error) {
|
|
920
|
+
return Result<BiologicalSex>::withError(error);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
// pragma MARK: Result<FitzpatrickSkinType>
|
|
924
|
+
using Result_FitzpatrickSkinType_ = Result<FitzpatrickSkinType>;
|
|
925
|
+
inline Result_FitzpatrickSkinType_ create_Result_FitzpatrickSkinType_(FitzpatrickSkinType value) {
|
|
926
|
+
return Result<FitzpatrickSkinType>::withValue(std::move(value));
|
|
927
|
+
}
|
|
928
|
+
inline Result_FitzpatrickSkinType_ create_Result_FitzpatrickSkinType_(const std::exception_ptr& error) {
|
|
929
|
+
return Result<FitzpatrickSkinType>::withError(error);
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// pragma MARK: Result<WheelchairUse>
|
|
933
|
+
using Result_WheelchairUse_ = Result<WheelchairUse>;
|
|
934
|
+
inline Result_WheelchairUse_ create_Result_WheelchairUse_(WheelchairUse value) {
|
|
935
|
+
return Result<WheelchairUse>::withValue(std::move(value));
|
|
936
|
+
}
|
|
937
|
+
inline Result_WheelchairUse_ create_Result_WheelchairUse_(const std::exception_ptr& error) {
|
|
938
|
+
return Result<WheelchairUse>::withError(error);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// pragma MARK: Result<std::shared_ptr<Promise<BloodType>>>
|
|
942
|
+
using Result_std__shared_ptr_Promise_BloodType___ = Result<std::shared_ptr<Promise<BloodType>>>;
|
|
943
|
+
inline Result_std__shared_ptr_Promise_BloodType___ create_Result_std__shared_ptr_Promise_BloodType___(const std::shared_ptr<Promise<BloodType>>& value) {
|
|
944
|
+
return Result<std::shared_ptr<Promise<BloodType>>>::withValue(value);
|
|
945
|
+
}
|
|
946
|
+
inline Result_std__shared_ptr_Promise_BloodType___ create_Result_std__shared_ptr_Promise_BloodType___(const std::exception_ptr& error) {
|
|
947
|
+
return Result<std::shared_ptr<Promise<BloodType>>>::withError(error);
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::chrono::system_clock::time_point>>>
|
|
951
|
+
using Result_std__shared_ptr_Promise_std__chrono__system_clock__time_point___ = Result<std::shared_ptr<Promise<std::chrono::system_clock::time_point>>>;
|
|
952
|
+
inline Result_std__shared_ptr_Promise_std__chrono__system_clock__time_point___ create_Result_std__shared_ptr_Promise_std__chrono__system_clock__time_point___(const std::shared_ptr<Promise<std::chrono::system_clock::time_point>>& value) {
|
|
953
|
+
return Result<std::shared_ptr<Promise<std::chrono::system_clock::time_point>>>::withValue(value);
|
|
954
|
+
}
|
|
955
|
+
inline Result_std__shared_ptr_Promise_std__chrono__system_clock__time_point___ create_Result_std__shared_ptr_Promise_std__chrono__system_clock__time_point___(const std::exception_ptr& error) {
|
|
956
|
+
return Result<std::shared_ptr<Promise<std::chrono::system_clock::time_point>>>::withError(error);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
// pragma MARK: Result<std::shared_ptr<Promise<BiologicalSex>>>
|
|
960
|
+
using Result_std__shared_ptr_Promise_BiologicalSex___ = Result<std::shared_ptr<Promise<BiologicalSex>>>;
|
|
961
|
+
inline Result_std__shared_ptr_Promise_BiologicalSex___ create_Result_std__shared_ptr_Promise_BiologicalSex___(const std::shared_ptr<Promise<BiologicalSex>>& value) {
|
|
962
|
+
return Result<std::shared_ptr<Promise<BiologicalSex>>>::withValue(value);
|
|
963
|
+
}
|
|
964
|
+
inline Result_std__shared_ptr_Promise_BiologicalSex___ create_Result_std__shared_ptr_Promise_BiologicalSex___(const std::exception_ptr& error) {
|
|
965
|
+
return Result<std::shared_ptr<Promise<BiologicalSex>>>::withError(error);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
// pragma MARK: Result<std::shared_ptr<Promise<FitzpatrickSkinType>>>
|
|
969
|
+
using Result_std__shared_ptr_Promise_FitzpatrickSkinType___ = Result<std::shared_ptr<Promise<FitzpatrickSkinType>>>;
|
|
970
|
+
inline Result_std__shared_ptr_Promise_FitzpatrickSkinType___ create_Result_std__shared_ptr_Promise_FitzpatrickSkinType___(const std::shared_ptr<Promise<FitzpatrickSkinType>>& value) {
|
|
971
|
+
return Result<std::shared_ptr<Promise<FitzpatrickSkinType>>>::withValue(value);
|
|
972
|
+
}
|
|
973
|
+
inline Result_std__shared_ptr_Promise_FitzpatrickSkinType___ create_Result_std__shared_ptr_Promise_FitzpatrickSkinType___(const std::exception_ptr& error) {
|
|
974
|
+
return Result<std::shared_ptr<Promise<FitzpatrickSkinType>>>::withError(error);
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
// pragma MARK: Result<std::shared_ptr<Promise<WheelchairUse>>>
|
|
978
|
+
using Result_std__shared_ptr_Promise_WheelchairUse___ = Result<std::shared_ptr<Promise<WheelchairUse>>>;
|
|
979
|
+
inline Result_std__shared_ptr_Promise_WheelchairUse___ create_Result_std__shared_ptr_Promise_WheelchairUse___(const std::shared_ptr<Promise<WheelchairUse>>& value) {
|
|
980
|
+
return Result<std::shared_ptr<Promise<WheelchairUse>>>::withValue(value);
|
|
981
|
+
}
|
|
982
|
+
inline Result_std__shared_ptr_Promise_WheelchairUse___ create_Result_std__shared_ptr_Promise_WheelchairUse___(const std::exception_ptr& error) {
|
|
983
|
+
return Result<std::shared_ptr<Promise<WheelchairUse>>>::withError(error);
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
// pragma MARK: std::vector<IdentifierWithUnit>
|
|
987
|
+
/**
|
|
988
|
+
* Specialized version of `std::vector<IdentifierWithUnit>`.
|
|
989
|
+
*/
|
|
990
|
+
using std__vector_IdentifierWithUnit_ = std::vector<IdentifierWithUnit>;
|
|
991
|
+
inline std::vector<IdentifierWithUnit> create_std__vector_IdentifierWithUnit_(size_t size) {
|
|
992
|
+
std::vector<IdentifierWithUnit> vector;
|
|
993
|
+
vector.reserve(size);
|
|
994
|
+
return vector;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>
|
|
998
|
+
/**
|
|
999
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>`.
|
|
1000
|
+
*/
|
|
1001
|
+
using std__shared_ptr_Promise_std__vector_IdentifierWithUnit___ = std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>;
|
|
1002
|
+
inline std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>> create_std__shared_ptr_Promise_std__vector_IdentifierWithUnit___() {
|
|
1003
|
+
return Promise<std::vector<IdentifierWithUnit>>::create();
|
|
1004
|
+
}
|
|
1005
|
+
inline PromiseHolder<std::vector<IdentifierWithUnit>> wrap_std__shared_ptr_Promise_std__vector_IdentifierWithUnit___(std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>> promise) {
|
|
1006
|
+
return PromiseHolder<std::vector<IdentifierWithUnit>>(std::move(promise));
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
// pragma MARK: std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>
|
|
1010
|
+
/**
|
|
1011
|
+
* Specialized version of `std::function<void(const std::vector<IdentifierWithUnit>&)>`.
|
|
1012
|
+
*/
|
|
1013
|
+
using Func_void_std__vector_IdentifierWithUnit_ = std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>;
|
|
1014
|
+
/**
|
|
1015
|
+
* Wrapper class for a `std::function<void(const std::vector<IdentifierWithUnit>& / * result * /)>`, this can be used from Swift.
|
|
1016
|
+
*/
|
|
1017
|
+
class Func_void_std__vector_IdentifierWithUnit__Wrapper final {
|
|
1018
|
+
public:
|
|
1019
|
+
explicit Func_void_std__vector_IdentifierWithUnit__Wrapper(std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>>(std::move(func))) {}
|
|
1020
|
+
inline void call(std::vector<IdentifierWithUnit> result) const {
|
|
1021
|
+
_function->operator()(result);
|
|
1022
|
+
}
|
|
1023
|
+
private:
|
|
1024
|
+
std::shared_ptr<std::function<void(const std::vector<IdentifierWithUnit>& /* result */)>> _function;
|
|
1025
|
+
};
|
|
1026
|
+
Func_void_std__vector_IdentifierWithUnit_ create_Func_void_std__vector_IdentifierWithUnit_(void* _Nonnull swiftClosureWrapper);
|
|
1027
|
+
inline Func_void_std__vector_IdentifierWithUnit__Wrapper wrap_Func_void_std__vector_IdentifierWithUnit_(Func_void_std__vector_IdentifierWithUnit_ value) {
|
|
1028
|
+
return Func_void_std__vector_IdentifierWithUnit__Wrapper(std::move(value));
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
// pragma MARK: std::vector<QuantityTypeIdentifier>
|
|
1032
|
+
/**
|
|
1033
|
+
* Specialized version of `std::vector<QuantityTypeIdentifier>`.
|
|
1034
|
+
*/
|
|
1035
|
+
using std__vector_QuantityTypeIdentifier_ = std::vector<QuantityTypeIdentifier>;
|
|
1036
|
+
inline std::vector<QuantityTypeIdentifier> create_std__vector_QuantityTypeIdentifier_(size_t size) {
|
|
1037
|
+
std::vector<QuantityTypeIdentifier> vector;
|
|
1038
|
+
vector.reserve(size);
|
|
1039
|
+
return vector;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// pragma MARK: std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>
|
|
1043
|
+
/**
|
|
1044
|
+
* Specialized version of `std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>`.
|
|
1045
|
+
*/
|
|
1046
|
+
using std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__ = std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>;
|
|
1047
|
+
inline std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>> create_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__(size_t size) {
|
|
1048
|
+
std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>> vector;
|
|
1049
|
+
vector.reserve(size);
|
|
1050
|
+
return vector;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>
|
|
1054
|
+
/**
|
|
1055
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>`.
|
|
1056
|
+
*/
|
|
1057
|
+
using std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec____ = std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>;
|
|
1058
|
+
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>> create_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec____() {
|
|
1059
|
+
return Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>::create();
|
|
1060
|
+
}
|
|
1061
|
+
inline PromiseHolder<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>> wrap_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec____(std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>> promise) {
|
|
1062
|
+
return PromiseHolder<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>(std::move(promise));
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
// pragma MARK: std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& /* result */)>
|
|
1066
|
+
/**
|
|
1067
|
+
* Specialized version of `std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>&)>`.
|
|
1068
|
+
*/
|
|
1069
|
+
using Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__ = std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& /* result */)>;
|
|
1070
|
+
/**
|
|
1071
|
+
* Wrapper class for a `std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& / * result * /)>`, this can be used from Swift.
|
|
1072
|
+
*/
|
|
1073
|
+
class Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec___Wrapper final {
|
|
1074
|
+
public:
|
|
1075
|
+
explicit Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec___Wrapper(std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& /* result */)>>(std::move(func))) {}
|
|
1076
|
+
inline void call(std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>> result) const {
|
|
1077
|
+
_function->operator()(result);
|
|
1078
|
+
}
|
|
1079
|
+
private:
|
|
1080
|
+
std::shared_ptr<std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>& /* result */)>> _function;
|
|
1081
|
+
};
|
|
1082
|
+
Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__ create_Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__(void* _Nonnull swiftClosureWrapper);
|
|
1083
|
+
inline Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec___Wrapper wrap_Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__(Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__ value) {
|
|
1084
|
+
return Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec___Wrapper(std::move(value));
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
// pragma MARK: std::function<void(const OnChangeCallbackArgs& /* args */)>
|
|
1088
|
+
/**
|
|
1089
|
+
* Specialized version of `std::function<void(const OnChangeCallbackArgs&)>`.
|
|
1090
|
+
*/
|
|
1091
|
+
using Func_void_OnChangeCallbackArgs = std::function<void(const OnChangeCallbackArgs& /* args */)>;
|
|
1092
|
+
/**
|
|
1093
|
+
* Wrapper class for a `std::function<void(const OnChangeCallbackArgs& / * args * /)>`, this can be used from Swift.
|
|
1094
|
+
*/
|
|
1095
|
+
class Func_void_OnChangeCallbackArgs_Wrapper final {
|
|
1096
|
+
public:
|
|
1097
|
+
explicit Func_void_OnChangeCallbackArgs_Wrapper(std::function<void(const OnChangeCallbackArgs& /* args */)>&& func): _function(std::make_shared<std::function<void(const OnChangeCallbackArgs& /* args */)>>(std::move(func))) {}
|
|
1098
|
+
inline void call(OnChangeCallbackArgs args) const {
|
|
1099
|
+
_function->operator()(args);
|
|
1100
|
+
}
|
|
1101
|
+
private:
|
|
1102
|
+
std::shared_ptr<std::function<void(const OnChangeCallbackArgs& /* args */)>> _function;
|
|
1103
|
+
};
|
|
1104
|
+
Func_void_OnChangeCallbackArgs create_Func_void_OnChangeCallbackArgs(void* _Nonnull swiftClosureWrapper);
|
|
1105
|
+
inline Func_void_OnChangeCallbackArgs_Wrapper wrap_Func_void_OnChangeCallbackArgs(Func_void_OnChangeCallbackArgs value) {
|
|
1106
|
+
return Func_void_OnChangeCallbackArgs_Wrapper(std::move(value));
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
// pragma MARK: std::shared_ptr<Promise<double>>
|
|
1110
|
+
/**
|
|
1111
|
+
* Specialized version of `std::shared_ptr<Promise<double>>`.
|
|
1112
|
+
*/
|
|
1113
|
+
using std__shared_ptr_Promise_double__ = std::shared_ptr<Promise<double>>;
|
|
1114
|
+
inline std::shared_ptr<Promise<double>> create_std__shared_ptr_Promise_double__() {
|
|
1115
|
+
return Promise<double>::create();
|
|
1116
|
+
}
|
|
1117
|
+
inline PromiseHolder<double> wrap_std__shared_ptr_Promise_double__(std::shared_ptr<Promise<double>> promise) {
|
|
1118
|
+
return PromiseHolder<double>(std::move(promise));
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
// pragma MARK: std::function<void(double /* result */)>
|
|
1122
|
+
/**
|
|
1123
|
+
* Specialized version of `std::function<void(double)>`.
|
|
1124
|
+
*/
|
|
1125
|
+
using Func_void_double = std::function<void(double /* result */)>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Wrapper class for a `std::function<void(double / * result * /)>`, this can be used from Swift.
|
|
1128
|
+
*/
|
|
1129
|
+
class Func_void_double_Wrapper final {
|
|
1130
|
+
public:
|
|
1131
|
+
explicit Func_void_double_Wrapper(std::function<void(double /* result */)>&& func): _function(std::make_shared<std::function<void(double /* result */)>>(std::move(func))) {}
|
|
1132
|
+
inline void call(double result) const {
|
|
1133
|
+
_function->operator()(result);
|
|
1134
|
+
}
|
|
1135
|
+
private:
|
|
1136
|
+
std::shared_ptr<std::function<void(double /* result */)>> _function;
|
|
1137
|
+
};
|
|
1138
|
+
Func_void_double create_Func_void_double(void* _Nonnull swiftClosureWrapper);
|
|
1139
|
+
inline Func_void_double_Wrapper wrap_Func_void_double(Func_void_double value) {
|
|
1140
|
+
return Func_void_double_Wrapper(std::move(value));
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
// pragma MARK: std::shared_ptr<Promise<AuthorizationRequestStatus>>
|
|
1144
|
+
/**
|
|
1145
|
+
* Specialized version of `std::shared_ptr<Promise<AuthorizationRequestStatus>>`.
|
|
1146
|
+
*/
|
|
1147
|
+
using std__shared_ptr_Promise_AuthorizationRequestStatus__ = std::shared_ptr<Promise<AuthorizationRequestStatus>>;
|
|
1148
|
+
inline std::shared_ptr<Promise<AuthorizationRequestStatus>> create_std__shared_ptr_Promise_AuthorizationRequestStatus__() {
|
|
1149
|
+
return Promise<AuthorizationRequestStatus>::create();
|
|
1150
|
+
}
|
|
1151
|
+
inline PromiseHolder<AuthorizationRequestStatus> wrap_std__shared_ptr_Promise_AuthorizationRequestStatus__(std::shared_ptr<Promise<AuthorizationRequestStatus>> promise) {
|
|
1152
|
+
return PromiseHolder<AuthorizationRequestStatus>(std::move(promise));
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// pragma MARK: std::function<void(AuthorizationRequestStatus /* result */)>
|
|
1156
|
+
/**
|
|
1157
|
+
* Specialized version of `std::function<void(AuthorizationRequestStatus)>`.
|
|
1158
|
+
*/
|
|
1159
|
+
using Func_void_AuthorizationRequestStatus = std::function<void(AuthorizationRequestStatus /* result */)>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Wrapper class for a `std::function<void(AuthorizationRequestStatus / * result * /)>`, this can be used from Swift.
|
|
1162
|
+
*/
|
|
1163
|
+
class Func_void_AuthorizationRequestStatus_Wrapper final {
|
|
1164
|
+
public:
|
|
1165
|
+
explicit Func_void_AuthorizationRequestStatus_Wrapper(std::function<void(AuthorizationRequestStatus /* result */)>&& func): _function(std::make_shared<std::function<void(AuthorizationRequestStatus /* result */)>>(std::move(func))) {}
|
|
1166
|
+
inline void call(int result) const {
|
|
1167
|
+
_function->operator()(static_cast<AuthorizationRequestStatus>(result));
|
|
1168
|
+
}
|
|
1169
|
+
private:
|
|
1170
|
+
std::shared_ptr<std::function<void(AuthorizationRequestStatus /* result */)>> _function;
|
|
1171
|
+
};
|
|
1172
|
+
Func_void_AuthorizationRequestStatus create_Func_void_AuthorizationRequestStatus(void* _Nonnull swiftClosureWrapper);
|
|
1173
|
+
inline Func_void_AuthorizationRequestStatus_Wrapper wrap_Func_void_AuthorizationRequestStatus(Func_void_AuthorizationRequestStatus value) {
|
|
1174
|
+
return Func_void_AuthorizationRequestStatus_Wrapper(std::move(value));
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
// pragma MARK: std::vector<SampleTypeIdentifierWriteable>
|
|
1178
|
+
/**
|
|
1179
|
+
* Specialized version of `std::vector<SampleTypeIdentifierWriteable>`.
|
|
1180
|
+
*/
|
|
1181
|
+
using std__vector_SampleTypeIdentifierWriteable_ = std::vector<SampleTypeIdentifierWriteable>;
|
|
1182
|
+
inline std::vector<SampleTypeIdentifierWriteable> create_std__vector_SampleTypeIdentifierWriteable_(size_t size) {
|
|
1183
|
+
std::vector<SampleTypeIdentifierWriteable> vector;
|
|
1184
|
+
vector.reserve(size);
|
|
1185
|
+
return vector;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
// pragma MARK: std::vector<ObjectTypeIdentifier>
|
|
1189
|
+
/**
|
|
1190
|
+
* Specialized version of `std::vector<ObjectTypeIdentifier>`.
|
|
1191
|
+
*/
|
|
1192
|
+
using std__vector_ObjectTypeIdentifier_ = std::vector<ObjectTypeIdentifier>;
|
|
1193
|
+
inline std::vector<ObjectTypeIdentifier> create_std__vector_ObjectTypeIdentifier_(size_t size) {
|
|
1194
|
+
std::vector<ObjectTypeIdentifier> vector;
|
|
1195
|
+
vector.reserve(size);
|
|
1196
|
+
return vector;
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
// pragma MARK: std::unordered_map<std::string, bool>
|
|
1200
|
+
/**
|
|
1201
|
+
* Specialized version of `std::unordered_map<std::string, bool>`.
|
|
1202
|
+
*/
|
|
1203
|
+
using std__unordered_map_std__string__bool_ = std::unordered_map<std::string, bool>;
|
|
1204
|
+
inline std::unordered_map<std::string, bool> create_std__unordered_map_std__string__bool_(size_t size) {
|
|
1205
|
+
std::unordered_map<std::string, bool> map;
|
|
1206
|
+
map.reserve(size);
|
|
1207
|
+
return map;
|
|
1208
|
+
}
|
|
1209
|
+
inline std::vector<std::string> get_std__unordered_map_std__string__bool__keys(const std__unordered_map_std__string__bool_& map) {
|
|
1210
|
+
std::vector<std::string> keys;
|
|
1211
|
+
keys.reserve(map.size());
|
|
1212
|
+
for (const auto& entry : map) {
|
|
1213
|
+
keys.push_back(entry.first);
|
|
1214
|
+
}
|
|
1215
|
+
return keys;
|
|
1216
|
+
}
|
|
1217
|
+
inline void emplace_std__unordered_map_std__string__bool_(std__unordered_map_std__string__bool_& map, const std::string& key, const bool& value) {
|
|
1218
|
+
map.emplace(key, value);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
// pragma MARK: std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>
|
|
1222
|
+
/**
|
|
1223
|
+
* Specialized version of `std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>`.
|
|
1224
|
+
*/
|
|
1225
|
+
using std__shared_ptr_Promise_std__unordered_map_std__string__bool___ = std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>;
|
|
1226
|
+
inline std::shared_ptr<Promise<std::unordered_map<std::string, bool>>> create_std__shared_ptr_Promise_std__unordered_map_std__string__bool___() {
|
|
1227
|
+
return Promise<std::unordered_map<std::string, bool>>::create();
|
|
1228
|
+
}
|
|
1229
|
+
inline PromiseHolder<std::unordered_map<std::string, bool>> wrap_std__shared_ptr_Promise_std__unordered_map_std__string__bool___(std::shared_ptr<Promise<std::unordered_map<std::string, bool>>> promise) {
|
|
1230
|
+
return PromiseHolder<std::unordered_map<std::string, bool>>(std::move(promise));
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
// pragma MARK: std::function<void(const std::unordered_map<std::string, bool>& /* result */)>
|
|
1234
|
+
/**
|
|
1235
|
+
* Specialized version of `std::function<void(const std::unordered_map<std::string, bool>&)>`.
|
|
1236
|
+
*/
|
|
1237
|
+
using Func_void_std__unordered_map_std__string__bool_ = std::function<void(const std::unordered_map<std::string, bool>& /* result */)>;
|
|
1238
|
+
/**
|
|
1239
|
+
* Wrapper class for a `std::function<void(const std::unordered_map<std::string, bool>& / * result * /)>`, this can be used from Swift.
|
|
1240
|
+
*/
|
|
1241
|
+
class Func_void_std__unordered_map_std__string__bool__Wrapper final {
|
|
1242
|
+
public:
|
|
1243
|
+
explicit Func_void_std__unordered_map_std__string__bool__Wrapper(std::function<void(const std::unordered_map<std::string, bool>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::unordered_map<std::string, bool>& /* result */)>>(std::move(func))) {}
|
|
1244
|
+
inline void call(std::unordered_map<std::string, bool> result) const {
|
|
1245
|
+
_function->operator()(result);
|
|
1246
|
+
}
|
|
1247
|
+
private:
|
|
1248
|
+
std::shared_ptr<std::function<void(const std::unordered_map<std::string, bool>& /* result */)>> _function;
|
|
1249
|
+
};
|
|
1250
|
+
Func_void_std__unordered_map_std__string__bool_ create_Func_void_std__unordered_map_std__string__bool_(void* _Nonnull swiftClosureWrapper);
|
|
1251
|
+
inline Func_void_std__unordered_map_std__string__bool__Wrapper wrap_Func_void_std__unordered_map_std__string__bool_(Func_void_std__unordered_map_std__string__bool_ value) {
|
|
1252
|
+
return Func_void_std__unordered_map_std__string__bool__Wrapper(std::move(value));
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>
|
|
1256
|
+
/**
|
|
1257
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>`.
|
|
1258
|
+
*/
|
|
1259
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>;
|
|
1260
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
1261
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_ cppType);
|
|
1262
|
+
|
|
1263
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>
|
|
1264
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>;
|
|
1265
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridCoreModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridCoreModuleSpec>& strong) { return strong; }
|
|
1266
|
+
|
|
1267
|
+
// pragma MARK: Result<bool>
|
|
1268
|
+
using Result_bool_ = Result<bool>;
|
|
1269
|
+
inline Result_bool_ create_Result_bool_(bool value) {
|
|
1270
|
+
return Result<bool>::withValue(std::move(value));
|
|
1271
|
+
}
|
|
1272
|
+
inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) {
|
|
1273
|
+
return Result<bool>::withError(error);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>
|
|
1277
|
+
using Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____ = Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>;
|
|
1278
|
+
inline Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____ create_Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____(const std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>& value) {
|
|
1279
|
+
return Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>::withValue(value);
|
|
1280
|
+
}
|
|
1281
|
+
inline Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____ create_Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____(const std::exception_ptr& error) {
|
|
1282
|
+
return Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>::withError(error);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>>
|
|
1286
|
+
using Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_____ = Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>>;
|
|
1287
|
+
inline Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_____ create_Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_____(const std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>& value) {
|
|
1288
|
+
return Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>>::withValue(value);
|
|
1289
|
+
}
|
|
1290
|
+
inline Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_____ create_Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec_____(const std::exception_ptr& error) {
|
|
1291
|
+
return Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridSourceProxySpec>>>>>::withError(error);
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// pragma MARK: Result<std::string>
|
|
1295
|
+
using Result_std__string_ = Result<std::string>;
|
|
1296
|
+
inline Result_std__string_ create_Result_std__string_(const std::string& value) {
|
|
1297
|
+
return Result<std::string>::withValue(value);
|
|
1298
|
+
}
|
|
1299
|
+
inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) {
|
|
1300
|
+
return Result<std::string>::withError(error);
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
// pragma MARK: Result<double>
|
|
1304
|
+
using Result_double_ = Result<double>;
|
|
1305
|
+
inline Result_double_ create_Result_double_(double value) {
|
|
1306
|
+
return Result<double>::withValue(std::move(value));
|
|
1307
|
+
}
|
|
1308
|
+
inline Result_double_ create_Result_double_(const std::exception_ptr& error) {
|
|
1309
|
+
return Result<double>::withError(error);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
// pragma MARK: Result<std::shared_ptr<Promise<double>>>
|
|
1313
|
+
using Result_std__shared_ptr_Promise_double___ = Result<std::shared_ptr<Promise<double>>>;
|
|
1314
|
+
inline Result_std__shared_ptr_Promise_double___ create_Result_std__shared_ptr_Promise_double___(const std::shared_ptr<Promise<double>>& value) {
|
|
1315
|
+
return Result<std::shared_ptr<Promise<double>>>::withValue(value);
|
|
1316
|
+
}
|
|
1317
|
+
inline Result_std__shared_ptr_Promise_double___ create_Result_std__shared_ptr_Promise_double___(const std::exception_ptr& error) {
|
|
1318
|
+
return Result<std::shared_ptr<Promise<double>>>::withError(error);
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
// pragma MARK: Result<AuthorizationStatus>
|
|
1322
|
+
using Result_AuthorizationStatus_ = Result<AuthorizationStatus>;
|
|
1323
|
+
inline Result_AuthorizationStatus_ create_Result_AuthorizationStatus_(AuthorizationStatus value) {
|
|
1324
|
+
return Result<AuthorizationStatus>::withValue(std::move(value));
|
|
1325
|
+
}
|
|
1326
|
+
inline Result_AuthorizationStatus_ create_Result_AuthorizationStatus_(const std::exception_ptr& error) {
|
|
1327
|
+
return Result<AuthorizationStatus>::withError(error);
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
// pragma MARK: Result<std::shared_ptr<Promise<AuthorizationRequestStatus>>>
|
|
1331
|
+
using Result_std__shared_ptr_Promise_AuthorizationRequestStatus___ = Result<std::shared_ptr<Promise<AuthorizationRequestStatus>>>;
|
|
1332
|
+
inline Result_std__shared_ptr_Promise_AuthorizationRequestStatus___ create_Result_std__shared_ptr_Promise_AuthorizationRequestStatus___(const std::shared_ptr<Promise<AuthorizationRequestStatus>>& value) {
|
|
1333
|
+
return Result<std::shared_ptr<Promise<AuthorizationRequestStatus>>>::withValue(value);
|
|
1334
|
+
}
|
|
1335
|
+
inline Result_std__shared_ptr_Promise_AuthorizationRequestStatus___ create_Result_std__shared_ptr_Promise_AuthorizationRequestStatus___(const std::exception_ptr& error) {
|
|
1336
|
+
return Result<std::shared_ptr<Promise<AuthorizationRequestStatus>>>::withError(error);
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
// pragma MARK: Result<std::unordered_map<std::string, bool>>
|
|
1340
|
+
using Result_std__unordered_map_std__string__bool__ = Result<std::unordered_map<std::string, bool>>;
|
|
1341
|
+
inline Result_std__unordered_map_std__string__bool__ create_Result_std__unordered_map_std__string__bool__(const std::unordered_map<std::string, bool>& value) {
|
|
1342
|
+
return Result<std::unordered_map<std::string, bool>>::withValue(value);
|
|
1343
|
+
}
|
|
1344
|
+
inline Result_std__unordered_map_std__string__bool__ create_Result_std__unordered_map_std__string__bool__(const std::exception_ptr& error) {
|
|
1345
|
+
return Result<std::unordered_map<std::string, bool>>::withError(error);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>>
|
|
1349
|
+
using Result_std__shared_ptr_Promise_std__unordered_map_std__string__bool____ = Result<std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>>;
|
|
1350
|
+
inline Result_std__shared_ptr_Promise_std__unordered_map_std__string__bool____ create_Result_std__shared_ptr_Promise_std__unordered_map_std__string__bool____(const std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>& value) {
|
|
1351
|
+
return Result<std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>>::withValue(value);
|
|
1352
|
+
}
|
|
1353
|
+
inline Result_std__shared_ptr_Promise_std__unordered_map_std__string__bool____ create_Result_std__shared_ptr_Promise_std__unordered_map_std__string__bool____(const std::exception_ptr& error) {
|
|
1354
|
+
return Result<std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>>::withError(error);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
// pragma MARK: std::variant<CategorySampleForSaving, QuantitySampleForSaving>
|
|
1358
|
+
/**
|
|
1359
|
+
* Wrapper struct for `std::variant<CategorySampleForSaving, QuantitySampleForSaving>`.
|
|
1360
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
1361
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
1362
|
+
*/
|
|
1363
|
+
struct std__variant_CategorySampleForSaving__QuantitySampleForSaving_ {
|
|
1364
|
+
std::variant<CategorySampleForSaving, QuantitySampleForSaving> variant;
|
|
1365
|
+
std__variant_CategorySampleForSaving__QuantitySampleForSaving_(std::variant<CategorySampleForSaving, QuantitySampleForSaving> variant): variant(variant) { }
|
|
1366
|
+
operator std::variant<CategorySampleForSaving, QuantitySampleForSaving>() const {
|
|
1367
|
+
return variant;
|
|
1368
|
+
}
|
|
1369
|
+
inline size_t index() const {
|
|
1370
|
+
return variant.index();
|
|
1371
|
+
}
|
|
1372
|
+
inline CategorySampleForSaving get_0() const {
|
|
1373
|
+
return std::get<0>(variant);
|
|
1374
|
+
}
|
|
1375
|
+
inline QuantitySampleForSaving get_1() const {
|
|
1376
|
+
return std::get<1>(variant);
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
inline std__variant_CategorySampleForSaving__QuantitySampleForSaving_ create_std__variant_CategorySampleForSaving__QuantitySampleForSaving_(const CategorySampleForSaving& value) {
|
|
1380
|
+
return std__variant_CategorySampleForSaving__QuantitySampleForSaving_(value);
|
|
1381
|
+
}
|
|
1382
|
+
inline std__variant_CategorySampleForSaving__QuantitySampleForSaving_ create_std__variant_CategorySampleForSaving__QuantitySampleForSaving_(const QuantitySampleForSaving& value) {
|
|
1383
|
+
return std__variant_CategorySampleForSaving__QuantitySampleForSaving_(value);
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
// pragma MARK: std::vector<std::variant<CategorySampleForSaving, QuantitySampleForSaving>>
|
|
1387
|
+
/**
|
|
1388
|
+
* Specialized version of `std::vector<std::variant<CategorySampleForSaving, QuantitySampleForSaving>>`.
|
|
1389
|
+
*/
|
|
1390
|
+
using std__vector_std__variant_CategorySampleForSaving__QuantitySampleForSaving__ = std::vector<std::variant<CategorySampleForSaving, QuantitySampleForSaving>>;
|
|
1391
|
+
inline std::vector<std::variant<CategorySampleForSaving, QuantitySampleForSaving>> create_std__vector_std__variant_CategorySampleForSaving__QuantitySampleForSaving__(size_t size) {
|
|
1392
|
+
std::vector<std::variant<CategorySampleForSaving, QuantitySampleForSaving>> vector;
|
|
1393
|
+
vector.reserve(size);
|
|
1394
|
+
return vector;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
// pragma MARK: std::variant<CategorySample, QuantitySample>
|
|
1398
|
+
/**
|
|
1399
|
+
* Wrapper struct for `std::variant<CategorySample, QuantitySample>`.
|
|
1400
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
1401
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
1402
|
+
*/
|
|
1403
|
+
struct std__variant_CategorySample__QuantitySample_ {
|
|
1404
|
+
std::variant<CategorySample, QuantitySample> variant;
|
|
1405
|
+
std__variant_CategorySample__QuantitySample_(std::variant<CategorySample, QuantitySample> variant): variant(variant) { }
|
|
1406
|
+
operator std::variant<CategorySample, QuantitySample>() const {
|
|
1407
|
+
return variant;
|
|
1408
|
+
}
|
|
1409
|
+
inline size_t index() const {
|
|
1410
|
+
return variant.index();
|
|
1411
|
+
}
|
|
1412
|
+
inline CategorySample get_0() const {
|
|
1413
|
+
return std::get<0>(variant);
|
|
1414
|
+
}
|
|
1415
|
+
inline QuantitySample get_1() const {
|
|
1416
|
+
return std::get<1>(variant);
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
inline std__variant_CategorySample__QuantitySample_ create_std__variant_CategorySample__QuantitySample_(const CategorySample& value) {
|
|
1420
|
+
return std__variant_CategorySample__QuantitySample_(value);
|
|
1421
|
+
}
|
|
1422
|
+
inline std__variant_CategorySample__QuantitySample_ create_std__variant_CategorySample__QuantitySample_(const QuantitySample& value) {
|
|
1423
|
+
return std__variant_CategorySample__QuantitySample_(value);
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
// pragma MARK: std::vector<std::variant<CategorySample, QuantitySample>>
|
|
1427
|
+
/**
|
|
1428
|
+
* Specialized version of `std::vector<std::variant<CategorySample, QuantitySample>>`.
|
|
1429
|
+
*/
|
|
1430
|
+
using std__vector_std__variant_CategorySample__QuantitySample__ = std::vector<std::variant<CategorySample, QuantitySample>>;
|
|
1431
|
+
inline std::vector<std::variant<CategorySample, QuantitySample>> create_std__vector_std__variant_CategorySample__QuantitySample__(size_t size) {
|
|
1432
|
+
std::vector<std::variant<CategorySample, QuantitySample>> vector;
|
|
1433
|
+
vector.reserve(size);
|
|
1434
|
+
return vector;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
// pragma MARK: std::vector<CorrelationSample>
|
|
1438
|
+
/**
|
|
1439
|
+
* Specialized version of `std::vector<CorrelationSample>`.
|
|
1440
|
+
*/
|
|
1441
|
+
using std__vector_CorrelationSample_ = std::vector<CorrelationSample>;
|
|
1442
|
+
inline std::vector<CorrelationSample> create_std__vector_CorrelationSample_(size_t size) {
|
|
1443
|
+
std::vector<CorrelationSample> vector;
|
|
1444
|
+
vector.reserve(size);
|
|
1445
|
+
return vector;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<CorrelationSample>>>
|
|
1449
|
+
/**
|
|
1450
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<CorrelationSample>>>`.
|
|
1451
|
+
*/
|
|
1452
|
+
using std__shared_ptr_Promise_std__vector_CorrelationSample___ = std::shared_ptr<Promise<std::vector<CorrelationSample>>>;
|
|
1453
|
+
inline std::shared_ptr<Promise<std::vector<CorrelationSample>>> create_std__shared_ptr_Promise_std__vector_CorrelationSample___() {
|
|
1454
|
+
return Promise<std::vector<CorrelationSample>>::create();
|
|
1455
|
+
}
|
|
1456
|
+
inline PromiseHolder<std::vector<CorrelationSample>> wrap_std__shared_ptr_Promise_std__vector_CorrelationSample___(std::shared_ptr<Promise<std::vector<CorrelationSample>>> promise) {
|
|
1457
|
+
return PromiseHolder<std::vector<CorrelationSample>>(std::move(promise));
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
// pragma MARK: std::function<void(const std::vector<CorrelationSample>& /* result */)>
|
|
1461
|
+
/**
|
|
1462
|
+
* Specialized version of `std::function<void(const std::vector<CorrelationSample>&)>`.
|
|
1463
|
+
*/
|
|
1464
|
+
using Func_void_std__vector_CorrelationSample_ = std::function<void(const std::vector<CorrelationSample>& /* result */)>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Wrapper class for a `std::function<void(const std::vector<CorrelationSample>& / * result * /)>`, this can be used from Swift.
|
|
1467
|
+
*/
|
|
1468
|
+
class Func_void_std__vector_CorrelationSample__Wrapper final {
|
|
1469
|
+
public:
|
|
1470
|
+
explicit Func_void_std__vector_CorrelationSample__Wrapper(std::function<void(const std::vector<CorrelationSample>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<CorrelationSample>& /* result */)>>(std::move(func))) {}
|
|
1471
|
+
inline void call(std::vector<CorrelationSample> result) const {
|
|
1472
|
+
_function->operator()(result);
|
|
1473
|
+
}
|
|
1474
|
+
private:
|
|
1475
|
+
std::shared_ptr<std::function<void(const std::vector<CorrelationSample>& /* result */)>> _function;
|
|
1476
|
+
};
|
|
1477
|
+
Func_void_std__vector_CorrelationSample_ create_Func_void_std__vector_CorrelationSample_(void* _Nonnull swiftClosureWrapper);
|
|
1478
|
+
inline Func_void_std__vector_CorrelationSample__Wrapper wrap_Func_void_std__vector_CorrelationSample_(Func_void_std__vector_CorrelationSample_ value) {
|
|
1479
|
+
return Func_void_std__vector_CorrelationSample__Wrapper(std::move(value));
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>
|
|
1483
|
+
/**
|
|
1484
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>`.
|
|
1485
|
+
*/
|
|
1486
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>;
|
|
1487
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
1488
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_ cppType);
|
|
1489
|
+
|
|
1490
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>
|
|
1491
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>;
|
|
1492
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridCorrelationTypeModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridCorrelationTypeModuleSpec>& strong) { return strong; }
|
|
1493
|
+
|
|
1494
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<CorrelationSample>>>>
|
|
1495
|
+
using Result_std__shared_ptr_Promise_std__vector_CorrelationSample____ = Result<std::shared_ptr<Promise<std::vector<CorrelationSample>>>>;
|
|
1496
|
+
inline Result_std__shared_ptr_Promise_std__vector_CorrelationSample____ create_Result_std__shared_ptr_Promise_std__vector_CorrelationSample____(const std::shared_ptr<Promise<std::vector<CorrelationSample>>>& value) {
|
|
1497
|
+
return Result<std::shared_ptr<Promise<std::vector<CorrelationSample>>>>::withValue(value);
|
|
1498
|
+
}
|
|
1499
|
+
inline Result_std__shared_ptr_Promise_std__vector_CorrelationSample____ create_Result_std__shared_ptr_Promise_std__vector_CorrelationSample____(const std::exception_ptr& error) {
|
|
1500
|
+
return Result<std::shared_ptr<Promise<std::vector<CorrelationSample>>>>::withError(error);
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
// pragma MARK: std::vector<Heartbeat>
|
|
1504
|
+
/**
|
|
1505
|
+
* Specialized version of `std::vector<Heartbeat>`.
|
|
1506
|
+
*/
|
|
1507
|
+
using std__vector_Heartbeat_ = std::vector<Heartbeat>;
|
|
1508
|
+
inline std::vector<Heartbeat> create_std__vector_Heartbeat_(size_t size) {
|
|
1509
|
+
std::vector<Heartbeat> vector;
|
|
1510
|
+
vector.reserve(size);
|
|
1511
|
+
return vector;
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
// pragma MARK: std::vector<HeartbeatSeriesSample>
|
|
1515
|
+
/**
|
|
1516
|
+
* Specialized version of `std::vector<HeartbeatSeriesSample>`.
|
|
1517
|
+
*/
|
|
1518
|
+
using std__vector_HeartbeatSeriesSample_ = std::vector<HeartbeatSeriesSample>;
|
|
1519
|
+
inline std::vector<HeartbeatSeriesSample> create_std__vector_HeartbeatSeriesSample_(size_t size) {
|
|
1520
|
+
std::vector<HeartbeatSeriesSample> vector;
|
|
1521
|
+
vector.reserve(size);
|
|
1522
|
+
return vector;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>
|
|
1526
|
+
/**
|
|
1527
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>`.
|
|
1528
|
+
*/
|
|
1529
|
+
using std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample___ = std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>;
|
|
1530
|
+
inline std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>> create_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample___() {
|
|
1531
|
+
return Promise<std::vector<HeartbeatSeriesSample>>::create();
|
|
1532
|
+
}
|
|
1533
|
+
inline PromiseHolder<std::vector<HeartbeatSeriesSample>> wrap_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample___(std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>> promise) {
|
|
1534
|
+
return PromiseHolder<std::vector<HeartbeatSeriesSample>>(std::move(promise));
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
// pragma MARK: std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>
|
|
1538
|
+
/**
|
|
1539
|
+
* Specialized version of `std::function<void(const std::vector<HeartbeatSeriesSample>&)>`.
|
|
1540
|
+
*/
|
|
1541
|
+
using Func_void_std__vector_HeartbeatSeriesSample_ = std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Wrapper class for a `std::function<void(const std::vector<HeartbeatSeriesSample>& / * result * /)>`, this can be used from Swift.
|
|
1544
|
+
*/
|
|
1545
|
+
class Func_void_std__vector_HeartbeatSeriesSample__Wrapper final {
|
|
1546
|
+
public:
|
|
1547
|
+
explicit Func_void_std__vector_HeartbeatSeriesSample__Wrapper(std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>>(std::move(func))) {}
|
|
1548
|
+
inline void call(std::vector<HeartbeatSeriesSample> result) const {
|
|
1549
|
+
_function->operator()(result);
|
|
1550
|
+
}
|
|
1551
|
+
private:
|
|
1552
|
+
std::shared_ptr<std::function<void(const std::vector<HeartbeatSeriesSample>& /* result */)>> _function;
|
|
1553
|
+
};
|
|
1554
|
+
Func_void_std__vector_HeartbeatSeriesSample_ create_Func_void_std__vector_HeartbeatSeriesSample_(void* _Nonnull swiftClosureWrapper);
|
|
1555
|
+
inline Func_void_std__vector_HeartbeatSeriesSample__Wrapper wrap_Func_void_std__vector_HeartbeatSeriesSample_(Func_void_std__vector_HeartbeatSeriesSample_ value) {
|
|
1556
|
+
return Func_void_std__vector_HeartbeatSeriesSample__Wrapper(std::move(value));
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
// pragma MARK: std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>
|
|
1560
|
+
/**
|
|
1561
|
+
* Specialized version of `std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>`.
|
|
1562
|
+
*/
|
|
1563
|
+
using std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse__ = std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>;
|
|
1564
|
+
inline std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>> create_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse__() {
|
|
1565
|
+
return Promise<HeartbeatSeriesSamplesWithAnchorResponse>::create();
|
|
1566
|
+
}
|
|
1567
|
+
inline PromiseHolder<HeartbeatSeriesSamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse__(std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>> promise) {
|
|
1568
|
+
return PromiseHolder<HeartbeatSeriesSamplesWithAnchorResponse>(std::move(promise));
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
// pragma MARK: std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>
|
|
1572
|
+
/**
|
|
1573
|
+
* Specialized version of `std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse&)>`.
|
|
1574
|
+
*/
|
|
1575
|
+
using Func_void_HeartbeatSeriesSamplesWithAnchorResponse = std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>;
|
|
1576
|
+
/**
|
|
1577
|
+
* Wrapper class for a `std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
1578
|
+
*/
|
|
1579
|
+
class Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper final {
|
|
1580
|
+
public:
|
|
1581
|
+
explicit Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper(std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_shared<std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
1582
|
+
inline void call(HeartbeatSeriesSamplesWithAnchorResponse result) const {
|
|
1583
|
+
_function->operator()(result);
|
|
1584
|
+
}
|
|
1585
|
+
private:
|
|
1586
|
+
std::shared_ptr<std::function<void(const HeartbeatSeriesSamplesWithAnchorResponse& /* result */)>> _function;
|
|
1587
|
+
};
|
|
1588
|
+
Func_void_HeartbeatSeriesSamplesWithAnchorResponse create_Func_void_HeartbeatSeriesSamplesWithAnchorResponse(void* _Nonnull swiftClosureWrapper);
|
|
1589
|
+
inline Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper wrap_Func_void_HeartbeatSeriesSamplesWithAnchorResponse(Func_void_HeartbeatSeriesSamplesWithAnchorResponse value) {
|
|
1590
|
+
return Func_void_HeartbeatSeriesSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>
|
|
1594
|
+
/**
|
|
1595
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>`.
|
|
1596
|
+
*/
|
|
1597
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>;
|
|
1598
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
1599
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_ cppType);
|
|
1600
|
+
|
|
1601
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>
|
|
1602
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>;
|
|
1603
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridHeartbeatSeriesModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridHeartbeatSeriesModuleSpec>& strong) { return strong; }
|
|
1604
|
+
|
|
1605
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>>
|
|
1606
|
+
using Result_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample____ = Result<std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>>;
|
|
1607
|
+
inline Result_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample____ create_Result_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample____(const std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>& value) {
|
|
1608
|
+
return Result<std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>>::withValue(value);
|
|
1609
|
+
}
|
|
1610
|
+
inline Result_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample____ create_Result_std__shared_ptr_Promise_std__vector_HeartbeatSeriesSample____(const std::exception_ptr& error) {
|
|
1611
|
+
return Result<std::shared_ptr<Promise<std::vector<HeartbeatSeriesSample>>>>::withError(error);
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
// pragma MARK: Result<std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>>
|
|
1615
|
+
using Result_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>>;
|
|
1616
|
+
inline Result_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse___(const std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>& value) {
|
|
1617
|
+
return Result<std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>>::withValue(value);
|
|
1618
|
+
}
|
|
1619
|
+
inline Result_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_HeartbeatSeriesSamplesWithAnchorResponse___(const std::exception_ptr& error) {
|
|
1620
|
+
return Result<std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>>::withError(error);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
// pragma MARK: std::vector<QuantitySample>
|
|
1624
|
+
/**
|
|
1625
|
+
* Specialized version of `std::vector<QuantitySample>`.
|
|
1626
|
+
*/
|
|
1627
|
+
using std__vector_QuantitySample_ = std::vector<QuantitySample>;
|
|
1628
|
+
inline std::vector<QuantitySample> create_std__vector_QuantitySample_(size_t size) {
|
|
1629
|
+
std::vector<QuantitySample> vector;
|
|
1630
|
+
vector.reserve(size);
|
|
1631
|
+
return vector;
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<QuantitySample>>>
|
|
1635
|
+
/**
|
|
1636
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<QuantitySample>>>`.
|
|
1637
|
+
*/
|
|
1638
|
+
using std__shared_ptr_Promise_std__vector_QuantitySample___ = std::shared_ptr<Promise<std::vector<QuantitySample>>>;
|
|
1639
|
+
inline std::shared_ptr<Promise<std::vector<QuantitySample>>> create_std__shared_ptr_Promise_std__vector_QuantitySample___() {
|
|
1640
|
+
return Promise<std::vector<QuantitySample>>::create();
|
|
1641
|
+
}
|
|
1642
|
+
inline PromiseHolder<std::vector<QuantitySample>> wrap_std__shared_ptr_Promise_std__vector_QuantitySample___(std::shared_ptr<Promise<std::vector<QuantitySample>>> promise) {
|
|
1643
|
+
return PromiseHolder<std::vector<QuantitySample>>(std::move(promise));
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
// pragma MARK: std::function<void(const std::vector<QuantitySample>& /* result */)>
|
|
1647
|
+
/**
|
|
1648
|
+
* Specialized version of `std::function<void(const std::vector<QuantitySample>&)>`.
|
|
1649
|
+
*/
|
|
1650
|
+
using Func_void_std__vector_QuantitySample_ = std::function<void(const std::vector<QuantitySample>& /* result */)>;
|
|
1651
|
+
/**
|
|
1652
|
+
* Wrapper class for a `std::function<void(const std::vector<QuantitySample>& / * result * /)>`, this can be used from Swift.
|
|
1653
|
+
*/
|
|
1654
|
+
class Func_void_std__vector_QuantitySample__Wrapper final {
|
|
1655
|
+
public:
|
|
1656
|
+
explicit Func_void_std__vector_QuantitySample__Wrapper(std::function<void(const std::vector<QuantitySample>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<QuantitySample>& /* result */)>>(std::move(func))) {}
|
|
1657
|
+
inline void call(std::vector<QuantitySample> result) const {
|
|
1658
|
+
_function->operator()(result);
|
|
1659
|
+
}
|
|
1660
|
+
private:
|
|
1661
|
+
std::shared_ptr<std::function<void(const std::vector<QuantitySample>& /* result */)>> _function;
|
|
1662
|
+
};
|
|
1663
|
+
Func_void_std__vector_QuantitySample_ create_Func_void_std__vector_QuantitySample_(void* _Nonnull swiftClosureWrapper);
|
|
1664
|
+
inline Func_void_std__vector_QuantitySample__Wrapper wrap_Func_void_std__vector_QuantitySample_(Func_void_std__vector_QuantitySample_ value) {
|
|
1665
|
+
return Func_void_std__vector_QuantitySample__Wrapper(std::move(value));
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
// pragma MARK: std::optional<QueryOptionsWithSortOrderAndUnit>
|
|
1669
|
+
/**
|
|
1670
|
+
* Specialized version of `std::optional<QueryOptionsWithSortOrderAndUnit>`.
|
|
1671
|
+
*/
|
|
1672
|
+
using std__optional_QueryOptionsWithSortOrderAndUnit_ = std::optional<QueryOptionsWithSortOrderAndUnit>;
|
|
1673
|
+
inline std::optional<QueryOptionsWithSortOrderAndUnit> create_std__optional_QueryOptionsWithSortOrderAndUnit_(const QueryOptionsWithSortOrderAndUnit& value) {
|
|
1674
|
+
return std::optional<QueryOptionsWithSortOrderAndUnit>(value);
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
// pragma MARK: std::optional<Quantity>
|
|
1678
|
+
/**
|
|
1679
|
+
* Specialized version of `std::optional<Quantity>`.
|
|
1680
|
+
*/
|
|
1681
|
+
using std__optional_Quantity_ = std::optional<Quantity>;
|
|
1682
|
+
inline std::optional<Quantity> create_std__optional_Quantity_(const Quantity& value) {
|
|
1683
|
+
return std::optional<Quantity>(value);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// pragma MARK: std::optional<QuantityDateInterval>
|
|
1687
|
+
/**
|
|
1688
|
+
* Specialized version of `std::optional<QuantityDateInterval>`.
|
|
1689
|
+
*/
|
|
1690
|
+
using std__optional_QuantityDateInterval_ = std::optional<QuantityDateInterval>;
|
|
1691
|
+
inline std::optional<QuantityDateInterval> create_std__optional_QuantityDateInterval_(const QuantityDateInterval& value) {
|
|
1692
|
+
return std::optional<QuantityDateInterval>(value);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
// pragma MARK: std::shared_ptr<Promise<QueryStatisticsResponse>>
|
|
1696
|
+
/**
|
|
1697
|
+
* Specialized version of `std::shared_ptr<Promise<QueryStatisticsResponse>>`.
|
|
1698
|
+
*/
|
|
1699
|
+
using std__shared_ptr_Promise_QueryStatisticsResponse__ = std::shared_ptr<Promise<QueryStatisticsResponse>>;
|
|
1700
|
+
inline std::shared_ptr<Promise<QueryStatisticsResponse>> create_std__shared_ptr_Promise_QueryStatisticsResponse__() {
|
|
1701
|
+
return Promise<QueryStatisticsResponse>::create();
|
|
1702
|
+
}
|
|
1703
|
+
inline PromiseHolder<QueryStatisticsResponse> wrap_std__shared_ptr_Promise_QueryStatisticsResponse__(std::shared_ptr<Promise<QueryStatisticsResponse>> promise) {
|
|
1704
|
+
return PromiseHolder<QueryStatisticsResponse>(std::move(promise));
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
// pragma MARK: std::function<void(const QueryStatisticsResponse& /* result */)>
|
|
1708
|
+
/**
|
|
1709
|
+
* Specialized version of `std::function<void(const QueryStatisticsResponse&)>`.
|
|
1710
|
+
*/
|
|
1711
|
+
using Func_void_QueryStatisticsResponse = std::function<void(const QueryStatisticsResponse& /* result */)>;
|
|
1712
|
+
/**
|
|
1713
|
+
* Wrapper class for a `std::function<void(const QueryStatisticsResponse& / * result * /)>`, this can be used from Swift.
|
|
1714
|
+
*/
|
|
1715
|
+
class Func_void_QueryStatisticsResponse_Wrapper final {
|
|
1716
|
+
public:
|
|
1717
|
+
explicit Func_void_QueryStatisticsResponse_Wrapper(std::function<void(const QueryStatisticsResponse& /* result */)>&& func): _function(std::make_shared<std::function<void(const QueryStatisticsResponse& /* result */)>>(std::move(func))) {}
|
|
1718
|
+
inline void call(QueryStatisticsResponse result) const {
|
|
1719
|
+
_function->operator()(result);
|
|
1720
|
+
}
|
|
1721
|
+
private:
|
|
1722
|
+
std::shared_ptr<std::function<void(const QueryStatisticsResponse& /* result */)>> _function;
|
|
1723
|
+
};
|
|
1724
|
+
Func_void_QueryStatisticsResponse create_Func_void_QueryStatisticsResponse(void* _Nonnull swiftClosureWrapper);
|
|
1725
|
+
inline Func_void_QueryStatisticsResponse_Wrapper wrap_Func_void_QueryStatisticsResponse(Func_void_QueryStatisticsResponse value) {
|
|
1726
|
+
return Func_void_QueryStatisticsResponse_Wrapper(std::move(value));
|
|
1727
|
+
}
|
|
1728
|
+
|
|
1729
|
+
// pragma MARK: std::vector<StatisticsOptions>
|
|
1730
|
+
/**
|
|
1731
|
+
* Specialized version of `std::vector<StatisticsOptions>`.
|
|
1732
|
+
*/
|
|
1733
|
+
using std__vector_StatisticsOptions_ = std::vector<StatisticsOptions>;
|
|
1734
|
+
inline std::vector<StatisticsOptions> create_std__vector_StatisticsOptions_(size_t size) {
|
|
1735
|
+
std::vector<StatisticsOptions> vector;
|
|
1736
|
+
vector.reserve(size);
|
|
1737
|
+
return vector;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
// pragma MARK: std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>
|
|
1741
|
+
/**
|
|
1742
|
+
* Specialized version of `std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>`.
|
|
1743
|
+
*/
|
|
1744
|
+
using std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__ = std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>;
|
|
1745
|
+
inline std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>> create_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__(const std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>& value) {
|
|
1746
|
+
return std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>>(value);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
// pragma MARK: std::optional<StatisticsQueryOptions>
|
|
1750
|
+
/**
|
|
1751
|
+
* Specialized version of `std::optional<StatisticsQueryOptions>`.
|
|
1752
|
+
*/
|
|
1753
|
+
using std__optional_StatisticsQueryOptions_ = std::optional<StatisticsQueryOptions>;
|
|
1754
|
+
inline std::optional<StatisticsQueryOptions> create_std__optional_StatisticsQueryOptions_(const StatisticsQueryOptions& value) {
|
|
1755
|
+
return std::optional<StatisticsQueryOptions>(value);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
// pragma MARK: std::vector<QueryStatisticsResponse>
|
|
1759
|
+
/**
|
|
1760
|
+
* Specialized version of `std::vector<QueryStatisticsResponse>`.
|
|
1761
|
+
*/
|
|
1762
|
+
using std__vector_QueryStatisticsResponse_ = std::vector<QueryStatisticsResponse>;
|
|
1763
|
+
inline std::vector<QueryStatisticsResponse> create_std__vector_QueryStatisticsResponse_(size_t size) {
|
|
1764
|
+
std::vector<QueryStatisticsResponse> vector;
|
|
1765
|
+
vector.reserve(size);
|
|
1766
|
+
return vector;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>
|
|
1770
|
+
/**
|
|
1771
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>`.
|
|
1772
|
+
*/
|
|
1773
|
+
using std__shared_ptr_Promise_std__vector_QueryStatisticsResponse___ = std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>;
|
|
1774
|
+
inline std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>> create_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse___() {
|
|
1775
|
+
return Promise<std::vector<QueryStatisticsResponse>>::create();
|
|
1776
|
+
}
|
|
1777
|
+
inline PromiseHolder<std::vector<QueryStatisticsResponse>> wrap_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse___(std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>> promise) {
|
|
1778
|
+
return PromiseHolder<std::vector<QueryStatisticsResponse>>(std::move(promise));
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
// pragma MARK: std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>
|
|
1782
|
+
/**
|
|
1783
|
+
* Specialized version of `std::function<void(const std::vector<QueryStatisticsResponse>&)>`.
|
|
1784
|
+
*/
|
|
1785
|
+
using Func_void_std__vector_QueryStatisticsResponse_ = std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>;
|
|
1786
|
+
/**
|
|
1787
|
+
* Wrapper class for a `std::function<void(const std::vector<QueryStatisticsResponse>& / * result * /)>`, this can be used from Swift.
|
|
1788
|
+
*/
|
|
1789
|
+
class Func_void_std__vector_QueryStatisticsResponse__Wrapper final {
|
|
1790
|
+
public:
|
|
1791
|
+
explicit Func_void_std__vector_QueryStatisticsResponse__Wrapper(std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>>(std::move(func))) {}
|
|
1792
|
+
inline void call(std::vector<QueryStatisticsResponse> result) const {
|
|
1793
|
+
_function->operator()(result);
|
|
1794
|
+
}
|
|
1795
|
+
private:
|
|
1796
|
+
std::shared_ptr<std::function<void(const std::vector<QueryStatisticsResponse>& /* result */)>> _function;
|
|
1797
|
+
};
|
|
1798
|
+
Func_void_std__vector_QueryStatisticsResponse_ create_Func_void_std__vector_QueryStatisticsResponse_(void* _Nonnull swiftClosureWrapper);
|
|
1799
|
+
inline Func_void_std__vector_QueryStatisticsResponse__Wrapper wrap_Func_void_std__vector_QueryStatisticsResponse_(Func_void_std__vector_QueryStatisticsResponse_ value) {
|
|
1800
|
+
return Func_void_std__vector_QueryStatisticsResponse__Wrapper(std::move(value));
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
// pragma MARK: std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>
|
|
1804
|
+
/**
|
|
1805
|
+
* Specialized version of `std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>`.
|
|
1806
|
+
*/
|
|
1807
|
+
using std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse__ = std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>;
|
|
1808
|
+
inline std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>> create_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse__() {
|
|
1809
|
+
return Promise<QuantitySamplesWithAnchorResponse>::create();
|
|
1810
|
+
}
|
|
1811
|
+
inline PromiseHolder<QuantitySamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse__(std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>> promise) {
|
|
1812
|
+
return PromiseHolder<QuantitySamplesWithAnchorResponse>(std::move(promise));
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
// pragma MARK: std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>
|
|
1816
|
+
/**
|
|
1817
|
+
* Specialized version of `std::function<void(const QuantitySamplesWithAnchorResponse&)>`.
|
|
1818
|
+
*/
|
|
1819
|
+
using Func_void_QuantitySamplesWithAnchorResponse = std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>;
|
|
1820
|
+
/**
|
|
1821
|
+
* Wrapper class for a `std::function<void(const QuantitySamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
1822
|
+
*/
|
|
1823
|
+
class Func_void_QuantitySamplesWithAnchorResponse_Wrapper final {
|
|
1824
|
+
public:
|
|
1825
|
+
explicit Func_void_QuantitySamplesWithAnchorResponse_Wrapper(std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_shared<std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
1826
|
+
inline void call(QuantitySamplesWithAnchorResponse result) const {
|
|
1827
|
+
_function->operator()(result);
|
|
1828
|
+
}
|
|
1829
|
+
private:
|
|
1830
|
+
std::shared_ptr<std::function<void(const QuantitySamplesWithAnchorResponse& /* result */)>> _function;
|
|
1831
|
+
};
|
|
1832
|
+
Func_void_QuantitySamplesWithAnchorResponse create_Func_void_QuantitySamplesWithAnchorResponse(void* _Nonnull swiftClosureWrapper);
|
|
1833
|
+
inline Func_void_QuantitySamplesWithAnchorResponse_Wrapper wrap_Func_void_QuantitySamplesWithAnchorResponse(Func_void_QuantitySamplesWithAnchorResponse value) {
|
|
1834
|
+
return Func_void_QuantitySamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1837
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>
|
|
1838
|
+
/**
|
|
1839
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>`.
|
|
1840
|
+
*/
|
|
1841
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>;
|
|
1842
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
1843
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_ cppType);
|
|
1844
|
+
|
|
1845
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>
|
|
1846
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>;
|
|
1847
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridQuantityTypeModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridQuantityTypeModuleSpec>& strong) { return strong; }
|
|
1848
|
+
|
|
1849
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>
|
|
1850
|
+
using Result_std__shared_ptr_Promise_std__vector_QuantitySample____ = Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>;
|
|
1851
|
+
inline Result_std__shared_ptr_Promise_std__vector_QuantitySample____ create_Result_std__shared_ptr_Promise_std__vector_QuantitySample____(const std::shared_ptr<Promise<std::vector<QuantitySample>>>& value) {
|
|
1852
|
+
return Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>::withValue(value);
|
|
1853
|
+
}
|
|
1854
|
+
inline Result_std__shared_ptr_Promise_std__vector_QuantitySample____ create_Result_std__shared_ptr_Promise_std__vector_QuantitySample____(const std::exception_ptr& error) {
|
|
1855
|
+
return Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>::withError(error);
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
// pragma MARK: Result<std::shared_ptr<Promise<QueryStatisticsResponse>>>
|
|
1859
|
+
using Result_std__shared_ptr_Promise_QueryStatisticsResponse___ = Result<std::shared_ptr<Promise<QueryStatisticsResponse>>>;
|
|
1860
|
+
inline Result_std__shared_ptr_Promise_QueryStatisticsResponse___ create_Result_std__shared_ptr_Promise_QueryStatisticsResponse___(const std::shared_ptr<Promise<QueryStatisticsResponse>>& value) {
|
|
1861
|
+
return Result<std::shared_ptr<Promise<QueryStatisticsResponse>>>::withValue(value);
|
|
1862
|
+
}
|
|
1863
|
+
inline Result_std__shared_ptr_Promise_QueryStatisticsResponse___ create_Result_std__shared_ptr_Promise_QueryStatisticsResponse___(const std::exception_ptr& error) {
|
|
1864
|
+
return Result<std::shared_ptr<Promise<QueryStatisticsResponse>>>::withError(error);
|
|
1865
|
+
}
|
|
1866
|
+
|
|
1867
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>>
|
|
1868
|
+
using Result_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse____ = Result<std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>>;
|
|
1869
|
+
inline Result_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse____ create_Result_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse____(const std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>& value) {
|
|
1870
|
+
return Result<std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>>::withValue(value);
|
|
1871
|
+
}
|
|
1872
|
+
inline Result_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse____ create_Result_std__shared_ptr_Promise_std__vector_QueryStatisticsResponse____(const std::exception_ptr& error) {
|
|
1873
|
+
return Result<std::shared_ptr<Promise<std::vector<QueryStatisticsResponse>>>>::withError(error);
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
// pragma MARK: Result<std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>>
|
|
1877
|
+
using Result_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>>;
|
|
1878
|
+
inline Result_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse___(const std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>& value) {
|
|
1879
|
+
return Result<std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>>::withValue(value);
|
|
1880
|
+
}
|
|
1881
|
+
inline Result_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QuantitySamplesWithAnchorResponse___(const std::exception_ptr& error) {
|
|
1882
|
+
return Result<std::shared_ptr<Promise<QuantitySamplesWithAnchorResponse>>>::withError(error);
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
// pragma MARK: Result<Source>
|
|
1886
|
+
using Result_Source_ = Result<Source>;
|
|
1887
|
+
inline Result_Source_ create_Result_Source_(const Source& value) {
|
|
1888
|
+
return Result<Source>::withValue(value);
|
|
1889
|
+
}
|
|
1890
|
+
inline Result_Source_ create_Result_Source_(const std::exception_ptr& error) {
|
|
1891
|
+
return Result<Source>::withError(error);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
// pragma MARK: std::vector<StateOfMindAssociation>
|
|
1895
|
+
/**
|
|
1896
|
+
* Specialized version of `std::vector<StateOfMindAssociation>`.
|
|
1897
|
+
*/
|
|
1898
|
+
using std__vector_StateOfMindAssociation_ = std::vector<StateOfMindAssociation>;
|
|
1899
|
+
inline std::vector<StateOfMindAssociation> create_std__vector_StateOfMindAssociation_(size_t size) {
|
|
1900
|
+
std::vector<StateOfMindAssociation> vector;
|
|
1901
|
+
vector.reserve(size);
|
|
1902
|
+
return vector;
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
// pragma MARK: std::vector<StateOfMindLabel>
|
|
1906
|
+
/**
|
|
1907
|
+
* Specialized version of `std::vector<StateOfMindLabel>`.
|
|
1908
|
+
*/
|
|
1909
|
+
using std__vector_StateOfMindLabel_ = std::vector<StateOfMindLabel>;
|
|
1910
|
+
inline std::vector<StateOfMindLabel> create_std__vector_StateOfMindLabel_(size_t size) {
|
|
1911
|
+
std::vector<StateOfMindLabel> vector;
|
|
1912
|
+
vector.reserve(size);
|
|
1913
|
+
return vector;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
// pragma MARK: std::vector<StateOfMindSample>
|
|
1917
|
+
/**
|
|
1918
|
+
* Specialized version of `std::vector<StateOfMindSample>`.
|
|
1919
|
+
*/
|
|
1920
|
+
using std__vector_StateOfMindSample_ = std::vector<StateOfMindSample>;
|
|
1921
|
+
inline std::vector<StateOfMindSample> create_std__vector_StateOfMindSample_(size_t size) {
|
|
1922
|
+
std::vector<StateOfMindSample> vector;
|
|
1923
|
+
vector.reserve(size);
|
|
1924
|
+
return vector;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<StateOfMindSample>>>
|
|
1928
|
+
/**
|
|
1929
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<StateOfMindSample>>>`.
|
|
1930
|
+
*/
|
|
1931
|
+
using std__shared_ptr_Promise_std__vector_StateOfMindSample___ = std::shared_ptr<Promise<std::vector<StateOfMindSample>>>;
|
|
1932
|
+
inline std::shared_ptr<Promise<std::vector<StateOfMindSample>>> create_std__shared_ptr_Promise_std__vector_StateOfMindSample___() {
|
|
1933
|
+
return Promise<std::vector<StateOfMindSample>>::create();
|
|
1934
|
+
}
|
|
1935
|
+
inline PromiseHolder<std::vector<StateOfMindSample>> wrap_std__shared_ptr_Promise_std__vector_StateOfMindSample___(std::shared_ptr<Promise<std::vector<StateOfMindSample>>> promise) {
|
|
1936
|
+
return PromiseHolder<std::vector<StateOfMindSample>>(std::move(promise));
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
// pragma MARK: std::function<void(const std::vector<StateOfMindSample>& /* result */)>
|
|
1940
|
+
/**
|
|
1941
|
+
* Specialized version of `std::function<void(const std::vector<StateOfMindSample>&)>`.
|
|
1942
|
+
*/
|
|
1943
|
+
using Func_void_std__vector_StateOfMindSample_ = std::function<void(const std::vector<StateOfMindSample>& /* result */)>;
|
|
1944
|
+
/**
|
|
1945
|
+
* Wrapper class for a `std::function<void(const std::vector<StateOfMindSample>& / * result * /)>`, this can be used from Swift.
|
|
1946
|
+
*/
|
|
1947
|
+
class Func_void_std__vector_StateOfMindSample__Wrapper final {
|
|
1948
|
+
public:
|
|
1949
|
+
explicit Func_void_std__vector_StateOfMindSample__Wrapper(std::function<void(const std::vector<StateOfMindSample>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<StateOfMindSample>& /* result */)>>(std::move(func))) {}
|
|
1950
|
+
inline void call(std::vector<StateOfMindSample> result) const {
|
|
1951
|
+
_function->operator()(result);
|
|
1952
|
+
}
|
|
1953
|
+
private:
|
|
1954
|
+
std::shared_ptr<std::function<void(const std::vector<StateOfMindSample>& /* result */)>> _function;
|
|
1955
|
+
};
|
|
1956
|
+
Func_void_std__vector_StateOfMindSample_ create_Func_void_std__vector_StateOfMindSample_(void* _Nonnull swiftClosureWrapper);
|
|
1957
|
+
inline Func_void_std__vector_StateOfMindSample__Wrapper wrap_Func_void_std__vector_StateOfMindSample_(Func_void_std__vector_StateOfMindSample_ value) {
|
|
1958
|
+
return Func_void_std__vector_StateOfMindSample__Wrapper(std::move(value));
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>
|
|
1962
|
+
/**
|
|
1963
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>`.
|
|
1964
|
+
*/
|
|
1965
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>;
|
|
1966
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
1967
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_ cppType);
|
|
1968
|
+
|
|
1969
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>
|
|
1970
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>;
|
|
1971
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridStateOfMindModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridStateOfMindModuleSpec>& strong) { return strong; }
|
|
1972
|
+
|
|
1973
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<StateOfMindSample>>>>
|
|
1974
|
+
using Result_std__shared_ptr_Promise_std__vector_StateOfMindSample____ = Result<std::shared_ptr<Promise<std::vector<StateOfMindSample>>>>;
|
|
1975
|
+
inline Result_std__shared_ptr_Promise_std__vector_StateOfMindSample____ create_Result_std__shared_ptr_Promise_std__vector_StateOfMindSample____(const std::shared_ptr<Promise<std::vector<StateOfMindSample>>>& value) {
|
|
1976
|
+
return Result<std::shared_ptr<Promise<std::vector<StateOfMindSample>>>>::withValue(value);
|
|
1977
|
+
}
|
|
1978
|
+
inline Result_std__shared_ptr_Promise_std__vector_StateOfMindSample____ create_Result_std__shared_ptr_Promise_std__vector_StateOfMindSample____(const std::exception_ptr& error) {
|
|
1979
|
+
return Result<std::shared_ptr<Promise<std::vector<StateOfMindSample>>>>::withError(error);
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
// pragma MARK: std::vector<WorkoutEvent>
|
|
1983
|
+
/**
|
|
1984
|
+
* Specialized version of `std::vector<WorkoutEvent>`.
|
|
1985
|
+
*/
|
|
1986
|
+
using std__vector_WorkoutEvent_ = std::vector<WorkoutEvent>;
|
|
1987
|
+
inline std::vector<WorkoutEvent> create_std__vector_WorkoutEvent_(size_t size) {
|
|
1988
|
+
std::vector<WorkoutEvent> vector;
|
|
1989
|
+
vector.reserve(size);
|
|
1990
|
+
return vector;
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
// pragma MARK: std::optional<std::vector<WorkoutEvent>>
|
|
1994
|
+
/**
|
|
1995
|
+
* Specialized version of `std::optional<std::vector<WorkoutEvent>>`.
|
|
1996
|
+
*/
|
|
1997
|
+
using std__optional_std__vector_WorkoutEvent__ = std::optional<std::vector<WorkoutEvent>>;
|
|
1998
|
+
inline std::optional<std::vector<WorkoutEvent>> create_std__optional_std__vector_WorkoutEvent__(const std::vector<WorkoutEvent>& value) {
|
|
1999
|
+
return std::optional<std::vector<WorkoutEvent>>(value);
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
// pragma MARK: std::vector<WorkoutActivity>
|
|
2003
|
+
/**
|
|
2004
|
+
* Specialized version of `std::vector<WorkoutActivity>`.
|
|
2005
|
+
*/
|
|
2006
|
+
using std__vector_WorkoutActivity_ = std::vector<WorkoutActivity>;
|
|
2007
|
+
inline std::vector<WorkoutActivity> create_std__vector_WorkoutActivity_(size_t size) {
|
|
2008
|
+
std::vector<WorkoutActivity> vector;
|
|
2009
|
+
vector.reserve(size);
|
|
2010
|
+
return vector;
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
// pragma MARK: std::optional<std::vector<WorkoutActivity>>
|
|
2014
|
+
/**
|
|
2015
|
+
* Specialized version of `std::optional<std::vector<WorkoutActivity>>`.
|
|
2016
|
+
*/
|
|
2017
|
+
using std__optional_std__vector_WorkoutActivity__ = std::optional<std::vector<WorkoutActivity>>;
|
|
2018
|
+
inline std::optional<std::vector<WorkoutActivity>> create_std__optional_std__vector_WorkoutActivity__(const std::vector<WorkoutActivity>& value) {
|
|
2019
|
+
return std::optional<std::vector<WorkoutActivity>>(value);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
// pragma MARK: std::vector<LocationForSaving>
|
|
2023
|
+
/**
|
|
2024
|
+
* Specialized version of `std::vector<LocationForSaving>`.
|
|
2025
|
+
*/
|
|
2026
|
+
using std__vector_LocationForSaving_ = std::vector<LocationForSaving>;
|
|
2027
|
+
inline std::vector<LocationForSaving> create_std__vector_LocationForSaving_(size_t size) {
|
|
2028
|
+
std::vector<LocationForSaving> vector;
|
|
2029
|
+
vector.reserve(size);
|
|
2030
|
+
return vector;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
// pragma MARK: std::optional<WorkoutPlan>
|
|
2034
|
+
/**
|
|
2035
|
+
* Specialized version of `std::optional<WorkoutPlan>`.
|
|
2036
|
+
*/
|
|
2037
|
+
using std__optional_WorkoutPlan_ = std::optional<WorkoutPlan>;
|
|
2038
|
+
inline std::optional<WorkoutPlan> create_std__optional_WorkoutPlan_(const WorkoutPlan& value) {
|
|
2039
|
+
return std::optional<WorkoutPlan>(value);
|
|
2040
|
+
}
|
|
2041
|
+
|
|
2042
|
+
// pragma MARK: std::shared_ptr<Promise<std::optional<WorkoutPlan>>>
|
|
2043
|
+
/**
|
|
2044
|
+
* Specialized version of `std::shared_ptr<Promise<std::optional<WorkoutPlan>>>`.
|
|
2045
|
+
*/
|
|
2046
|
+
using std__shared_ptr_Promise_std__optional_WorkoutPlan___ = std::shared_ptr<Promise<std::optional<WorkoutPlan>>>;
|
|
2047
|
+
inline std::shared_ptr<Promise<std::optional<WorkoutPlan>>> create_std__shared_ptr_Promise_std__optional_WorkoutPlan___() {
|
|
2048
|
+
return Promise<std::optional<WorkoutPlan>>::create();
|
|
2049
|
+
}
|
|
2050
|
+
inline PromiseHolder<std::optional<WorkoutPlan>> wrap_std__shared_ptr_Promise_std__optional_WorkoutPlan___(std::shared_ptr<Promise<std::optional<WorkoutPlan>>> promise) {
|
|
2051
|
+
return PromiseHolder<std::optional<WorkoutPlan>>(std::move(promise));
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
// pragma MARK: std::function<void(const std::optional<WorkoutPlan>& /* result */)>
|
|
2055
|
+
/**
|
|
2056
|
+
* Specialized version of `std::function<void(const std::optional<WorkoutPlan>&)>`.
|
|
2057
|
+
*/
|
|
2058
|
+
using Func_void_std__optional_WorkoutPlan_ = std::function<void(const std::optional<WorkoutPlan>& /* result */)>;
|
|
2059
|
+
/**
|
|
2060
|
+
* Wrapper class for a `std::function<void(const std::optional<WorkoutPlan>& / * result * /)>`, this can be used from Swift.
|
|
2061
|
+
*/
|
|
2062
|
+
class Func_void_std__optional_WorkoutPlan__Wrapper final {
|
|
2063
|
+
public:
|
|
2064
|
+
explicit Func_void_std__optional_WorkoutPlan__Wrapper(std::function<void(const std::optional<WorkoutPlan>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::optional<WorkoutPlan>& /* result */)>>(std::move(func))) {}
|
|
2065
|
+
inline void call(std::optional<WorkoutPlan> result) const {
|
|
2066
|
+
_function->operator()(result);
|
|
2067
|
+
}
|
|
2068
|
+
private:
|
|
2069
|
+
std::shared_ptr<std::function<void(const std::optional<WorkoutPlan>& /* result */)>> _function;
|
|
2070
|
+
};
|
|
2071
|
+
Func_void_std__optional_WorkoutPlan_ create_Func_void_std__optional_WorkoutPlan_(void* _Nonnull swiftClosureWrapper);
|
|
2072
|
+
inline Func_void_std__optional_WorkoutPlan__Wrapper wrap_Func_void_std__optional_WorkoutPlan_(Func_void_std__optional_WorkoutPlan_ value) {
|
|
2073
|
+
return Func_void_std__optional_WorkoutPlan__Wrapper(std::move(value));
|
|
2074
|
+
}
|
|
2075
|
+
|
|
2076
|
+
// pragma MARK: std::vector<WorkoutRouteLocation>
|
|
2077
|
+
/**
|
|
2078
|
+
* Specialized version of `std::vector<WorkoutRouteLocation>`.
|
|
2079
|
+
*/
|
|
2080
|
+
using std__vector_WorkoutRouteLocation_ = std::vector<WorkoutRouteLocation>;
|
|
2081
|
+
inline std::vector<WorkoutRouteLocation> create_std__vector_WorkoutRouteLocation_(size_t size) {
|
|
2082
|
+
std::vector<WorkoutRouteLocation> vector;
|
|
2083
|
+
vector.reserve(size);
|
|
2084
|
+
return vector;
|
|
2085
|
+
}
|
|
2086
|
+
|
|
2087
|
+
// pragma MARK: std::vector<WorkoutRoute>
|
|
2088
|
+
/**
|
|
2089
|
+
* Specialized version of `std::vector<WorkoutRoute>`.
|
|
2090
|
+
*/
|
|
2091
|
+
using std__vector_WorkoutRoute_ = std::vector<WorkoutRoute>;
|
|
2092
|
+
inline std::vector<WorkoutRoute> create_std__vector_WorkoutRoute_(size_t size) {
|
|
2093
|
+
std::vector<WorkoutRoute> vector;
|
|
2094
|
+
vector.reserve(size);
|
|
2095
|
+
return vector;
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<WorkoutRoute>>>
|
|
2099
|
+
/**
|
|
2100
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<WorkoutRoute>>>`.
|
|
2101
|
+
*/
|
|
2102
|
+
using std__shared_ptr_Promise_std__vector_WorkoutRoute___ = std::shared_ptr<Promise<std::vector<WorkoutRoute>>>;
|
|
2103
|
+
inline std::shared_ptr<Promise<std::vector<WorkoutRoute>>> create_std__shared_ptr_Promise_std__vector_WorkoutRoute___() {
|
|
2104
|
+
return Promise<std::vector<WorkoutRoute>>::create();
|
|
2105
|
+
}
|
|
2106
|
+
inline PromiseHolder<std::vector<WorkoutRoute>> wrap_std__shared_ptr_Promise_std__vector_WorkoutRoute___(std::shared_ptr<Promise<std::vector<WorkoutRoute>>> promise) {
|
|
2107
|
+
return PromiseHolder<std::vector<WorkoutRoute>>(std::move(promise));
|
|
2108
|
+
}
|
|
2109
|
+
|
|
2110
|
+
// pragma MARK: std::function<void(const std::vector<WorkoutRoute>& /* result */)>
|
|
2111
|
+
/**
|
|
2112
|
+
* Specialized version of `std::function<void(const std::vector<WorkoutRoute>&)>`.
|
|
2113
|
+
*/
|
|
2114
|
+
using Func_void_std__vector_WorkoutRoute_ = std::function<void(const std::vector<WorkoutRoute>& /* result */)>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Wrapper class for a `std::function<void(const std::vector<WorkoutRoute>& / * result * /)>`, this can be used from Swift.
|
|
2117
|
+
*/
|
|
2118
|
+
class Func_void_std__vector_WorkoutRoute__Wrapper final {
|
|
2119
|
+
public:
|
|
2120
|
+
explicit Func_void_std__vector_WorkoutRoute__Wrapper(std::function<void(const std::vector<WorkoutRoute>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<WorkoutRoute>& /* result */)>>(std::move(func))) {}
|
|
2121
|
+
inline void call(std::vector<WorkoutRoute> result) const {
|
|
2122
|
+
_function->operator()(result);
|
|
2123
|
+
}
|
|
2124
|
+
private:
|
|
2125
|
+
std::shared_ptr<std::function<void(const std::vector<WorkoutRoute>& /* result */)>> _function;
|
|
2126
|
+
};
|
|
2127
|
+
Func_void_std__vector_WorkoutRoute_ create_Func_void_std__vector_WorkoutRoute_(void* _Nonnull swiftClosureWrapper);
|
|
2128
|
+
inline Func_void_std__vector_WorkoutRoute__Wrapper wrap_Func_void_std__vector_WorkoutRoute_(Func_void_std__vector_WorkoutRoute_ value) {
|
|
2129
|
+
return Func_void_std__vector_WorkoutRoute__Wrapper(std::move(value));
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
// pragma MARK: Result<WorkoutSample>
|
|
2133
|
+
using Result_WorkoutSample_ = Result<WorkoutSample>;
|
|
2134
|
+
inline Result_WorkoutSample_ create_Result_WorkoutSample_(const WorkoutSample& value) {
|
|
2135
|
+
return Result<WorkoutSample>::withValue(value);
|
|
2136
|
+
}
|
|
2137
|
+
inline Result_WorkoutSample_ create_Result_WorkoutSample_(const std::exception_ptr& error) {
|
|
2138
|
+
return Result<WorkoutSample>::withError(error);
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::optional<WorkoutPlan>>>>
|
|
2142
|
+
using Result_std__shared_ptr_Promise_std__optional_WorkoutPlan____ = Result<std::shared_ptr<Promise<std::optional<WorkoutPlan>>>>;
|
|
2143
|
+
inline Result_std__shared_ptr_Promise_std__optional_WorkoutPlan____ create_Result_std__shared_ptr_Promise_std__optional_WorkoutPlan____(const std::shared_ptr<Promise<std::optional<WorkoutPlan>>>& value) {
|
|
2144
|
+
return Result<std::shared_ptr<Promise<std::optional<WorkoutPlan>>>>::withValue(value);
|
|
2145
|
+
}
|
|
2146
|
+
inline Result_std__shared_ptr_Promise_std__optional_WorkoutPlan____ create_Result_std__shared_ptr_Promise_std__optional_WorkoutPlan____(const std::exception_ptr& error) {
|
|
2147
|
+
return Result<std::shared_ptr<Promise<std::optional<WorkoutPlan>>>>::withError(error);
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<WorkoutRoute>>>>
|
|
2151
|
+
using Result_std__shared_ptr_Promise_std__vector_WorkoutRoute____ = Result<std::shared_ptr<Promise<std::vector<WorkoutRoute>>>>;
|
|
2152
|
+
inline Result_std__shared_ptr_Promise_std__vector_WorkoutRoute____ create_Result_std__shared_ptr_Promise_std__vector_WorkoutRoute____(const std::shared_ptr<Promise<std::vector<WorkoutRoute>>>& value) {
|
|
2153
|
+
return Result<std::shared_ptr<Promise<std::vector<WorkoutRoute>>>>::withValue(value);
|
|
2154
|
+
}
|
|
2155
|
+
inline Result_std__shared_ptr_Promise_std__vector_WorkoutRoute____ create_Result_std__shared_ptr_Promise_std__vector_WorkoutRoute____(const std::exception_ptr& error) {
|
|
2156
|
+
return Result<std::shared_ptr<Promise<std::vector<WorkoutRoute>>>>::withError(error);
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
// pragma MARK: std::optional<WorkoutSessionLocationType>
|
|
2160
|
+
/**
|
|
2161
|
+
* Specialized version of `std::optional<WorkoutSessionLocationType>`.
|
|
2162
|
+
*/
|
|
2163
|
+
using std__optional_WorkoutSessionLocationType_ = std::optional<WorkoutSessionLocationType>;
|
|
2164
|
+
inline std::optional<WorkoutSessionLocationType> create_std__optional_WorkoutSessionLocationType_(const WorkoutSessionLocationType& value) {
|
|
2165
|
+
return std::optional<WorkoutSessionLocationType>(value);
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
// pragma MARK: std::function<void(const std::string& /* errorMessage */)>
|
|
2169
|
+
/**
|
|
2170
|
+
* Specialized version of `std::function<void(const std::string&)>`.
|
|
2171
|
+
*/
|
|
2172
|
+
using Func_void_std__string = std::function<void(const std::string& /* errorMessage */)>;
|
|
2173
|
+
/**
|
|
2174
|
+
* Wrapper class for a `std::function<void(const std::string& / * errorMessage * /)>`, this can be used from Swift.
|
|
2175
|
+
*/
|
|
2176
|
+
class Func_void_std__string_Wrapper final {
|
|
2177
|
+
public:
|
|
2178
|
+
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* errorMessage */)>&& func): _function(std::make_shared<std::function<void(const std::string& /* errorMessage */)>>(std::move(func))) {}
|
|
2179
|
+
inline void call(std::string errorMessage) const {
|
|
2180
|
+
_function->operator()(errorMessage);
|
|
2181
|
+
}
|
|
2182
|
+
private:
|
|
2183
|
+
std::shared_ptr<std::function<void(const std::string& /* errorMessage */)>> _function;
|
|
2184
|
+
};
|
|
2185
|
+
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper);
|
|
2186
|
+
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) {
|
|
2187
|
+
return Func_void_std__string_Wrapper(std::move(value));
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
// pragma MARK: std::function<void(WorkoutSessionState /* toState */, WorkoutSessionState /* fromState */, std::chrono::system_clock::time_point /* date */)>
|
|
2191
|
+
/**
|
|
2192
|
+
* Specialized version of `std::function<void(WorkoutSessionState, WorkoutSessionState, std::chrono::system_clock::time_point)>`.
|
|
2193
|
+
*/
|
|
2194
|
+
using Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point = std::function<void(WorkoutSessionState /* toState */, WorkoutSessionState /* fromState */, std::chrono::system_clock::time_point /* date */)>;
|
|
2195
|
+
/**
|
|
2196
|
+
* Wrapper class for a `std::function<void(WorkoutSessionState / * toState * /, WorkoutSessionState / * fromState * /, std::chrono::system_clock::time_point / * date * /)>`, this can be used from Swift.
|
|
2197
|
+
*/
|
|
2198
|
+
class Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point_Wrapper final {
|
|
2199
|
+
public:
|
|
2200
|
+
explicit Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point_Wrapper(std::function<void(WorkoutSessionState /* toState */, WorkoutSessionState /* fromState */, std::chrono::system_clock::time_point /* date */)>&& func): _function(std::make_shared<std::function<void(WorkoutSessionState /* toState */, WorkoutSessionState /* fromState */, std::chrono::system_clock::time_point /* date */)>>(std::move(func))) {}
|
|
2201
|
+
inline void call(int toState, int fromState, std::chrono::system_clock::time_point date) const {
|
|
2202
|
+
_function->operator()(static_cast<WorkoutSessionState>(toState), static_cast<WorkoutSessionState>(fromState), date);
|
|
2203
|
+
}
|
|
2204
|
+
private:
|
|
2205
|
+
std::shared_ptr<std::function<void(WorkoutSessionState /* toState */, WorkoutSessionState /* fromState */, std::chrono::system_clock::time_point /* date */)>> _function;
|
|
2206
|
+
};
|
|
2207
|
+
Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point create_Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point(void* _Nonnull swiftClosureWrapper);
|
|
2208
|
+
inline Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point_Wrapper wrap_Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point(Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point value) {
|
|
2209
|
+
return Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point_Wrapper(std::move(value));
|
|
2210
|
+
}
|
|
2211
|
+
|
|
2212
|
+
// pragma MARK: std::vector<RemoteSessionSharableData>
|
|
2213
|
+
/**
|
|
2214
|
+
* Specialized version of `std::vector<RemoteSessionSharableData>`.
|
|
2215
|
+
*/
|
|
2216
|
+
using std__vector_RemoteSessionSharableData_ = std::vector<RemoteSessionSharableData>;
|
|
2217
|
+
inline std::vector<RemoteSessionSharableData> create_std__vector_RemoteSessionSharableData_(size_t size) {
|
|
2218
|
+
std::vector<RemoteSessionSharableData> vector;
|
|
2219
|
+
vector.reserve(size);
|
|
2220
|
+
return vector;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
// pragma MARK: std::function<void(const std::vector<RemoteSessionSharableData>& /* data */)>
|
|
2224
|
+
/**
|
|
2225
|
+
* Specialized version of `std::function<void(const std::vector<RemoteSessionSharableData>&)>`.
|
|
2226
|
+
*/
|
|
2227
|
+
using Func_void_std__vector_RemoteSessionSharableData_ = std::function<void(const std::vector<RemoteSessionSharableData>& /* data */)>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Wrapper class for a `std::function<void(const std::vector<RemoteSessionSharableData>& / * data * /)>`, this can be used from Swift.
|
|
2230
|
+
*/
|
|
2231
|
+
class Func_void_std__vector_RemoteSessionSharableData__Wrapper final {
|
|
2232
|
+
public:
|
|
2233
|
+
explicit Func_void_std__vector_RemoteSessionSharableData__Wrapper(std::function<void(const std::vector<RemoteSessionSharableData>& /* data */)>&& func): _function(std::make_shared<std::function<void(const std::vector<RemoteSessionSharableData>& /* data */)>>(std::move(func))) {}
|
|
2234
|
+
inline void call(std::vector<RemoteSessionSharableData> data) const {
|
|
2235
|
+
_function->operator()(data);
|
|
2236
|
+
}
|
|
2237
|
+
private:
|
|
2238
|
+
std::shared_ptr<std::function<void(const std::vector<RemoteSessionSharableData>& /* data */)>> _function;
|
|
2239
|
+
};
|
|
2240
|
+
Func_void_std__vector_RemoteSessionSharableData_ create_Func_void_std__vector_RemoteSessionSharableData_(void* _Nonnull swiftClosureWrapper);
|
|
2241
|
+
inline Func_void_std__vector_RemoteSessionSharableData__Wrapper wrap_Func_void_std__vector_RemoteSessionSharableData_(Func_void_std__vector_RemoteSessionSharableData_ value) {
|
|
2242
|
+
return Func_void_std__vector_RemoteSessionSharableData__Wrapper(std::move(value));
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
// pragma MARK: std::function<void(WorkoutEventType /* type */)>
|
|
2246
|
+
/**
|
|
2247
|
+
* Specialized version of `std::function<void(WorkoutEventType)>`.
|
|
2248
|
+
*/
|
|
2249
|
+
using Func_void_WorkoutEventType = std::function<void(WorkoutEventType /* type */)>;
|
|
2250
|
+
/**
|
|
2251
|
+
* Wrapper class for a `std::function<void(WorkoutEventType / * type * /)>`, this can be used from Swift.
|
|
2252
|
+
*/
|
|
2253
|
+
class Func_void_WorkoutEventType_Wrapper final {
|
|
2254
|
+
public:
|
|
2255
|
+
explicit Func_void_WorkoutEventType_Wrapper(std::function<void(WorkoutEventType /* type */)>&& func): _function(std::make_shared<std::function<void(WorkoutEventType /* type */)>>(std::move(func))) {}
|
|
2256
|
+
inline void call(int type) const {
|
|
2257
|
+
_function->operator()(static_cast<WorkoutEventType>(type));
|
|
2258
|
+
}
|
|
2259
|
+
private:
|
|
2260
|
+
std::shared_ptr<std::function<void(WorkoutEventType /* type */)>> _function;
|
|
2261
|
+
};
|
|
2262
|
+
Func_void_WorkoutEventType create_Func_void_WorkoutEventType(void* _Nonnull swiftClosureWrapper);
|
|
2263
|
+
inline Func_void_WorkoutEventType_Wrapper wrap_Func_void_WorkoutEventType(Func_void_WorkoutEventType value) {
|
|
2264
|
+
return Func_void_WorkoutEventType_Wrapper(std::move(value));
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>
|
|
2268
|
+
/**
|
|
2269
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>`.
|
|
2270
|
+
*/
|
|
2271
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>;
|
|
2272
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
2273
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_ cppType);
|
|
2274
|
+
|
|
2275
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>
|
|
2276
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>;
|
|
2277
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutSessionModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutSessionModuleSpec>& strong) { return strong; }
|
|
2278
|
+
|
|
2279
|
+
// pragma MARK: std::shared_ptr<Promise<std::string>>
|
|
2280
|
+
/**
|
|
2281
|
+
* Specialized version of `std::shared_ptr<Promise<std::string>>`.
|
|
2282
|
+
*/
|
|
2283
|
+
using std__shared_ptr_Promise_std__string__ = std::shared_ptr<Promise<std::string>>;
|
|
2284
|
+
inline std::shared_ptr<Promise<std::string>> create_std__shared_ptr_Promise_std__string__() {
|
|
2285
|
+
return Promise<std::string>::create();
|
|
2286
|
+
}
|
|
2287
|
+
inline PromiseHolder<std::string> wrap_std__shared_ptr_Promise_std__string__(std::shared_ptr<Promise<std::string>> promise) {
|
|
2288
|
+
return PromiseHolder<std::string>(std::move(promise));
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
// pragma MARK: std::vector<QuantitySampleForSaving>
|
|
2292
|
+
/**
|
|
2293
|
+
* Specialized version of `std::vector<QuantitySampleForSaving>`.
|
|
2294
|
+
*/
|
|
2295
|
+
using std__vector_QuantitySampleForSaving_ = std::vector<QuantitySampleForSaving>;
|
|
2296
|
+
inline std::vector<QuantitySampleForSaving> create_std__vector_QuantitySampleForSaving_(size_t size) {
|
|
2297
|
+
std::vector<QuantitySampleForSaving> vector;
|
|
2298
|
+
vector.reserve(size);
|
|
2299
|
+
return vector;
|
|
2300
|
+
}
|
|
2301
|
+
|
|
2302
|
+
// pragma MARK: std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>
|
|
2303
|
+
/**
|
|
2304
|
+
* Specialized version of `std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>`.
|
|
2305
|
+
*/
|
|
2306
|
+
using std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__ = std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>;
|
|
2307
|
+
inline std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>> create_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__(size_t size) {
|
|
2308
|
+
std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>> vector;
|
|
2309
|
+
vector.reserve(size);
|
|
2310
|
+
return vector;
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2313
|
+
// pragma MARK: std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>
|
|
2314
|
+
/**
|
|
2315
|
+
* Specialized version of `std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>`.
|
|
2316
|
+
*/
|
|
2317
|
+
using std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse__ = std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>;
|
|
2318
|
+
inline std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>> create_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse__() {
|
|
2319
|
+
return Promise<QueryWorkoutSamplesWithAnchorResponse>::create();
|
|
2320
|
+
}
|
|
2321
|
+
inline PromiseHolder<QueryWorkoutSamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse__(std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>> promise) {
|
|
2322
|
+
return PromiseHolder<QueryWorkoutSamplesWithAnchorResponse>(std::move(promise));
|
|
2323
|
+
}
|
|
2324
|
+
|
|
2325
|
+
// pragma MARK: std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>
|
|
2326
|
+
/**
|
|
2327
|
+
* Specialized version of `std::function<void(const QueryWorkoutSamplesWithAnchorResponse&)>`.
|
|
2328
|
+
*/
|
|
2329
|
+
using Func_void_QueryWorkoutSamplesWithAnchorResponse = std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>;
|
|
2330
|
+
/**
|
|
2331
|
+
* Wrapper class for a `std::function<void(const QueryWorkoutSamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
2332
|
+
*/
|
|
2333
|
+
class Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper final {
|
|
2334
|
+
public:
|
|
2335
|
+
explicit Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper(std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_shared<std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
2336
|
+
inline void call(QueryWorkoutSamplesWithAnchorResponse result) const {
|
|
2337
|
+
_function->operator()(result);
|
|
2338
|
+
}
|
|
2339
|
+
private:
|
|
2340
|
+
std::shared_ptr<std::function<void(const QueryWorkoutSamplesWithAnchorResponse& /* result */)>> _function;
|
|
2341
|
+
};
|
|
2342
|
+
Func_void_QueryWorkoutSamplesWithAnchorResponse create_Func_void_QueryWorkoutSamplesWithAnchorResponse(void* _Nonnull swiftClosureWrapper);
|
|
2343
|
+
inline Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper wrap_Func_void_QueryWorkoutSamplesWithAnchorResponse(Func_void_QueryWorkoutSamplesWithAnchorResponse value) {
|
|
2344
|
+
return Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
2345
|
+
}
|
|
2346
|
+
|
|
2347
|
+
// pragma MARK: std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>
|
|
2348
|
+
/**
|
|
2349
|
+
* Wrapper struct for `std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>`.
|
|
2350
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
2351
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
2352
|
+
*/
|
|
2353
|
+
struct std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ {
|
|
2354
|
+
std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate> variant;
|
|
2355
|
+
std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate> variant): variant(variant) { }
|
|
2356
|
+
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>() const {
|
|
2357
|
+
return variant;
|
|
2358
|
+
}
|
|
2359
|
+
inline size_t index() const {
|
|
2360
|
+
return variant.index();
|
|
2361
|
+
}
|
|
2362
|
+
inline PredicateWithUUID get_0() const {
|
|
2363
|
+
return std::get<0>(variant);
|
|
2364
|
+
}
|
|
2365
|
+
inline PredicateWithUUIDs get_1() const {
|
|
2366
|
+
return std::get<1>(variant);
|
|
2367
|
+
}
|
|
2368
|
+
inline PredicateWithMetadataKey get_2() const {
|
|
2369
|
+
return std::get<2>(variant);
|
|
2370
|
+
}
|
|
2371
|
+
inline PredicateWithStartAndEnd get_3() const {
|
|
2372
|
+
return std::get<3>(variant);
|
|
2373
|
+
}
|
|
2374
|
+
inline PredicateFromWorkout get_4() const {
|
|
2375
|
+
return std::get<4>(variant);
|
|
2376
|
+
}
|
|
2377
|
+
inline WorkoutActivityTypePredicate get_5() const {
|
|
2378
|
+
return std::get<5>(variant);
|
|
2379
|
+
}
|
|
2380
|
+
inline WorkoutDurationPredicate get_6() const {
|
|
2381
|
+
return std::get<6>(variant);
|
|
2382
|
+
}
|
|
2383
|
+
};
|
|
2384
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithUUID& value) {
|
|
2385
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2386
|
+
}
|
|
2387
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithUUIDs& value) {
|
|
2388
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2389
|
+
}
|
|
2390
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithMetadataKey& value) {
|
|
2391
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2392
|
+
}
|
|
2393
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithStartAndEnd& value) {
|
|
2394
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2395
|
+
}
|
|
2396
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateFromWorkout& value) {
|
|
2397
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2398
|
+
}
|
|
2399
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const WorkoutActivityTypePredicate& value) {
|
|
2400
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2401
|
+
}
|
|
2402
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const WorkoutDurationPredicate& value) {
|
|
2403
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
// pragma MARK: std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>>
|
|
2407
|
+
/**
|
|
2408
|
+
* Specialized version of `std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>>`.
|
|
2409
|
+
*/
|
|
2410
|
+
using std__vector_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__ = std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>>;
|
|
2411
|
+
inline std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>> create_std__vector_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__(size_t size) {
|
|
2412
|
+
std::vector<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>> vector;
|
|
2413
|
+
vector.reserve(size);
|
|
2414
|
+
return vector;
|
|
2415
|
+
}
|
|
2416
|
+
|
|
2417
|
+
// pragma MARK: std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>
|
|
2418
|
+
/**
|
|
2419
|
+
* Wrapper struct for `std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>`.
|
|
2420
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
2421
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
2422
|
+
*/
|
|
2423
|
+
struct std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ {
|
|
2424
|
+
std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd> variant;
|
|
2425
|
+
std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd> variant): variant(variant) { }
|
|
2426
|
+
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>() const {
|
|
2427
|
+
return variant;
|
|
2428
|
+
}
|
|
2429
|
+
inline size_t index() const {
|
|
2430
|
+
return variant.index();
|
|
2431
|
+
}
|
|
2432
|
+
inline PredicateWithUUID get_0() const {
|
|
2433
|
+
return std::get<0>(variant);
|
|
2434
|
+
}
|
|
2435
|
+
inline PredicateWithUUIDs get_1() const {
|
|
2436
|
+
return std::get<1>(variant);
|
|
2437
|
+
}
|
|
2438
|
+
inline PredicateWithMetadataKey get_2() const {
|
|
2439
|
+
return std::get<2>(variant);
|
|
2440
|
+
}
|
|
2441
|
+
inline PredicateWithStartAndEnd get_3() const {
|
|
2442
|
+
return std::get<3>(variant);
|
|
2443
|
+
}
|
|
2444
|
+
inline PredicateFromWorkout get_4() const {
|
|
2445
|
+
return std::get<4>(variant);
|
|
2446
|
+
}
|
|
2447
|
+
inline WorkoutActivityTypePredicate get_5() const {
|
|
2448
|
+
return std::get<5>(variant);
|
|
2449
|
+
}
|
|
2450
|
+
inline WorkoutDurationPredicate get_6() const {
|
|
2451
|
+
return std::get<6>(variant);
|
|
2452
|
+
}
|
|
2453
|
+
inline PredicateForWorkoutsOr get_7() const {
|
|
2454
|
+
return std::get<7>(variant);
|
|
2455
|
+
}
|
|
2456
|
+
inline PredicateForWorkoutsAnd get_8() const {
|
|
2457
|
+
return std::get<8>(variant);
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateWithUUID& value) {
|
|
2461
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2462
|
+
}
|
|
2463
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateWithUUIDs& value) {
|
|
2464
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2465
|
+
}
|
|
2466
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateWithMetadataKey& value) {
|
|
2467
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2468
|
+
}
|
|
2469
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateWithStartAndEnd& value) {
|
|
2470
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2471
|
+
}
|
|
2472
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateFromWorkout& value) {
|
|
2473
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2474
|
+
}
|
|
2475
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const WorkoutActivityTypePredicate& value) {
|
|
2476
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2477
|
+
}
|
|
2478
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const WorkoutDurationPredicate& value) {
|
|
2479
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2480
|
+
}
|
|
2481
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateForWorkoutsOr& value) {
|
|
2482
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2483
|
+
}
|
|
2484
|
+
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(const PredicateForWorkoutsAnd& value) {
|
|
2485
|
+
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
// pragma MARK: std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>>
|
|
2489
|
+
/**
|
|
2490
|
+
* Specialized version of `std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>>`.
|
|
2491
|
+
*/
|
|
2492
|
+
using std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd__ = std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>>;
|
|
2493
|
+
inline std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>> create_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd__(const std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>& value) {
|
|
2494
|
+
return std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>>(value);
|
|
2495
|
+
}
|
|
2496
|
+
|
|
2497
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>
|
|
2498
|
+
/**
|
|
2499
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>`.
|
|
2500
|
+
*/
|
|
2501
|
+
using std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec____ = std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>;
|
|
2502
|
+
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>> create_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec____() {
|
|
2503
|
+
return Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>::create();
|
|
2504
|
+
}
|
|
2505
|
+
inline PromiseHolder<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>> wrap_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec____(std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>> promise) {
|
|
2506
|
+
return PromiseHolder<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>(std::move(promise));
|
|
2507
|
+
}
|
|
2508
|
+
|
|
2509
|
+
// pragma MARK: std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& /* result */)>
|
|
2510
|
+
/**
|
|
2511
|
+
* Specialized version of `std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>&)>`.
|
|
2512
|
+
*/
|
|
2513
|
+
using Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__ = std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& /* result */)>;
|
|
2514
|
+
/**
|
|
2515
|
+
* Wrapper class for a `std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& / * result * /)>`, this can be used from Swift.
|
|
2516
|
+
*/
|
|
2517
|
+
class Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec___Wrapper final {
|
|
2518
|
+
public:
|
|
2519
|
+
explicit Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec___Wrapper(std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& /* result */)>>(std::move(func))) {}
|
|
2520
|
+
inline void call(std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>> result) const {
|
|
2521
|
+
_function->operator()(result);
|
|
2522
|
+
}
|
|
2523
|
+
private:
|
|
2524
|
+
std::shared_ptr<std::function<void(const std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>& /* result */)>> _function;
|
|
2525
|
+
};
|
|
2526
|
+
Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__ create_Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__(void* _Nonnull swiftClosureWrapper);
|
|
2527
|
+
inline Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec___Wrapper wrap_Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__(Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__ value) {
|
|
2528
|
+
return Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec___Wrapper(std::move(value));
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>
|
|
2532
|
+
/**
|
|
2533
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>`.
|
|
2534
|
+
*/
|
|
2535
|
+
using std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_ = std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>;
|
|
2536
|
+
std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec> create_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_(void* _Nonnull swiftUnsafePointer);
|
|
2537
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_(std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_ cppType);
|
|
2538
|
+
|
|
2539
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>
|
|
2540
|
+
using std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_ = std::weak_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>;
|
|
2541
|
+
inline std__weak_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_ weakify_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutsModuleSpec_(const std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutsModuleSpec>& strong) { return strong; }
|
|
2542
|
+
|
|
2543
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::string>>>
|
|
2544
|
+
using Result_std__shared_ptr_Promise_std__string___ = Result<std::shared_ptr<Promise<std::string>>>;
|
|
2545
|
+
inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::shared_ptr<Promise<std::string>>& value) {
|
|
2546
|
+
return Result<std::shared_ptr<Promise<std::string>>>::withValue(value);
|
|
2547
|
+
}
|
|
2548
|
+
inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::exception_ptr& error) {
|
|
2549
|
+
return Result<std::shared_ptr<Promise<std::string>>>::withError(error);
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2552
|
+
// pragma MARK: Result<std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>>
|
|
2553
|
+
using Result_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>>;
|
|
2554
|
+
inline Result_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse___(const std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>& value) {
|
|
2555
|
+
return Result<std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>>::withValue(value);
|
|
2556
|
+
}
|
|
2557
|
+
inline Result_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QueryWorkoutSamplesWithAnchorResponse___(const std::exception_ptr& error) {
|
|
2558
|
+
return Result<std::shared_ptr<Promise<QueryWorkoutSamplesWithAnchorResponse>>>::withError(error);
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>>
|
|
2562
|
+
using Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_____ = Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>>;
|
|
2563
|
+
inline Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_____ create_Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_____(const std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>& value) {
|
|
2564
|
+
return Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>>::withValue(value);
|
|
2565
|
+
}
|
|
2566
|
+
inline Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_____ create_Result_std__shared_ptr_Promise_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_____(const std::exception_ptr& error) {
|
|
2567
|
+
return Result<std::shared_ptr<Promise<std::vector<std::shared_ptr<margelo::nitro::healthkit::HybridWorkoutProxySpec>>>>>::withError(error);
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
} // namespace margelo::nitro::healthkit::bridge::swift
|