@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
|
@@ -19,68 +19,44 @@ public extension CategoryTypeIdentifier {
|
|
|
19
19
|
switch string {
|
|
20
20
|
case "HKCategoryTypeIdentifierAppleStandHour":
|
|
21
21
|
self = .hkcategorytypeidentifierapplestandhour
|
|
22
|
+
case "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent":
|
|
23
|
+
self = .hkcategorytypeidentifierheadphoneaudioexposureevent
|
|
22
24
|
case "HKCategoryTypeIdentifierHighHeartRateEvent":
|
|
23
25
|
self = .hkcategorytypeidentifierhighheartrateevent
|
|
26
|
+
case "HKCategoryTypeIdentifierHypertensionEvent":
|
|
27
|
+
self = .hkcategorytypeidentifierhypertensionevent
|
|
24
28
|
case "HKCategoryTypeIdentifierLowHeartRateEvent":
|
|
25
29
|
self = .hkcategorytypeidentifierlowheartrateevent
|
|
26
|
-
case "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent":
|
|
27
|
-
self = .hkcategorytypeidentifierheadphoneaudioexposureevent
|
|
28
|
-
case "HKCategoryTypeIdentifierSleepAnalysis":
|
|
29
|
-
self = .hkcategorytypeidentifiersleepanalysis
|
|
30
|
-
case "HKCategoryTypeIdentifierCervicalMucusQuality":
|
|
31
|
-
self = .hkcategorytypeidentifiercervicalmucusquality
|
|
32
|
-
case "HKCategoryTypeIdentifierOvulationTestResult":
|
|
33
|
-
self = .hkcategorytypeidentifierovulationtestresult
|
|
34
|
-
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
35
|
-
self = .hkcategorytypeidentifiermenstrualflow
|
|
36
|
-
case "HKCategoryTypeIdentifierIntermenstrualBleeding":
|
|
37
|
-
self = .hkcategorytypeidentifierintermenstrualbleeding
|
|
38
|
-
case "HKCategoryTypeIdentifierSexualActivity":
|
|
39
|
-
self = .hkcategorytypeidentifiersexualactivity
|
|
40
|
-
case "HKCategoryTypeIdentifierMindfulSession":
|
|
41
|
-
self = .hkcategorytypeidentifiermindfulsession
|
|
42
|
-
case "HKCategoryTypeIdentifierIrregularHeartRhythmEvent":
|
|
43
|
-
self = .hkcategorytypeidentifierirregularheartrhythmevent
|
|
44
|
-
case "HKCategoryTypeIdentifierAudioExposureEvent":
|
|
45
|
-
self = .hkcategorytypeidentifieraudioexposureevent
|
|
46
|
-
case "HKCategoryTypeIdentifierToothbrushingEvent":
|
|
47
|
-
self = .hkcategorytypeidentifiertoothbrushingevent
|
|
48
|
-
case "HKCategoryTypeIdentifierLowCardioFitnessEvent":
|
|
49
|
-
self = .hkcategorytypeidentifierlowcardiofitnessevent
|
|
50
|
-
case "HKCategoryTypeIdentifierContraceptive":
|
|
51
|
-
self = .hkcategorytypeidentifiercontraceptive
|
|
52
|
-
case "HKCategoryTypeIdentifierLactation":
|
|
53
|
-
self = .hkcategorytypeidentifierlactation
|
|
54
|
-
case "HKCategoryTypeIdentifierPregnancy":
|
|
55
|
-
self = .hkcategorytypeidentifierpregnancy
|
|
56
|
-
case "HKCategoryTypeIdentifierPregnancyTestResult":
|
|
57
|
-
self = .hkcategorytypeidentifierpregnancytestresult
|
|
58
|
-
case "HKCategoryTypeIdentifierProgesteroneTestResult":
|
|
59
|
-
self = .hkcategorytypeidentifierprogesteronetestresult
|
|
60
|
-
case "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent":
|
|
61
|
-
self = .hkcategorytypeidentifierenvironmentalaudioexposureevent
|
|
62
|
-
case "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent":
|
|
63
|
-
self = .hkcategorytypeidentifierapplewalkingsteadinessevent
|
|
64
|
-
case "HKCategoryTypeIdentifierHandwashingEvent":
|
|
65
|
-
self = .hkcategorytypeidentifierhandwashingevent
|
|
66
30
|
case "HKCategoryTypeIdentifierAbdominalCramps":
|
|
67
31
|
self = .hkcategorytypeidentifierabdominalcramps
|
|
68
32
|
case "HKCategoryTypeIdentifierAcne":
|
|
69
33
|
self = .hkcategorytypeidentifieracne
|
|
70
34
|
case "HKCategoryTypeIdentifierAppetiteChanges":
|
|
71
35
|
self = .hkcategorytypeidentifierappetitechanges
|
|
36
|
+
case "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent":
|
|
37
|
+
self = .hkcategorytypeidentifierapplewalkingsteadinessevent
|
|
38
|
+
case "HKCategoryTypeIdentifierAudioExposureEvent":
|
|
39
|
+
self = .hkcategorytypeidentifieraudioexposureevent
|
|
72
40
|
case "HKCategoryTypeIdentifierBladderIncontinence":
|
|
73
41
|
self = .hkcategorytypeidentifierbladderincontinence
|
|
42
|
+
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
43
|
+
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
44
|
+
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
45
|
+
self = .hkcategorytypeidentifierbleedingduringpregnancy
|
|
74
46
|
case "HKCategoryTypeIdentifierBloating":
|
|
75
47
|
self = .hkcategorytypeidentifierbloating
|
|
76
48
|
case "HKCategoryTypeIdentifierBreastPain":
|
|
77
49
|
self = .hkcategorytypeidentifierbreastpain
|
|
50
|
+
case "HKCategoryTypeIdentifierCervicalMucusQuality":
|
|
51
|
+
self = .hkcategorytypeidentifiercervicalmucusquality
|
|
78
52
|
case "HKCategoryTypeIdentifierChestTightnessOrPain":
|
|
79
53
|
self = .hkcategorytypeidentifierchesttightnessorpain
|
|
80
54
|
case "HKCategoryTypeIdentifierChills":
|
|
81
55
|
self = .hkcategorytypeidentifierchills
|
|
82
56
|
case "HKCategoryTypeIdentifierConstipation":
|
|
83
57
|
self = .hkcategorytypeidentifierconstipation
|
|
58
|
+
case "HKCategoryTypeIdentifierContraceptive":
|
|
59
|
+
self = .hkcategorytypeidentifiercontraceptive
|
|
84
60
|
case "HKCategoryTypeIdentifierCoughing":
|
|
85
61
|
self = .hkcategorytypeidentifiercoughing
|
|
86
62
|
case "HKCategoryTypeIdentifierDiarrhea":
|
|
@@ -89,6 +65,8 @@ public extension CategoryTypeIdentifier {
|
|
|
89
65
|
self = .hkcategorytypeidentifierdizziness
|
|
90
66
|
case "HKCategoryTypeIdentifierDrySkin":
|
|
91
67
|
self = .hkcategorytypeidentifierdryskin
|
|
68
|
+
case "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent":
|
|
69
|
+
self = .hkcategorytypeidentifierenvironmentalaudioexposureevent
|
|
92
70
|
case "HKCategoryTypeIdentifierFainting":
|
|
93
71
|
self = .hkcategorytypeidentifierfainting
|
|
94
72
|
case "HKCategoryTypeIdentifierFatigue":
|
|
@@ -99,62 +77,86 @@ public extension CategoryTypeIdentifier {
|
|
|
99
77
|
self = .hkcategorytypeidentifiergeneralizedbodyache
|
|
100
78
|
case "HKCategoryTypeIdentifierHairLoss":
|
|
101
79
|
self = .hkcategorytypeidentifierhairloss
|
|
80
|
+
case "HKCategoryTypeIdentifierHandwashingEvent":
|
|
81
|
+
self = .hkcategorytypeidentifierhandwashingevent
|
|
102
82
|
case "HKCategoryTypeIdentifierHeadache":
|
|
103
83
|
self = .hkcategorytypeidentifierheadache
|
|
104
84
|
case "HKCategoryTypeIdentifierHeartburn":
|
|
105
85
|
self = .hkcategorytypeidentifierheartburn
|
|
106
86
|
case "HKCategoryTypeIdentifierHotFlashes":
|
|
107
87
|
self = .hkcategorytypeidentifierhotflashes
|
|
88
|
+
case "HKCategoryTypeIdentifierInfrequentMenstrualCycles":
|
|
89
|
+
self = .hkcategorytypeidentifierinfrequentmenstrualcycles
|
|
90
|
+
case "HKCategoryTypeIdentifierIntermenstrualBleeding":
|
|
91
|
+
self = .hkcategorytypeidentifierintermenstrualbleeding
|
|
92
|
+
case "HKCategoryTypeIdentifierIrregularHeartRhythmEvent":
|
|
93
|
+
self = .hkcategorytypeidentifierirregularheartrhythmevent
|
|
94
|
+
case "HKCategoryTypeIdentifierIrregularMenstrualCycles":
|
|
95
|
+
self = .hkcategorytypeidentifierirregularmenstrualcycles
|
|
96
|
+
case "HKCategoryTypeIdentifierLactation":
|
|
97
|
+
self = .hkcategorytypeidentifierlactation
|
|
108
98
|
case "HKCategoryTypeIdentifierLossOfSmell":
|
|
109
99
|
self = .hkcategorytypeidentifierlossofsmell
|
|
110
100
|
case "HKCategoryTypeIdentifierLossOfTaste":
|
|
111
101
|
self = .hkcategorytypeidentifierlossoftaste
|
|
102
|
+
case "HKCategoryTypeIdentifierLowCardioFitnessEvent":
|
|
103
|
+
self = .hkcategorytypeidentifierlowcardiofitnessevent
|
|
112
104
|
case "HKCategoryTypeIdentifierLowerBackPain":
|
|
113
105
|
self = .hkcategorytypeidentifierlowerbackpain
|
|
114
106
|
case "HKCategoryTypeIdentifierMemoryLapse":
|
|
115
107
|
self = .hkcategorytypeidentifiermemorylapse
|
|
108
|
+
case "HKCategoryTypeIdentifierMenstrualFlow":
|
|
109
|
+
self = .hkcategorytypeidentifiermenstrualflow
|
|
110
|
+
case "HKCategoryTypeIdentifierMindfulSession":
|
|
111
|
+
self = .hkcategorytypeidentifiermindfulsession
|
|
116
112
|
case "HKCategoryTypeIdentifierMoodChanges":
|
|
117
113
|
self = .hkcategorytypeidentifiermoodchanges
|
|
118
114
|
case "HKCategoryTypeIdentifierNausea":
|
|
119
115
|
self = .hkcategorytypeidentifiernausea
|
|
120
116
|
case "HKCategoryTypeIdentifierNightSweats":
|
|
121
117
|
self = .hkcategorytypeidentifiernightsweats
|
|
118
|
+
case "HKCategoryTypeIdentifierOvulationTestResult":
|
|
119
|
+
self = .hkcategorytypeidentifierovulationtestresult
|
|
122
120
|
case "HKCategoryTypeIdentifierPelvicPain":
|
|
123
121
|
self = .hkcategorytypeidentifierpelvicpain
|
|
122
|
+
case "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding":
|
|
123
|
+
self = .hkcategorytypeidentifierpersistentintermenstrualbleeding
|
|
124
|
+
case "HKCategoryTypeIdentifierPregnancy":
|
|
125
|
+
self = .hkcategorytypeidentifierpregnancy
|
|
126
|
+
case "HKCategoryTypeIdentifierPregnancyTestResult":
|
|
127
|
+
self = .hkcategorytypeidentifierpregnancytestresult
|
|
128
|
+
case "HKCategoryTypeIdentifierProgesteroneTestResult":
|
|
129
|
+
self = .hkcategorytypeidentifierprogesteronetestresult
|
|
130
|
+
case "HKCategoryTypeIdentifierProlongedMenstrualPeriods":
|
|
131
|
+
self = .hkcategorytypeidentifierprolongedmenstrualperiods
|
|
124
132
|
case "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat":
|
|
125
133
|
self = .hkcategorytypeidentifierrapidpoundingorflutteringheartbeat
|
|
126
134
|
case "HKCategoryTypeIdentifierRunnyNose":
|
|
127
135
|
self = .hkcategorytypeidentifierrunnynose
|
|
136
|
+
case "HKCategoryTypeIdentifierSexualActivity":
|
|
137
|
+
self = .hkcategorytypeidentifiersexualactivity
|
|
128
138
|
case "HKCategoryTypeIdentifierShortnessOfBreath":
|
|
129
139
|
self = .hkcategorytypeidentifiershortnessofbreath
|
|
130
140
|
case "HKCategoryTypeIdentifierSinusCongestion":
|
|
131
141
|
self = .hkcategorytypeidentifiersinuscongestion
|
|
132
142
|
case "HKCategoryTypeIdentifierSkippedHeartbeat":
|
|
133
143
|
self = .hkcategorytypeidentifierskippedheartbeat
|
|
144
|
+
case "HKCategoryTypeIdentifierSleepAnalysis":
|
|
145
|
+
self = .hkcategorytypeidentifiersleepanalysis
|
|
146
|
+
case "HKCategoryTypeIdentifierSleepApneaEvent":
|
|
147
|
+
self = .hkcategorytypeidentifiersleepapneaevent
|
|
134
148
|
case "HKCategoryTypeIdentifierSleepChanges":
|
|
135
149
|
self = .hkcategorytypeidentifiersleepchanges
|
|
136
150
|
case "HKCategoryTypeIdentifierSoreThroat":
|
|
137
151
|
self = .hkcategorytypeidentifiersorethroat
|
|
152
|
+
case "HKCategoryTypeIdentifierToothbrushingEvent":
|
|
153
|
+
self = .hkcategorytypeidentifiertoothbrushingevent
|
|
138
154
|
case "HKCategoryTypeIdentifierVaginalDryness":
|
|
139
155
|
self = .hkcategorytypeidentifiervaginaldryness
|
|
140
156
|
case "HKCategoryTypeIdentifierVomiting":
|
|
141
157
|
self = .hkcategorytypeidentifiervomiting
|
|
142
158
|
case "HKCategoryTypeIdentifierWheezing":
|
|
143
159
|
self = .hkcategorytypeidentifierwheezing
|
|
144
|
-
case "HKCategoryTypeIdentifierBleedingAfterPregnancy":
|
|
145
|
-
self = .hkcategorytypeidentifierbleedingafterpregnancy
|
|
146
|
-
case "HKCategoryTypeIdentifierBleedingDuringPregnancy":
|
|
147
|
-
self = .hkcategorytypeidentifierbleedingduringpregnancy
|
|
148
|
-
case "HKCategoryTypeIdentifierInfrequentMenstrualCycles":
|
|
149
|
-
self = .hkcategorytypeidentifierinfrequentmenstrualcycles
|
|
150
|
-
case "HKCategoryTypeIdentifierIrregularMenstrualCycles":
|
|
151
|
-
self = .hkcategorytypeidentifierirregularmenstrualcycles
|
|
152
|
-
case "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding":
|
|
153
|
-
self = .hkcategorytypeidentifierpersistentintermenstrualbleeding
|
|
154
|
-
case "HKCategoryTypeIdentifierProlongedMenstrualPeriods":
|
|
155
|
-
self = .hkcategorytypeidentifierprolongedmenstrualperiods
|
|
156
|
-
case "HKCategoryTypeIdentifierSleepApneaEvent":
|
|
157
|
-
self = .hkcategorytypeidentifiersleepapneaevent
|
|
158
160
|
default:
|
|
159
161
|
return nil
|
|
160
162
|
}
|
|
@@ -167,68 +169,44 @@ public extension CategoryTypeIdentifier {
|
|
|
167
169
|
switch self {
|
|
168
170
|
case .hkcategorytypeidentifierapplestandhour:
|
|
169
171
|
return "HKCategoryTypeIdentifierAppleStandHour"
|
|
172
|
+
case .hkcategorytypeidentifierheadphoneaudioexposureevent:
|
|
173
|
+
return "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"
|
|
170
174
|
case .hkcategorytypeidentifierhighheartrateevent:
|
|
171
175
|
return "HKCategoryTypeIdentifierHighHeartRateEvent"
|
|
176
|
+
case .hkcategorytypeidentifierhypertensionevent:
|
|
177
|
+
return "HKCategoryTypeIdentifierHypertensionEvent"
|
|
172
178
|
case .hkcategorytypeidentifierlowheartrateevent:
|
|
173
179
|
return "HKCategoryTypeIdentifierLowHeartRateEvent"
|
|
174
|
-
case .hkcategorytypeidentifierheadphoneaudioexposureevent:
|
|
175
|
-
return "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"
|
|
176
|
-
case .hkcategorytypeidentifiersleepanalysis:
|
|
177
|
-
return "HKCategoryTypeIdentifierSleepAnalysis"
|
|
178
|
-
case .hkcategorytypeidentifiercervicalmucusquality:
|
|
179
|
-
return "HKCategoryTypeIdentifierCervicalMucusQuality"
|
|
180
|
-
case .hkcategorytypeidentifierovulationtestresult:
|
|
181
|
-
return "HKCategoryTypeIdentifierOvulationTestResult"
|
|
182
|
-
case .hkcategorytypeidentifiermenstrualflow:
|
|
183
|
-
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
184
|
-
case .hkcategorytypeidentifierintermenstrualbleeding:
|
|
185
|
-
return "HKCategoryTypeIdentifierIntermenstrualBleeding"
|
|
186
|
-
case .hkcategorytypeidentifiersexualactivity:
|
|
187
|
-
return "HKCategoryTypeIdentifierSexualActivity"
|
|
188
|
-
case .hkcategorytypeidentifiermindfulsession:
|
|
189
|
-
return "HKCategoryTypeIdentifierMindfulSession"
|
|
190
|
-
case .hkcategorytypeidentifierirregularheartrhythmevent:
|
|
191
|
-
return "HKCategoryTypeIdentifierIrregularHeartRhythmEvent"
|
|
192
|
-
case .hkcategorytypeidentifieraudioexposureevent:
|
|
193
|
-
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
194
|
-
case .hkcategorytypeidentifiertoothbrushingevent:
|
|
195
|
-
return "HKCategoryTypeIdentifierToothbrushingEvent"
|
|
196
|
-
case .hkcategorytypeidentifierlowcardiofitnessevent:
|
|
197
|
-
return "HKCategoryTypeIdentifierLowCardioFitnessEvent"
|
|
198
|
-
case .hkcategorytypeidentifiercontraceptive:
|
|
199
|
-
return "HKCategoryTypeIdentifierContraceptive"
|
|
200
|
-
case .hkcategorytypeidentifierlactation:
|
|
201
|
-
return "HKCategoryTypeIdentifierLactation"
|
|
202
|
-
case .hkcategorytypeidentifierpregnancy:
|
|
203
|
-
return "HKCategoryTypeIdentifierPregnancy"
|
|
204
|
-
case .hkcategorytypeidentifierpregnancytestresult:
|
|
205
|
-
return "HKCategoryTypeIdentifierPregnancyTestResult"
|
|
206
|
-
case .hkcategorytypeidentifierprogesteronetestresult:
|
|
207
|
-
return "HKCategoryTypeIdentifierProgesteroneTestResult"
|
|
208
|
-
case .hkcategorytypeidentifierenvironmentalaudioexposureevent:
|
|
209
|
-
return "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"
|
|
210
|
-
case .hkcategorytypeidentifierapplewalkingsteadinessevent:
|
|
211
|
-
return "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"
|
|
212
|
-
case .hkcategorytypeidentifierhandwashingevent:
|
|
213
|
-
return "HKCategoryTypeIdentifierHandwashingEvent"
|
|
214
180
|
case .hkcategorytypeidentifierabdominalcramps:
|
|
215
181
|
return "HKCategoryTypeIdentifierAbdominalCramps"
|
|
216
182
|
case .hkcategorytypeidentifieracne:
|
|
217
183
|
return "HKCategoryTypeIdentifierAcne"
|
|
218
184
|
case .hkcategorytypeidentifierappetitechanges:
|
|
219
185
|
return "HKCategoryTypeIdentifierAppetiteChanges"
|
|
186
|
+
case .hkcategorytypeidentifierapplewalkingsteadinessevent:
|
|
187
|
+
return "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent"
|
|
188
|
+
case .hkcategorytypeidentifieraudioexposureevent:
|
|
189
|
+
return "HKCategoryTypeIdentifierAudioExposureEvent"
|
|
220
190
|
case .hkcategorytypeidentifierbladderincontinence:
|
|
221
191
|
return "HKCategoryTypeIdentifierBladderIncontinence"
|
|
192
|
+
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
193
|
+
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
194
|
+
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
195
|
+
return "HKCategoryTypeIdentifierBleedingDuringPregnancy"
|
|
222
196
|
case .hkcategorytypeidentifierbloating:
|
|
223
197
|
return "HKCategoryTypeIdentifierBloating"
|
|
224
198
|
case .hkcategorytypeidentifierbreastpain:
|
|
225
199
|
return "HKCategoryTypeIdentifierBreastPain"
|
|
200
|
+
case .hkcategorytypeidentifiercervicalmucusquality:
|
|
201
|
+
return "HKCategoryTypeIdentifierCervicalMucusQuality"
|
|
226
202
|
case .hkcategorytypeidentifierchesttightnessorpain:
|
|
227
203
|
return "HKCategoryTypeIdentifierChestTightnessOrPain"
|
|
228
204
|
case .hkcategorytypeidentifierchills:
|
|
229
205
|
return "HKCategoryTypeIdentifierChills"
|
|
230
206
|
case .hkcategorytypeidentifierconstipation:
|
|
231
207
|
return "HKCategoryTypeIdentifierConstipation"
|
|
208
|
+
case .hkcategorytypeidentifiercontraceptive:
|
|
209
|
+
return "HKCategoryTypeIdentifierContraceptive"
|
|
232
210
|
case .hkcategorytypeidentifiercoughing:
|
|
233
211
|
return "HKCategoryTypeIdentifierCoughing"
|
|
234
212
|
case .hkcategorytypeidentifierdiarrhea:
|
|
@@ -237,6 +215,8 @@ public extension CategoryTypeIdentifier {
|
|
|
237
215
|
return "HKCategoryTypeIdentifierDizziness"
|
|
238
216
|
case .hkcategorytypeidentifierdryskin:
|
|
239
217
|
return "HKCategoryTypeIdentifierDrySkin"
|
|
218
|
+
case .hkcategorytypeidentifierenvironmentalaudioexposureevent:
|
|
219
|
+
return "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent"
|
|
240
220
|
case .hkcategorytypeidentifierfainting:
|
|
241
221
|
return "HKCategoryTypeIdentifierFainting"
|
|
242
222
|
case .hkcategorytypeidentifierfatigue:
|
|
@@ -247,62 +227,86 @@ public extension CategoryTypeIdentifier {
|
|
|
247
227
|
return "HKCategoryTypeIdentifierGeneralizedBodyAche"
|
|
248
228
|
case .hkcategorytypeidentifierhairloss:
|
|
249
229
|
return "HKCategoryTypeIdentifierHairLoss"
|
|
230
|
+
case .hkcategorytypeidentifierhandwashingevent:
|
|
231
|
+
return "HKCategoryTypeIdentifierHandwashingEvent"
|
|
250
232
|
case .hkcategorytypeidentifierheadache:
|
|
251
233
|
return "HKCategoryTypeIdentifierHeadache"
|
|
252
234
|
case .hkcategorytypeidentifierheartburn:
|
|
253
235
|
return "HKCategoryTypeIdentifierHeartburn"
|
|
254
236
|
case .hkcategorytypeidentifierhotflashes:
|
|
255
237
|
return "HKCategoryTypeIdentifierHotFlashes"
|
|
238
|
+
case .hkcategorytypeidentifierinfrequentmenstrualcycles:
|
|
239
|
+
return "HKCategoryTypeIdentifierInfrequentMenstrualCycles"
|
|
240
|
+
case .hkcategorytypeidentifierintermenstrualbleeding:
|
|
241
|
+
return "HKCategoryTypeIdentifierIntermenstrualBleeding"
|
|
242
|
+
case .hkcategorytypeidentifierirregularheartrhythmevent:
|
|
243
|
+
return "HKCategoryTypeIdentifierIrregularHeartRhythmEvent"
|
|
244
|
+
case .hkcategorytypeidentifierirregularmenstrualcycles:
|
|
245
|
+
return "HKCategoryTypeIdentifierIrregularMenstrualCycles"
|
|
246
|
+
case .hkcategorytypeidentifierlactation:
|
|
247
|
+
return "HKCategoryTypeIdentifierLactation"
|
|
256
248
|
case .hkcategorytypeidentifierlossofsmell:
|
|
257
249
|
return "HKCategoryTypeIdentifierLossOfSmell"
|
|
258
250
|
case .hkcategorytypeidentifierlossoftaste:
|
|
259
251
|
return "HKCategoryTypeIdentifierLossOfTaste"
|
|
252
|
+
case .hkcategorytypeidentifierlowcardiofitnessevent:
|
|
253
|
+
return "HKCategoryTypeIdentifierLowCardioFitnessEvent"
|
|
260
254
|
case .hkcategorytypeidentifierlowerbackpain:
|
|
261
255
|
return "HKCategoryTypeIdentifierLowerBackPain"
|
|
262
256
|
case .hkcategorytypeidentifiermemorylapse:
|
|
263
257
|
return "HKCategoryTypeIdentifierMemoryLapse"
|
|
258
|
+
case .hkcategorytypeidentifiermenstrualflow:
|
|
259
|
+
return "HKCategoryTypeIdentifierMenstrualFlow"
|
|
260
|
+
case .hkcategorytypeidentifiermindfulsession:
|
|
261
|
+
return "HKCategoryTypeIdentifierMindfulSession"
|
|
264
262
|
case .hkcategorytypeidentifiermoodchanges:
|
|
265
263
|
return "HKCategoryTypeIdentifierMoodChanges"
|
|
266
264
|
case .hkcategorytypeidentifiernausea:
|
|
267
265
|
return "HKCategoryTypeIdentifierNausea"
|
|
268
266
|
case .hkcategorytypeidentifiernightsweats:
|
|
269
267
|
return "HKCategoryTypeIdentifierNightSweats"
|
|
268
|
+
case .hkcategorytypeidentifierovulationtestresult:
|
|
269
|
+
return "HKCategoryTypeIdentifierOvulationTestResult"
|
|
270
270
|
case .hkcategorytypeidentifierpelvicpain:
|
|
271
271
|
return "HKCategoryTypeIdentifierPelvicPain"
|
|
272
|
+
case .hkcategorytypeidentifierpersistentintermenstrualbleeding:
|
|
273
|
+
return "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"
|
|
274
|
+
case .hkcategorytypeidentifierpregnancy:
|
|
275
|
+
return "HKCategoryTypeIdentifierPregnancy"
|
|
276
|
+
case .hkcategorytypeidentifierpregnancytestresult:
|
|
277
|
+
return "HKCategoryTypeIdentifierPregnancyTestResult"
|
|
278
|
+
case .hkcategorytypeidentifierprogesteronetestresult:
|
|
279
|
+
return "HKCategoryTypeIdentifierProgesteroneTestResult"
|
|
280
|
+
case .hkcategorytypeidentifierprolongedmenstrualperiods:
|
|
281
|
+
return "HKCategoryTypeIdentifierProlongedMenstrualPeriods"
|
|
272
282
|
case .hkcategorytypeidentifierrapidpoundingorflutteringheartbeat:
|
|
273
283
|
return "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat"
|
|
274
284
|
case .hkcategorytypeidentifierrunnynose:
|
|
275
285
|
return "HKCategoryTypeIdentifierRunnyNose"
|
|
286
|
+
case .hkcategorytypeidentifiersexualactivity:
|
|
287
|
+
return "HKCategoryTypeIdentifierSexualActivity"
|
|
276
288
|
case .hkcategorytypeidentifiershortnessofbreath:
|
|
277
289
|
return "HKCategoryTypeIdentifierShortnessOfBreath"
|
|
278
290
|
case .hkcategorytypeidentifiersinuscongestion:
|
|
279
291
|
return "HKCategoryTypeIdentifierSinusCongestion"
|
|
280
292
|
case .hkcategorytypeidentifierskippedheartbeat:
|
|
281
293
|
return "HKCategoryTypeIdentifierSkippedHeartbeat"
|
|
294
|
+
case .hkcategorytypeidentifiersleepanalysis:
|
|
295
|
+
return "HKCategoryTypeIdentifierSleepAnalysis"
|
|
296
|
+
case .hkcategorytypeidentifiersleepapneaevent:
|
|
297
|
+
return "HKCategoryTypeIdentifierSleepApneaEvent"
|
|
282
298
|
case .hkcategorytypeidentifiersleepchanges:
|
|
283
299
|
return "HKCategoryTypeIdentifierSleepChanges"
|
|
284
300
|
case .hkcategorytypeidentifiersorethroat:
|
|
285
301
|
return "HKCategoryTypeIdentifierSoreThroat"
|
|
302
|
+
case .hkcategorytypeidentifiertoothbrushingevent:
|
|
303
|
+
return "HKCategoryTypeIdentifierToothbrushingEvent"
|
|
286
304
|
case .hkcategorytypeidentifiervaginaldryness:
|
|
287
305
|
return "HKCategoryTypeIdentifierVaginalDryness"
|
|
288
306
|
case .hkcategorytypeidentifiervomiting:
|
|
289
307
|
return "HKCategoryTypeIdentifierVomiting"
|
|
290
308
|
case .hkcategorytypeidentifierwheezing:
|
|
291
309
|
return "HKCategoryTypeIdentifierWheezing"
|
|
292
|
-
case .hkcategorytypeidentifierbleedingafterpregnancy:
|
|
293
|
-
return "HKCategoryTypeIdentifierBleedingAfterPregnancy"
|
|
294
|
-
case .hkcategorytypeidentifierbleedingduringpregnancy:
|
|
295
|
-
return "HKCategoryTypeIdentifierBleedingDuringPregnancy"
|
|
296
|
-
case .hkcategorytypeidentifierinfrequentmenstrualcycles:
|
|
297
|
-
return "HKCategoryTypeIdentifierInfrequentMenstrualCycles"
|
|
298
|
-
case .hkcategorytypeidentifierirregularmenstrualcycles:
|
|
299
|
-
return "HKCategoryTypeIdentifierIrregularMenstrualCycles"
|
|
300
|
-
case .hkcategorytypeidentifierpersistentintermenstrualbleeding:
|
|
301
|
-
return "HKCategoryTypeIdentifierPersistentIntermenstrualBleeding"
|
|
302
|
-
case .hkcategorytypeidentifierprolongedmenstrualperiods:
|
|
303
|
-
return "HKCategoryTypeIdentifierProlongedMenstrualPeriods"
|
|
304
|
-
case .hkcategorytypeidentifiersleepapneaevent:
|
|
305
|
-
return "HKCategoryTypeIdentifierSleepApneaEvent"
|
|
306
310
|
}
|
|
307
311
|
}
|
|
308
312
|
}
|