@kingstinct/react-native-healthkit 13.3.1 → 14.0.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/ReactNativeHealthkit.podspec +1 -0
- package/app.plugin.ts +40 -2
- package/ios/BackgroundDeliveryManager.swift +196 -0
- package/ios/CategoryTypeModule.swift +1 -1
- package/ios/CoreModule.swift +24 -0
- package/ios/CorrelationTypeModule.swift +2 -35
- package/ios/ElectrocardiogramModule.swift +2 -34
- package/ios/HeartbeatSeriesModule.swift +2 -34
- package/ios/MedicationModule.swift +3 -35
- package/ios/PredicateHelpers.swift +2 -2
- package/ios/QuantityTypeModule.swift +11 -11
- package/ios/Serializers.swift +58 -90
- package/ios/StateOfMindModule.swift +2 -34
- package/ios/WorkoutProxy.swift +4 -149
- package/ios/generated/HealthkitGenerated.swift +52 -0
- package/lib/commonjs/generated/healthkit.generated.js +745 -0
- package/lib/commonjs/healthkit.ios.js +51 -17
- package/lib/commonjs/healthkit.js +120 -34
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/commonjs/type-tests/generated-typing.js +2 -0
- package/lib/commonjs/types/CategoryType.js +19 -99
- package/lib/commonjs/types/Medication.js +2 -0
- package/lib/commonjs/types/MetadataEnums.js +17 -0
- package/lib/commonjs/types/QuantityType.js +4 -15
- package/lib/commonjs/types/WeatherCondition.js +2 -32
- package/lib/commonjs/types/Workouts.js +3 -98
- package/lib/commonjs/types/index.js +2 -0
- package/lib/module/generated/healthkit.generated.js +742 -0
- package/lib/module/healthkit.ios.js +49 -15
- package/lib/module/healthkit.js +94 -20
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/type-tests/generated-typing.js +1 -0
- package/lib/module/types/CategoryType.js +2 -98
- package/lib/module/types/Medication.js +1 -0
- package/lib/module/types/MetadataEnums.js +1 -0
- package/lib/module/types/QuantityType.js +2 -14
- package/lib/module/types/WeatherCondition.js +1 -32
- package/lib/module/types/Workouts.js +2 -98
- package/lib/module/types/index.js +2 -0
- package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
- package/lib/typescript/healthkit.d.ts +39 -36
- package/lib/typescript/healthkit.ios.d.ts +64 -53
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
- package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
- package/lib/typescript/modules.d.ts +2 -2
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
- package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
- package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
- package/lib/typescript/types/CategoryType.d.ts +10 -104
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
- package/lib/typescript/types/CorrelationType.d.ts +8 -2
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
- package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
- package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
- package/lib/typescript/types/Medication.d.ts +10 -0
- package/lib/typescript/types/MetadataEnums.d.ts +1 -0
- package/lib/typescript/types/QuantitySample.d.ts +9 -1
- package/lib/typescript/types/QuantityType.d.ts +14 -18
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
- package/lib/typescript/types/QueryOptions.d.ts +8 -4
- package/lib/typescript/types/Shared.d.ts +12 -41
- package/lib/typescript/types/StateOfMind.d.ts +8 -1
- package/lib/typescript/types/Subscriptions.d.ts +11 -11
- package/lib/typescript/types/WeatherCondition.d.ts +1 -30
- package/lib/typescript/types/Workouts.d.ts +20 -104
- package/lib/typescript/types/index.d.ts +2 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
- package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
- package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
- package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +3 -116
- package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
- package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
- package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
- package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +20 -2
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
- package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
- package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +8 -2
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
- package/package.json +5 -2
- package/src/generated/healthkit-schema.json +3680 -0
- package/src/generated/healthkit.generated.ts +1307 -0
- package/src/healthkit.ios.ts +225 -19
- package/src/healthkit.ts +181 -55
- package/src/hooks/useMostRecentQuantitySample.ts +6 -5
- package/src/hooks/useMostRecentWorkout.ts +2 -2
- package/src/hooks/useQuantitySampleById.ts +6 -5
- package/src/hooks/useStatisticsForQuantity.ts +2 -1
- package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
- package/src/modules.ts +7 -2
- package/src/specs/CategoryTypeModule.nitro.ts +8 -5
- package/src/specs/CoreModule.nitro.ts +20 -0
- package/src/specs/QuantityTypeModule.nitro.ts +81 -7
- package/src/test-setup.ts +2 -0
- package/src/type-tests/generated-typing.ts +133 -0
- package/src/types/CategoryType.ts +52 -148
- package/src/types/CategoryTypeIdentifier.ts +5 -134
- package/src/types/CorrelationType.ts +13 -3
- package/src/types/ElectrocardiogramSample.ts +13 -1
- package/src/types/HeartbeatSeries.ts +13 -1
- package/src/types/InterfaceVerification.ts +38 -1
- package/src/types/Medication.ts +19 -0
- package/src/types/MetadataEnums.ts +15 -0
- package/src/types/QuantitySample.ts +14 -2
- package/src/types/QuantityType.ts +22 -122
- package/src/types/QuantityTypeIdentifier.ts +5 -772
- package/src/types/QueryOptions.ts +11 -4
- package/src/types/Shared.ts +22 -49
- package/src/types/StateOfMind.ts +13 -1
- package/src/types/Subscriptions.ts +19 -13
- package/src/types/WeatherCondition.ts +1 -31
- package/src/types/Workouts.ts +46 -108
- package/src/types/index.ts +2 -0
- package/src/utils/getMostRecentQuantitySample.ts +4 -3
- package/src/utils/getMostRecentWorkout.ts +5 -2
- package/src/utils/getPreferredUnit.ts +5 -4
- package/src/utils/getQuantitySampleById.ts +4 -3
- package/src/utils/subscribeToQuantitySamples.ts +5 -3
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
|
@@ -18,7 +18,7 @@ public extension MedicationDoseEvent {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `MedicationDoseEvent`.
|
|
20
20
|
*/
|
|
21
|
-
init(scheduleType: MedicationDoseEventScheduleType, medicationConceptIdentifier: String, medicationDisplayText: String?, scheduledDate: Date?, scheduledDoseQuantity: Double?, doseQuantity: Double?, logStatus: MedicationDoseEventLogStatus, unit: String, sampleType: SampleType, startDate: Date, endDate: Date, hasUndeterminedDuration: Bool,
|
|
21
|
+
init(scheduleType: MedicationDoseEventScheduleType, medicationConceptIdentifier: String, medicationDisplayText: String?, scheduledDate: Date?, scheduledDoseQuantity: Double?, doseQuantity: Double?, logStatus: MedicationDoseEventLogStatus, unit: String, sampleType: SampleType, startDate: Date, endDate: Date, hasUndeterminedDuration: Bool, metadata: AnyMap, uuid: String, sourceRevision: SourceRevision, device: Device?) {
|
|
22
22
|
self.init(scheduleType, std.string(medicationConceptIdentifier), { () -> bridge.std__optional_std__string_ in
|
|
23
23
|
if let __unwrappedValue = medicationDisplayText {
|
|
24
24
|
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
@@ -43,132 +43,12 @@ public extension MedicationDoseEvent {
|
|
|
43
43
|
} else {
|
|
44
44
|
return .init()
|
|
45
45
|
}
|
|
46
|
-
}(), logStatus, std.string(unit), sampleType, startDate.toCpp(), endDate.toCpp(), hasUndeterminedDuration, { () -> bridge.
|
|
47
|
-
if let __unwrappedValue = metadataWeatherCondition {
|
|
48
|
-
return bridge.create_std__optional_WeatherCondition_(__unwrappedValue)
|
|
49
|
-
} else {
|
|
50
|
-
return .init()
|
|
51
|
-
}
|
|
52
|
-
}(), { () -> bridge.std__optional_Quantity_ in
|
|
53
|
-
if let __unwrappedValue = metadataWeatherHumidity {
|
|
54
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
55
|
-
} else {
|
|
56
|
-
return .init()
|
|
57
|
-
}
|
|
58
|
-
}(), { () -> bridge.std__optional_Quantity_ in
|
|
59
|
-
if let __unwrappedValue = metadataWeatherTemperature {
|
|
60
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
61
|
-
} else {
|
|
62
|
-
return .init()
|
|
63
|
-
}
|
|
64
|
-
}(), { () -> bridge.std__optional_InsulinDeliveryReason_ in
|
|
65
|
-
if let __unwrappedValue = metadataInsulinDeliveryReason {
|
|
66
|
-
return bridge.create_std__optional_InsulinDeliveryReason_(__unwrappedValue)
|
|
67
|
-
} else {
|
|
68
|
-
return .init()
|
|
69
|
-
}
|
|
70
|
-
}(), { () -> bridge.std__optional_HeartRateMotionContext_ in
|
|
71
|
-
if let __unwrappedValue = metadataHeartRateMotionContext {
|
|
72
|
-
return bridge.create_std__optional_HeartRateMotionContext_(__unwrappedValue)
|
|
73
|
-
} else {
|
|
74
|
-
return .init()
|
|
75
|
-
}
|
|
76
|
-
}(), std.string(uuid), sourceRevision, { () -> bridge.std__optional_Device_ in
|
|
46
|
+
}(), logStatus, std.string(unit), sampleType, startDate.toCpp(), endDate.toCpp(), hasUndeterminedDuration, metadata.cppPart, std.string(uuid), sourceRevision, { () -> bridge.std__optional_Device_ in
|
|
77
47
|
if let __unwrappedValue = device {
|
|
78
48
|
return bridge.create_std__optional_Device_(__unwrappedValue)
|
|
79
49
|
} else {
|
|
80
50
|
return .init()
|
|
81
51
|
}
|
|
82
|
-
}(), metadata.cppPart, { () -> bridge.std__optional_std__string_ in
|
|
83
|
-
if let __unwrappedValue = metadataExternalUUID {
|
|
84
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
85
|
-
} else {
|
|
86
|
-
return .init()
|
|
87
|
-
}
|
|
88
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
89
|
-
if let __unwrappedValue = metadataTimeZone {
|
|
90
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
91
|
-
} else {
|
|
92
|
-
return .init()
|
|
93
|
-
}
|
|
94
|
-
}(), { () -> bridge.std__optional_bool_ in
|
|
95
|
-
if let __unwrappedValue = metadataWasUserEntered {
|
|
96
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
97
|
-
} else {
|
|
98
|
-
return .init()
|
|
99
|
-
}
|
|
100
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
101
|
-
if let __unwrappedValue = metadataDeviceSerialNumber {
|
|
102
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
103
|
-
} else {
|
|
104
|
-
return .init()
|
|
105
|
-
}
|
|
106
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
107
|
-
if let __unwrappedValue = metadataUdiDeviceIdentifier {
|
|
108
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
109
|
-
} else {
|
|
110
|
-
return .init()
|
|
111
|
-
}
|
|
112
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
113
|
-
if let __unwrappedValue = metadataUdiProductionIdentifier {
|
|
114
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
115
|
-
} else {
|
|
116
|
-
return .init()
|
|
117
|
-
}
|
|
118
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
119
|
-
if let __unwrappedValue = metadataDigitalSignature {
|
|
120
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
121
|
-
} else {
|
|
122
|
-
return .init()
|
|
123
|
-
}
|
|
124
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
125
|
-
if let __unwrappedValue = metadataDeviceName {
|
|
126
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
127
|
-
} else {
|
|
128
|
-
return .init()
|
|
129
|
-
}
|
|
130
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
131
|
-
if let __unwrappedValue = metadataDeviceManufacturerName {
|
|
132
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
133
|
-
} else {
|
|
134
|
-
return .init()
|
|
135
|
-
}
|
|
136
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
137
|
-
if let __unwrappedValue = metadataSyncIdentifier {
|
|
138
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
139
|
-
} else {
|
|
140
|
-
return .init()
|
|
141
|
-
}
|
|
142
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
143
|
-
if let __unwrappedValue = metadataSyncVersion {
|
|
144
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
145
|
-
} else {
|
|
146
|
-
return .init()
|
|
147
|
-
}
|
|
148
|
-
}(), { () -> bridge.std__optional_bool_ in
|
|
149
|
-
if let __unwrappedValue = metadataWasTakenInLab {
|
|
150
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
151
|
-
} else {
|
|
152
|
-
return .init()
|
|
153
|
-
}
|
|
154
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
155
|
-
if let __unwrappedValue = metadataReferenceRangeLowerLimit {
|
|
156
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
157
|
-
} else {
|
|
158
|
-
return .init()
|
|
159
|
-
}
|
|
160
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
161
|
-
if let __unwrappedValue = metadataReferenceRangeUpperLimit {
|
|
162
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
163
|
-
} else {
|
|
164
|
-
return .init()
|
|
165
|
-
}
|
|
166
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
167
|
-
if let __unwrappedValue = metadataAlgorithmVersion {
|
|
168
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
169
|
-
} else {
|
|
170
|
-
return .init()
|
|
171
|
-
}
|
|
172
52
|
}())
|
|
173
53
|
}
|
|
174
54
|
|
|
@@ -261,28 +141,8 @@ public extension MedicationDoseEvent {
|
|
|
261
141
|
}
|
|
262
142
|
|
|
263
143
|
@inline(__always)
|
|
264
|
-
var
|
|
265
|
-
return
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
@inline(__always)
|
|
269
|
-
var metadataWeatherHumidity: Quantity? {
|
|
270
|
-
return self.__metadataWeatherHumidity.value
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
@inline(__always)
|
|
274
|
-
var metadataWeatherTemperature: Quantity? {
|
|
275
|
-
return self.__metadataWeatherTemperature.value
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
@inline(__always)
|
|
279
|
-
var metadataInsulinDeliveryReason: InsulinDeliveryReason? {
|
|
280
|
-
return self.__metadataInsulinDeliveryReason.has_value() ? self.__metadataInsulinDeliveryReason.pointee : nil
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
@inline(__always)
|
|
284
|
-
var metadataHeartRateMotionContext: HeartRateMotionContext? {
|
|
285
|
-
return self.__metadataHeartRateMotionContext.has_value() ? self.__metadataHeartRateMotionContext.pointee : nil
|
|
144
|
+
var metadata: AnyMap {
|
|
145
|
+
return AnyMap(withCppPart: self.__metadata)
|
|
286
146
|
}
|
|
287
147
|
|
|
288
148
|
@inline(__always)
|
|
@@ -299,189 +159,4 @@ public extension MedicationDoseEvent {
|
|
|
299
159
|
var device: Device? {
|
|
300
160
|
return self.__device.value
|
|
301
161
|
}
|
|
302
|
-
|
|
303
|
-
@inline(__always)
|
|
304
|
-
var metadata: AnyMap {
|
|
305
|
-
return AnyMap(withCppPart: self.__metadata)
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
@inline(__always)
|
|
309
|
-
var metadataExternalUUID: String? {
|
|
310
|
-
return { () -> String? in
|
|
311
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataExternalUUID) {
|
|
312
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataExternalUUID)
|
|
313
|
-
return String(__unwrapped)
|
|
314
|
-
} else {
|
|
315
|
-
return nil
|
|
316
|
-
}
|
|
317
|
-
}()
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
@inline(__always)
|
|
321
|
-
var metadataTimeZone: String? {
|
|
322
|
-
return { () -> String? in
|
|
323
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataTimeZone) {
|
|
324
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataTimeZone)
|
|
325
|
-
return String(__unwrapped)
|
|
326
|
-
} else {
|
|
327
|
-
return nil
|
|
328
|
-
}
|
|
329
|
-
}()
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
@inline(__always)
|
|
333
|
-
var metadataWasUserEntered: Bool? {
|
|
334
|
-
return { () -> Bool? in
|
|
335
|
-
if bridge.has_value_std__optional_bool_(self.__metadataWasUserEntered) {
|
|
336
|
-
let __unwrapped = bridge.get_std__optional_bool_(self.__metadataWasUserEntered)
|
|
337
|
-
return __unwrapped
|
|
338
|
-
} else {
|
|
339
|
-
return nil
|
|
340
|
-
}
|
|
341
|
-
}()
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
@inline(__always)
|
|
345
|
-
var metadataDeviceSerialNumber: String? {
|
|
346
|
-
return { () -> String? in
|
|
347
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceSerialNumber) {
|
|
348
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceSerialNumber)
|
|
349
|
-
return String(__unwrapped)
|
|
350
|
-
} else {
|
|
351
|
-
return nil
|
|
352
|
-
}
|
|
353
|
-
}()
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
@inline(__always)
|
|
357
|
-
var metadataUdiDeviceIdentifier: String? {
|
|
358
|
-
return { () -> String? in
|
|
359
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataUdiDeviceIdentifier) {
|
|
360
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataUdiDeviceIdentifier)
|
|
361
|
-
return String(__unwrapped)
|
|
362
|
-
} else {
|
|
363
|
-
return nil
|
|
364
|
-
}
|
|
365
|
-
}()
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
@inline(__always)
|
|
369
|
-
var metadataUdiProductionIdentifier: String? {
|
|
370
|
-
return { () -> String? in
|
|
371
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataUdiProductionIdentifier) {
|
|
372
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataUdiProductionIdentifier)
|
|
373
|
-
return String(__unwrapped)
|
|
374
|
-
} else {
|
|
375
|
-
return nil
|
|
376
|
-
}
|
|
377
|
-
}()
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
@inline(__always)
|
|
381
|
-
var metadataDigitalSignature: String? {
|
|
382
|
-
return { () -> String? in
|
|
383
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDigitalSignature) {
|
|
384
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDigitalSignature)
|
|
385
|
-
return String(__unwrapped)
|
|
386
|
-
} else {
|
|
387
|
-
return nil
|
|
388
|
-
}
|
|
389
|
-
}()
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
@inline(__always)
|
|
393
|
-
var metadataDeviceName: String? {
|
|
394
|
-
return { () -> String? in
|
|
395
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceName) {
|
|
396
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceName)
|
|
397
|
-
return String(__unwrapped)
|
|
398
|
-
} else {
|
|
399
|
-
return nil
|
|
400
|
-
}
|
|
401
|
-
}()
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
@inline(__always)
|
|
405
|
-
var metadataDeviceManufacturerName: String? {
|
|
406
|
-
return { () -> String? in
|
|
407
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceManufacturerName) {
|
|
408
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceManufacturerName)
|
|
409
|
-
return String(__unwrapped)
|
|
410
|
-
} else {
|
|
411
|
-
return nil
|
|
412
|
-
}
|
|
413
|
-
}()
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
@inline(__always)
|
|
417
|
-
var metadataSyncIdentifier: String? {
|
|
418
|
-
return { () -> String? in
|
|
419
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataSyncIdentifier) {
|
|
420
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataSyncIdentifier)
|
|
421
|
-
return String(__unwrapped)
|
|
422
|
-
} else {
|
|
423
|
-
return nil
|
|
424
|
-
}
|
|
425
|
-
}()
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
@inline(__always)
|
|
429
|
-
var metadataSyncVersion: Double? {
|
|
430
|
-
return { () -> Double? in
|
|
431
|
-
if bridge.has_value_std__optional_double_(self.__metadataSyncVersion) {
|
|
432
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataSyncVersion)
|
|
433
|
-
return __unwrapped
|
|
434
|
-
} else {
|
|
435
|
-
return nil
|
|
436
|
-
}
|
|
437
|
-
}()
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
@inline(__always)
|
|
441
|
-
var metadataWasTakenInLab: Bool? {
|
|
442
|
-
return { () -> Bool? in
|
|
443
|
-
if bridge.has_value_std__optional_bool_(self.__metadataWasTakenInLab) {
|
|
444
|
-
let __unwrapped = bridge.get_std__optional_bool_(self.__metadataWasTakenInLab)
|
|
445
|
-
return __unwrapped
|
|
446
|
-
} else {
|
|
447
|
-
return nil
|
|
448
|
-
}
|
|
449
|
-
}()
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
@inline(__always)
|
|
453
|
-
var metadataReferenceRangeLowerLimit: Double? {
|
|
454
|
-
return { () -> Double? in
|
|
455
|
-
if bridge.has_value_std__optional_double_(self.__metadataReferenceRangeLowerLimit) {
|
|
456
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataReferenceRangeLowerLimit)
|
|
457
|
-
return __unwrapped
|
|
458
|
-
} else {
|
|
459
|
-
return nil
|
|
460
|
-
}
|
|
461
|
-
}()
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
@inline(__always)
|
|
465
|
-
var metadataReferenceRangeUpperLimit: Double? {
|
|
466
|
-
return { () -> Double? in
|
|
467
|
-
if bridge.has_value_std__optional_double_(self.__metadataReferenceRangeUpperLimit) {
|
|
468
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataReferenceRangeUpperLimit)
|
|
469
|
-
return __unwrapped
|
|
470
|
-
} else {
|
|
471
|
-
return nil
|
|
472
|
-
}
|
|
473
|
-
}()
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
@inline(__always)
|
|
477
|
-
var metadataAlgorithmVersion: Double? {
|
|
478
|
-
return { () -> Double? in
|
|
479
|
-
if bridge.has_value_std__optional_double_(self.__metadataAlgorithmVersion) {
|
|
480
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataAlgorithmVersion)
|
|
481
|
-
return __unwrapped
|
|
482
|
-
} else {
|
|
483
|
-
return nil
|
|
484
|
-
}
|
|
485
|
-
}()
|
|
486
|
-
}
|
|
487
162
|
}
|