@kingstinct/react-native-healthkit 13.4.0 → 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 +3 -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 +18 -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 +2 -115
- 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/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++/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 +44 -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
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// CategoryTypeIdentifierWriteable.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Represents the JS union `CategoryTypeIdentifierWriteable`, backed by a C++ enum.
|
|
10
|
+
*/
|
|
11
|
+
public typealias CategoryTypeIdentifierWriteable = margelo.nitro.healthkit.CategoryTypeIdentifierWriteable
|
|
12
|
+
|
|
13
|
+
public extension CategoryTypeIdentifierWriteable {
|
|
14
|
+
/**
|
|
15
|
+
* Get a CategoryTypeIdentifierWriteable for the given String value, or
|
|
16
|
+
* return `nil` if the given value was invalid/unknown.
|
|
17
|
+
*/
|
|
18
|
+
init?(fromString string: String) {
|
|
19
|
+
switch string {
|
|
20
|
+
case "HKCategoryTypeIdentifierAbdominalCramps":
|
|
21
|
+
self = .hkcategorytypeidentifierabdominalcramps
|
|
22
|
+
case "HKCategoryTypeIdentifierAcne":
|
|
23
|
+
self = .hkcategorytypeidentifieracne
|
|
24
|
+
case "HKCategoryTypeIdentifierAppetiteChanges":
|
|
25
|
+
self = .hkcategorytypeidentifierappetitechanges
|
|
26
|
+
case "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent":
|
|
27
|
+
self = .hkcategorytypeidentifierapplewalkingsteadinessevent
|
|
28
|
+
case "HKCategoryTypeIdentifierAudioExposureEvent":
|
|
29
|
+
self = .hkcategorytypeidentifieraudioexposureevent
|
|
30
|
+
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
31
|
+
self = .hkcategorytypeidentifierbladderincontinence
|
|
32
|
+
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
33
|
+
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
34
|
+
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
35
|
+
self = .hkcategorytypeidentifierbleedingduringpregnancy
|
|
36
|
+
case "HKCategoryTypeIdentifierBloating":
|
|
37
|
+
self = .hkcategorytypeidentifierbloating
|
|
38
|
+
case "HKCategoryTypeIdentifierBreastPain":
|
|
39
|
+
self = .hkcategorytypeidentifierbreastpain
|
|
40
|
+
case "HKCategoryTypeIdentifierCervicalMucusQuality":
|
|
41
|
+
self = .hkcategorytypeidentifiercervicalmucusquality
|
|
42
|
+
case "HKCategoryTypeIdentifierChestTightnessOrPain":
|
|
43
|
+
self = .hkcategorytypeidentifierchesttightnessorpain
|
|
44
|
+
case "HKCategoryTypeIdentifierChills":
|
|
45
|
+
self = .hkcategorytypeidentifierchills
|
|
46
|
+
case "HKCategoryTypeIdentifierConstipation":
|
|
47
|
+
self = .hkcategorytypeidentifierconstipation
|
|
48
|
+
case "HKCategoryTypeIdentifierContraceptive":
|
|
49
|
+
self = .hkcategorytypeidentifiercontraceptive
|
|
50
|
+
case "HKCategoryTypeIdentifierCoughing":
|
|
51
|
+
self = .hkcategorytypeidentifiercoughing
|
|
52
|
+
case "HKCategoryTypeIdentifierDiarrhea":
|
|
53
|
+
self = .hkcategorytypeidentifierdiarrhea
|
|
54
|
+
case "HKCategoryTypeIdentifierDizziness":
|
|
55
|
+
self = .hkcategorytypeidentifierdizziness
|
|
56
|
+
case "HKCategoryTypeIdentifierDrySkin":
|
|
57
|
+
self = .hkcategorytypeidentifierdryskin
|
|
58
|
+
case "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent":
|
|
59
|
+
self = .hkcategorytypeidentifierenvironmentalaudioexposureevent
|
|
60
|
+
case "HKCategoryTypeIdentifierFainting":
|
|
61
|
+
self = .hkcategorytypeidentifierfainting
|
|
62
|
+
case "HKCategoryTypeIdentifierFatigue":
|
|
63
|
+
self = .hkcategorytypeidentifierfatigue
|
|
64
|
+
case "HKCategoryTypeIdentifierFever":
|
|
65
|
+
self = .hkcategorytypeidentifierfever
|
|
66
|
+
case "HKCategoryTypeIdentifierGeneralizedBodyAche":
|
|
67
|
+
self = .hkcategorytypeidentifiergeneralizedbodyache
|
|
68
|
+
case "HKCategoryTypeIdentifierHairLoss":
|
|
69
|
+
self = .hkcategorytypeidentifierhairloss
|
|
70
|
+
case "HKCategoryTypeIdentifierHandwashingEvent":
|
|
71
|
+
self = .hkcategorytypeidentifierhandwashingevent
|
|
72
|
+
case "HKCategoryTypeIdentifierHeadache":
|
|
73
|
+
self = .hkcategorytypeidentifierheadache
|
|
74
|
+
case "HKCategoryTypeIdentifierHeartburn":
|
|
75
|
+
self = .hkcategorytypeidentifierheartburn
|
|
76
|
+
case "HKCategoryTypeIdentifierHotFlashes":
|
|
77
|
+
self = .hkcategorytypeidentifierhotflashes
|
|
78
|
+
case "HKCategoryTypeIdentifierInfrequentMenstrualCycles":
|
|
79
|
+
self = .hkcategorytypeidentifierinfrequentmenstrualcycles
|
|
80
|
+
case "HKCategoryTypeIdentifierIntermenstrualBleeding":
|
|
81
|
+
self = .hkcategorytypeidentifierintermenstrualbleeding
|
|
82
|
+
case "HKCategoryTypeIdentifierIrregularHeartRhythmEvent":
|
|
83
|
+
self = .hkcategorytypeidentifierirregularheartrhythmevent
|
|
84
|
+
case "HKCategoryTypeIdentifierIrregularMenstrualCycles":
|
|
85
|
+
self = .hkcategorytypeidentifierirregularmenstrualcycles
|
|
86
|
+
case "HKCategoryTypeIdentifierLactation":
|
|
87
|
+
self = .hkcategorytypeidentifierlactation
|
|
88
|
+
case "HKCategoryTypeIdentifierLossOfSmell":
|
|
89
|
+
self = .hkcategorytypeidentifierlossofsmell
|
|
90
|
+
case "HKCategoryTypeIdentifierLossOfTaste":
|
|
91
|
+
self = .hkcategorytypeidentifierlossoftaste
|
|
92
|
+
case "HKCategoryTypeIdentifierLowCardioFitnessEvent":
|
|
93
|
+
self = .hkcategorytypeidentifierlowcardiofitnessevent
|
|
94
|
+
case "HKCategoryTypeIdentifierLowerBackPain":
|
|
95
|
+
self = .hkcategorytypeidentifierlowerbackpain
|
|
96
|
+
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
97
|
+
self = .hkcategorytypeidentifiermemorylapse
|
|
98
|
+
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
99
|
+
self = .hkcategorytypeidentifiermenstrualflow
|
|
100
|
+
case "HKCategoryTypeIdentifierMindfulSession":
|
|
101
|
+
self = .hkcategorytypeidentifiermindfulsession
|
|
102
|
+
case "HKCategoryTypeIdentifierMoodChanges":
|
|
103
|
+
self = .hkcategorytypeidentifiermoodchanges
|
|
104
|
+
case "HKCategoryTypeIdentifierNausea":
|
|
105
|
+
self = .hkcategorytypeidentifiernausea
|
|
106
|
+
case "HKCategoryTypeIdentifierNightSweats":
|
|
107
|
+
self = .hkcategorytypeidentifiernightsweats
|
|
108
|
+
case "HKCategoryTypeIdentifierOvulationTestResult":
|
|
109
|
+
self = .hkcategorytypeidentifierovulationtestresult
|
|
110
|
+
case "HKCategoryTypeIdentifierPelvicPain":
|
|
111
|
+
self = .hkcategorytypeidentifierpelvicpain
|
|
112
|
+
case "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding":
|
|
113
|
+
self = .hkcategorytypeidentifierpersistentintermenstrualbleeding
|
|
114
|
+
case "HKCategoryTypeIdentifierPregnancy":
|
|
115
|
+
self = .hkcategorytypeidentifierpregnancy
|
|
116
|
+
case "HKCategoryTypeIdentifierPregnancyTestResult":
|
|
117
|
+
self = .hkcategorytypeidentifierpregnancytestresult
|
|
118
|
+
case "HKCategoryTypeIdentifierProgesteroneTestResult":
|
|
119
|
+
self = .hkcategorytypeidentifierprogesteronetestresult
|
|
120
|
+
case "HKCategoryTypeIdentifierProlongedMenstrualPeriods":
|
|
121
|
+
self = .hkcategorytypeidentifierprolongedmenstrualperiods
|
|
122
|
+
case "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat":
|
|
123
|
+
self = .hkcategorytypeidentifierrapidpoundingorflutteringheartbeat
|
|
124
|
+
case "HKCategoryTypeIdentifierRunnyNose":
|
|
125
|
+
self = .hkcategorytypeidentifierrunnynose
|
|
126
|
+
case "HKCategoryTypeIdentifierSexualActivity":
|
|
127
|
+
self = .hkcategorytypeidentifiersexualactivity
|
|
128
|
+
case "HKCategoryTypeIdentifierShortnessOfBreath":
|
|
129
|
+
self = .hkcategorytypeidentifiershortnessofbreath
|
|
130
|
+
case "HKCategoryTypeIdentifierSinusCongestion":
|
|
131
|
+
self = .hkcategorytypeidentifiersinuscongestion
|
|
132
|
+
case "HKCategoryTypeIdentifierSkippedHeartbeat":
|
|
133
|
+
self = .hkcategorytypeidentifierskippedheartbeat
|
|
134
|
+
case "HKCategoryTypeIdentifierSleepAnalysis":
|
|
135
|
+
self = .hkcategorytypeidentifiersleepanalysis
|
|
136
|
+
case "HKCategoryTypeIdentifierSleepApneaEvent":
|
|
137
|
+
self = .hkcategorytypeidentifiersleepapneaevent
|
|
138
|
+
case "HKCategoryTypeIdentifierSleepChanges":
|
|
139
|
+
self = .hkcategorytypeidentifiersleepchanges
|
|
140
|
+
case "HKCategoryTypeIdentifierSoreThroat":
|
|
141
|
+
self = .hkcategorytypeidentifiersorethroat
|
|
142
|
+
case "HKCategoryTypeIdentifierToothbrushingEvent":
|
|
143
|
+
self = .hkcategorytypeidentifiertoothbrushingevent
|
|
144
|
+
case "HKCategoryTypeIdentifierVaginalDryness":
|
|
145
|
+
self = .hkcategorytypeidentifiervaginaldryness
|
|
146
|
+
case "HKCategoryTypeIdentifierVomiting":
|
|
147
|
+
self = .hkcategorytypeidentifiervomiting
|
|
148
|
+
case "HKCategoryTypeIdentifierWheezing":
|
|
149
|
+
self = .hkcategorytypeidentifierwheezing
|
|
150
|
+
default:
|
|
151
|
+
return nil
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Get the String value this CategoryTypeIdentifierWriteable represents.
|
|
157
|
+
*/
|
|
158
|
+
var stringValue: String {
|
|
159
|
+
switch self {
|
|
160
|
+
case .hkcategorytypeidentifierabdominalcramps:
|
|
161
|
+
return "HKCategoryTypeIdentifierAbdominalCramps"
|
|
162
|
+
case .hkcategorytypeidentifieracne:
|
|
163
|
+
return "HKCategoryTypeIdentifierAcne"
|
|
164
|
+
case .hkcategorytypeidentifierappetitechanges:
|
|
165
|
+
return "HKCategoryTypeIdentifierAppetiteChanges"
|
|
166
|
+
case .hkcategorytypeidentifierapplewalkingsteadinessevent:
|
|
167
|
+
return "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"
|
|
168
|
+
case .hkcategorytypeidentifieraudioexposureevent:
|
|
169
|
+
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
170
|
+
case .hkcategorytypeidentifierbladderincontinence:
|
|
171
|
+
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
172
|
+
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
173
|
+
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
174
|
+
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
175
|
+
return "HKCategoryTypeIdentifierBleedingDuringPregnancy"
|
|
176
|
+
case .hkcategorytypeidentifierbloating:
|
|
177
|
+
return "HKCategoryTypeIdentifierBloating"
|
|
178
|
+
case .hkcategorytypeidentifierbreastpain:
|
|
179
|
+
return "HKCategoryTypeIdentifierBreastPain"
|
|
180
|
+
case .hkcategorytypeidentifiercervicalmucusquality:
|
|
181
|
+
return "HKCategoryTypeIdentifierCervicalMucusQuality"
|
|
182
|
+
case .hkcategorytypeidentifierchesttightnessorpain:
|
|
183
|
+
return "HKCategoryTypeIdentifierChestTightnessOrPain"
|
|
184
|
+
case .hkcategorytypeidentifierchills:
|
|
185
|
+
return "HKCategoryTypeIdentifierChills"
|
|
186
|
+
case .hkcategorytypeidentifierconstipation:
|
|
187
|
+
return "HKCategoryTypeIdentifierConstipation"
|
|
188
|
+
case .hkcategorytypeidentifiercontraceptive:
|
|
189
|
+
return "HKCategoryTypeIdentifierContraceptive"
|
|
190
|
+
case .hkcategorytypeidentifiercoughing:
|
|
191
|
+
return "HKCategoryTypeIdentifierCoughing"
|
|
192
|
+
case .hkcategorytypeidentifierdiarrhea:
|
|
193
|
+
return "HKCategoryTypeIdentifierDiarrhea"
|
|
194
|
+
case .hkcategorytypeidentifierdizziness:
|
|
195
|
+
return "HKCategoryTypeIdentifierDizziness"
|
|
196
|
+
case .hkcategorytypeidentifierdryskin:
|
|
197
|
+
return "HKCategoryTypeIdentifierDrySkin"
|
|
198
|
+
case .hkcategorytypeidentifierenvironmentalaudioexposureevent:
|
|
199
|
+
return "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"
|
|
200
|
+
case .hkcategorytypeidentifierfainting:
|
|
201
|
+
return "HKCategoryTypeIdentifierFainting"
|
|
202
|
+
case .hkcategorytypeidentifierfatigue:
|
|
203
|
+
return "HKCategoryTypeIdentifierFatigue"
|
|
204
|
+
case .hkcategorytypeidentifierfever:
|
|
205
|
+
return "HKCategoryTypeIdentifierFever"
|
|
206
|
+
case .hkcategorytypeidentifiergeneralizedbodyache:
|
|
207
|
+
return "HKCategoryTypeIdentifierGeneralizedBodyAche"
|
|
208
|
+
case .hkcategorytypeidentifierhairloss:
|
|
209
|
+
return "HKCategoryTypeIdentifierHairLoss"
|
|
210
|
+
case .hkcategorytypeidentifierhandwashingevent:
|
|
211
|
+
return "HKCategoryTypeIdentifierHandwashingEvent"
|
|
212
|
+
case .hkcategorytypeidentifierheadache:
|
|
213
|
+
return "HKCategoryTypeIdentifierHeadache"
|
|
214
|
+
case .hkcategorytypeidentifierheartburn:
|
|
215
|
+
return "HKCategoryTypeIdentifierHeartburn"
|
|
216
|
+
case .hkcategorytypeidentifierhotflashes:
|
|
217
|
+
return "HKCategoryTypeIdentifierHotFlashes"
|
|
218
|
+
case .hkcategorytypeidentifierinfrequentmenstrualcycles:
|
|
219
|
+
return "HKCategoryTypeIdentifierInfrequentMenstrualCycles"
|
|
220
|
+
case .hkcategorytypeidentifierintermenstrualbleeding:
|
|
221
|
+
return "HKCategoryTypeIdentifierIntermenstrualBleeding"
|
|
222
|
+
case .hkcategorytypeidentifierirregularheartrhythmevent:
|
|
223
|
+
return "HKCategoryTypeIdentifierIrregularHeartRhythmEvent"
|
|
224
|
+
case .hkcategorytypeidentifierirregularmenstrualcycles:
|
|
225
|
+
return "HKCategoryTypeIdentifierIrregularMenstrualCycles"
|
|
226
|
+
case .hkcategorytypeidentifierlactation:
|
|
227
|
+
return "HKCategoryTypeIdentifierLactation"
|
|
228
|
+
case .hkcategorytypeidentifierlossofsmell:
|
|
229
|
+
return "HKCategoryTypeIdentifierLossOfSmell"
|
|
230
|
+
case .hkcategorytypeidentifierlossoftaste:
|
|
231
|
+
return "HKCategoryTypeIdentifierLossOfTaste"
|
|
232
|
+
case .hkcategorytypeidentifierlowcardiofitnessevent:
|
|
233
|
+
return "HKCategoryTypeIdentifierLowCardioFitnessEvent"
|
|
234
|
+
case .hkcategorytypeidentifierlowerbackpain:
|
|
235
|
+
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
236
|
+
case .hkcategorytypeidentifiermemorylapse:
|
|
237
|
+
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
238
|
+
case .hkcategorytypeidentifiermenstrualflow:
|
|
239
|
+
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
240
|
+
case .hkcategorytypeidentifiermindfulsession:
|
|
241
|
+
return "HKCategoryTypeIdentifierMindfulSession"
|
|
242
|
+
case .hkcategorytypeidentifiermoodchanges:
|
|
243
|
+
return "HKCategoryTypeIdentifierMoodChanges"
|
|
244
|
+
case .hkcategorytypeidentifiernausea:
|
|
245
|
+
return "HKCategoryTypeIdentifierNausea"
|
|
246
|
+
case .hkcategorytypeidentifiernightsweats:
|
|
247
|
+
return "HKCategoryTypeIdentifierNightSweats"
|
|
248
|
+
case .hkcategorytypeidentifierovulationtestresult:
|
|
249
|
+
return "HKCategoryTypeIdentifierOvulationTestResult"
|
|
250
|
+
case .hkcategorytypeidentifierpelvicpain:
|
|
251
|
+
return "HKCategoryTypeIdentifierPelvicPain"
|
|
252
|
+
case .hkcategorytypeidentifierpersistentintermenstrualbleeding:
|
|
253
|
+
return "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"
|
|
254
|
+
case .hkcategorytypeidentifierpregnancy:
|
|
255
|
+
return "HKCategoryTypeIdentifierPregnancy"
|
|
256
|
+
case .hkcategorytypeidentifierpregnancytestresult:
|
|
257
|
+
return "HKCategoryTypeIdentifierPregnancyTestResult"
|
|
258
|
+
case .hkcategorytypeidentifierprogesteronetestresult:
|
|
259
|
+
return "HKCategoryTypeIdentifierProgesteroneTestResult"
|
|
260
|
+
case .hkcategorytypeidentifierprolongedmenstrualperiods:
|
|
261
|
+
return "HKCategoryTypeIdentifierProlongedMenstrualPeriods"
|
|
262
|
+
case .hkcategorytypeidentifierrapidpoundingorflutteringheartbeat:
|
|
263
|
+
return "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat"
|
|
264
|
+
case .hkcategorytypeidentifierrunnynose:
|
|
265
|
+
return "HKCategoryTypeIdentifierRunnyNose"
|
|
266
|
+
case .hkcategorytypeidentifiersexualactivity:
|
|
267
|
+
return "HKCategoryTypeIdentifierSexualActivity"
|
|
268
|
+
case .hkcategorytypeidentifiershortnessofbreath:
|
|
269
|
+
return "HKCategoryTypeIdentifierShortnessOfBreath"
|
|
270
|
+
case .hkcategorytypeidentifiersinuscongestion:
|
|
271
|
+
return "HKCategoryTypeIdentifierSinusCongestion"
|
|
272
|
+
case .hkcategorytypeidentifierskippedheartbeat:
|
|
273
|
+
return "HKCategoryTypeIdentifierSkippedHeartbeat"
|
|
274
|
+
case .hkcategorytypeidentifiersleepanalysis:
|
|
275
|
+
return "HKCategoryTypeIdentifierSleepAnalysis"
|
|
276
|
+
case .hkcategorytypeidentifiersleepapneaevent:
|
|
277
|
+
return "HKCategoryTypeIdentifierSleepApneaEvent"
|
|
278
|
+
case .hkcategorytypeidentifiersleepchanges:
|
|
279
|
+
return "HKCategoryTypeIdentifierSleepChanges"
|
|
280
|
+
case .hkcategorytypeidentifiersorethroat:
|
|
281
|
+
return "HKCategoryTypeIdentifierSoreThroat"
|
|
282
|
+
case .hkcategorytypeidentifiertoothbrushingevent:
|
|
283
|
+
return "HKCategoryTypeIdentifierToothbrushingEvent"
|
|
284
|
+
case .hkcategorytypeidentifiervaginaldryness:
|
|
285
|
+
return "HKCategoryTypeIdentifierVaginalDryness"
|
|
286
|
+
case .hkcategorytypeidentifiervomiting:
|
|
287
|
+
return "HKCategoryTypeIdentifierVomiting"
|
|
288
|
+
case .hkcategorytypeidentifierwheezing:
|
|
289
|
+
return "HKCategoryTypeIdentifierWheezing"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
@@ -18,7 +18,7 @@ public extension CorrelationSample {
|
|
|
18
18
|
/**
|
|
19
19
|
* Create a new instance of `CorrelationSample`.
|
|
20
20
|
*/
|
|
21
|
-
init(correlationType: CorrelationTypeIdentifier, objects: [CorrelationObject],
|
|
21
|
+
init(correlationType: CorrelationTypeIdentifier, objects: [CorrelationObject], sampleType: SampleType, startDate: Date, endDate: Date, hasUndeterminedDuration: Bool, metadata: AnyMap, uuid: String, sourceRevision: SourceRevision, device: Device?) {
|
|
22
22
|
self.init(correlationType, { () -> bridge.std__vector_std__variant_CategorySample__QuantitySample__ in
|
|
23
23
|
var __vector = bridge.create_std__vector_std__variant_CategorySample__QuantitySample__(objects.count)
|
|
24
24
|
for __item in objects {
|
|
@@ -32,138 +32,12 @@ public extension CorrelationSample {
|
|
|
32
32
|
}().variant)
|
|
33
33
|
}
|
|
34
34
|
return __vector
|
|
35
|
-
}(), { () -> bridge.
|
|
36
|
-
if let __unwrappedValue = metadataFoodType {
|
|
37
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
38
|
-
} else {
|
|
39
|
-
return .init()
|
|
40
|
-
}
|
|
41
|
-
}(), sampleType, startDate.toCpp(), endDate.toCpp(), hasUndeterminedDuration, { () -> bridge.std__optional_WeatherCondition_ in
|
|
42
|
-
if let __unwrappedValue = metadataWeatherCondition {
|
|
43
|
-
return bridge.create_std__optional_WeatherCondition_(__unwrappedValue)
|
|
44
|
-
} else {
|
|
45
|
-
return .init()
|
|
46
|
-
}
|
|
47
|
-
}(), { () -> bridge.std__optional_Quantity_ in
|
|
48
|
-
if let __unwrappedValue = metadataWeatherHumidity {
|
|
49
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
50
|
-
} else {
|
|
51
|
-
return .init()
|
|
52
|
-
}
|
|
53
|
-
}(), { () -> bridge.std__optional_Quantity_ in
|
|
54
|
-
if let __unwrappedValue = metadataWeatherTemperature {
|
|
55
|
-
return bridge.create_std__optional_Quantity_(__unwrappedValue)
|
|
56
|
-
} else {
|
|
57
|
-
return .init()
|
|
58
|
-
}
|
|
59
|
-
}(), { () -> bridge.std__optional_InsulinDeliveryReason_ in
|
|
60
|
-
if let __unwrappedValue = metadataInsulinDeliveryReason {
|
|
61
|
-
return bridge.create_std__optional_InsulinDeliveryReason_(__unwrappedValue)
|
|
62
|
-
} else {
|
|
63
|
-
return .init()
|
|
64
|
-
}
|
|
65
|
-
}(), { () -> bridge.std__optional_HeartRateMotionContext_ in
|
|
66
|
-
if let __unwrappedValue = metadataHeartRateMotionContext {
|
|
67
|
-
return bridge.create_std__optional_HeartRateMotionContext_(__unwrappedValue)
|
|
68
|
-
} else {
|
|
69
|
-
return .init()
|
|
70
|
-
}
|
|
71
|
-
}(), std.string(uuid), sourceRevision, { () -> bridge.std__optional_Device_ in
|
|
35
|
+
}(), sampleType, startDate.toCpp(), endDate.toCpp(), hasUndeterminedDuration, metadata.cppPart, std.string(uuid), sourceRevision, { () -> bridge.std__optional_Device_ in
|
|
72
36
|
if let __unwrappedValue = device {
|
|
73
37
|
return bridge.create_std__optional_Device_(__unwrappedValue)
|
|
74
38
|
} else {
|
|
75
39
|
return .init()
|
|
76
40
|
}
|
|
77
|
-
}(), metadata.cppPart, { () -> bridge.std__optional_std__string_ in
|
|
78
|
-
if let __unwrappedValue = metadataExternalUUID {
|
|
79
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
80
|
-
} else {
|
|
81
|
-
return .init()
|
|
82
|
-
}
|
|
83
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
84
|
-
if let __unwrappedValue = metadataTimeZone {
|
|
85
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
86
|
-
} else {
|
|
87
|
-
return .init()
|
|
88
|
-
}
|
|
89
|
-
}(), { () -> bridge.std__optional_bool_ in
|
|
90
|
-
if let __unwrappedValue = metadataWasUserEntered {
|
|
91
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
92
|
-
} else {
|
|
93
|
-
return .init()
|
|
94
|
-
}
|
|
95
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
96
|
-
if let __unwrappedValue = metadataDeviceSerialNumber {
|
|
97
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
98
|
-
} else {
|
|
99
|
-
return .init()
|
|
100
|
-
}
|
|
101
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
102
|
-
if let __unwrappedValue = metadataUdiDeviceIdentifier {
|
|
103
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
104
|
-
} else {
|
|
105
|
-
return .init()
|
|
106
|
-
}
|
|
107
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
108
|
-
if let __unwrappedValue = metadataUdiProductionIdentifier {
|
|
109
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
110
|
-
} else {
|
|
111
|
-
return .init()
|
|
112
|
-
}
|
|
113
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
114
|
-
if let __unwrappedValue = metadataDigitalSignature {
|
|
115
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
116
|
-
} else {
|
|
117
|
-
return .init()
|
|
118
|
-
}
|
|
119
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
120
|
-
if let __unwrappedValue = metadataDeviceName {
|
|
121
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
122
|
-
} else {
|
|
123
|
-
return .init()
|
|
124
|
-
}
|
|
125
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
126
|
-
if let __unwrappedValue = metadataDeviceManufacturerName {
|
|
127
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
128
|
-
} else {
|
|
129
|
-
return .init()
|
|
130
|
-
}
|
|
131
|
-
}(), { () -> bridge.std__optional_std__string_ in
|
|
132
|
-
if let __unwrappedValue = metadataSyncIdentifier {
|
|
133
|
-
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
134
|
-
} else {
|
|
135
|
-
return .init()
|
|
136
|
-
}
|
|
137
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
138
|
-
if let __unwrappedValue = metadataSyncVersion {
|
|
139
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
140
|
-
} else {
|
|
141
|
-
return .init()
|
|
142
|
-
}
|
|
143
|
-
}(), { () -> bridge.std__optional_bool_ in
|
|
144
|
-
if let __unwrappedValue = metadataWasTakenInLab {
|
|
145
|
-
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
146
|
-
} else {
|
|
147
|
-
return .init()
|
|
148
|
-
}
|
|
149
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
150
|
-
if let __unwrappedValue = metadataReferenceRangeLowerLimit {
|
|
151
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
152
|
-
} else {
|
|
153
|
-
return .init()
|
|
154
|
-
}
|
|
155
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
156
|
-
if let __unwrappedValue = metadataReferenceRangeUpperLimit {
|
|
157
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
158
|
-
} else {
|
|
159
|
-
return .init()
|
|
160
|
-
}
|
|
161
|
-
}(), { () -> bridge.std__optional_double_ in
|
|
162
|
-
if let __unwrappedValue = metadataAlgorithmVersion {
|
|
163
|
-
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
164
|
-
} else {
|
|
165
|
-
return .init()
|
|
166
|
-
}
|
|
167
41
|
}())
|
|
168
42
|
}
|
|
169
43
|
|
|
@@ -189,18 +63,6 @@ public extension CorrelationSample {
|
|
|
189
63
|
}() })
|
|
190
64
|
}
|
|
191
65
|
|
|
192
|
-
@inline(__always)
|
|
193
|
-
var metadataFoodType: String? {
|
|
194
|
-
return { () -> String? in
|
|
195
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataFoodType) {
|
|
196
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataFoodType)
|
|
197
|
-
return String(__unwrapped)
|
|
198
|
-
} else {
|
|
199
|
-
return nil
|
|
200
|
-
}
|
|
201
|
-
}()
|
|
202
|
-
}
|
|
203
|
-
|
|
204
66
|
@inline(__always)
|
|
205
67
|
var sampleType: SampleType {
|
|
206
68
|
return self.__sampleType
|
|
@@ -222,28 +84,8 @@ public extension CorrelationSample {
|
|
|
222
84
|
}
|
|
223
85
|
|
|
224
86
|
@inline(__always)
|
|
225
|
-
var
|
|
226
|
-
return
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
@inline(__always)
|
|
230
|
-
var metadataWeatherHumidity: Quantity? {
|
|
231
|
-
return self.__metadataWeatherHumidity.value
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
@inline(__always)
|
|
235
|
-
var metadataWeatherTemperature: Quantity? {
|
|
236
|
-
return self.__metadataWeatherTemperature.value
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
@inline(__always)
|
|
240
|
-
var metadataInsulinDeliveryReason: InsulinDeliveryReason? {
|
|
241
|
-
return self.__metadataInsulinDeliveryReason.has_value() ? self.__metadataInsulinDeliveryReason.pointee : nil
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@inline(__always)
|
|
245
|
-
var metadataHeartRateMotionContext: HeartRateMotionContext? {
|
|
246
|
-
return self.__metadataHeartRateMotionContext.has_value() ? self.__metadataHeartRateMotionContext.pointee : nil
|
|
87
|
+
var metadata: AnyMap {
|
|
88
|
+
return AnyMap(withCppPart: self.__metadata)
|
|
247
89
|
}
|
|
248
90
|
|
|
249
91
|
@inline(__always)
|
|
@@ -260,189 +102,4 @@ public extension CorrelationSample {
|
|
|
260
102
|
var device: Device? {
|
|
261
103
|
return self.__device.value
|
|
262
104
|
}
|
|
263
|
-
|
|
264
|
-
@inline(__always)
|
|
265
|
-
var metadata: AnyMap {
|
|
266
|
-
return AnyMap(withCppPart: self.__metadata)
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
@inline(__always)
|
|
270
|
-
var metadataExternalUUID: String? {
|
|
271
|
-
return { () -> String? in
|
|
272
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataExternalUUID) {
|
|
273
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataExternalUUID)
|
|
274
|
-
return String(__unwrapped)
|
|
275
|
-
} else {
|
|
276
|
-
return nil
|
|
277
|
-
}
|
|
278
|
-
}()
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
@inline(__always)
|
|
282
|
-
var metadataTimeZone: String? {
|
|
283
|
-
return { () -> String? in
|
|
284
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataTimeZone) {
|
|
285
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataTimeZone)
|
|
286
|
-
return String(__unwrapped)
|
|
287
|
-
} else {
|
|
288
|
-
return nil
|
|
289
|
-
}
|
|
290
|
-
}()
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@inline(__always)
|
|
294
|
-
var metadataWasUserEntered: Bool? {
|
|
295
|
-
return { () -> Bool? in
|
|
296
|
-
if bridge.has_value_std__optional_bool_(self.__metadataWasUserEntered) {
|
|
297
|
-
let __unwrapped = bridge.get_std__optional_bool_(self.__metadataWasUserEntered)
|
|
298
|
-
return __unwrapped
|
|
299
|
-
} else {
|
|
300
|
-
return nil
|
|
301
|
-
}
|
|
302
|
-
}()
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
@inline(__always)
|
|
306
|
-
var metadataDeviceSerialNumber: String? {
|
|
307
|
-
return { () -> String? in
|
|
308
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceSerialNumber) {
|
|
309
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceSerialNumber)
|
|
310
|
-
return String(__unwrapped)
|
|
311
|
-
} else {
|
|
312
|
-
return nil
|
|
313
|
-
}
|
|
314
|
-
}()
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
@inline(__always)
|
|
318
|
-
var metadataUdiDeviceIdentifier: String? {
|
|
319
|
-
return { () -> String? in
|
|
320
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataUdiDeviceIdentifier) {
|
|
321
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataUdiDeviceIdentifier)
|
|
322
|
-
return String(__unwrapped)
|
|
323
|
-
} else {
|
|
324
|
-
return nil
|
|
325
|
-
}
|
|
326
|
-
}()
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
@inline(__always)
|
|
330
|
-
var metadataUdiProductionIdentifier: String? {
|
|
331
|
-
return { () -> String? in
|
|
332
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataUdiProductionIdentifier) {
|
|
333
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataUdiProductionIdentifier)
|
|
334
|
-
return String(__unwrapped)
|
|
335
|
-
} else {
|
|
336
|
-
return nil
|
|
337
|
-
}
|
|
338
|
-
}()
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
@inline(__always)
|
|
342
|
-
var metadataDigitalSignature: String? {
|
|
343
|
-
return { () -> String? in
|
|
344
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDigitalSignature) {
|
|
345
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDigitalSignature)
|
|
346
|
-
return String(__unwrapped)
|
|
347
|
-
} else {
|
|
348
|
-
return nil
|
|
349
|
-
}
|
|
350
|
-
}()
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
@inline(__always)
|
|
354
|
-
var metadataDeviceName: String? {
|
|
355
|
-
return { () -> String? in
|
|
356
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceName) {
|
|
357
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceName)
|
|
358
|
-
return String(__unwrapped)
|
|
359
|
-
} else {
|
|
360
|
-
return nil
|
|
361
|
-
}
|
|
362
|
-
}()
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
@inline(__always)
|
|
366
|
-
var metadataDeviceManufacturerName: String? {
|
|
367
|
-
return { () -> String? in
|
|
368
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataDeviceManufacturerName) {
|
|
369
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataDeviceManufacturerName)
|
|
370
|
-
return String(__unwrapped)
|
|
371
|
-
} else {
|
|
372
|
-
return nil
|
|
373
|
-
}
|
|
374
|
-
}()
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@inline(__always)
|
|
378
|
-
var metadataSyncIdentifier: String? {
|
|
379
|
-
return { () -> String? in
|
|
380
|
-
if bridge.has_value_std__optional_std__string_(self.__metadataSyncIdentifier) {
|
|
381
|
-
let __unwrapped = bridge.get_std__optional_std__string_(self.__metadataSyncIdentifier)
|
|
382
|
-
return String(__unwrapped)
|
|
383
|
-
} else {
|
|
384
|
-
return nil
|
|
385
|
-
}
|
|
386
|
-
}()
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
@inline(__always)
|
|
390
|
-
var metadataSyncVersion: Double? {
|
|
391
|
-
return { () -> Double? in
|
|
392
|
-
if bridge.has_value_std__optional_double_(self.__metadataSyncVersion) {
|
|
393
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataSyncVersion)
|
|
394
|
-
return __unwrapped
|
|
395
|
-
} else {
|
|
396
|
-
return nil
|
|
397
|
-
}
|
|
398
|
-
}()
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
@inline(__always)
|
|
402
|
-
var metadataWasTakenInLab: Bool? {
|
|
403
|
-
return { () -> Bool? in
|
|
404
|
-
if bridge.has_value_std__optional_bool_(self.__metadataWasTakenInLab) {
|
|
405
|
-
let __unwrapped = bridge.get_std__optional_bool_(self.__metadataWasTakenInLab)
|
|
406
|
-
return __unwrapped
|
|
407
|
-
} else {
|
|
408
|
-
return nil
|
|
409
|
-
}
|
|
410
|
-
}()
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
@inline(__always)
|
|
414
|
-
var metadataReferenceRangeLowerLimit: Double? {
|
|
415
|
-
return { () -> Double? in
|
|
416
|
-
if bridge.has_value_std__optional_double_(self.__metadataReferenceRangeLowerLimit) {
|
|
417
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataReferenceRangeLowerLimit)
|
|
418
|
-
return __unwrapped
|
|
419
|
-
} else {
|
|
420
|
-
return nil
|
|
421
|
-
}
|
|
422
|
-
}()
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
@inline(__always)
|
|
426
|
-
var metadataReferenceRangeUpperLimit: Double? {
|
|
427
|
-
return { () -> Double? in
|
|
428
|
-
if bridge.has_value_std__optional_double_(self.__metadataReferenceRangeUpperLimit) {
|
|
429
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataReferenceRangeUpperLimit)
|
|
430
|
-
return __unwrapped
|
|
431
|
-
} else {
|
|
432
|
-
return nil
|
|
433
|
-
}
|
|
434
|
-
}()
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
@inline(__always)
|
|
438
|
-
var metadataAlgorithmVersion: Double? {
|
|
439
|
-
return { () -> Double? in
|
|
440
|
-
if bridge.has_value_std__optional_double_(self.__metadataAlgorithmVersion) {
|
|
441
|
-
let __unwrapped = bridge.get_std__optional_double_(self.__metadataAlgorithmVersion)
|
|
442
|
-
return __unwrapped
|
|
443
|
-
} else {
|
|
444
|
-
return nil
|
|
445
|
-
}
|
|
446
|
-
}()
|
|
447
|
-
}
|
|
448
105
|
}
|