@kingstinct/react-native-healthkit 12.1.2 → 12.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ios/CategoryTypeModule.swift +49 -97
- package/ios/CharacteristicTypeModule.swift +77 -63
- package/ios/CoreModule.swift +324 -280
- package/ios/CorrelationTypeModule.swift +192 -144
- package/ios/ElectrocardiogramModule.swift +185 -194
- package/ios/HeartbeatSeriesModule.swift +123 -171
- package/ios/Helpers.swift +312 -571
- package/ios/MedicationModule.swift +259 -0
- package/ios/PredicateHelpers.swift +334 -0
- package/ios/QuantityTypeModule.swift +297 -378
- package/ios/Serializers.swift +273 -210
- package/ios/SourceProxy.swift +2 -2
- package/ios/StateOfMindModule.swift +179 -125
- package/ios/WorkoutProxy.swift +235 -112
- package/ios/WorkoutsModule.swift +214 -262
- package/lib/commonjs/healthkit.ios.js +22 -2
- package/lib/commonjs/healthkit.js +35 -5
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +1 -1
- package/lib/commonjs/hooks/useSubscribeToCategorySamples.js +20 -0
- package/lib/commonjs/modules.js +2 -1
- package/lib/commonjs/specs/MedicationModule.nitro.js +27 -0
- package/lib/commonjs/types/Constants.js +2 -1
- package/lib/commonjs/types/QuantityType.js +8 -1
- package/lib/commonjs/types/QueryOptions.js +18 -0
- package/lib/commonjs/types/WeatherCondition.js +32 -32
- package/lib/commonjs/types/Workouts.js +1 -50
- package/lib/commonjs/utils/getCategorySampleById.js +1 -1
- package/lib/commonjs/utils/getQuantitySampleById.js +1 -1
- package/lib/commonjs/utils/getWorkoutById.js +1 -1
- package/lib/commonjs/utils/subscribeToCategorySamples.js +29 -0
- package/lib/commonjs/utils/subscribeToQuantitySamples.js +8 -25
- package/lib/module/healthkit.ios.js +20 -2
- package/lib/module/healthkit.js +32 -2
- package/lib/module/hooks/useStatisticsForQuantity.js +1 -1
- package/lib/module/hooks/useSubscribeToCategorySamples.js +17 -0
- package/lib/module/modules.js +1 -0
- package/lib/module/specs/MedicationModule.nitro.js +26 -0
- package/lib/module/types/Constants.js +1 -0
- package/lib/module/types/QuantityType.js +7 -0
- package/lib/module/types/QueryOptions.js +17 -1
- package/lib/module/types/WeatherCondition.js +31 -31
- package/lib/module/types/Workouts.js +0 -49
- package/lib/module/utils/getCategorySampleById.js +1 -1
- package/lib/module/utils/getQuantitySampleById.js +1 -1
- package/lib/module/utils/getWorkoutById.js +1 -1
- package/lib/module/utils/subscribeToCategorySamples.js +26 -0
- package/lib/module/utils/subscribeToQuantitySamples.js +8 -25
- package/lib/typescript/healthkit.d.ts +18 -9
- package/lib/typescript/healthkit.ios.d.ts +33 -15
- package/lib/typescript/hooks/useSubscribeToCategorySamples.d.ts +3 -0
- package/lib/typescript/modules.d.ts +2 -0
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +2 -2
- package/lib/typescript/specs/CoreModule.nitro.d.ts +2 -1
- package/lib/typescript/specs/CorrelationTypeModule.nitro.d.ts +4 -2
- package/lib/typescript/specs/ElectrocardiogramModule.nitro.d.ts +1 -1
- package/lib/typescript/specs/HeartbeatSeriesModule.nitro.d.ts +1 -1
- package/lib/typescript/specs/MedicationModule.nitro.d.ts +56 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +4 -4
- package/lib/typescript/specs/StateOfMindModule.nitro.d.ts +4 -3
- package/lib/typescript/types/CategoryType.d.ts +10 -20
- package/lib/typescript/types/Constants.d.ts +1 -0
- package/lib/typescript/types/CorrelationType.d.ts +8 -10
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +2 -12
- package/lib/typescript/types/HeartbeatSeries.d.ts +2 -14
- package/lib/typescript/types/QuantitySample.d.ts +2 -8
- package/lib/typescript/types/QuantityType.d.ts +7 -8
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +23 -23
- package/lib/typescript/types/QueryOptions.d.ts +43 -28
- package/lib/typescript/types/Shared.d.ts +52 -7
- package/lib/typescript/types/StateOfMind.d.ts +7 -10
- package/lib/typescript/types/Subscriptions.d.ts +12 -3
- package/lib/typescript/types/WeatherCondition.d.ts +1 -1
- package/lib/typescript/types/Workouts.d.ts +28 -81
- package/lib/typescript/utils/subscribeToCategorySamples.d.ts +5 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +57 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +592 -389
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +65 -30
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +8 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +15 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +32 -26
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +36 -37
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +55 -2
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +36 -30
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +35 -29
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +181 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +48 -42
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +59 -36
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +150 -29
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +13 -28
- package/nitrogen/generated/ios/swift/AggregationStyle.swift +48 -0
- package/nitrogen/generated/ios/swift/CategorySample.swift +571 -24
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +2 -2
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +640 -17
- package/nitrogen/generated/ios/swift/{PredicateWithStartAndEnd.swift → DateFilter.swift} +5 -5
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +11 -91
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +11 -91
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +570 -72
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +349 -12
- package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +234 -0
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +366 -0
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +240 -0
- package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +47 -0
- package/nitrogen/generated/ios/swift/GeneralForm.swift +104 -0
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +44 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +565 -37
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +19 -31
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +21 -2
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +60 -0
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +208 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +2 -2
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +9 -43
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +21 -2
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +34 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +376 -36
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +40 -0
- package/nitrogen/generated/ios/swift/MedicationConcept.swift +80 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +781 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventLogStatus.swift +56 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventScheduleType.swift +40 -0
- package/nitrogen/generated/ios/swift/MedicationDoseEventsWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +7 -7
- package/nitrogen/generated/ios/swift/QuantitySample.swift +574 -27
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +11 -91
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +11 -91
- package/nitrogen/generated/ios/swift/RelatedCoding.swift +76 -0
- package/nitrogen/generated/ios/swift/SampleType.swift +68 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +16 -16
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +0 -16
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +586 -58
- package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +7 -75
- package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +87 -0
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +144 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +11 -105
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +11 -105
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +751 -78
- package/nitrogen/generated/shared/c++/AggregationStyle.hpp +64 -0
- package/nitrogen/generated/shared/c++/CategorySample.hpp +126 -23
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +134 -12
- package/nitrogen/generated/shared/c++/{PredicateWithStartAndEnd.hpp → DateFilter.hpp} +10 -10
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +12 -31
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +12 -31
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +135 -36
- package/nitrogen/generated/shared/c++/FilterForSamples.hpp +124 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +109 -0
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +131 -0
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +116 -0
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +140 -0
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +67 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +131 -28
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +1 -2
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +10 -28
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +11 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -2
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -2
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +6 -25
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +9 -2
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +33 -5
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +56 -16
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +62 -0
- package/nitrogen/generated/shared/c++/MedicationConcept.hpp +93 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +240 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventLogStatus.hpp +66 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventScheduleType.hpp +62 -0
- package/nitrogen/generated/shared/c++/MedicationDoseEventsWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +8 -8
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +130 -27
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +12 -31
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +12 -31
- package/nitrogen/generated/shared/c++/RelatedCoding.hpp +84 -0
- package/nitrogen/generated/shared/c++/SampleType.hpp +87 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +105 -105
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +105 -121
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +139 -36
- package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +89 -0
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +8 -27
- package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +90 -0
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +88 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +12 -37
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +12 -37
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +159 -35
- package/package.json +1 -1
- package/src/healthkit.ios.ts +30 -0
- package/src/healthkit.ts +68 -3
- package/src/hooks/useStatisticsForQuantity.ts +1 -1
- package/src/hooks/useSubscribeToCategorySamples.ts +31 -0
- package/src/modules.ts +4 -0
- package/src/specs/CategoryTypeModule.nitro.ts +2 -2
- package/src/specs/CoreModule.nitro.ts +3 -0
- package/src/specs/CorrelationTypeModule.nitro.ts +11 -3
- package/src/specs/ElectrocardiogramModule.nitro.ts +1 -1
- package/src/specs/HeartbeatSeriesModule.nitro.ts +1 -1
- package/src/specs/MedicationModule.nitro.ts +140 -0
- package/src/specs/QuantityTypeModule.nitro.ts +4 -7
- package/src/specs/StateOfMindModule.nitro.ts +10 -2
- package/src/types/CategoryType.ts +15 -22
- package/src/types/Constants.ts +3 -0
- package/src/types/CorrelationType.ts +10 -15
- package/src/types/ElectrocardiogramSample.ts +2 -14
- package/src/types/HeartbeatSeries.ts +2 -15
- package/src/types/QuantitySample.ts +2 -8
- package/src/types/QuantityType.ts +8 -17
- package/src/types/QuantityTypeIdentifier.ts +25 -25
- package/src/types/QueryOptions.ts +54 -43
- package/src/types/Shared.ts +74 -17
- package/src/types/StateOfMind.ts +8 -10
- package/src/types/Subscriptions.ts +19 -3
- package/src/types/WeatherCondition.ts +1 -1
- package/src/types/Workouts.ts +28 -91
- package/src/utils/getCategorySampleById.ts +1 -1
- package/src/utils/getQuantitySampleById.ts +1 -1
- package/src/utils/getWorkoutById.ts +1 -2
- package/src/utils/subscribeToCategorySamples.ts +38 -0
- package/src/utils/subscribeToQuantitySamples.ts +12 -37
- package/nitrogen/generated/ios/swift/FilterForSamplesAnd.swift +0 -94
- package/nitrogen/generated/ios/swift/FilterForSamplesOr.swift +0 -94
- package/nitrogen/generated/ios/swift/PredicateForSamples.swift +0 -21
- package/nitrogen/generated/ios/swift/PredicateForWorkouts.swift +0 -23
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsAnd.swift +0 -108
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsOr.swift +0 -108
- package/nitrogen/generated/ios/swift/PredicateFromWorkout.swift +0 -45
- package/nitrogen/generated/ios/swift/PredicateWithMetadataOperator.swift +0 -48
- package/nitrogen/generated/ios/swift/PredicateWithUUID.swift +0 -35
- package/nitrogen/generated/ios/swift/PredicateWithUUIDs.swift +0 -47
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr.swift +0 -23
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_WorkoutActivityTypePredicate_WorkoutDurationPredicate_PredicateForWorkoutsOr_PredicateForWorkoutsAnd.swift +0 -25
- package/nitrogen/generated/ios/swift/WorkoutActivityTypePredicate.swift +0 -35
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +0 -90
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +0 -90
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +0 -96
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +0 -96
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +0 -77
- package/nitrogen/generated/shared/c++/PredicateWithMetadataOperator.hpp +0 -84
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +0 -75
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +0 -76
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +0 -76
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AggregationStyle` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::healthkit { enum class AggregationStyle; }
|
|
11
13
|
// Forward declaration of `AuthorizationRequestStatus` to properly resolve imports.
|
|
12
14
|
namespace margelo::nitro::healthkit { enum class AuthorizationRequestStatus; }
|
|
13
15
|
// Forward declaration of `AuthorizationStatus` to properly resolve imports.
|
|
@@ -30,12 +32,12 @@ namespace margelo::nitro::healthkit { enum class ComparisonPredicateOperator; }
|
|
|
30
32
|
namespace margelo::nitro::healthkit { struct CorrelationSample; }
|
|
31
33
|
// Forward declaration of `CorrelationTypeIdentifier` to properly resolve imports.
|
|
32
34
|
namespace margelo::nitro::healthkit { enum class CorrelationTypeIdentifier; }
|
|
35
|
+
// Forward declaration of `DateFilter` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct DateFilter; }
|
|
33
37
|
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
34
38
|
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
35
39
|
// Forward declaration of `Device` to properly resolve imports.
|
|
36
40
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
37
|
-
// Forward declaration of `ECGQueryOptionsWithSortOrder` to properly resolve imports.
|
|
38
|
-
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithSortOrder; }
|
|
39
41
|
// Forward declaration of `ElectrocardiogramClassification` to properly resolve imports.
|
|
40
42
|
namespace margelo::nitro::healthkit { enum class ElectrocardiogramClassification; }
|
|
41
43
|
// Forward declaration of `ElectrocardiogramLead` to properly resolve imports.
|
|
@@ -48,12 +50,20 @@ namespace margelo::nitro::healthkit { struct ElectrocardiogramSamplesWithAnchorR
|
|
|
48
50
|
namespace margelo::nitro::healthkit { enum class ElectrocardiogramSymptomsStatus; }
|
|
49
51
|
// Forward declaration of `ElectrocardiogramVoltage` to properly resolve imports.
|
|
50
52
|
namespace margelo::nitro::healthkit { struct ElectrocardiogramVoltage; }
|
|
51
|
-
// Forward declaration of `
|
|
52
|
-
namespace margelo::nitro::healthkit { struct
|
|
53
|
-
// Forward declaration of `
|
|
54
|
-
namespace margelo::nitro::healthkit { struct
|
|
53
|
+
// Forward declaration of `FilterForSamplesBase` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesBase; }
|
|
55
|
+
// Forward declaration of `FilterForSamples` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::healthkit { struct FilterForSamples; }
|
|
57
|
+
// Forward declaration of `FilterForWorkoutsBase` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkoutsBase; }
|
|
59
|
+
// Forward declaration of `FilterForWorkouts` to properly resolve imports.
|
|
60
|
+
namespace margelo::nitro::healthkit { struct FilterForWorkouts; }
|
|
55
61
|
// Forward declaration of `FitzpatrickSkinType` to properly resolve imports.
|
|
56
62
|
namespace margelo::nitro::healthkit { enum class FitzpatrickSkinType; }
|
|
63
|
+
// Forward declaration of `GeneralForm` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::healthkit { enum class GeneralForm; }
|
|
65
|
+
// Forward declaration of `HeartRateMotionContext` to properly resolve imports.
|
|
66
|
+
namespace margelo::nitro::healthkit { enum class HeartRateMotionContext; }
|
|
57
67
|
// Forward declaration of `HeartbeatSeriesSample` to properly resolve imports.
|
|
58
68
|
namespace margelo::nitro::healthkit { struct HeartbeatSeriesSample; }
|
|
59
69
|
// Forward declaration of `HeartbeatSeriesSamplesWithAnchorResponse` to properly resolve imports.
|
|
@@ -72,6 +82,8 @@ namespace margelo::nitro::healthkit { class HybridCorrelationTypeModuleSpec; }
|
|
|
72
82
|
namespace margelo::nitro::healthkit { class HybridElectrocardiogramModuleSpec; }
|
|
73
83
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec` to properly resolve imports.
|
|
74
84
|
namespace margelo::nitro::healthkit { class HybridHeartbeatSeriesModuleSpec; }
|
|
85
|
+
// Forward declaration of `HybridMedicationModuleSpec` to properly resolve imports.
|
|
86
|
+
namespace margelo::nitro::healthkit { class HybridMedicationModuleSpec; }
|
|
75
87
|
// Forward declaration of `HybridQuantityTypeModuleSpec` to properly resolve imports.
|
|
76
88
|
namespace margelo::nitro::healthkit { class HybridQuantityTypeModuleSpec; }
|
|
77
89
|
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
@@ -84,28 +96,26 @@ namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
|
84
96
|
namespace margelo::nitro::healthkit { class HybridWorkoutsModuleSpec; }
|
|
85
97
|
// Forward declaration of `IdentifierWithUnit` to properly resolve imports.
|
|
86
98
|
namespace margelo::nitro::healthkit { struct IdentifierWithUnit; }
|
|
99
|
+
// Forward declaration of `InsulinDeliveryReason` to properly resolve imports.
|
|
100
|
+
namespace margelo::nitro::healthkit { enum class InsulinDeliveryReason; }
|
|
87
101
|
// Forward declaration of `LocationForSaving` to properly resolve imports.
|
|
88
102
|
namespace margelo::nitro::healthkit { struct LocationForSaving; }
|
|
103
|
+
// Forward declaration of `MedicationConcept` to properly resolve imports.
|
|
104
|
+
namespace margelo::nitro::healthkit { struct MedicationConcept; }
|
|
105
|
+
// Forward declaration of `MedicationDoseEventLogStatus` to properly resolve imports.
|
|
106
|
+
namespace margelo::nitro::healthkit { enum class MedicationDoseEventLogStatus; }
|
|
107
|
+
// Forward declaration of `MedicationDoseEventScheduleType` to properly resolve imports.
|
|
108
|
+
namespace margelo::nitro::healthkit { enum class MedicationDoseEventScheduleType; }
|
|
109
|
+
// Forward declaration of `MedicationDoseEvent` to properly resolve imports.
|
|
110
|
+
namespace margelo::nitro::healthkit { struct MedicationDoseEvent; }
|
|
111
|
+
// Forward declaration of `MedicationDoseEventsWithAnchorResponse` to properly resolve imports.
|
|
112
|
+
namespace margelo::nitro::healthkit { struct MedicationDoseEventsWithAnchorResponse; }
|
|
89
113
|
// Forward declaration of `ObjectTypeIdentifier` to properly resolve imports.
|
|
90
114
|
namespace margelo::nitro::healthkit { enum class ObjectTypeIdentifier; }
|
|
91
115
|
// Forward declaration of `OnChangeCallbackArgs` to properly resolve imports.
|
|
92
116
|
namespace margelo::nitro::healthkit { struct OnChangeCallbackArgs; }
|
|
93
|
-
// Forward declaration of `PredicateForWorkoutsAnd` to properly resolve imports.
|
|
94
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsAnd; }
|
|
95
|
-
// Forward declaration of `PredicateForWorkoutsOr` to properly resolve imports.
|
|
96
|
-
namespace margelo::nitro::healthkit { struct PredicateForWorkoutsOr; }
|
|
97
|
-
// Forward declaration of `PredicateFromWorkout` to properly resolve imports.
|
|
98
|
-
namespace margelo::nitro::healthkit { struct PredicateFromWorkout; }
|
|
99
117
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
100
118
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
101
|
-
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
102
|
-
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
103
|
-
// Forward declaration of `PredicateWithStartAndEnd` to properly resolve imports.
|
|
104
|
-
namespace margelo::nitro::healthkit { struct PredicateWithStartAndEnd; }
|
|
105
|
-
// Forward declaration of `PredicateWithUUID` to properly resolve imports.
|
|
106
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUID; }
|
|
107
|
-
// Forward declaration of `PredicateWithUUIDs` to properly resolve imports.
|
|
108
|
-
namespace margelo::nitro::healthkit { struct PredicateWithUUIDs; }
|
|
109
119
|
// Forward declaration of `QuantityDateInterval` to properly resolve imports.
|
|
110
120
|
namespace margelo::nitro::healthkit { struct QuantityDateInterval; }
|
|
111
121
|
// Forward declaration of `QuantitySampleForSaving` to properly resolve imports.
|
|
@@ -118,18 +128,20 @@ namespace margelo::nitro::healthkit { struct QuantitySamplesWithAnchorResponse;
|
|
|
118
128
|
namespace margelo::nitro::healthkit { enum class QuantityTypeIdentifier; }
|
|
119
129
|
// Forward declaration of `Quantity` to properly resolve imports.
|
|
120
130
|
namespace margelo::nitro::healthkit { struct Quantity; }
|
|
121
|
-
// Forward declaration of `
|
|
122
|
-
namespace margelo::nitro::healthkit { struct
|
|
123
|
-
// Forward declaration of `QueryOptionsWithSortOrder` to properly resolve imports.
|
|
124
|
-
namespace margelo::nitro::healthkit { struct QueryOptionsWithSortOrder; }
|
|
131
|
+
// Forward declaration of `QueryCorrelationSamplesWithAnchorResponse` to properly resolve imports.
|
|
132
|
+
namespace margelo::nitro::healthkit { struct QueryCorrelationSamplesWithAnchorResponse; }
|
|
125
133
|
// Forward declaration of `QueryStatisticsResponse` to properly resolve imports.
|
|
126
134
|
namespace margelo::nitro::healthkit { struct QueryStatisticsResponse; }
|
|
127
135
|
// Forward declaration of `QueryWorkoutSamplesWithAnchorResponse` to properly resolve imports.
|
|
128
136
|
namespace margelo::nitro::healthkit { struct QueryWorkoutSamplesWithAnchorResponse; }
|
|
137
|
+
// Forward declaration of `RelatedCoding` to properly resolve imports.
|
|
138
|
+
namespace margelo::nitro::healthkit { struct RelatedCoding; }
|
|
129
139
|
// Forward declaration of `SampleTypeIdentifierWriteable` to properly resolve imports.
|
|
130
140
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable; }
|
|
131
141
|
// Forward declaration of `SampleTypeIdentifier` to properly resolve imports.
|
|
132
142
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifier; }
|
|
143
|
+
// Forward declaration of `SampleType` to properly resolve imports.
|
|
144
|
+
namespace margelo::nitro::healthkit { struct SampleType; }
|
|
133
145
|
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
134
146
|
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
135
147
|
// Forward declaration of `Source` to properly resolve imports.
|
|
@@ -142,16 +154,20 @@ namespace margelo::nitro::healthkit { enum class StateOfMindKind; }
|
|
|
142
154
|
namespace margelo::nitro::healthkit { enum class StateOfMindLabel; }
|
|
143
155
|
// Forward declaration of `StateOfMindSample` to properly resolve imports.
|
|
144
156
|
namespace margelo::nitro::healthkit { struct StateOfMindSample; }
|
|
157
|
+
// Forward declaration of `StateOfMindSamplesWithAnchorResponse` to properly resolve imports.
|
|
158
|
+
namespace margelo::nitro::healthkit { struct StateOfMindSamplesWithAnchorResponse; }
|
|
145
159
|
// Forward declaration of `StateOfMindValenceClassification` to properly resolve imports.
|
|
146
160
|
namespace margelo::nitro::healthkit { enum class StateOfMindValenceClassification; }
|
|
147
161
|
// Forward declaration of `StatisticsOptions` to properly resolve imports.
|
|
148
162
|
namespace margelo::nitro::healthkit { enum class StatisticsOptions; }
|
|
149
163
|
// Forward declaration of `StatisticsQueryOptions` to properly resolve imports.
|
|
150
164
|
namespace margelo::nitro::healthkit { struct StatisticsQueryOptions; }
|
|
165
|
+
// Forward declaration of `UserAnnotatedMedication` to properly resolve imports.
|
|
166
|
+
namespace margelo::nitro::healthkit { struct UserAnnotatedMedication; }
|
|
167
|
+
// Forward declaration of `WeatherCondition` to properly resolve imports.
|
|
168
|
+
namespace margelo::nitro::healthkit { enum class WeatherCondition; }
|
|
151
169
|
// Forward declaration of `WheelchairUse` to properly resolve imports.
|
|
152
170
|
namespace margelo::nitro::healthkit { enum class WheelchairUse; }
|
|
153
|
-
// Forward declaration of `WorkoutActivityTypePredicate` to properly resolve imports.
|
|
154
|
-
namespace margelo::nitro::healthkit { struct WorkoutActivityTypePredicate; }
|
|
155
171
|
// Forward declaration of `WorkoutActivityType` to properly resolve imports.
|
|
156
172
|
namespace margelo::nitro::healthkit { enum class WorkoutActivityType; }
|
|
157
173
|
// Forward declaration of `WorkoutActivity` to properly resolve imports.
|
|
@@ -188,6 +204,8 @@ namespace ReactNativeHealthkit { class HybridCorrelationTypeModuleSpec_cxx; }
|
|
|
188
204
|
namespace ReactNativeHealthkit { class HybridElectrocardiogramModuleSpec_cxx; }
|
|
189
205
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec_cxx` to properly resolve imports.
|
|
190
206
|
namespace ReactNativeHealthkit { class HybridHeartbeatSeriesModuleSpec_cxx; }
|
|
207
|
+
// Forward declaration of `HybridMedicationModuleSpec_cxx` to properly resolve imports.
|
|
208
|
+
namespace ReactNativeHealthkit { class HybridMedicationModuleSpec_cxx; }
|
|
191
209
|
// Forward declaration of `HybridQuantityTypeModuleSpec_cxx` to properly resolve imports.
|
|
192
210
|
namespace ReactNativeHealthkit { class HybridQuantityTypeModuleSpec_cxx; }
|
|
193
211
|
// Forward declaration of `HybridSourceProxySpec_cxx` to properly resolve imports.
|
|
@@ -200,6 +218,7 @@ namespace ReactNativeHealthkit { class HybridWorkoutProxySpec_cxx; }
|
|
|
200
218
|
namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
201
219
|
|
|
202
220
|
// Include C++ defined types
|
|
221
|
+
#include "AggregationStyle.hpp"
|
|
203
222
|
#include "AuthorizationRequestStatus.hpp"
|
|
204
223
|
#include "AuthorizationStatus.hpp"
|
|
205
224
|
#include "BiologicalSex.hpp"
|
|
@@ -211,18 +230,22 @@ namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
|
211
230
|
#include "ComparisonPredicateOperator.hpp"
|
|
212
231
|
#include "CorrelationSample.hpp"
|
|
213
232
|
#include "CorrelationTypeIdentifier.hpp"
|
|
233
|
+
#include "DateFilter.hpp"
|
|
214
234
|
#include "DeletedSample.hpp"
|
|
215
235
|
#include "Device.hpp"
|
|
216
|
-
#include "ECGQueryOptionsWithSortOrder.hpp"
|
|
217
236
|
#include "ElectrocardiogramClassification.hpp"
|
|
218
237
|
#include "ElectrocardiogramLead.hpp"
|
|
219
238
|
#include "ElectrocardiogramSample.hpp"
|
|
220
239
|
#include "ElectrocardiogramSamplesWithAnchorResponse.hpp"
|
|
221
240
|
#include "ElectrocardiogramSymptomsStatus.hpp"
|
|
222
241
|
#include "ElectrocardiogramVoltage.hpp"
|
|
223
|
-
#include "
|
|
224
|
-
#include "
|
|
242
|
+
#include "FilterForSamples.hpp"
|
|
243
|
+
#include "FilterForSamplesBase.hpp"
|
|
244
|
+
#include "FilterForWorkouts.hpp"
|
|
245
|
+
#include "FilterForWorkoutsBase.hpp"
|
|
225
246
|
#include "FitzpatrickSkinType.hpp"
|
|
247
|
+
#include "GeneralForm.hpp"
|
|
248
|
+
#include "HeartRateMotionContext.hpp"
|
|
226
249
|
#include "Heartbeat.hpp"
|
|
227
250
|
#include "HeartbeatSeriesSample.hpp"
|
|
228
251
|
#include "HeartbeatSeriesSamplesWithAnchorResponse.hpp"
|
|
@@ -232,33 +255,34 @@ namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
|
232
255
|
#include "HybridCorrelationTypeModuleSpec.hpp"
|
|
233
256
|
#include "HybridElectrocardiogramModuleSpec.hpp"
|
|
234
257
|
#include "HybridHeartbeatSeriesModuleSpec.hpp"
|
|
258
|
+
#include "HybridMedicationModuleSpec.hpp"
|
|
235
259
|
#include "HybridQuantityTypeModuleSpec.hpp"
|
|
236
260
|
#include "HybridSourceProxySpec.hpp"
|
|
237
261
|
#include "HybridStateOfMindModuleSpec.hpp"
|
|
238
262
|
#include "HybridWorkoutProxySpec.hpp"
|
|
239
263
|
#include "HybridWorkoutsModuleSpec.hpp"
|
|
240
264
|
#include "IdentifierWithUnit.hpp"
|
|
265
|
+
#include "InsulinDeliveryReason.hpp"
|
|
241
266
|
#include "LocationForSaving.hpp"
|
|
267
|
+
#include "MedicationConcept.hpp"
|
|
268
|
+
#include "MedicationDoseEvent.hpp"
|
|
269
|
+
#include "MedicationDoseEventLogStatus.hpp"
|
|
270
|
+
#include "MedicationDoseEventScheduleType.hpp"
|
|
271
|
+
#include "MedicationDoseEventsWithAnchorResponse.hpp"
|
|
242
272
|
#include "ObjectTypeIdentifier.hpp"
|
|
243
273
|
#include "OnChangeCallbackArgs.hpp"
|
|
244
|
-
#include "PredicateForWorkoutsAnd.hpp"
|
|
245
|
-
#include "PredicateForWorkoutsOr.hpp"
|
|
246
|
-
#include "PredicateFromWorkout.hpp"
|
|
247
274
|
#include "PredicateWithMetadataKey.hpp"
|
|
248
|
-
#include "PredicateWithMetadataOperator.hpp"
|
|
249
|
-
#include "PredicateWithStartAndEnd.hpp"
|
|
250
|
-
#include "PredicateWithUUID.hpp"
|
|
251
|
-
#include "PredicateWithUUIDs.hpp"
|
|
252
275
|
#include "Quantity.hpp"
|
|
253
276
|
#include "QuantityDateInterval.hpp"
|
|
254
277
|
#include "QuantitySample.hpp"
|
|
255
278
|
#include "QuantitySampleForSaving.hpp"
|
|
256
279
|
#include "QuantitySamplesWithAnchorResponse.hpp"
|
|
257
280
|
#include "QuantityTypeIdentifier.hpp"
|
|
258
|
-
#include "
|
|
259
|
-
#include "QueryOptionsWithSortOrderAndUnit.hpp"
|
|
281
|
+
#include "QueryCorrelationSamplesWithAnchorResponse.hpp"
|
|
260
282
|
#include "QueryStatisticsResponse.hpp"
|
|
261
283
|
#include "QueryWorkoutSamplesWithAnchorResponse.hpp"
|
|
284
|
+
#include "RelatedCoding.hpp"
|
|
285
|
+
#include "SampleType.hpp"
|
|
262
286
|
#include "SampleTypeIdentifier.hpp"
|
|
263
287
|
#include "SampleTypeIdentifierWriteable.hpp"
|
|
264
288
|
#include "Source.hpp"
|
|
@@ -267,13 +291,15 @@ namespace ReactNativeHealthkit { class HybridWorkoutsModuleSpec_cxx; }
|
|
|
267
291
|
#include "StateOfMindKind.hpp"
|
|
268
292
|
#include "StateOfMindLabel.hpp"
|
|
269
293
|
#include "StateOfMindSample.hpp"
|
|
294
|
+
#include "StateOfMindSamplesWithAnchorResponse.hpp"
|
|
270
295
|
#include "StateOfMindValenceClassification.hpp"
|
|
271
296
|
#include "StatisticsOptions.hpp"
|
|
272
297
|
#include "StatisticsQueryOptions.hpp"
|
|
298
|
+
#include "UserAnnotatedMedication.hpp"
|
|
299
|
+
#include "WeatherCondition.hpp"
|
|
273
300
|
#include "WheelchairUse.hpp"
|
|
274
301
|
#include "WorkoutActivity.hpp"
|
|
275
302
|
#include "WorkoutActivityType.hpp"
|
|
276
|
-
#include "WorkoutActivityTypePredicate.hpp"
|
|
277
303
|
#include "WorkoutDurationPredicate.hpp"
|
|
278
304
|
#include "WorkoutEvent.hpp"
|
|
279
305
|
#include "WorkoutEventType.hpp"
|
|
@@ -359,33 +385,63 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
359
385
|
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
360
386
|
}
|
|
361
387
|
|
|
362
|
-
// pragma MARK: std::optional<
|
|
388
|
+
// pragma MARK: std::optional<WeatherCondition>
|
|
363
389
|
/**
|
|
364
|
-
* Specialized version of `std::optional<
|
|
390
|
+
* Specialized version of `std::optional<WeatherCondition>`.
|
|
365
391
|
*/
|
|
366
|
-
using
|
|
367
|
-
inline std::optional<
|
|
368
|
-
return std::optional<
|
|
392
|
+
using std__optional_WeatherCondition_ = std::optional<WeatherCondition>;
|
|
393
|
+
inline std::optional<WeatherCondition> create_std__optional_WeatherCondition_(const WeatherCondition& value) noexcept {
|
|
394
|
+
return std::optional<WeatherCondition>(value);
|
|
369
395
|
}
|
|
370
|
-
inline bool
|
|
396
|
+
inline bool has_value_std__optional_WeatherCondition_(const std::optional<WeatherCondition>& optional) noexcept {
|
|
371
397
|
return optional.has_value();
|
|
372
398
|
}
|
|
373
|
-
inline
|
|
399
|
+
inline WeatherCondition get_std__optional_WeatherCondition_(const std::optional<WeatherCondition>& optional) noexcept {
|
|
374
400
|
return *optional;
|
|
375
401
|
}
|
|
376
402
|
|
|
377
|
-
// pragma MARK: std::optional<
|
|
403
|
+
// pragma MARK: std::optional<Quantity>
|
|
378
404
|
/**
|
|
379
|
-
* Specialized version of `std::optional<
|
|
405
|
+
* Specialized version of `std::optional<Quantity>`.
|
|
380
406
|
*/
|
|
381
|
-
using
|
|
382
|
-
inline std::optional<
|
|
383
|
-
return std::optional<
|
|
407
|
+
using std__optional_Quantity_ = std::optional<Quantity>;
|
|
408
|
+
inline std::optional<Quantity> create_std__optional_Quantity_(const Quantity& value) noexcept {
|
|
409
|
+
return std::optional<Quantity>(value);
|
|
384
410
|
}
|
|
385
|
-
inline bool
|
|
411
|
+
inline bool has_value_std__optional_Quantity_(const std::optional<Quantity>& optional) noexcept {
|
|
386
412
|
return optional.has_value();
|
|
387
413
|
}
|
|
388
|
-
inline
|
|
414
|
+
inline Quantity get_std__optional_Quantity_(const std::optional<Quantity>& optional) noexcept {
|
|
415
|
+
return *optional;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
// pragma MARK: std::optional<InsulinDeliveryReason>
|
|
419
|
+
/**
|
|
420
|
+
* Specialized version of `std::optional<InsulinDeliveryReason>`.
|
|
421
|
+
*/
|
|
422
|
+
using std__optional_InsulinDeliveryReason_ = std::optional<InsulinDeliveryReason>;
|
|
423
|
+
inline std::optional<InsulinDeliveryReason> create_std__optional_InsulinDeliveryReason_(const InsulinDeliveryReason& value) noexcept {
|
|
424
|
+
return std::optional<InsulinDeliveryReason>(value);
|
|
425
|
+
}
|
|
426
|
+
inline bool has_value_std__optional_InsulinDeliveryReason_(const std::optional<InsulinDeliveryReason>& optional) noexcept {
|
|
427
|
+
return optional.has_value();
|
|
428
|
+
}
|
|
429
|
+
inline InsulinDeliveryReason get_std__optional_InsulinDeliveryReason_(const std::optional<InsulinDeliveryReason>& optional) noexcept {
|
|
430
|
+
return *optional;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// pragma MARK: std::optional<HeartRateMotionContext>
|
|
434
|
+
/**
|
|
435
|
+
* Specialized version of `std::optional<HeartRateMotionContext>`.
|
|
436
|
+
*/
|
|
437
|
+
using std__optional_HeartRateMotionContext_ = std::optional<HeartRateMotionContext>;
|
|
438
|
+
inline std::optional<HeartRateMotionContext> create_std__optional_HeartRateMotionContext_(const HeartRateMotionContext& value) noexcept {
|
|
439
|
+
return std::optional<HeartRateMotionContext>(value);
|
|
440
|
+
}
|
|
441
|
+
inline bool has_value_std__optional_HeartRateMotionContext_(const std::optional<HeartRateMotionContext>& optional) noexcept {
|
|
442
|
+
return optional.has_value();
|
|
443
|
+
}
|
|
444
|
+
inline HeartRateMotionContext get_std__optional_HeartRateMotionContext_(const std::optional<HeartRateMotionContext>& optional) noexcept {
|
|
389
445
|
return *optional;
|
|
390
446
|
}
|
|
391
447
|
|
|
@@ -416,18 +472,63 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
416
472
|
return *optional;
|
|
417
473
|
}
|
|
418
474
|
|
|
419
|
-
// pragma MARK: std::optional<
|
|
475
|
+
// pragma MARK: std::optional<std::string>
|
|
420
476
|
/**
|
|
421
|
-
* Specialized version of `std::optional<
|
|
477
|
+
* Specialized version of `std::optional<std::string>`.
|
|
422
478
|
*/
|
|
423
|
-
using
|
|
424
|
-
inline std::optional<
|
|
425
|
-
return std::optional<
|
|
479
|
+
using std__optional_std__string_ = std::optional<std::string>;
|
|
480
|
+
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
|
|
481
|
+
return std::optional<std::string>(value);
|
|
426
482
|
}
|
|
427
|
-
inline bool
|
|
483
|
+
inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
428
484
|
return optional.has_value();
|
|
429
485
|
}
|
|
430
|
-
inline
|
|
486
|
+
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
487
|
+
return *optional;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
// pragma MARK: std::optional<Device>
|
|
491
|
+
/**
|
|
492
|
+
* Specialized version of `std::optional<Device>`.
|
|
493
|
+
*/
|
|
494
|
+
using std__optional_Device_ = std::optional<Device>;
|
|
495
|
+
inline std::optional<Device> create_std__optional_Device_(const Device& value) noexcept {
|
|
496
|
+
return std::optional<Device>(value);
|
|
497
|
+
}
|
|
498
|
+
inline bool has_value_std__optional_Device_(const std::optional<Device>& optional) noexcept {
|
|
499
|
+
return optional.has_value();
|
|
500
|
+
}
|
|
501
|
+
inline Device get_std__optional_Device_(const std::optional<Device>& optional) noexcept {
|
|
502
|
+
return *optional;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// pragma MARK: std::optional<bool>
|
|
506
|
+
/**
|
|
507
|
+
* Specialized version of `std::optional<bool>`.
|
|
508
|
+
*/
|
|
509
|
+
using std__optional_bool_ = std::optional<bool>;
|
|
510
|
+
inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
|
|
511
|
+
return std::optional<bool>(value);
|
|
512
|
+
}
|
|
513
|
+
inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
514
|
+
return optional.has_value();
|
|
515
|
+
}
|
|
516
|
+
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
517
|
+
return *optional;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
// pragma MARK: std::optional<double>
|
|
521
|
+
/**
|
|
522
|
+
* Specialized version of `std::optional<double>`.
|
|
523
|
+
*/
|
|
524
|
+
using std__optional_double_ = std::optional<double>;
|
|
525
|
+
inline std::optional<double> create_std__optional_double_(const double& value) noexcept {
|
|
526
|
+
return std::optional<double>(value);
|
|
527
|
+
}
|
|
528
|
+
inline bool has_value_std__optional_double_(const std::optional<double>& optional) noexcept {
|
|
529
|
+
return optional.has_value();
|
|
530
|
+
}
|
|
531
|
+
inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
|
|
431
532
|
return *optional;
|
|
432
533
|
}
|
|
433
534
|
|
|
@@ -476,21 +577,6 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
476
577
|
return Func_void_std__vector_CategorySample__Wrapper(std::move(value));
|
|
477
578
|
}
|
|
478
579
|
|
|
479
|
-
// pragma MARK: std::optional<bool>
|
|
480
|
-
/**
|
|
481
|
-
* Specialized version of `std::optional<bool>`.
|
|
482
|
-
*/
|
|
483
|
-
using std__optional_bool_ = std::optional<bool>;
|
|
484
|
-
inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
|
|
485
|
-
return std::optional<bool>(value);
|
|
486
|
-
}
|
|
487
|
-
inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
488
|
-
return optional.has_value();
|
|
489
|
-
}
|
|
490
|
-
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
491
|
-
return *optional;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
580
|
// pragma MARK: std::vector<std::string>
|
|
495
581
|
/**
|
|
496
582
|
* Specialized version of `std::vector<std::string>`.
|
|
@@ -502,18 +588,33 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
502
588
|
return vector;
|
|
503
589
|
}
|
|
504
590
|
|
|
505
|
-
// pragma MARK: std::optional<
|
|
591
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
592
|
+
/**
|
|
593
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
594
|
+
*/
|
|
595
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
596
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
597
|
+
return std::optional<std::vector<std::string>>(value);
|
|
598
|
+
}
|
|
599
|
+
inline bool has_value_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
600
|
+
return optional.has_value();
|
|
601
|
+
}
|
|
602
|
+
inline std::vector<std::string> get_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
603
|
+
return *optional;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// pragma MARK: std::optional<ComparisonPredicateOperator>
|
|
506
607
|
/**
|
|
507
|
-
* Specialized version of `std::optional<
|
|
608
|
+
* Specialized version of `std::optional<ComparisonPredicateOperator>`.
|
|
508
609
|
*/
|
|
509
|
-
using
|
|
510
|
-
inline std::optional<
|
|
511
|
-
return std::optional<
|
|
610
|
+
using std__optional_ComparisonPredicateOperator_ = std::optional<ComparisonPredicateOperator>;
|
|
611
|
+
inline std::optional<ComparisonPredicateOperator> create_std__optional_ComparisonPredicateOperator_(const ComparisonPredicateOperator& value) noexcept {
|
|
612
|
+
return std::optional<ComparisonPredicateOperator>(value);
|
|
512
613
|
}
|
|
513
|
-
inline bool
|
|
614
|
+
inline bool has_value_std__optional_ComparisonPredicateOperator_(const std::optional<ComparisonPredicateOperator>& optional) noexcept {
|
|
514
615
|
return optional.has_value();
|
|
515
616
|
}
|
|
516
|
-
inline
|
|
617
|
+
inline ComparisonPredicateOperator get_std__optional_ComparisonPredicateOperator_(const std::optional<ComparisonPredicateOperator>& optional) noexcept {
|
|
517
618
|
return *optional;
|
|
518
619
|
}
|
|
519
620
|
|
|
@@ -573,6 +674,21 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
573
674
|
return *optional;
|
|
574
675
|
}
|
|
575
676
|
|
|
677
|
+
// pragma MARK: std::optional<PredicateWithMetadataKey>
|
|
678
|
+
/**
|
|
679
|
+
* Specialized version of `std::optional<PredicateWithMetadataKey>`.
|
|
680
|
+
*/
|
|
681
|
+
using std__optional_PredicateWithMetadataKey_ = std::optional<PredicateWithMetadataKey>;
|
|
682
|
+
inline std::optional<PredicateWithMetadataKey> create_std__optional_PredicateWithMetadataKey_(const PredicateWithMetadataKey& value) noexcept {
|
|
683
|
+
return std::optional<PredicateWithMetadataKey>(value);
|
|
684
|
+
}
|
|
685
|
+
inline bool has_value_std__optional_PredicateWithMetadataKey_(const std::optional<PredicateWithMetadataKey>& optional) noexcept {
|
|
686
|
+
return optional.has_value();
|
|
687
|
+
}
|
|
688
|
+
inline PredicateWithMetadataKey get_std__optional_PredicateWithMetadataKey_(const std::optional<PredicateWithMetadataKey>& optional) noexcept {
|
|
689
|
+
return *optional;
|
|
690
|
+
}
|
|
691
|
+
|
|
576
692
|
// pragma MARK: std::optional<std::chrono::system_clock::time_point>
|
|
577
693
|
/**
|
|
578
694
|
* Specialized version of `std::optional<std::chrono::system_clock::time_point>`.
|
|
@@ -588,6 +704,21 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
588
704
|
return *optional;
|
|
589
705
|
}
|
|
590
706
|
|
|
707
|
+
// pragma MARK: std::optional<DateFilter>
|
|
708
|
+
/**
|
|
709
|
+
* Specialized version of `std::optional<DateFilter>`.
|
|
710
|
+
*/
|
|
711
|
+
using std__optional_DateFilter_ = std::optional<DateFilter>;
|
|
712
|
+
inline std::optional<DateFilter> create_std__optional_DateFilter_(const DateFilter& value) noexcept {
|
|
713
|
+
return std::optional<DateFilter>(value);
|
|
714
|
+
}
|
|
715
|
+
inline bool has_value_std__optional_DateFilter_(const std::optional<DateFilter>& optional) noexcept {
|
|
716
|
+
return optional.has_value();
|
|
717
|
+
}
|
|
718
|
+
inline DateFilter get_std__optional_DateFilter_(const std::optional<DateFilter>& optional) noexcept {
|
|
719
|
+
return *optional;
|
|
720
|
+
}
|
|
721
|
+
|
|
591
722
|
// pragma MARK: std::shared_ptr<HybridWorkoutProxySpec>
|
|
592
723
|
/**
|
|
593
724
|
* Specialized version of `std::shared_ptr<HybridWorkoutProxySpec>`.
|
|
@@ -600,165 +731,85 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
600
731
|
using std__weak_ptr_HybridWorkoutProxySpec_ = std::weak_ptr<HybridWorkoutProxySpec>;
|
|
601
732
|
inline std__weak_ptr_HybridWorkoutProxySpec_ weakify_std__shared_ptr_HybridWorkoutProxySpec_(const std::shared_ptr<HybridWorkoutProxySpec>& strong) noexcept { return strong; }
|
|
602
733
|
|
|
603
|
-
// pragma MARK: std::
|
|
734
|
+
// pragma MARK: std::optional<std::shared_ptr<HybridWorkoutProxySpec>>
|
|
604
735
|
/**
|
|
605
|
-
*
|
|
606
|
-
* std::variant cannot be used in Swift because of a Swift bug.
|
|
607
|
-
* Not even specializing it works. So we create a wrapper struct.
|
|
736
|
+
* Specialized version of `std::optional<std::shared_ptr<HybridWorkoutProxySpec>>`.
|
|
608
737
|
*/
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout>() const noexcept {
|
|
613
|
-
return variant;
|
|
614
|
-
}
|
|
615
|
-
inline size_t index() const noexcept {
|
|
616
|
-
return variant.index();
|
|
617
|
-
}
|
|
618
|
-
inline PredicateWithUUID get_0() const noexcept {
|
|
619
|
-
return std::get<0>(variant);
|
|
620
|
-
}
|
|
621
|
-
inline PredicateWithUUIDs get_1() const noexcept {
|
|
622
|
-
return std::get<1>(variant);
|
|
623
|
-
}
|
|
624
|
-
inline PredicateWithMetadataKey get_2() const noexcept {
|
|
625
|
-
return std::get<2>(variant);
|
|
626
|
-
}
|
|
627
|
-
inline PredicateWithStartAndEnd get_3() const noexcept {
|
|
628
|
-
return std::get<3>(variant);
|
|
629
|
-
}
|
|
630
|
-
inline PredicateFromWorkout get_4() const noexcept {
|
|
631
|
-
return std::get<4>(variant);
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithUUID& value) noexcept {
|
|
635
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
636
|
-
}
|
|
637
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithUUIDs& value) noexcept {
|
|
638
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
738
|
+
using std__optional_std__shared_ptr_HybridWorkoutProxySpec__ = std::optional<std::shared_ptr<HybridWorkoutProxySpec>>;
|
|
739
|
+
inline std::optional<std::shared_ptr<HybridWorkoutProxySpec>> create_std__optional_std__shared_ptr_HybridWorkoutProxySpec__(const std::shared_ptr<HybridWorkoutProxySpec>& value) noexcept {
|
|
740
|
+
return std::optional<std::shared_ptr<HybridWorkoutProxySpec>>(value);
|
|
639
741
|
}
|
|
640
|
-
inline
|
|
641
|
-
return
|
|
642
|
-
}
|
|
643
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(const PredicateWithStartAndEnd& value) noexcept {
|
|
644
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout_(value);
|
|
742
|
+
inline bool has_value_std__optional_std__shared_ptr_HybridWorkoutProxySpec__(const std::optional<std::shared_ptr<HybridWorkoutProxySpec>>& optional) noexcept {
|
|
743
|
+
return optional.has_value();
|
|
645
744
|
}
|
|
646
|
-
inline
|
|
647
|
-
return
|
|
745
|
+
inline std::shared_ptr<HybridWorkoutProxySpec> get_std__optional_std__shared_ptr_HybridWorkoutProxySpec__(const std::optional<std::shared_ptr<HybridWorkoutProxySpec>>& optional) noexcept {
|
|
746
|
+
return *optional;
|
|
648
747
|
}
|
|
649
748
|
|
|
650
|
-
// pragma MARK: std::vector<std::
|
|
749
|
+
// pragma MARK: std::vector<std::shared_ptr<HybridSourceProxySpec>>
|
|
651
750
|
/**
|
|
652
|
-
* Specialized version of `std::vector<std::
|
|
751
|
+
* Specialized version of `std::vector<std::shared_ptr<HybridSourceProxySpec>>`.
|
|
653
752
|
*/
|
|
654
|
-
using
|
|
655
|
-
inline std::vector<std::
|
|
656
|
-
std::vector<std::
|
|
753
|
+
using std__vector_std__shared_ptr_HybridSourceProxySpec__ = std::vector<std::shared_ptr<HybridSourceProxySpec>>;
|
|
754
|
+
inline std::vector<std::shared_ptr<HybridSourceProxySpec>> create_std__vector_std__shared_ptr_HybridSourceProxySpec__(size_t size) noexcept {
|
|
755
|
+
std::vector<std::shared_ptr<HybridSourceProxySpec>> vector;
|
|
657
756
|
vector.reserve(size);
|
|
658
757
|
return vector;
|
|
659
758
|
}
|
|
660
759
|
|
|
661
|
-
// pragma MARK: std::
|
|
760
|
+
// pragma MARK: std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>
|
|
662
761
|
/**
|
|
663
|
-
*
|
|
664
|
-
* std::variant cannot be used in Swift because of a Swift bug.
|
|
665
|
-
* Not even specializing it works. So we create a wrapper struct.
|
|
762
|
+
* Specialized version of `std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>`.
|
|
666
763
|
*/
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>() const noexcept {
|
|
671
|
-
return variant;
|
|
672
|
-
}
|
|
673
|
-
inline size_t index() const noexcept {
|
|
674
|
-
return variant.index();
|
|
675
|
-
}
|
|
676
|
-
inline PredicateWithUUID get_0() const noexcept {
|
|
677
|
-
return std::get<0>(variant);
|
|
678
|
-
}
|
|
679
|
-
inline PredicateWithUUIDs get_1() const noexcept {
|
|
680
|
-
return std::get<1>(variant);
|
|
681
|
-
}
|
|
682
|
-
inline PredicateWithMetadataKey get_2() const noexcept {
|
|
683
|
-
return std::get<2>(variant);
|
|
684
|
-
}
|
|
685
|
-
inline PredicateWithStartAndEnd get_3() const noexcept {
|
|
686
|
-
return std::get<3>(variant);
|
|
687
|
-
}
|
|
688
|
-
inline PredicateFromWorkout get_4() const noexcept {
|
|
689
|
-
return std::get<4>(variant);
|
|
690
|
-
}
|
|
691
|
-
inline FilterForSamplesAnd get_5() const noexcept {
|
|
692
|
-
return std::get<5>(variant);
|
|
693
|
-
}
|
|
694
|
-
inline FilterForSamplesOr get_6() const noexcept {
|
|
695
|
-
return std::get<6>(variant);
|
|
696
|
-
}
|
|
697
|
-
};
|
|
698
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithUUID& value) noexcept {
|
|
699
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
700
|
-
}
|
|
701
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithUUIDs& value) noexcept {
|
|
702
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
703
|
-
}
|
|
704
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateWithMetadataKey& value) noexcept {
|
|
705
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
764
|
+
using std__optional_std__vector_std__shared_ptr_HybridSourceProxySpec___ = std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>;
|
|
765
|
+
inline std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>> create_std__optional_std__vector_std__shared_ptr_HybridSourceProxySpec___(const std::vector<std::shared_ptr<HybridSourceProxySpec>>& value) noexcept {
|
|
766
|
+
return std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>(value);
|
|
706
767
|
}
|
|
707
|
-
inline
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const PredicateFromWorkout& value) noexcept {
|
|
711
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
712
|
-
}
|
|
713
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(const FilterForSamplesAnd& value) noexcept {
|
|
714
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(value);
|
|
768
|
+
inline bool has_value_std__optional_std__vector_std__shared_ptr_HybridSourceProxySpec___(const std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>& optional) noexcept {
|
|
769
|
+
return optional.has_value();
|
|
715
770
|
}
|
|
716
|
-
inline
|
|
717
|
-
return
|
|
771
|
+
inline std::vector<std::shared_ptr<HybridSourceProxySpec>> get_std__optional_std__vector_std__shared_ptr_HybridSourceProxySpec___(const std::optional<std::vector<std::shared_ptr<HybridSourceProxySpec>>>& optional) noexcept {
|
|
772
|
+
return *optional;
|
|
718
773
|
}
|
|
719
774
|
|
|
720
|
-
// pragma MARK: std::
|
|
775
|
+
// pragma MARK: std::vector<FilterForSamplesBase>
|
|
721
776
|
/**
|
|
722
|
-
* Specialized version of `std::
|
|
777
|
+
* Specialized version of `std::vector<FilterForSamplesBase>`.
|
|
723
778
|
*/
|
|
724
|
-
using
|
|
725
|
-
inline std::
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
return optional.has_value();
|
|
730
|
-
}
|
|
731
|
-
inline std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr> get_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr__(const std::optional<std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, FilterForSamplesAnd, FilterForSamplesOr>>& optional) noexcept {
|
|
732
|
-
return *optional;
|
|
779
|
+
using std__vector_FilterForSamplesBase_ = std::vector<FilterForSamplesBase>;
|
|
780
|
+
inline std::vector<FilterForSamplesBase> create_std__vector_FilterForSamplesBase_(size_t size) noexcept {
|
|
781
|
+
std::vector<FilterForSamplesBase> vector;
|
|
782
|
+
vector.reserve(size);
|
|
783
|
+
return vector;
|
|
733
784
|
}
|
|
734
785
|
|
|
735
|
-
// pragma MARK: std::optional<
|
|
786
|
+
// pragma MARK: std::optional<std::vector<FilterForSamplesBase>>
|
|
736
787
|
/**
|
|
737
|
-
* Specialized version of `std::optional<
|
|
788
|
+
* Specialized version of `std::optional<std::vector<FilterForSamplesBase>>`.
|
|
738
789
|
*/
|
|
739
|
-
using
|
|
740
|
-
inline std::optional<
|
|
741
|
-
return std::optional<
|
|
790
|
+
using std__optional_std__vector_FilterForSamplesBase__ = std::optional<std::vector<FilterForSamplesBase>>;
|
|
791
|
+
inline std::optional<std::vector<FilterForSamplesBase>> create_std__optional_std__vector_FilterForSamplesBase__(const std::vector<FilterForSamplesBase>& value) noexcept {
|
|
792
|
+
return std::optional<std::vector<FilterForSamplesBase>>(value);
|
|
742
793
|
}
|
|
743
|
-
inline bool
|
|
794
|
+
inline bool has_value_std__optional_std__vector_FilterForSamplesBase__(const std::optional<std::vector<FilterForSamplesBase>>& optional) noexcept {
|
|
744
795
|
return optional.has_value();
|
|
745
796
|
}
|
|
746
|
-
inline
|
|
797
|
+
inline std::vector<FilterForSamplesBase> get_std__optional_std__vector_FilterForSamplesBase__(const std::optional<std::vector<FilterForSamplesBase>>& optional) noexcept {
|
|
747
798
|
return *optional;
|
|
748
799
|
}
|
|
749
800
|
|
|
750
|
-
// pragma MARK: std::optional<
|
|
801
|
+
// pragma MARK: std::optional<FilterForSamples>
|
|
751
802
|
/**
|
|
752
|
-
* Specialized version of `std::optional<
|
|
803
|
+
* Specialized version of `std::optional<FilterForSamples>`.
|
|
753
804
|
*/
|
|
754
|
-
using
|
|
755
|
-
inline std::optional<
|
|
756
|
-
return std::optional<
|
|
805
|
+
using std__optional_FilterForSamples_ = std::optional<FilterForSamples>;
|
|
806
|
+
inline std::optional<FilterForSamples> create_std__optional_FilterForSamples_(const FilterForSamples& value) noexcept {
|
|
807
|
+
return std::optional<FilterForSamples>(value);
|
|
757
808
|
}
|
|
758
|
-
inline bool
|
|
809
|
+
inline bool has_value_std__optional_FilterForSamples_(const std::optional<FilterForSamples>& optional) noexcept {
|
|
759
810
|
return optional.has_value();
|
|
760
811
|
}
|
|
761
|
-
inline
|
|
812
|
+
inline FilterForSamples get_std__optional_FilterForSamples_(const std::optional<FilterForSamples>& optional) noexcept {
|
|
762
813
|
return *optional;
|
|
763
814
|
}
|
|
764
815
|
|
|
@@ -1189,17 +1240,6 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1189
1240
|
return vector;
|
|
1190
1241
|
}
|
|
1191
1242
|
|
|
1192
|
-
// pragma MARK: std::vector<std::shared_ptr<HybridSourceProxySpec>>
|
|
1193
|
-
/**
|
|
1194
|
-
* Specialized version of `std::vector<std::shared_ptr<HybridSourceProxySpec>>`.
|
|
1195
|
-
*/
|
|
1196
|
-
using std__vector_std__shared_ptr_HybridSourceProxySpec__ = std::vector<std::shared_ptr<HybridSourceProxySpec>>;
|
|
1197
|
-
inline std::vector<std::shared_ptr<HybridSourceProxySpec>> create_std__vector_std__shared_ptr_HybridSourceProxySpec__(size_t size) noexcept {
|
|
1198
|
-
std::vector<std::shared_ptr<HybridSourceProxySpec>> vector;
|
|
1199
|
-
vector.reserve(size);
|
|
1200
|
-
return vector;
|
|
1201
|
-
}
|
|
1202
|
-
|
|
1203
1243
|
// pragma MARK: std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridSourceProxySpec>>>>
|
|
1204
1244
|
/**
|
|
1205
1245
|
* Specialized version of `std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridSourceProxySpec>>>>`.
|
|
@@ -1456,6 +1496,15 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1456
1496
|
return Result<bool>::withError(error);
|
|
1457
1497
|
}
|
|
1458
1498
|
|
|
1499
|
+
// pragma MARK: Result<std::shared_ptr<HybridSourceProxySpec>>
|
|
1500
|
+
using Result_std__shared_ptr_HybridSourceProxySpec__ = Result<std::shared_ptr<HybridSourceProxySpec>>;
|
|
1501
|
+
inline Result_std__shared_ptr_HybridSourceProxySpec__ create_Result_std__shared_ptr_HybridSourceProxySpec__(const std::shared_ptr<HybridSourceProxySpec>& value) noexcept {
|
|
1502
|
+
return Result<std::shared_ptr<HybridSourceProxySpec>>::withValue(value);
|
|
1503
|
+
}
|
|
1504
|
+
inline Result_std__shared_ptr_HybridSourceProxySpec__ create_Result_std__shared_ptr_HybridSourceProxySpec__(const std::exception_ptr& error) noexcept {
|
|
1505
|
+
return Result<std::shared_ptr<HybridSourceProxySpec>>::withError(error);
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1459
1508
|
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>
|
|
1460
1509
|
using Result_std__shared_ptr_Promise_std__vector_IdentifierWithUnit____ = Result<std::shared_ptr<Promise<std::vector<IdentifierWithUnit>>>>;
|
|
1461
1510
|
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) noexcept {
|
|
@@ -1537,6 +1586,21 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1537
1586
|
return Result<std::shared_ptr<Promise<std::unordered_map<std::string, bool>>>>::withError(error);
|
|
1538
1587
|
}
|
|
1539
1588
|
|
|
1589
|
+
// pragma MARK: std::optional<SourceRevision>
|
|
1590
|
+
/**
|
|
1591
|
+
* Specialized version of `std::optional<SourceRevision>`.
|
|
1592
|
+
*/
|
|
1593
|
+
using std__optional_SourceRevision_ = std::optional<SourceRevision>;
|
|
1594
|
+
inline std::optional<SourceRevision> create_std__optional_SourceRevision_(const SourceRevision& value) noexcept {
|
|
1595
|
+
return std::optional<SourceRevision>(value);
|
|
1596
|
+
}
|
|
1597
|
+
inline bool has_value_std__optional_SourceRevision_(const std::optional<SourceRevision>& optional) noexcept {
|
|
1598
|
+
return optional.has_value();
|
|
1599
|
+
}
|
|
1600
|
+
inline SourceRevision get_std__optional_SourceRevision_(const std::optional<SourceRevision>& optional) noexcept {
|
|
1601
|
+
return *optional;
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1540
1604
|
// pragma MARK: std::variant<CategorySampleForSaving, QuantitySampleForSaving>
|
|
1541
1605
|
/**
|
|
1542
1606
|
* Wrapper struct for `std::variant<CategorySampleForSaving, QuantitySampleForSaving>`.
|
|
@@ -1662,6 +1726,40 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1662
1726
|
return Func_void_std__vector_CorrelationSample__Wrapper(std::move(value));
|
|
1663
1727
|
}
|
|
1664
1728
|
|
|
1729
|
+
// pragma MARK: std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>
|
|
1730
|
+
/**
|
|
1731
|
+
* Specialized version of `std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>`.
|
|
1732
|
+
*/
|
|
1733
|
+
using std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse__ = std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>;
|
|
1734
|
+
inline std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>> create_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse__() noexcept {
|
|
1735
|
+
return Promise<QueryCorrelationSamplesWithAnchorResponse>::create();
|
|
1736
|
+
}
|
|
1737
|
+
inline PromiseHolder<QueryCorrelationSamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse__(std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>> promise) noexcept {
|
|
1738
|
+
return PromiseHolder<QueryCorrelationSamplesWithAnchorResponse>(std::move(promise));
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
// pragma MARK: std::function<void(const QueryCorrelationSamplesWithAnchorResponse& /* result */)>
|
|
1742
|
+
/**
|
|
1743
|
+
* Specialized version of `std::function<void(const QueryCorrelationSamplesWithAnchorResponse&)>`.
|
|
1744
|
+
*/
|
|
1745
|
+
using Func_void_QueryCorrelationSamplesWithAnchorResponse = std::function<void(const QueryCorrelationSamplesWithAnchorResponse& /* result */)>;
|
|
1746
|
+
/**
|
|
1747
|
+
* Wrapper class for a `std::function<void(const QueryCorrelationSamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
1748
|
+
*/
|
|
1749
|
+
class Func_void_QueryCorrelationSamplesWithAnchorResponse_Wrapper final {
|
|
1750
|
+
public:
|
|
1751
|
+
explicit Func_void_QueryCorrelationSamplesWithAnchorResponse_Wrapper(std::function<void(const QueryCorrelationSamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_unique<std::function<void(const QueryCorrelationSamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
1752
|
+
inline void call(QueryCorrelationSamplesWithAnchorResponse result) const noexcept {
|
|
1753
|
+
_function->operator()(result);
|
|
1754
|
+
}
|
|
1755
|
+
private:
|
|
1756
|
+
std::unique_ptr<std::function<void(const QueryCorrelationSamplesWithAnchorResponse& /* result */)>> _function;
|
|
1757
|
+
} SWIFT_NONCOPYABLE;
|
|
1758
|
+
Func_void_QueryCorrelationSamplesWithAnchorResponse create_Func_void_QueryCorrelationSamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1759
|
+
inline Func_void_QueryCorrelationSamplesWithAnchorResponse_Wrapper wrap_Func_void_QueryCorrelationSamplesWithAnchorResponse(Func_void_QueryCorrelationSamplesWithAnchorResponse value) noexcept {
|
|
1760
|
+
return Func_void_QueryCorrelationSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1665
1763
|
// pragma MARK: std::shared_ptr<HybridCorrelationTypeModuleSpec>
|
|
1666
1764
|
/**
|
|
1667
1765
|
* Specialized version of `std::shared_ptr<HybridCorrelationTypeModuleSpec>`.
|
|
@@ -1683,6 +1781,15 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1683
1781
|
return Result<std::shared_ptr<Promise<std::vector<CorrelationSample>>>>::withError(error);
|
|
1684
1782
|
}
|
|
1685
1783
|
|
|
1784
|
+
// pragma MARK: Result<std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>>
|
|
1785
|
+
using Result_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>>;
|
|
1786
|
+
inline Result_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse___(const std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>& value) noexcept {
|
|
1787
|
+
return Result<std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>>::withValue(value);
|
|
1788
|
+
}
|
|
1789
|
+
inline Result_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_QueryCorrelationSamplesWithAnchorResponse___(const std::exception_ptr& error) noexcept {
|
|
1790
|
+
return Result<std::shared_ptr<Promise<QueryCorrelationSamplesWithAnchorResponse>>>::withError(error);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1686
1793
|
// pragma MARK: std::vector<ElectrocardiogramVoltage>
|
|
1687
1794
|
/**
|
|
1688
1795
|
* Specialized version of `std::vector<ElectrocardiogramVoltage>`.
|
|
@@ -1754,21 +1861,6 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1754
1861
|
return Func_void_std__vector_ElectrocardiogramSample__Wrapper(std::move(value));
|
|
1755
1862
|
}
|
|
1756
1863
|
|
|
1757
|
-
// pragma MARK: std::optional<ECGQueryOptionsWithSortOrder>
|
|
1758
|
-
/**
|
|
1759
|
-
* Specialized version of `std::optional<ECGQueryOptionsWithSortOrder>`.
|
|
1760
|
-
*/
|
|
1761
|
-
using std__optional_ECGQueryOptionsWithSortOrder_ = std::optional<ECGQueryOptionsWithSortOrder>;
|
|
1762
|
-
inline std::optional<ECGQueryOptionsWithSortOrder> create_std__optional_ECGQueryOptionsWithSortOrder_(const ECGQueryOptionsWithSortOrder& value) noexcept {
|
|
1763
|
-
return std::optional<ECGQueryOptionsWithSortOrder>(value);
|
|
1764
|
-
}
|
|
1765
|
-
inline bool has_value_std__optional_ECGQueryOptionsWithSortOrder_(const std::optional<ECGQueryOptionsWithSortOrder>& optional) noexcept {
|
|
1766
|
-
return optional.has_value();
|
|
1767
|
-
}
|
|
1768
|
-
inline ECGQueryOptionsWithSortOrder get_std__optional_ECGQueryOptionsWithSortOrder_(const std::optional<ECGQueryOptionsWithSortOrder>& optional) noexcept {
|
|
1769
|
-
return *optional;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
1864
|
// pragma MARK: std::shared_ptr<Promise<ElectrocardiogramSamplesWithAnchorResponse>>
|
|
1773
1865
|
/**
|
|
1774
1866
|
* Specialized version of `std::shared_ptr<Promise<ElectrocardiogramSamplesWithAnchorResponse>>`.
|
|
@@ -1953,6 +2045,180 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1953
2045
|
return Result<std::shared_ptr<Promise<HeartbeatSeriesSamplesWithAnchorResponse>>>::withError(error);
|
|
1954
2046
|
}
|
|
1955
2047
|
|
|
2048
|
+
// pragma MARK: std::vector<RelatedCoding>
|
|
2049
|
+
/**
|
|
2050
|
+
* Specialized version of `std::vector<RelatedCoding>`.
|
|
2051
|
+
*/
|
|
2052
|
+
using std__vector_RelatedCoding_ = std::vector<RelatedCoding>;
|
|
2053
|
+
inline std::vector<RelatedCoding> create_std__vector_RelatedCoding_(size_t size) noexcept {
|
|
2054
|
+
std::vector<RelatedCoding> vector;
|
|
2055
|
+
vector.reserve(size);
|
|
2056
|
+
return vector;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
// pragma MARK: std::vector<UserAnnotatedMedication>
|
|
2060
|
+
/**
|
|
2061
|
+
* Specialized version of `std::vector<UserAnnotatedMedication>`.
|
|
2062
|
+
*/
|
|
2063
|
+
using std__vector_UserAnnotatedMedication_ = std::vector<UserAnnotatedMedication>;
|
|
2064
|
+
inline std::vector<UserAnnotatedMedication> create_std__vector_UserAnnotatedMedication_(size_t size) noexcept {
|
|
2065
|
+
std::vector<UserAnnotatedMedication> vector;
|
|
2066
|
+
vector.reserve(size);
|
|
2067
|
+
return vector;
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>
|
|
2071
|
+
/**
|
|
2072
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>`.
|
|
2073
|
+
*/
|
|
2074
|
+
using std__shared_ptr_Promise_std__vector_UserAnnotatedMedication___ = std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>;
|
|
2075
|
+
inline std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>> create_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication___() noexcept {
|
|
2076
|
+
return Promise<std::vector<UserAnnotatedMedication>>::create();
|
|
2077
|
+
}
|
|
2078
|
+
inline PromiseHolder<std::vector<UserAnnotatedMedication>> wrap_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication___(std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>> promise) noexcept {
|
|
2079
|
+
return PromiseHolder<std::vector<UserAnnotatedMedication>>(std::move(promise));
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
// pragma MARK: std::function<void(const std::vector<UserAnnotatedMedication>& /* result */)>
|
|
2083
|
+
/**
|
|
2084
|
+
* Specialized version of `std::function<void(const std::vector<UserAnnotatedMedication>&)>`.
|
|
2085
|
+
*/
|
|
2086
|
+
using Func_void_std__vector_UserAnnotatedMedication_ = std::function<void(const std::vector<UserAnnotatedMedication>& /* result */)>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Wrapper class for a `std::function<void(const std::vector<UserAnnotatedMedication>& / * result * /)>`, this can be used from Swift.
|
|
2089
|
+
*/
|
|
2090
|
+
class Func_void_std__vector_UserAnnotatedMedication__Wrapper final {
|
|
2091
|
+
public:
|
|
2092
|
+
explicit Func_void_std__vector_UserAnnotatedMedication__Wrapper(std::function<void(const std::vector<UserAnnotatedMedication>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<UserAnnotatedMedication>& /* result */)>>(std::move(func))) {}
|
|
2093
|
+
inline void call(std::vector<UserAnnotatedMedication> result) const noexcept {
|
|
2094
|
+
_function->operator()(result);
|
|
2095
|
+
}
|
|
2096
|
+
private:
|
|
2097
|
+
std::unique_ptr<std::function<void(const std::vector<UserAnnotatedMedication>& /* result */)>> _function;
|
|
2098
|
+
} SWIFT_NONCOPYABLE;
|
|
2099
|
+
Func_void_std__vector_UserAnnotatedMedication_ create_Func_void_std__vector_UserAnnotatedMedication_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2100
|
+
inline Func_void_std__vector_UserAnnotatedMedication__Wrapper wrap_Func_void_std__vector_UserAnnotatedMedication_(Func_void_std__vector_UserAnnotatedMedication_ value) noexcept {
|
|
2101
|
+
return Func_void_std__vector_UserAnnotatedMedication__Wrapper(std::move(value));
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
// pragma MARK: std::vector<MedicationDoseEvent>
|
|
2105
|
+
/**
|
|
2106
|
+
* Specialized version of `std::vector<MedicationDoseEvent>`.
|
|
2107
|
+
*/
|
|
2108
|
+
using std__vector_MedicationDoseEvent_ = std::vector<MedicationDoseEvent>;
|
|
2109
|
+
inline std::vector<MedicationDoseEvent> create_std__vector_MedicationDoseEvent_(size_t size) noexcept {
|
|
2110
|
+
std::vector<MedicationDoseEvent> vector;
|
|
2111
|
+
vector.reserve(size);
|
|
2112
|
+
return vector;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>
|
|
2116
|
+
/**
|
|
2117
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>`.
|
|
2118
|
+
*/
|
|
2119
|
+
using std__shared_ptr_Promise_std__vector_MedicationDoseEvent___ = std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>;
|
|
2120
|
+
inline std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>> create_std__shared_ptr_Promise_std__vector_MedicationDoseEvent___() noexcept {
|
|
2121
|
+
return Promise<std::vector<MedicationDoseEvent>>::create();
|
|
2122
|
+
}
|
|
2123
|
+
inline PromiseHolder<std::vector<MedicationDoseEvent>> wrap_std__shared_ptr_Promise_std__vector_MedicationDoseEvent___(std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>> promise) noexcept {
|
|
2124
|
+
return PromiseHolder<std::vector<MedicationDoseEvent>>(std::move(promise));
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
// pragma MARK: std::function<void(const std::vector<MedicationDoseEvent>& /* result */)>
|
|
2128
|
+
/**
|
|
2129
|
+
* Specialized version of `std::function<void(const std::vector<MedicationDoseEvent>&)>`.
|
|
2130
|
+
*/
|
|
2131
|
+
using Func_void_std__vector_MedicationDoseEvent_ = std::function<void(const std::vector<MedicationDoseEvent>& /* result */)>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Wrapper class for a `std::function<void(const std::vector<MedicationDoseEvent>& / * result * /)>`, this can be used from Swift.
|
|
2134
|
+
*/
|
|
2135
|
+
class Func_void_std__vector_MedicationDoseEvent__Wrapper final {
|
|
2136
|
+
public:
|
|
2137
|
+
explicit Func_void_std__vector_MedicationDoseEvent__Wrapper(std::function<void(const std::vector<MedicationDoseEvent>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<MedicationDoseEvent>& /* result */)>>(std::move(func))) {}
|
|
2138
|
+
inline void call(std::vector<MedicationDoseEvent> result) const noexcept {
|
|
2139
|
+
_function->operator()(result);
|
|
2140
|
+
}
|
|
2141
|
+
private:
|
|
2142
|
+
std::unique_ptr<std::function<void(const std::vector<MedicationDoseEvent>& /* result */)>> _function;
|
|
2143
|
+
} SWIFT_NONCOPYABLE;
|
|
2144
|
+
Func_void_std__vector_MedicationDoseEvent_ create_Func_void_std__vector_MedicationDoseEvent_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2145
|
+
inline Func_void_std__vector_MedicationDoseEvent__Wrapper wrap_Func_void_std__vector_MedicationDoseEvent_(Func_void_std__vector_MedicationDoseEvent_ value) noexcept {
|
|
2146
|
+
return Func_void_std__vector_MedicationDoseEvent__Wrapper(std::move(value));
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
// pragma MARK: std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>
|
|
2150
|
+
/**
|
|
2151
|
+
* Specialized version of `std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>`.
|
|
2152
|
+
*/
|
|
2153
|
+
using std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse__ = std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>;
|
|
2154
|
+
inline std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>> create_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse__() noexcept {
|
|
2155
|
+
return Promise<MedicationDoseEventsWithAnchorResponse>::create();
|
|
2156
|
+
}
|
|
2157
|
+
inline PromiseHolder<MedicationDoseEventsWithAnchorResponse> wrap_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse__(std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>> promise) noexcept {
|
|
2158
|
+
return PromiseHolder<MedicationDoseEventsWithAnchorResponse>(std::move(promise));
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
// pragma MARK: std::function<void(const MedicationDoseEventsWithAnchorResponse& /* result */)>
|
|
2162
|
+
/**
|
|
2163
|
+
* Specialized version of `std::function<void(const MedicationDoseEventsWithAnchorResponse&)>`.
|
|
2164
|
+
*/
|
|
2165
|
+
using Func_void_MedicationDoseEventsWithAnchorResponse = std::function<void(const MedicationDoseEventsWithAnchorResponse& /* result */)>;
|
|
2166
|
+
/**
|
|
2167
|
+
* Wrapper class for a `std::function<void(const MedicationDoseEventsWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
2168
|
+
*/
|
|
2169
|
+
class Func_void_MedicationDoseEventsWithAnchorResponse_Wrapper final {
|
|
2170
|
+
public:
|
|
2171
|
+
explicit Func_void_MedicationDoseEventsWithAnchorResponse_Wrapper(std::function<void(const MedicationDoseEventsWithAnchorResponse& /* result */)>&& func): _function(std::make_unique<std::function<void(const MedicationDoseEventsWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
2172
|
+
inline void call(MedicationDoseEventsWithAnchorResponse result) const noexcept {
|
|
2173
|
+
_function->operator()(result);
|
|
2174
|
+
}
|
|
2175
|
+
private:
|
|
2176
|
+
std::unique_ptr<std::function<void(const MedicationDoseEventsWithAnchorResponse& /* result */)>> _function;
|
|
2177
|
+
} SWIFT_NONCOPYABLE;
|
|
2178
|
+
Func_void_MedicationDoseEventsWithAnchorResponse create_Func_void_MedicationDoseEventsWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2179
|
+
inline Func_void_MedicationDoseEventsWithAnchorResponse_Wrapper wrap_Func_void_MedicationDoseEventsWithAnchorResponse(Func_void_MedicationDoseEventsWithAnchorResponse value) noexcept {
|
|
2180
|
+
return Func_void_MedicationDoseEventsWithAnchorResponse_Wrapper(std::move(value));
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
// pragma MARK: std::shared_ptr<HybridMedicationModuleSpec>
|
|
2184
|
+
/**
|
|
2185
|
+
* Specialized version of `std::shared_ptr<HybridMedicationModuleSpec>`.
|
|
2186
|
+
*/
|
|
2187
|
+
using std__shared_ptr_HybridMedicationModuleSpec_ = std::shared_ptr<HybridMedicationModuleSpec>;
|
|
2188
|
+
std::shared_ptr<HybridMedicationModuleSpec> create_std__shared_ptr_HybridMedicationModuleSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
2189
|
+
void* NON_NULL get_std__shared_ptr_HybridMedicationModuleSpec_(std__shared_ptr_HybridMedicationModuleSpec_ cppType);
|
|
2190
|
+
|
|
2191
|
+
// pragma MARK: std::weak_ptr<HybridMedicationModuleSpec>
|
|
2192
|
+
using std__weak_ptr_HybridMedicationModuleSpec_ = std::weak_ptr<HybridMedicationModuleSpec>;
|
|
2193
|
+
inline std__weak_ptr_HybridMedicationModuleSpec_ weakify_std__shared_ptr_HybridMedicationModuleSpec_(const std::shared_ptr<HybridMedicationModuleSpec>& strong) noexcept { return strong; }
|
|
2194
|
+
|
|
2195
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>>
|
|
2196
|
+
using Result_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication____ = Result<std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>>;
|
|
2197
|
+
inline Result_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication____ create_Result_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication____(const std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>& value) noexcept {
|
|
2198
|
+
return Result<std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>>::withValue(value);
|
|
2199
|
+
}
|
|
2200
|
+
inline Result_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication____ create_Result_std__shared_ptr_Promise_std__vector_UserAnnotatedMedication____(const std::exception_ptr& error) noexcept {
|
|
2201
|
+
return Result<std::shared_ptr<Promise<std::vector<UserAnnotatedMedication>>>>::withError(error);
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>>
|
|
2205
|
+
using Result_std__shared_ptr_Promise_std__vector_MedicationDoseEvent____ = Result<std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>>;
|
|
2206
|
+
inline Result_std__shared_ptr_Promise_std__vector_MedicationDoseEvent____ create_Result_std__shared_ptr_Promise_std__vector_MedicationDoseEvent____(const std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>& value) noexcept {
|
|
2207
|
+
return Result<std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>>::withValue(value);
|
|
2208
|
+
}
|
|
2209
|
+
inline Result_std__shared_ptr_Promise_std__vector_MedicationDoseEvent____ create_Result_std__shared_ptr_Promise_std__vector_MedicationDoseEvent____(const std::exception_ptr& error) noexcept {
|
|
2210
|
+
return Result<std::shared_ptr<Promise<std::vector<MedicationDoseEvent>>>>::withError(error);
|
|
2211
|
+
}
|
|
2212
|
+
|
|
2213
|
+
// pragma MARK: Result<std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>>
|
|
2214
|
+
using Result_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse___ = Result<std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>>;
|
|
2215
|
+
inline Result_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse___ create_Result_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse___(const std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>& value) noexcept {
|
|
2216
|
+
return Result<std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>>::withValue(value);
|
|
2217
|
+
}
|
|
2218
|
+
inline Result_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse___ create_Result_std__shared_ptr_Promise_MedicationDoseEventsWithAnchorResponse___(const std::exception_ptr& error) noexcept {
|
|
2219
|
+
return Result<std::shared_ptr<Promise<MedicationDoseEventsWithAnchorResponse>>>::withError(error);
|
|
2220
|
+
}
|
|
2221
|
+
|
|
1956
2222
|
// pragma MARK: std::vector<QuantitySample>
|
|
1957
2223
|
/**
|
|
1958
2224
|
* Specialized version of `std::vector<QuantitySample>`.
|
|
@@ -1998,36 +2264,6 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1998
2264
|
return Func_void_std__vector_QuantitySample__Wrapper(std::move(value));
|
|
1999
2265
|
}
|
|
2000
2266
|
|
|
2001
|
-
// pragma MARK: std::optional<QueryOptionsWithSortOrderAndUnit>
|
|
2002
|
-
/**
|
|
2003
|
-
* Specialized version of `std::optional<QueryOptionsWithSortOrderAndUnit>`.
|
|
2004
|
-
*/
|
|
2005
|
-
using std__optional_QueryOptionsWithSortOrderAndUnit_ = std::optional<QueryOptionsWithSortOrderAndUnit>;
|
|
2006
|
-
inline std::optional<QueryOptionsWithSortOrderAndUnit> create_std__optional_QueryOptionsWithSortOrderAndUnit_(const QueryOptionsWithSortOrderAndUnit& value) noexcept {
|
|
2007
|
-
return std::optional<QueryOptionsWithSortOrderAndUnit>(value);
|
|
2008
|
-
}
|
|
2009
|
-
inline bool has_value_std__optional_QueryOptionsWithSortOrderAndUnit_(const std::optional<QueryOptionsWithSortOrderAndUnit>& optional) noexcept {
|
|
2010
|
-
return optional.has_value();
|
|
2011
|
-
}
|
|
2012
|
-
inline QueryOptionsWithSortOrderAndUnit get_std__optional_QueryOptionsWithSortOrderAndUnit_(const std::optional<QueryOptionsWithSortOrderAndUnit>& optional) noexcept {
|
|
2013
|
-
return *optional;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
// pragma MARK: std::optional<Quantity>
|
|
2017
|
-
/**
|
|
2018
|
-
* Specialized version of `std::optional<Quantity>`.
|
|
2019
|
-
*/
|
|
2020
|
-
using std__optional_Quantity_ = std::optional<Quantity>;
|
|
2021
|
-
inline std::optional<Quantity> create_std__optional_Quantity_(const Quantity& value) noexcept {
|
|
2022
|
-
return std::optional<Quantity>(value);
|
|
2023
|
-
}
|
|
2024
|
-
inline bool has_value_std__optional_Quantity_(const std::optional<Quantity>& optional) noexcept {
|
|
2025
|
-
return optional.has_value();
|
|
2026
|
-
}
|
|
2027
|
-
inline Quantity get_std__optional_Quantity_(const std::optional<Quantity>& optional) noexcept {
|
|
2028
|
-
return *optional;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
2267
|
// pragma MARK: std::optional<QuantityDateInterval>
|
|
2032
2268
|
/**
|
|
2033
2269
|
* Specialized version of `std::optional<QuantityDateInterval>`.
|
|
@@ -2194,6 +2430,15 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2194
2430
|
using std__weak_ptr_HybridQuantityTypeModuleSpec_ = std::weak_ptr<HybridQuantityTypeModuleSpec>;
|
|
2195
2431
|
inline std__weak_ptr_HybridQuantityTypeModuleSpec_ weakify_std__shared_ptr_HybridQuantityTypeModuleSpec_(const std::shared_ptr<HybridQuantityTypeModuleSpec>& strong) noexcept { return strong; }
|
|
2196
2432
|
|
|
2433
|
+
// pragma MARK: Result<AggregationStyle>
|
|
2434
|
+
using Result_AggregationStyle_ = Result<AggregationStyle>;
|
|
2435
|
+
inline Result_AggregationStyle_ create_Result_AggregationStyle_(AggregationStyle value) noexcept {
|
|
2436
|
+
return Result<AggregationStyle>::withValue(std::move(value));
|
|
2437
|
+
}
|
|
2438
|
+
inline Result_AggregationStyle_ create_Result_AggregationStyle_(const std::exception_ptr& error) noexcept {
|
|
2439
|
+
return Result<AggregationStyle>::withError(error);
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2197
2442
|
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>
|
|
2198
2443
|
using Result_std__shared_ptr_Promise_std__vector_QuantitySample____ = Result<std::shared_ptr<Promise<std::vector<QuantitySample>>>>;
|
|
2199
2444
|
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) noexcept {
|
|
@@ -2306,6 +2551,40 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2306
2551
|
return Func_void_std__vector_StateOfMindSample__Wrapper(std::move(value));
|
|
2307
2552
|
}
|
|
2308
2553
|
|
|
2554
|
+
// pragma MARK: std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>
|
|
2555
|
+
/**
|
|
2556
|
+
* Specialized version of `std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>`.
|
|
2557
|
+
*/
|
|
2558
|
+
using std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse__ = std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>;
|
|
2559
|
+
inline std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>> create_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse__() noexcept {
|
|
2560
|
+
return Promise<StateOfMindSamplesWithAnchorResponse>::create();
|
|
2561
|
+
}
|
|
2562
|
+
inline PromiseHolder<StateOfMindSamplesWithAnchorResponse> wrap_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse__(std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>> promise) noexcept {
|
|
2563
|
+
return PromiseHolder<StateOfMindSamplesWithAnchorResponse>(std::move(promise));
|
|
2564
|
+
}
|
|
2565
|
+
|
|
2566
|
+
// pragma MARK: std::function<void(const StateOfMindSamplesWithAnchorResponse& /* result */)>
|
|
2567
|
+
/**
|
|
2568
|
+
* Specialized version of `std::function<void(const StateOfMindSamplesWithAnchorResponse&)>`.
|
|
2569
|
+
*/
|
|
2570
|
+
using Func_void_StateOfMindSamplesWithAnchorResponse = std::function<void(const StateOfMindSamplesWithAnchorResponse& /* result */)>;
|
|
2571
|
+
/**
|
|
2572
|
+
* Wrapper class for a `std::function<void(const StateOfMindSamplesWithAnchorResponse& / * result * /)>`, this can be used from Swift.
|
|
2573
|
+
*/
|
|
2574
|
+
class Func_void_StateOfMindSamplesWithAnchorResponse_Wrapper final {
|
|
2575
|
+
public:
|
|
2576
|
+
explicit Func_void_StateOfMindSamplesWithAnchorResponse_Wrapper(std::function<void(const StateOfMindSamplesWithAnchorResponse& /* result */)>&& func): _function(std::make_unique<std::function<void(const StateOfMindSamplesWithAnchorResponse& /* result */)>>(std::move(func))) {}
|
|
2577
|
+
inline void call(StateOfMindSamplesWithAnchorResponse result) const noexcept {
|
|
2578
|
+
_function->operator()(result);
|
|
2579
|
+
}
|
|
2580
|
+
private:
|
|
2581
|
+
std::unique_ptr<std::function<void(const StateOfMindSamplesWithAnchorResponse& /* result */)>> _function;
|
|
2582
|
+
} SWIFT_NONCOPYABLE;
|
|
2583
|
+
Func_void_StateOfMindSamplesWithAnchorResponse create_Func_void_StateOfMindSamplesWithAnchorResponse(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
2584
|
+
inline Func_void_StateOfMindSamplesWithAnchorResponse_Wrapper wrap_Func_void_StateOfMindSamplesWithAnchorResponse(Func_void_StateOfMindSamplesWithAnchorResponse value) noexcept {
|
|
2585
|
+
return Func_void_StateOfMindSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2309
2588
|
// pragma MARK: std::shared_ptr<HybridStateOfMindModuleSpec>
|
|
2310
2589
|
/**
|
|
2311
2590
|
* Specialized version of `std::shared_ptr<HybridStateOfMindModuleSpec>`.
|
|
@@ -2327,6 +2606,15 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2327
2606
|
return Result<std::shared_ptr<Promise<std::vector<StateOfMindSample>>>>::withError(error);
|
|
2328
2607
|
}
|
|
2329
2608
|
|
|
2609
|
+
// pragma MARK: Result<std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>>
|
|
2610
|
+
using Result_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse___ = Result<std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>>;
|
|
2611
|
+
inline Result_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse___(const std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>& value) noexcept {
|
|
2612
|
+
return Result<std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>>::withValue(value);
|
|
2613
|
+
}
|
|
2614
|
+
inline Result_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse___ create_Result_std__shared_ptr_Promise_StateOfMindSamplesWithAnchorResponse___(const std::exception_ptr& error) noexcept {
|
|
2615
|
+
return Result<std::shared_ptr<Promise<StateOfMindSamplesWithAnchorResponse>>>::withError(error);
|
|
2616
|
+
}
|
|
2617
|
+
|
|
2330
2618
|
// pragma MARK: std::vector<WorkoutEvent>
|
|
2331
2619
|
/**
|
|
2332
2620
|
* Specialized version of `std::vector<WorkoutEvent>`.
|
|
@@ -2753,159 +3041,74 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
2753
3041
|
return Func_void_QueryWorkoutSamplesWithAnchorResponse_Wrapper(std::move(value));
|
|
2754
3042
|
}
|
|
2755
3043
|
|
|
2756
|
-
// pragma MARK: std::
|
|
3044
|
+
// pragma MARK: std::optional<WorkoutActivityType>
|
|
2757
3045
|
/**
|
|
2758
|
-
*
|
|
2759
|
-
* std::variant cannot be used in Swift because of a Swift bug.
|
|
2760
|
-
* Not even specializing it works. So we create a wrapper struct.
|
|
3046
|
+
* Specialized version of `std::optional<WorkoutActivityType>`.
|
|
2761
3047
|
*/
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate>() const noexcept {
|
|
2766
|
-
return variant;
|
|
2767
|
-
}
|
|
2768
|
-
inline size_t index() const noexcept {
|
|
2769
|
-
return variant.index();
|
|
2770
|
-
}
|
|
2771
|
-
inline PredicateWithUUID get_0() const noexcept {
|
|
2772
|
-
return std::get<0>(variant);
|
|
2773
|
-
}
|
|
2774
|
-
inline PredicateWithUUIDs get_1() const noexcept {
|
|
2775
|
-
return std::get<1>(variant);
|
|
2776
|
-
}
|
|
2777
|
-
inline PredicateWithMetadataKey get_2() const noexcept {
|
|
2778
|
-
return std::get<2>(variant);
|
|
2779
|
-
}
|
|
2780
|
-
inline PredicateWithStartAndEnd get_3() const noexcept {
|
|
2781
|
-
return std::get<3>(variant);
|
|
2782
|
-
}
|
|
2783
|
-
inline PredicateFromWorkout get_4() const noexcept {
|
|
2784
|
-
return std::get<4>(variant);
|
|
2785
|
-
}
|
|
2786
|
-
inline WorkoutActivityTypePredicate get_5() const noexcept {
|
|
2787
|
-
return std::get<5>(variant);
|
|
2788
|
-
}
|
|
2789
|
-
inline WorkoutDurationPredicate get_6() const noexcept {
|
|
2790
|
-
return std::get<6>(variant);
|
|
2791
|
-
}
|
|
2792
|
-
};
|
|
2793
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithUUID& value) noexcept {
|
|
2794
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
2795
|
-
}
|
|
2796
|
-
inline std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_ create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(const PredicateWithUUIDs& value) noexcept {
|
|
2797
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate_(value);
|
|
3048
|
+
using std__optional_WorkoutActivityType_ = std::optional<WorkoutActivityType>;
|
|
3049
|
+
inline std::optional<WorkoutActivityType> create_std__optional_WorkoutActivityType_(const WorkoutActivityType& value) noexcept {
|
|
3050
|
+
return std::optional<WorkoutActivityType>(value);
|
|
2798
3051
|
}
|
|
2799
|
-
inline
|
|
2800
|
-
return
|
|
3052
|
+
inline bool has_value_std__optional_WorkoutActivityType_(const std::optional<WorkoutActivityType>& optional) noexcept {
|
|
3053
|
+
return optional.has_value();
|
|
2801
3054
|
}
|
|
2802
|
-
inline
|
|
2803
|
-
return
|
|
3055
|
+
inline WorkoutActivityType get_std__optional_WorkoutActivityType_(const std::optional<WorkoutActivityType>& optional) noexcept {
|
|
3056
|
+
return *optional;
|
|
2804
3057
|
}
|
|
2805
|
-
|
|
2806
|
-
|
|
3058
|
+
|
|
3059
|
+
// pragma MARK: std::optional<WorkoutDurationPredicate>
|
|
3060
|
+
/**
|
|
3061
|
+
* Specialized version of `std::optional<WorkoutDurationPredicate>`.
|
|
3062
|
+
*/
|
|
3063
|
+
using std__optional_WorkoutDurationPredicate_ = std::optional<WorkoutDurationPredicate>;
|
|
3064
|
+
inline std::optional<WorkoutDurationPredicate> create_std__optional_WorkoutDurationPredicate_(const WorkoutDurationPredicate& value) noexcept {
|
|
3065
|
+
return std::optional<WorkoutDurationPredicate>(value);
|
|
2807
3066
|
}
|
|
2808
|
-
inline
|
|
2809
|
-
return
|
|
3067
|
+
inline bool has_value_std__optional_WorkoutDurationPredicate_(const std::optional<WorkoutDurationPredicate>& optional) noexcept {
|
|
3068
|
+
return optional.has_value();
|
|
2810
3069
|
}
|
|
2811
|
-
inline
|
|
2812
|
-
return
|
|
3070
|
+
inline WorkoutDurationPredicate get_std__optional_WorkoutDurationPredicate_(const std::optional<WorkoutDurationPredicate>& optional) noexcept {
|
|
3071
|
+
return *optional;
|
|
2813
3072
|
}
|
|
2814
3073
|
|
|
2815
|
-
// pragma MARK: std::vector<
|
|
3074
|
+
// pragma MARK: std::vector<FilterForWorkoutsBase>
|
|
2816
3075
|
/**
|
|
2817
|
-
* Specialized version of `std::vector<
|
|
3076
|
+
* Specialized version of `std::vector<FilterForWorkoutsBase>`.
|
|
2818
3077
|
*/
|
|
2819
|
-
using
|
|
2820
|
-
inline std::vector<
|
|
2821
|
-
std::vector<
|
|
3078
|
+
using std__vector_FilterForWorkoutsBase_ = std::vector<FilterForWorkoutsBase>;
|
|
3079
|
+
inline std::vector<FilterForWorkoutsBase> create_std__vector_FilterForWorkoutsBase_(size_t size) noexcept {
|
|
3080
|
+
std::vector<FilterForWorkoutsBase> vector;
|
|
2822
3081
|
vector.reserve(size);
|
|
2823
3082
|
return vector;
|
|
2824
3083
|
}
|
|
2825
3084
|
|
|
2826
|
-
// pragma MARK: std::
|
|
3085
|
+
// pragma MARK: std::optional<std::vector<FilterForWorkoutsBase>>
|
|
2827
3086
|
/**
|
|
2828
|
-
*
|
|
2829
|
-
* std::variant cannot be used in Swift because of a Swift bug.
|
|
2830
|
-
* Not even specializing it works. So we create a wrapper struct.
|
|
3087
|
+
* Specialized version of `std::optional<std::vector<FilterForWorkoutsBase>>`.
|
|
2831
3088
|
*/
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
operator std::variant<PredicateWithUUID, PredicateWithUUIDs, PredicateWithMetadataKey, PredicateWithStartAndEnd, PredicateFromWorkout, WorkoutActivityTypePredicate, WorkoutDurationPredicate, PredicateForWorkoutsOr, PredicateForWorkoutsAnd>() const noexcept {
|
|
2836
|
-
return variant;
|
|
2837
|
-
}
|
|
2838
|
-
inline size_t index() const noexcept {
|
|
2839
|
-
return variant.index();
|
|
2840
|
-
}
|
|
2841
|
-
inline PredicateWithUUID get_0() const noexcept {
|
|
2842
|
-
return std::get<0>(variant);
|
|
2843
|
-
}
|
|
2844
|
-
inline PredicateWithUUIDs get_1() const noexcept {
|
|
2845
|
-
return std::get<1>(variant);
|
|
2846
|
-
}
|
|
2847
|
-
inline PredicateWithMetadataKey get_2() const noexcept {
|
|
2848
|
-
return std::get<2>(variant);
|
|
2849
|
-
}
|
|
2850
|
-
inline PredicateWithStartAndEnd get_3() const noexcept {
|
|
2851
|
-
return std::get<3>(variant);
|
|
2852
|
-
}
|
|
2853
|
-
inline PredicateFromWorkout get_4() const noexcept {
|
|
2854
|
-
return std::get<4>(variant);
|
|
2855
|
-
}
|
|
2856
|
-
inline WorkoutActivityTypePredicate get_5() const noexcept {
|
|
2857
|
-
return std::get<5>(variant);
|
|
2858
|
-
}
|
|
2859
|
-
inline WorkoutDurationPredicate get_6() const noexcept {
|
|
2860
|
-
return std::get<6>(variant);
|
|
2861
|
-
}
|
|
2862
|
-
inline PredicateForWorkoutsOr get_7() const noexcept {
|
|
2863
|
-
return std::get<7>(variant);
|
|
2864
|
-
}
|
|
2865
|
-
inline PredicateForWorkoutsAnd get_8() const noexcept {
|
|
2866
|
-
return std::get<8>(variant);
|
|
2867
|
-
}
|
|
2868
|
-
};
|
|
2869
|
-
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) noexcept {
|
|
2870
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2871
|
-
}
|
|
2872
|
-
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) noexcept {
|
|
2873
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2874
|
-
}
|
|
2875
|
-
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) noexcept {
|
|
2876
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
3089
|
+
using std__optional_std__vector_FilterForWorkoutsBase__ = std::optional<std::vector<FilterForWorkoutsBase>>;
|
|
3090
|
+
inline std::optional<std::vector<FilterForWorkoutsBase>> create_std__optional_std__vector_FilterForWorkoutsBase__(const std::vector<FilterForWorkoutsBase>& value) noexcept {
|
|
3091
|
+
return std::optional<std::vector<FilterForWorkoutsBase>>(value);
|
|
2877
3092
|
}
|
|
2878
|
-
inline
|
|
2879
|
-
return
|
|
2880
|
-
}
|
|
2881
|
-
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) noexcept {
|
|
2882
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2883
|
-
}
|
|
2884
|
-
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) noexcept {
|
|
2885
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2886
|
-
}
|
|
2887
|
-
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) noexcept {
|
|
2888
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
2889
|
-
}
|
|
2890
|
-
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) noexcept {
|
|
2891
|
-
return std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__WorkoutActivityTypePredicate__WorkoutDurationPredicate__PredicateForWorkoutsOr__PredicateForWorkoutsAnd_(value);
|
|
3093
|
+
inline bool has_value_std__optional_std__vector_FilterForWorkoutsBase__(const std::optional<std::vector<FilterForWorkoutsBase>>& optional) noexcept {
|
|
3094
|
+
return optional.has_value();
|
|
2892
3095
|
}
|
|
2893
|
-
inline
|
|
2894
|
-
return
|
|
3096
|
+
inline std::vector<FilterForWorkoutsBase> get_std__optional_std__vector_FilterForWorkoutsBase__(const std::optional<std::vector<FilterForWorkoutsBase>>& optional) noexcept {
|
|
3097
|
+
return *optional;
|
|
2895
3098
|
}
|
|
2896
3099
|
|
|
2897
|
-
// pragma MARK: std::optional<
|
|
3100
|
+
// pragma MARK: std::optional<FilterForWorkouts>
|
|
2898
3101
|
/**
|
|
2899
|
-
* Specialized version of `std::optional<
|
|
3102
|
+
* Specialized version of `std::optional<FilterForWorkouts>`.
|
|
2900
3103
|
*/
|
|
2901
|
-
using
|
|
2902
|
-
inline std::optional<
|
|
2903
|
-
return std::optional<
|
|
3104
|
+
using std__optional_FilterForWorkouts_ = std::optional<FilterForWorkouts>;
|
|
3105
|
+
inline std::optional<FilterForWorkouts> create_std__optional_FilterForWorkouts_(const FilterForWorkouts& value) noexcept {
|
|
3106
|
+
return std::optional<FilterForWorkouts>(value);
|
|
2904
3107
|
}
|
|
2905
|
-
inline bool
|
|
3108
|
+
inline bool has_value_std__optional_FilterForWorkouts_(const std::optional<FilterForWorkouts>& optional) noexcept {
|
|
2906
3109
|
return optional.has_value();
|
|
2907
3110
|
}
|
|
2908
|
-
inline
|
|
3111
|
+
inline FilterForWorkouts get_std__optional_FilterForWorkouts_(const std::optional<FilterForWorkouts>& optional) noexcept {
|
|
2909
3112
|
return *optional;
|
|
2910
3113
|
}
|
|
2911
3114
|
|