@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
|
@@ -18,7 +18,7 @@ public extension QueryOptionsWithSortOrderAndUnit {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `QueryOptionsWithSortOrderAndUnit`.
|
|
20
20
|
*/
|
|
21
|
-
init(unit: String?, ascending: Bool?, filter:
|
|
21
|
+
init(unit: String?, ascending: Bool?, filter: FilterForSamples?, limit: Double) {
|
|
22
22
|
self.init({ () -> bridge.std__optional_std__string_ in
|
|
23
23
|
if let __unwrappedValue = unit {
|
|
24
24
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
@@ -31,36 +31,13 @@ public extension QueryOptionsWithSortOrderAndUnit {
|
|
|
31
31
|
} else {
|
|
32
32
|
return .init()
|
|
33
33
|
}
|
|
34
|
-
}(), { () -> bridge.
|
|
34
|
+
}(), { () -> bridge.std__optional_FilterForSamples_ in
|
|
35
35
|
if let __unwrappedValue = filter {
|
|
36
|
-
return bridge.
|
|
37
|
-
switch __unwrappedValue {
|
|
38
|
-
case .first(let __value):
|
|
39
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
40
|
-
case .second(let __value):
|
|
41
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
42
|
-
case .third(let __value):
|
|
43
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
44
|
-
case .fourth(let __value):
|
|
45
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
46
|
-
case .fifth(let __value):
|
|
47
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
48
|
-
case .sixth(let __value):
|
|
49
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
50
|
-
case .seventh(let __value):
|
|
51
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
52
|
-
}
|
|
53
|
-
}().variant)
|
|
36
|
+
return bridge.create_std__optional_FilterForSamples_(__unwrappedValue)
|
|
54
37
|
} else {
|
|
55
38
|
return .init()
|
|
56
39
|
}
|
|
57
|
-
}(),
|
|
58
|
-
if let __unwrappedValue = limit {
|
|
59
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
60
|
-
} else {
|
|
61
|
-
return .init()
|
|
62
|
-
}
|
|
63
|
-
}())
|
|
40
|
+
}(), limit)
|
|
64
41
|
}
|
|
65
42
|
|
|
66
43
|
var unit: String? {
|
|
@@ -111,67 +88,16 @@ public extension QueryOptionsWithSortOrderAndUnit {
|
|
|
111
88
|
}
|
|
112
89
|
}
|
|
113
90
|
|
|
114
|
-
var filter:
|
|
91
|
+
var filter: FilterForSamples? {
|
|
115
92
|
@inline(__always)
|
|
116
93
|
get {
|
|
117
|
-
return
|
|
118
|
-
if bridge.has_value_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr__(self.__filter) {
|
|
119
|
-
let __unwrapped = bridge.get_std__optional_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr__(self.__filter)
|
|
120
|
-
return { () -> Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr in
|
|
121
|
-
let __variant = bridge.std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__unwrapped)
|
|
122
|
-
switch __variant.index() {
|
|
123
|
-
case 0:
|
|
124
|
-
let __actual = __variant.get_0()
|
|
125
|
-
return .first(__actual)
|
|
126
|
-
case 1:
|
|
127
|
-
let __actual = __variant.get_1()
|
|
128
|
-
return .second(__actual)
|
|
129
|
-
case 2:
|
|
130
|
-
let __actual = __variant.get_2()
|
|
131
|
-
return .third(__actual)
|
|
132
|
-
case 3:
|
|
133
|
-
let __actual = __variant.get_3()
|
|
134
|
-
return .fourth(__actual)
|
|
135
|
-
case 4:
|
|
136
|
-
let __actual = __variant.get_4()
|
|
137
|
-
return .fifth(__actual)
|
|
138
|
-
case 5:
|
|
139
|
-
let __actual = __variant.get_5()
|
|
140
|
-
return .sixth(__actual)
|
|
141
|
-
case 6:
|
|
142
|
-
let __actual = __variant.get_6()
|
|
143
|
-
return .seventh(__actual)
|
|
144
|
-
default:
|
|
145
|
-
fatalError("Variant can never have index \(__variant.index())!")
|
|
146
|
-
}
|
|
147
|
-
}()
|
|
148
|
-
} else {
|
|
149
|
-
return nil
|
|
150
|
-
}
|
|
151
|
-
}()
|
|
94
|
+
return self.__filter.value
|
|
152
95
|
}
|
|
153
96
|
@inline(__always)
|
|
154
97
|
set {
|
|
155
|
-
self.__filter = { () -> bridge.
|
|
98
|
+
self.__filter = { () -> bridge.std__optional_FilterForSamples_ in
|
|
156
99
|
if let __unwrappedValue = newValue {
|
|
157
|
-
return bridge.
|
|
158
|
-
switch __unwrappedValue {
|
|
159
|
-
case .first(let __value):
|
|
160
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
161
|
-
case .second(let __value):
|
|
162
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
163
|
-
case .third(let __value):
|
|
164
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
165
|
-
case .fourth(let __value):
|
|
166
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
167
|
-
case .fifth(let __value):
|
|
168
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
169
|
-
case .sixth(let __value):
|
|
170
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
171
|
-
case .seventh(let __value):
|
|
172
|
-
return bridge.create_std__variant_PredicateWithUUID__PredicateWithUUIDs__PredicateWithMetadataKey__PredicateWithStartAndEnd__PredicateFromWorkout__FilterForSamplesAnd__FilterForSamplesOr_(__value)
|
|
173
|
-
}
|
|
174
|
-
}().variant)
|
|
100
|
+
return bridge.create_std__optional_FilterForSamples_(__unwrappedValue)
|
|
175
101
|
} else {
|
|
176
102
|
return .init()
|
|
177
103
|
}
|
|
@@ -179,20 +105,14 @@ public extension QueryOptionsWithSortOrderAndUnit {
|
|
|
179
105
|
}
|
|
180
106
|
}
|
|
181
107
|
|
|
182
|
-
var limit: Double
|
|
108
|
+
var limit: Double {
|
|
183
109
|
@inline(__always)
|
|
184
110
|
get {
|
|
185
|
-
return self.__limit
|
|
111
|
+
return self.__limit
|
|
186
112
|
}
|
|
187
113
|
@inline(__always)
|
|
188
114
|
set {
|
|
189
|
-
self.__limit =
|
|
190
|
-
if let __unwrappedValue = newValue {
|
|
191
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
192
|
-
} else {
|
|
193
|
-
return .init()
|
|
194
|
-
}
|
|
195
|
-
}()
|
|
115
|
+
self.__limit = newValue
|
|
196
116
|
}
|
|
197
117
|
}
|
|
198
118
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// RelatedCoding.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `RelatedCoding`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias RelatedCoding = margelo.nitro.healthkit.RelatedCoding
|
|
14
|
+
|
|
15
|
+
public extension RelatedCoding {
|
|
16
|
+
private typealias bridge = margelo.nitro.healthkit.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `RelatedCoding`.
|
|
20
|
+
*/
|
|
21
|
+
init(system: String, code: String, version: String?) {
|
|
22
|
+
self.init(std.string(system), std.string(code), { () -> bridge.std__optional_std__string_ in
|
|
23
|
+
if let __unwrappedValue = version {
|
|
24
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
25
|
+
} else {
|
|
26
|
+
return .init()
|
|
27
|
+
}
|
|
28
|
+
}())
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
var system: String {
|
|
32
|
+
@inline(__always)
|
|
33
|
+
get {
|
|
34
|
+
return String(self.__system)
|
|
35
|
+
}
|
|
36
|
+
@inline(__always)
|
|
37
|
+
set {
|
|
38
|
+
self.__system = std.string(newValue)
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
var code: String {
|
|
43
|
+
@inline(__always)
|
|
44
|
+
get {
|
|
45
|
+
return String(self.__code)
|
|
46
|
+
}
|
|
47
|
+
@inline(__always)
|
|
48
|
+
set {
|
|
49
|
+
self.__code = std.string(newValue)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var version: String? {
|
|
54
|
+
@inline(__always)
|
|
55
|
+
get {
|
|
56
|
+
return { () -> String? in
|
|
57
|
+
if bridge.has_value_std__optional_std__string_(self.__version) {
|
|
58
|
+
let __unwrapped = bridge.get_std__optional_std__string_(self.__version)
|
|
59
|
+
return String(__unwrapped)
|
|
60
|
+
} else {
|
|
61
|
+
return nil
|
|
62
|
+
}
|
|
63
|
+
}()
|
|
64
|
+
}
|
|
65
|
+
@inline(__always)
|
|
66
|
+
set {
|
|
67
|
+
self.__version = { () -> bridge.std__optional_std__string_ in
|
|
68
|
+
if let __unwrappedValue = newValue {
|
|
69
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
70
|
+
} else {
|
|
71
|
+
return .init()
|
|
72
|
+
}
|
|
73
|
+
}()
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// SampleType.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents an instance of `SampleType`, backed by a C++ struct.
|
|
12
|
+
*/
|
|
13
|
+
public typealias SampleType = margelo.nitro.healthkit.SampleType
|
|
14
|
+
|
|
15
|
+
public extension SampleType {
|
|
16
|
+
private typealias bridge = margelo.nitro.healthkit.bridge.swift
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Create a new instance of `SampleType`.
|
|
20
|
+
*/
|
|
21
|
+
init(identifier: String, allowsRecalibrationForEstimates: Bool, isMinimumDurationRestricted: Bool, isMaximumDurationRestricted: Bool) {
|
|
22
|
+
self.init(std.string(identifier), allowsRecalibrationForEstimates, isMinimumDurationRestricted, isMaximumDurationRestricted)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var identifier: String {
|
|
26
|
+
@inline(__always)
|
|
27
|
+
get {
|
|
28
|
+
return String(self.__identifier)
|
|
29
|
+
}
|
|
30
|
+
@inline(__always)
|
|
31
|
+
set {
|
|
32
|
+
self.__identifier = std.string(newValue)
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var allowsRecalibrationForEstimates: Bool {
|
|
37
|
+
@inline(__always)
|
|
38
|
+
get {
|
|
39
|
+
return self.__allowsRecalibrationForEstimates
|
|
40
|
+
}
|
|
41
|
+
@inline(__always)
|
|
42
|
+
set {
|
|
43
|
+
self.__allowsRecalibrationForEstimates = newValue
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var isMinimumDurationRestricted: Bool {
|
|
48
|
+
@inline(__always)
|
|
49
|
+
get {
|
|
50
|
+
return self.__isMinimumDurationRestricted
|
|
51
|
+
}
|
|
52
|
+
@inline(__always)
|
|
53
|
+
set {
|
|
54
|
+
self.__isMinimumDurationRestricted = newValue
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
var isMaximumDurationRestricted: Bool {
|
|
59
|
+
@inline(__always)
|
|
60
|
+
get {
|
|
61
|
+
return self.__isMaximumDurationRestricted
|
|
62
|
+
}
|
|
63
|
+
@inline(__always)
|
|
64
|
+
set {
|
|
65
|
+
self.__isMaximumDurationRestricted = newValue
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -151,6 +151,14 @@ public extension SampleTypeIdentifier {
|
|
|
151
151
|
self = .hkcorrelationtypeidentifierfood
|
|
152
152
|
case "HKQuantityTypeIdentifierWalkingHeartRateAverage":
|
|
153
153
|
self = .hkquantitytypeidentifierwalkingheartrateaverage
|
|
154
|
+
case "HKQuantityTypeIdentifierAtrialFibrillationBurden":
|
|
155
|
+
self = .hkquantitytypeidentifieratrialfibrillationburden
|
|
156
|
+
case "HKQuantityTypeIdentifierAppleExerciseTime":
|
|
157
|
+
self = .hkquantitytypeidentifierappleexercisetime
|
|
158
|
+
case "HKQuantityTypeIdentifierAppleStandTime":
|
|
159
|
+
self = .hkquantitytypeidentifierapplestandtime
|
|
160
|
+
case "HKQuantityTypeIdentifierAppleWalkingSteadiness":
|
|
161
|
+
self = .hkquantitytypeidentifierapplewalkingsteadiness
|
|
154
162
|
case "HKQuantityTypeIdentifierBodyMassIndex":
|
|
155
163
|
self = .hkquantitytypeidentifierbodymassindex
|
|
156
164
|
case "HKQuantityTypeIdentifierBodyFatPercentage":
|
|
@@ -179,8 +187,6 @@ public extension SampleTypeIdentifier {
|
|
|
179
187
|
self = .hkquantitytypeidentifierflightsclimbed
|
|
180
188
|
case "HKQuantityTypeIdentifierNikeFuel":
|
|
181
189
|
self = .hkquantitytypeidentifiernikefuel
|
|
182
|
-
case "HKQuantityTypeIdentifierAppleExerciseTime":
|
|
183
|
-
self = .hkquantitytypeidentifierappleexercisetime
|
|
184
190
|
case "HKQuantityTypeIdentifierPushCount":
|
|
185
191
|
self = .hkquantitytypeidentifierpushcount
|
|
186
192
|
case "HKQuantityTypeIdentifierDistanceSwimming":
|
|
@@ -191,8 +197,6 @@ public extension SampleTypeIdentifier {
|
|
|
191
197
|
self = .hkquantitytypeidentifiervo2max
|
|
192
198
|
case "HKQuantityTypeIdentifierDistanceDownhillSnowSports":
|
|
193
199
|
self = .hkquantitytypeidentifierdistancedownhillsnowsports
|
|
194
|
-
case "HKQuantityTypeIdentifierAppleStandTime":
|
|
195
|
-
self = .hkquantitytypeidentifierapplestandtime
|
|
196
200
|
case "HKQuantityTypeIdentifierHeartRate":
|
|
197
201
|
self = .hkquantitytypeidentifierheartrate
|
|
198
202
|
case "HKQuantityTypeIdentifierBodyTemperature":
|
|
@@ -331,12 +335,8 @@ public extension SampleTypeIdentifier {
|
|
|
331
335
|
self = .hkquantitytypeidentifieruvexposure
|
|
332
336
|
case "HKQuantityTypeIdentifierAppleMoveTime":
|
|
333
337
|
self = .hkquantitytypeidentifierapplemovetime
|
|
334
|
-
case "HKQuantityTypeIdentifierAppleWalkingSteadiness":
|
|
335
|
-
self = .hkquantitytypeidentifierapplewalkingsteadiness
|
|
336
338
|
case "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages":
|
|
337
339
|
self = .hkquantitytypeidentifiernumberofalcoholicbeverages
|
|
338
|
-
case "HKQuantityTypeIdentifierAtrialFibrillationBurden":
|
|
339
|
-
self = .hkquantitytypeidentifieratrialfibrillationburden
|
|
340
340
|
case "HKQuantityTypeIdentifierUnderwaterDepth":
|
|
341
341
|
self = .hkquantitytypeidentifierunderwaterdepth
|
|
342
342
|
case "HKQuantityTypeIdentifierWaterTemperature":
|
|
@@ -543,6 +543,14 @@ public extension SampleTypeIdentifier {
|
|
|
543
543
|
return "HKCorrelationTypeIdentifierFood"
|
|
544
544
|
case .hkquantitytypeidentifierwalkingheartrateaverage:
|
|
545
545
|
return "HKQuantityTypeIdentifierWalkingHeartRateAverage"
|
|
546
|
+
case .hkquantitytypeidentifieratrialfibrillationburden:
|
|
547
|
+
return "HKQuantityTypeIdentifierAtrialFibrillationBurden"
|
|
548
|
+
case .hkquantitytypeidentifierappleexercisetime:
|
|
549
|
+
return "HKQuantityTypeIdentifierAppleExerciseTime"
|
|
550
|
+
case .hkquantitytypeidentifierapplestandtime:
|
|
551
|
+
return "HKQuantityTypeIdentifierAppleStandTime"
|
|
552
|
+
case .hkquantitytypeidentifierapplewalkingsteadiness:
|
|
553
|
+
return "HKQuantityTypeIdentifierAppleWalkingSteadiness"
|
|
546
554
|
case .hkquantitytypeidentifierbodymassindex:
|
|
547
555
|
return "HKQuantityTypeIdentifierBodyMassIndex"
|
|
548
556
|
case .hkquantitytypeidentifierbodyfatpercentage:
|
|
@@ -571,8 +579,6 @@ public extension SampleTypeIdentifier {
|
|
|
571
579
|
return "HKQuantityTypeIdentifierFlightsClimbed"
|
|
572
580
|
case .hkquantitytypeidentifiernikefuel:
|
|
573
581
|
return "HKQuantityTypeIdentifierNikeFuel"
|
|
574
|
-
case .hkquantitytypeidentifierappleexercisetime:
|
|
575
|
-
return "HKQuantityTypeIdentifierAppleExerciseTime"
|
|
576
582
|
case .hkquantitytypeidentifierpushcount:
|
|
577
583
|
return "HKQuantityTypeIdentifierPushCount"
|
|
578
584
|
case .hkquantitytypeidentifierdistanceswimming:
|
|
@@ -583,8 +589,6 @@ public extension SampleTypeIdentifier {
|
|
|
583
589
|
return "HKQuantityTypeIdentifierVO2Max"
|
|
584
590
|
case .hkquantitytypeidentifierdistancedownhillsnowsports:
|
|
585
591
|
return "HKQuantityTypeIdentifierDistanceDownhillSnowSports"
|
|
586
|
-
case .hkquantitytypeidentifierapplestandtime:
|
|
587
|
-
return "HKQuantityTypeIdentifierAppleStandTime"
|
|
588
592
|
case .hkquantitytypeidentifierheartrate:
|
|
589
593
|
return "HKQuantityTypeIdentifierHeartRate"
|
|
590
594
|
case .hkquantitytypeidentifierbodytemperature:
|
|
@@ -723,12 +727,8 @@ public extension SampleTypeIdentifier {
|
|
|
723
727
|
return "HKQuantityTypeIdentifierUVExposure"
|
|
724
728
|
case .hkquantitytypeidentifierapplemovetime:
|
|
725
729
|
return "HKQuantityTypeIdentifierAppleMoveTime"
|
|
726
|
-
case .hkquantitytypeidentifierapplewalkingsteadiness:
|
|
727
|
-
return "HKQuantityTypeIdentifierAppleWalkingSteadiness"
|
|
728
730
|
case .hkquantitytypeidentifiernumberofalcoholicbeverages:
|
|
729
731
|
return "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages"
|
|
730
|
-
case .hkquantitytypeidentifieratrialfibrillationburden:
|
|
731
|
-
return "HKQuantityTypeIdentifierAtrialFibrillationBurden"
|
|
732
732
|
case .hkquantitytypeidentifierunderwaterdepth:
|
|
733
733
|
return "HKQuantityTypeIdentifierUnderwaterDepth"
|
|
734
734
|
case .hkquantitytypeidentifierwatertemperature:
|
|
@@ -169,8 +169,6 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
169
169
|
self = .hkquantitytypeidentifierflightsclimbed
|
|
170
170
|
case "HKQuantityTypeIdentifierNikeFuel":
|
|
171
171
|
self = .hkquantitytypeidentifiernikefuel
|
|
172
|
-
case "HKQuantityTypeIdentifierAppleExerciseTime":
|
|
173
|
-
self = .hkquantitytypeidentifierappleexercisetime
|
|
174
172
|
case "HKQuantityTypeIdentifierPushCount":
|
|
175
173
|
self = .hkquantitytypeidentifierpushcount
|
|
176
174
|
case "HKQuantityTypeIdentifierDistanceSwimming":
|
|
@@ -181,8 +179,6 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
181
179
|
self = .hkquantitytypeidentifiervo2max
|
|
182
180
|
case "HKQuantityTypeIdentifierDistanceDownhillSnowSports":
|
|
183
181
|
self = .hkquantitytypeidentifierdistancedownhillsnowsports
|
|
184
|
-
case "HKQuantityTypeIdentifierAppleStandTime":
|
|
185
|
-
self = .hkquantitytypeidentifierapplestandtime
|
|
186
182
|
case "HKQuantityTypeIdentifierHeartRate":
|
|
187
183
|
self = .hkquantitytypeidentifierheartrate
|
|
188
184
|
case "HKQuantityTypeIdentifierBodyTemperature":
|
|
@@ -321,12 +317,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
321
317
|
self = .hkquantitytypeidentifieruvexposure
|
|
322
318
|
case "HKQuantityTypeIdentifierAppleMoveTime":
|
|
323
319
|
self = .hkquantitytypeidentifierapplemovetime
|
|
324
|
-
case "HKQuantityTypeIdentifierAppleWalkingSteadiness":
|
|
325
|
-
self = .hkquantitytypeidentifierapplewalkingsteadiness
|
|
326
320
|
case "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages":
|
|
327
321
|
self = .hkquantitytypeidentifiernumberofalcoholicbeverages
|
|
328
|
-
case "HKQuantityTypeIdentifierAtrialFibrillationBurden":
|
|
329
|
-
self = .hkquantitytypeidentifieratrialfibrillationburden
|
|
330
322
|
case "HKQuantityTypeIdentifierUnderwaterDepth":
|
|
331
323
|
self = .hkquantitytypeidentifierunderwaterdepth
|
|
332
324
|
case "HKQuantityTypeIdentifierWaterTemperature":
|
|
@@ -549,8 +541,6 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
549
541
|
return "HKQuantityTypeIdentifierFlightsClimbed"
|
|
550
542
|
case .hkquantitytypeidentifiernikefuel:
|
|
551
543
|
return "HKQuantityTypeIdentifierNikeFuel"
|
|
552
|
-
case .hkquantitytypeidentifierappleexercisetime:
|
|
553
|
-
return "HKQuantityTypeIdentifierAppleExerciseTime"
|
|
554
544
|
case .hkquantitytypeidentifierpushcount:
|
|
555
545
|
return "HKQuantityTypeIdentifierPushCount"
|
|
556
546
|
case .hkquantitytypeidentifierdistanceswimming:
|
|
@@ -561,8 +551,6 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
561
551
|
return "HKQuantityTypeIdentifierVO2Max"
|
|
562
552
|
case .hkquantitytypeidentifierdistancedownhillsnowsports:
|
|
563
553
|
return "HKQuantityTypeIdentifierDistanceDownhillSnowSports"
|
|
564
|
-
case .hkquantitytypeidentifierapplestandtime:
|
|
565
|
-
return "HKQuantityTypeIdentifierAppleStandTime"
|
|
566
554
|
case .hkquantitytypeidentifierheartrate:
|
|
567
555
|
return "HKQuantityTypeIdentifierHeartRate"
|
|
568
556
|
case .hkquantitytypeidentifierbodytemperature:
|
|
@@ -701,12 +689,8 @@ public extension SampleTypeIdentifierWriteable {
|
|
|
701
689
|
return "HKQuantityTypeIdentifierUVExposure"
|
|
702
690
|
case .hkquantitytypeidentifierapplemovetime:
|
|
703
691
|
return "HKQuantityTypeIdentifierAppleMoveTime"
|
|
704
|
-
case .hkquantitytypeidentifierapplewalkingsteadiness:
|
|
705
|
-
return "HKQuantityTypeIdentifierAppleWalkingSteadiness"
|
|
706
692
|
case .hkquantitytypeidentifiernumberofalcoholicbeverages:
|
|
707
693
|
return "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages"
|
|
708
|
-
case .hkquantitytypeidentifieratrialfibrillationburden:
|
|
709
|
-
return "HKQuantityTypeIdentifierAtrialFibrillationBurden"
|
|
710
694
|
case .hkquantitytypeidentifierunderwaterdepth:
|
|
711
695
|
return "HKQuantityTypeIdentifierUnderwaterDepth"
|
|
712
696
|
case .hkquantitytypeidentifierwatertemperature:
|