@kingstinct/react-native-healthkit 7.0.4 → 7.0.6
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/README.md +7 -31
- package/ios/ReactNativeHealthkit.swift +3 -2
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +5 -0
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/commonjs/index.ios.js +121 -15
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/commonjs/index.js +3 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/jest.setup.js +1 -0
- package/lib/commonjs/jest.setup.js.map +1 -1
- package/lib/commonjs/native-types.js +36 -27
- package/lib/commonjs/native-types.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentCategorySample.js +1 -1
- package/lib/commonjs/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +5 -1
- package/lib/commonjs/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.js +6 -0
- package/lib/module/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/module/index.ios.js +119 -15
- package/lib/module/index.ios.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/jest.setup.js +1 -0
- package/lib/module/jest.setup.js.map +1 -1
- package/lib/module/native-types.js +36 -27
- package/lib/module/native-types.js.map +1 -1
- package/lib/module/types.js +59 -0
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/getMostRecentCategorySample.js +1 -1
- package/lib/module/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/module/utils/getMostRecentQuantitySample.js +5 -1
- package/lib/module/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/typescript/src/hooks/useIsHealthDataAvailable.d.ts +5 -0
- package/lib/typescript/src/index.d.ts +50 -3
- package/lib/typescript/src/index.ios.d.ts +84 -3
- package/lib/typescript/src/native-types.d.ts +515 -34
- package/lib/typescript/src/types.d.ts +49 -0
- package/lib/typescript/src/utils/getMostRecentCategorySample.d.ts +2 -1
- package/lib/typescript/src/utils/getMostRecentQuantitySample.d.ts +2 -1
- package/package.json +1 -1
- package/src/hooks/useIsHealthDataAvailable.ts +5 -0
- package/src/index.ios.tsx +132 -21
- package/src/index.tsx +6 -4
- package/src/jest.setup.ts +1 -0
- package/src/native-types.ts +615 -81
- package/src/types.ts +51 -2
- package/src/utils/getMostRecentCategorySample.ts +3 -2
- package/src/utils/getMostRecentQuantitySample.ts +9 -2
|
@@ -1,123 +1,588 @@
|
|
|
1
1
|
import { NativeEventEmitter } from 'react-native';
|
|
2
2
|
import type { EmitterSubscription } from 'react-native';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Represents a workout type identifier.
|
|
5
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}
|
|
5
6
|
*/
|
|
6
7
|
export declare const HKWorkoutTypeIdentifier: "HKWorkoutTypeIdentifier";
|
|
8
|
+
/**
|
|
9
|
+
* Represents an audiogram type identifier.
|
|
10
|
+
*/
|
|
7
11
|
export declare const HKAudiogramTypeIdentifier: "HKAudiogramTypeIdentifier";
|
|
8
12
|
/**
|
|
9
|
-
*
|
|
13
|
+
* Represents a workout route type identifier.
|
|
14
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}
|
|
10
15
|
*/
|
|
11
16
|
export declare const HKWorkoutRouteTypeIdentifier: "HKWorkoutRouteTypeIdentifier";
|
|
12
17
|
export declare const HKDataTypeIdentifierHeartbeatSeries: "HKDataTypeIdentifierHeartbeatSeries";
|
|
13
18
|
/**
|
|
14
|
-
*
|
|
19
|
+
* Represents a quantity type identifier.
|
|
20
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}
|
|
15
21
|
*/
|
|
16
22
|
export declare enum HKQuantityTypeIdentifier {
|
|
23
|
+
/**
|
|
24
|
+
* Body Mass Index
|
|
25
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}
|
|
26
|
+
*/
|
|
17
27
|
bodyMassIndex = "HKQuantityTypeIdentifierBodyMassIndex",
|
|
28
|
+
/**
|
|
29
|
+
* Body Fat Percentage
|
|
30
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}
|
|
31
|
+
*/
|
|
18
32
|
bodyFatPercentage = "HKQuantityTypeIdentifierBodyFatPercentage",
|
|
33
|
+
/**
|
|
34
|
+
* Height
|
|
35
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}
|
|
36
|
+
*/
|
|
19
37
|
height = "HKQuantityTypeIdentifierHeight",
|
|
38
|
+
/**
|
|
39
|
+
* Body Mass
|
|
40
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}
|
|
41
|
+
*/
|
|
20
42
|
bodyMass = "HKQuantityTypeIdentifierBodyMass",
|
|
43
|
+
/**
|
|
44
|
+
* Lean Body Mass
|
|
45
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}
|
|
46
|
+
*/
|
|
21
47
|
leanBodyMass = "HKQuantityTypeIdentifierLeanBodyMass",
|
|
48
|
+
/**
|
|
49
|
+
* Waist Circumference
|
|
50
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}
|
|
51
|
+
*/
|
|
22
52
|
waistCircumference = "HKQuantityTypeIdentifierWaistCircumference",
|
|
53
|
+
/**
|
|
54
|
+
* Step Count
|
|
55
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}
|
|
56
|
+
*/
|
|
23
57
|
stepCount = "HKQuantityTypeIdentifierStepCount",
|
|
58
|
+
/**
|
|
59
|
+
* Distance Walking Running
|
|
60
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}
|
|
61
|
+
*/
|
|
24
62
|
distanceWalkingRunning = "HKQuantityTypeIdentifierDistanceWalkingRunning",
|
|
63
|
+
/**
|
|
64
|
+
* Distance Cycling
|
|
65
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}
|
|
66
|
+
*/
|
|
25
67
|
distanceCycling = "HKQuantityTypeIdentifierDistanceCycling",
|
|
68
|
+
/**
|
|
69
|
+
* Distance Wheelchair
|
|
70
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}
|
|
71
|
+
*/
|
|
26
72
|
distanceWheelchair = "HKQuantityTypeIdentifierDistanceWheelchair",
|
|
73
|
+
/**
|
|
74
|
+
* Basal Energy Burned
|
|
75
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}
|
|
76
|
+
*/
|
|
27
77
|
basalEnergyBurned = "HKQuantityTypeIdentifierBasalEnergyBurned",
|
|
78
|
+
/**
|
|
79
|
+
* Active Energy Burned
|
|
80
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}
|
|
81
|
+
*/
|
|
28
82
|
activeEnergyBurned = "HKQuantityTypeIdentifierActiveEnergyBurned",
|
|
83
|
+
/**
|
|
84
|
+
* Flights Climbed
|
|
85
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}
|
|
86
|
+
*/
|
|
29
87
|
flightsClimbed = "HKQuantityTypeIdentifierFlightsClimbed",
|
|
88
|
+
/**
|
|
89
|
+
* Nike Fuel
|
|
90
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}
|
|
91
|
+
*/
|
|
30
92
|
nikeFuel = "HKQuantityTypeIdentifierNikeFuel",
|
|
93
|
+
/**
|
|
94
|
+
* Apple Exercise Time
|
|
95
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}
|
|
96
|
+
*/
|
|
31
97
|
appleExerciseTime = "HKQuantityTypeIdentifierAppleExerciseTime",
|
|
98
|
+
/**
|
|
99
|
+
* Push Count
|
|
100
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}
|
|
101
|
+
*/
|
|
32
102
|
pushCount = "HKQuantityTypeIdentifierPushCount",
|
|
103
|
+
/**
|
|
104
|
+
* Distance Swimming
|
|
105
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}
|
|
106
|
+
*/
|
|
33
107
|
distanceSwimming = "HKQuantityTypeIdentifierDistanceSwimming",
|
|
108
|
+
/**
|
|
109
|
+
* Swimming Stroke Count
|
|
110
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}
|
|
111
|
+
*/
|
|
34
112
|
swimmingStrokeCount = "HKQuantityTypeIdentifierSwimmingStrokeCount",
|
|
113
|
+
/**
|
|
114
|
+
* VO2 Max
|
|
115
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}
|
|
116
|
+
*/
|
|
35
117
|
vo2Max = "HKQuantityTypeIdentifierVO2Max",
|
|
118
|
+
/**
|
|
119
|
+
* Distance Downhill Snow Sports
|
|
120
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}
|
|
121
|
+
*/
|
|
36
122
|
distanceDownhillSnowSports = "HKQuantityTypeIdentifierDistanceDownhillSnowSports",
|
|
123
|
+
/**
|
|
124
|
+
* Apple Stand Time
|
|
125
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}
|
|
126
|
+
*/
|
|
37
127
|
appleStandTime = "HKQuantityTypeIdentifierAppleStandTime",
|
|
128
|
+
/**
|
|
129
|
+
* Heart Rate
|
|
130
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}
|
|
131
|
+
*/
|
|
38
132
|
heartRate = "HKQuantityTypeIdentifierHeartRate",
|
|
133
|
+
/**
|
|
134
|
+
* Body Temperature
|
|
135
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}
|
|
136
|
+
*/
|
|
39
137
|
bodyTemperature = "HKQuantityTypeIdentifierBodyTemperature",
|
|
138
|
+
/**
|
|
139
|
+
* Basal Body Temperature
|
|
140
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}
|
|
141
|
+
*/
|
|
40
142
|
basalBodyTemperature = "HKQuantityTypeIdentifierBasalBodyTemperature",
|
|
143
|
+
/**
|
|
144
|
+
* Blood Pressure Systolic
|
|
145
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}
|
|
146
|
+
*/
|
|
41
147
|
bloodPressureSystolic = "HKQuantityTypeIdentifierBloodPressureSystolic",
|
|
148
|
+
/**
|
|
149
|
+
* Blood Pressure Diastolic
|
|
150
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}
|
|
151
|
+
*/
|
|
42
152
|
bloodPressureDiastolic = "HKQuantityTypeIdentifierBloodPressureDiastolic",
|
|
153
|
+
/**
|
|
154
|
+
* Respiratory Rate
|
|
155
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}
|
|
156
|
+
*/
|
|
43
157
|
respiratoryRate = "HKQuantityTypeIdentifierRespiratoryRate",
|
|
158
|
+
/**
|
|
159
|
+
* Resting Heart Rate
|
|
160
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}
|
|
161
|
+
*/
|
|
44
162
|
restingHeartRate = "HKQuantityTypeIdentifierRestingHeartRate",
|
|
163
|
+
/**
|
|
164
|
+
* Walking Heart Rate Average
|
|
165
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}
|
|
166
|
+
* @since iOS 11.0
|
|
167
|
+
*/
|
|
45
168
|
walkingHeartRateAverage = "HKQuantityTypeIdentifierWalkingHeartRateAverage",
|
|
169
|
+
/**
|
|
170
|
+
* Heart Rate Variability SDNN
|
|
171
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}
|
|
172
|
+
* @since iOS 11.0
|
|
173
|
+
*/
|
|
46
174
|
heartRateVariabilitySDNN = "HKQuantityTypeIdentifierHeartRateVariabilitySDNN",
|
|
175
|
+
/**
|
|
176
|
+
* Oxygen Saturation
|
|
177
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}
|
|
178
|
+
* @since iOS 8.0
|
|
179
|
+
*/
|
|
47
180
|
oxygenSaturation = "HKQuantityTypeIdentifierOxygenSaturation",
|
|
181
|
+
/**
|
|
182
|
+
* Peripheral Perfusion Index
|
|
183
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}
|
|
184
|
+
* @since iOS 8.0
|
|
185
|
+
*/
|
|
48
186
|
peripheralPerfusionIndex = "HKQuantityTypeIdentifierPeripheralPerfusionIndex",
|
|
187
|
+
/**
|
|
188
|
+
* Blood Glucose
|
|
189
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}
|
|
190
|
+
*/
|
|
49
191
|
bloodGlucose = "HKQuantityTypeIdentifierBloodGlucose",
|
|
192
|
+
/**
|
|
193
|
+
* Number Of Times Fallen
|
|
194
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}
|
|
195
|
+
*/
|
|
50
196
|
numberOfTimesFallen = "HKQuantityTypeIdentifierNumberOfTimesFallen",
|
|
197
|
+
/**
|
|
198
|
+
* Electrodermal Activity
|
|
199
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}
|
|
200
|
+
*/
|
|
51
201
|
electrodermalActivity = "HKQuantityTypeIdentifierElectrodermalActivity",
|
|
202
|
+
/**
|
|
203
|
+
* Inhaler Usage
|
|
204
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}
|
|
205
|
+
* @since iOS 8
|
|
206
|
+
*/
|
|
52
207
|
inhalerUsage = "HKQuantityTypeIdentifierInhalerUsage",
|
|
208
|
+
/**
|
|
209
|
+
* Insulin Delivery
|
|
210
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}
|
|
211
|
+
* @since iOS 11
|
|
212
|
+
*/
|
|
53
213
|
insulinDelivery = "HKQuantityTypeIdentifierInsulinDelivery",
|
|
214
|
+
/**
|
|
215
|
+
* Blood Alcohol Content
|
|
216
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}
|
|
217
|
+
* @since iOS 8
|
|
218
|
+
*/
|
|
54
219
|
bloodAlcoholContent = "HKQuantityTypeIdentifierBloodAlcoholContent",
|
|
220
|
+
/**
|
|
221
|
+
* Forced Vital Capacity
|
|
222
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}
|
|
223
|
+
*/
|
|
55
224
|
forcedVitalCapacity = "HKQuantityTypeIdentifierForcedVitalCapacity",
|
|
225
|
+
/**
|
|
226
|
+
* Forced Expiratory Volume1
|
|
227
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}
|
|
228
|
+
* @since iOS 8
|
|
229
|
+
*/
|
|
56
230
|
forcedExpiratoryVolume1 = "HKQuantityTypeIdentifierForcedExpiratoryVolume1",
|
|
231
|
+
/**
|
|
232
|
+
* Peak Expiratory Flow Rate
|
|
233
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}
|
|
234
|
+
* @since iOS 8
|
|
235
|
+
*/
|
|
57
236
|
peakExpiratoryFlowRate = "HKQuantityTypeIdentifierPeakExpiratoryFlowRate",
|
|
237
|
+
/**
|
|
238
|
+
* Environmental Audio Exposure
|
|
239
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}
|
|
240
|
+
* @since iOS 13
|
|
241
|
+
*/
|
|
58
242
|
environmentalAudioExposure = "HKQuantityTypeIdentifierEnvironmentalAudioExposure",
|
|
243
|
+
/**
|
|
244
|
+
* Headphone Audio Exposure
|
|
245
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}
|
|
246
|
+
* @since iOS 13
|
|
247
|
+
*/
|
|
59
248
|
headphoneAudioExposure = "HKQuantityTypeIdentifierHeadphoneAudioExposure",
|
|
249
|
+
/**
|
|
250
|
+
* Dietary Fat Total
|
|
251
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}
|
|
252
|
+
* @since iOS 8
|
|
253
|
+
*/
|
|
60
254
|
dietaryFatTotal = "HKQuantityTypeIdentifierDietaryFatTotal",
|
|
255
|
+
/**
|
|
256
|
+
* Dietary Fat Polyunsaturated
|
|
257
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}
|
|
258
|
+
*/
|
|
61
259
|
dietaryFatPolyunsaturated = "HKQuantityTypeIdentifierDietaryFatPolyunsaturated",
|
|
260
|
+
/**
|
|
261
|
+
* Dietary Fat Monounsaturated
|
|
262
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}
|
|
263
|
+
*/
|
|
62
264
|
dietaryFatMonounsaturated = "HKQuantityTypeIdentifierDietaryFatMonounsaturated",
|
|
265
|
+
/**
|
|
266
|
+
* Dietary Fat Saturated
|
|
267
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}
|
|
268
|
+
*/
|
|
63
269
|
dietaryFatSaturated = "HKQuantityTypeIdentifierDietaryFatSaturated",
|
|
270
|
+
/**
|
|
271
|
+
* Dietary Cholesterol
|
|
272
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}
|
|
273
|
+
*/
|
|
64
274
|
dietaryCholesterol = "HKQuantityTypeIdentifierDietaryCholesterol",
|
|
275
|
+
/**
|
|
276
|
+
* Dietary Sodium
|
|
277
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}
|
|
278
|
+
*/
|
|
65
279
|
dietarySodium = "HKQuantityTypeIdentifierDietarySodium",
|
|
280
|
+
/**
|
|
281
|
+
* Dietary Carbohydrates
|
|
282
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}
|
|
283
|
+
*/
|
|
66
284
|
dietaryCarbohydrates = "HKQuantityTypeIdentifierDietaryCarbohydrates",
|
|
285
|
+
/**
|
|
286
|
+
* Dietary Fiber
|
|
287
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}
|
|
288
|
+
*/
|
|
67
289
|
dietaryFiber = "HKQuantityTypeIdentifierDietaryFiber",
|
|
290
|
+
/**
|
|
291
|
+
* Dietary Sugar
|
|
292
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}
|
|
293
|
+
*/
|
|
68
294
|
dietarySugar = "HKQuantityTypeIdentifierDietarySugar",
|
|
295
|
+
/**
|
|
296
|
+
* Dietary Energy Consumed
|
|
297
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}
|
|
298
|
+
*/
|
|
69
299
|
dietaryEnergyConsumed = "HKQuantityTypeIdentifierDietaryEnergyConsumed",
|
|
300
|
+
/**
|
|
301
|
+
* Dietary Protein
|
|
302
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}
|
|
303
|
+
*/
|
|
70
304
|
dietaryProtein = "HKQuantityTypeIdentifierDietaryProtein",
|
|
305
|
+
/**
|
|
306
|
+
* Dietary Vitamin A
|
|
307
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}
|
|
308
|
+
*/
|
|
71
309
|
dietaryVitaminA = "HKQuantityTypeIdentifierDietaryVitaminA",
|
|
310
|
+
/**
|
|
311
|
+
* Dietary Vitamin B6
|
|
312
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}
|
|
313
|
+
*/
|
|
72
314
|
dietaryVitaminB6 = "HKQuantityTypeIdentifierDietaryVitaminB6",
|
|
315
|
+
/**
|
|
316
|
+
* Dietary Vitamin B12
|
|
317
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}
|
|
318
|
+
*/
|
|
73
319
|
dietaryVitaminB12 = "HKQuantityTypeIdentifierDietaryVitaminB12",
|
|
320
|
+
/**
|
|
321
|
+
* Dietary Vitamin C
|
|
322
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}
|
|
323
|
+
*/
|
|
74
324
|
dietaryVitaminC = "HKQuantityTypeIdentifierDietaryVitaminC",
|
|
325
|
+
/**
|
|
326
|
+
* Dietary Vitamin D
|
|
327
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}
|
|
328
|
+
*/
|
|
75
329
|
dietaryVitaminD = "HKQuantityTypeIdentifierDietaryVitaminD",
|
|
330
|
+
/**
|
|
331
|
+
* Dietary Vitamin E
|
|
332
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}
|
|
333
|
+
*/
|
|
76
334
|
dietaryVitaminE = "HKQuantityTypeIdentifierDietaryVitaminE",
|
|
335
|
+
/**
|
|
336
|
+
* Dietary Vitamin K
|
|
337
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}
|
|
338
|
+
*/
|
|
77
339
|
dietaryVitaminK = "HKQuantityTypeIdentifierDietaryVitaminK",
|
|
340
|
+
/**
|
|
341
|
+
* Dietary Calcium
|
|
342
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}
|
|
343
|
+
*/
|
|
78
344
|
dietaryCalcium = "HKQuantityTypeIdentifierDietaryCalcium",
|
|
345
|
+
/**
|
|
346
|
+
* Dietary Iron
|
|
347
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}
|
|
348
|
+
*/
|
|
79
349
|
dietaryIron = "HKQuantityTypeIdentifierDietaryIron",
|
|
350
|
+
/**
|
|
351
|
+
* Dietary Thiamin
|
|
352
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}
|
|
353
|
+
*/
|
|
80
354
|
dietaryThiamin = "HKQuantityTypeIdentifierDietaryThiamin",
|
|
355
|
+
/**
|
|
356
|
+
* Dietary Riboflavin
|
|
357
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}
|
|
358
|
+
*/
|
|
81
359
|
dietaryRiboflavin = "HKQuantityTypeIdentifierDietaryRiboflavin",
|
|
360
|
+
/**
|
|
361
|
+
* Dietary Niacin
|
|
362
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}
|
|
363
|
+
*/
|
|
82
364
|
dietaryNiacin = "HKQuantityTypeIdentifierDietaryNiacin",
|
|
365
|
+
/**
|
|
366
|
+
* Dietary Folate
|
|
367
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}
|
|
368
|
+
*/
|
|
83
369
|
dietaryFolate = "HKQuantityTypeIdentifierDietaryFolate",
|
|
370
|
+
/**
|
|
371
|
+
* Dietary Biotin
|
|
372
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}
|
|
373
|
+
*/
|
|
84
374
|
dietaryBiotin = "HKQuantityTypeIdentifierDietaryBiotin",
|
|
375
|
+
/**
|
|
376
|
+
* Dietary Pantothenic Acid
|
|
377
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}
|
|
378
|
+
*/
|
|
85
379
|
dietaryPantothenicAcid = "HKQuantityTypeIdentifierDietaryPantothenicAcid",
|
|
380
|
+
/**
|
|
381
|
+
* Dietary Phosphorus
|
|
382
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}
|
|
383
|
+
*/
|
|
86
384
|
dietaryPhosphorus = "HKQuantityTypeIdentifierDietaryPhosphorus",
|
|
385
|
+
/**
|
|
386
|
+
* Dietary Iodine
|
|
387
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}
|
|
388
|
+
*/
|
|
87
389
|
dietaryIodine = "HKQuantityTypeIdentifierDietaryIodine",
|
|
390
|
+
/**
|
|
391
|
+
* Dietary Magnesium
|
|
392
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}
|
|
393
|
+
*/
|
|
88
394
|
dietaryMagnesium = "HKQuantityTypeIdentifierDietaryMagnesium",
|
|
395
|
+
/**
|
|
396
|
+
* Dietary Zinc
|
|
397
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}
|
|
398
|
+
*/
|
|
89
399
|
dietaryZinc = "HKQuantityTypeIdentifierDietaryZinc",
|
|
400
|
+
/**
|
|
401
|
+
* Dietary Selenium
|
|
402
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}
|
|
403
|
+
*/
|
|
90
404
|
dietarySelenium = "HKQuantityTypeIdentifierDietarySelenium",
|
|
405
|
+
/**
|
|
406
|
+
* Dietary Copper
|
|
407
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}
|
|
408
|
+
*/
|
|
91
409
|
dietaryCopper = "HKQuantityTypeIdentifierDietaryCopper",
|
|
410
|
+
/**
|
|
411
|
+
* Dietary Manganese
|
|
412
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}
|
|
413
|
+
*/
|
|
92
414
|
dietaryManganese = "HKQuantityTypeIdentifierDietaryManganese",
|
|
415
|
+
/**
|
|
416
|
+
* Dietary Chromium
|
|
417
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}
|
|
418
|
+
*/
|
|
93
419
|
dietaryChromium = "HKQuantityTypeIdentifierDietaryChromium",
|
|
420
|
+
/**
|
|
421
|
+
* Dietary Molybdenum
|
|
422
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}
|
|
423
|
+
*/
|
|
94
424
|
dietaryMolybdenum = "HKQuantityTypeIdentifierDietaryMolybdenum",
|
|
425
|
+
/**
|
|
426
|
+
* Dietary Chloride
|
|
427
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}
|
|
428
|
+
* @since iOS 8
|
|
429
|
+
*/
|
|
95
430
|
dietaryChloride = "HKQuantityTypeIdentifierDietaryChloride",
|
|
431
|
+
/**
|
|
432
|
+
* Dietary Potassium
|
|
433
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}
|
|
434
|
+
* @since iOS 8
|
|
435
|
+
*/
|
|
96
436
|
dietaryPotassium = "HKQuantityTypeIdentifierDietaryPotassium",
|
|
437
|
+
/**
|
|
438
|
+
* Dietary Caffeine
|
|
439
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}
|
|
440
|
+
* @since iOS 8
|
|
441
|
+
*/
|
|
97
442
|
dietaryCaffeine = "HKQuantityTypeIdentifierDietaryCaffeine",
|
|
443
|
+
/**
|
|
444
|
+
* Dietary Water
|
|
445
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}
|
|
446
|
+
* @since iOS 9
|
|
447
|
+
*/
|
|
98
448
|
dietaryWater = "HKQuantityTypeIdentifierDietaryWater",
|
|
449
|
+
/**
|
|
450
|
+
* Six Minute Walk Test Distance
|
|
451
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}
|
|
452
|
+
* @since iOS 14
|
|
453
|
+
*/
|
|
99
454
|
sixMinuteWalkTestDistance = "HKQuantityTypeIdentifierSixMinuteWalkTestDistance",
|
|
455
|
+
/**
|
|
456
|
+
* Walking Speed
|
|
457
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}
|
|
458
|
+
* @since iOS 14
|
|
459
|
+
*/
|
|
100
460
|
walkingSpeed = "HKQuantityTypeIdentifierWalkingSpeed",
|
|
461
|
+
/**
|
|
462
|
+
* Walking Step Length
|
|
463
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}
|
|
464
|
+
* @since iOS 14
|
|
465
|
+
*/
|
|
101
466
|
walkingStepLength = "HKQuantityTypeIdentifierWalkingStepLength",
|
|
467
|
+
/**
|
|
468
|
+
* Walking Asymmetry Percentage
|
|
469
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}
|
|
470
|
+
* @since iOS 14
|
|
471
|
+
*/
|
|
102
472
|
walkingAsymmetryPercentage = "HKQuantityTypeIdentifierWalkingAsymmetryPercentage",
|
|
473
|
+
/**
|
|
474
|
+
* Walking Double Support Percentage
|
|
475
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}
|
|
476
|
+
* @since iOS 14
|
|
477
|
+
*/
|
|
103
478
|
walkingDoubleSupportPercentage = "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage",
|
|
479
|
+
/**
|
|
480
|
+
* Stair Ascent Speed
|
|
481
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}
|
|
482
|
+
* @since iOS 14
|
|
483
|
+
*/
|
|
104
484
|
stairAscentSpeed = "HKQuantityTypeIdentifierStairAscentSpeed",
|
|
485
|
+
/**
|
|
486
|
+
* Stair Descent Speed
|
|
487
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}
|
|
488
|
+
* @since iOS 14
|
|
489
|
+
*/
|
|
105
490
|
stairDescentSpeed = "HKQuantityTypeIdentifierStairDescentSpeed",
|
|
491
|
+
/**
|
|
492
|
+
* UV Exposure
|
|
493
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}
|
|
494
|
+
* @since iOS 9
|
|
495
|
+
*/
|
|
106
496
|
uvExposure = "HKQuantityTypeIdentifierUVExposure",
|
|
497
|
+
/**
|
|
498
|
+
* Apple Move Time
|
|
499
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}
|
|
500
|
+
* @since iOS 14.5
|
|
501
|
+
*/
|
|
107
502
|
appleMoveTime = "HKQuantityTypeIdentifierAppleMoveTime",
|
|
503
|
+
/**
|
|
504
|
+
* Apple Walking Steadiness
|
|
505
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}
|
|
506
|
+
* @since iOS 15
|
|
507
|
+
*/
|
|
108
508
|
appleWalkingSteadiness = "HKQuantityTypeIdentifierAppleWalkingSteadiness",
|
|
509
|
+
/**
|
|
510
|
+
* Number Of Alcoholic Beverages
|
|
511
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}
|
|
512
|
+
* @since iOS 15
|
|
513
|
+
*/
|
|
109
514
|
numberOfAlcoholicBeverages = "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages",
|
|
515
|
+
/**
|
|
516
|
+
* Atrial Fibrillation Burden
|
|
517
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}
|
|
518
|
+
* @since iOS 16
|
|
519
|
+
*/
|
|
110
520
|
atrialFibrillationBurden = "HKQuantityTypeIdentifierAtrialFibrillationBurden",
|
|
521
|
+
/**
|
|
522
|
+
* Underwater Depth
|
|
523
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}
|
|
524
|
+
* @since iOS 16
|
|
525
|
+
*/
|
|
111
526
|
underwaterDepth = "HKQuantityTypeIdentifierUnderwaterDepth",
|
|
527
|
+
/**
|
|
528
|
+
* Water Temperature
|
|
529
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}
|
|
530
|
+
* @since iOS 16
|
|
531
|
+
*/
|
|
112
532
|
waterTemperature = "HKQuantityTypeIdentifierWaterTemperature",
|
|
533
|
+
/**
|
|
534
|
+
* Apple Sleeping Wrist Temperature
|
|
535
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}
|
|
536
|
+
* @since iOS 17
|
|
537
|
+
*/
|
|
113
538
|
appleSleepingWristTemperature = "HKQuantityTypeIdentifierAppleSleepingWristTemperature",
|
|
539
|
+
/**
|
|
540
|
+
* Time In Daylight
|
|
541
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}
|
|
542
|
+
* @since iOS 17
|
|
543
|
+
*/
|
|
114
544
|
timeInDaylight = "HKQuantityTypeIdentifierTimeInDaylight",
|
|
545
|
+
/**
|
|
546
|
+
* Physical Effort
|
|
547
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}
|
|
548
|
+
* @since iOS 17
|
|
549
|
+
*/
|
|
115
550
|
physicalEffort = "HKQuantityTypeIdentifierPhysicalEffort",
|
|
551
|
+
/**
|
|
552
|
+
* Cycling Speed
|
|
553
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}
|
|
554
|
+
* @since iOS 17
|
|
555
|
+
*/
|
|
116
556
|
cyclingSpeed = "HKQuantityTypeIdentifierCyclingSpeed",
|
|
557
|
+
/**
|
|
558
|
+
* Cycling Power
|
|
559
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}
|
|
560
|
+
* @since iOS 17
|
|
561
|
+
*/
|
|
117
562
|
cyclingPower = "HKQuantityTypeIdentifierCyclingPower",
|
|
563
|
+
/**
|
|
564
|
+
* Cycling Functional Threshold Power
|
|
565
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}
|
|
566
|
+
* @since iOS 17
|
|
567
|
+
*/
|
|
118
568
|
cyclingFunctionalThresholdPower = "HKQuantityTypeIdentifierCyclingFunctionalThresholdPower",
|
|
569
|
+
/**
|
|
570
|
+
* Cycling Cadence
|
|
571
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}
|
|
572
|
+
* @since iOS 17
|
|
573
|
+
*/
|
|
119
574
|
cyclingCadence = "HKQuantityTypeIdentifierCyclingCadence",
|
|
575
|
+
/**
|
|
576
|
+
* Environmental Sound Reduction
|
|
577
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}
|
|
578
|
+
* @since iOS 16
|
|
579
|
+
*/
|
|
120
580
|
environmentalSoundReduction = "HKQuantityTypeIdentifierEnvironmentalSoundReduction",
|
|
581
|
+
/**
|
|
582
|
+
* Heart Rate Recovery One Minute
|
|
583
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}
|
|
584
|
+
* @since iOS 16
|
|
585
|
+
*/
|
|
121
586
|
heartRateRecoveryOneMinute = "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"
|
|
122
587
|
}
|
|
123
588
|
export type TypeToUnitMapping = {
|
|
@@ -132,14 +597,14 @@ export declare enum HKHeartRateMotionContext {
|
|
|
132
597
|
sedentary = 1
|
|
133
598
|
}
|
|
134
599
|
/**
|
|
135
|
-
*
|
|
600
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }
|
|
136
601
|
*/
|
|
137
602
|
export declare enum HKCorrelationTypeIdentifier {
|
|
138
603
|
bloodPressure = "HKCorrelationTypeIdentifierBloodPressure",
|
|
139
604
|
food = "HKCorrelationTypeIdentifierFood"
|
|
140
605
|
}
|
|
141
606
|
/**
|
|
142
|
-
*
|
|
607
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }
|
|
143
608
|
*/
|
|
144
609
|
export declare enum HKCategoryTypeIdentifier {
|
|
145
610
|
sleepAnalysis = "HKCategoryTypeIdentifierSleepAnalysis",
|
|
@@ -353,7 +818,7 @@ export interface HKWorkoutMetadata extends HKGenericMetadata {
|
|
|
353
818
|
readonly HKIndoorWorkout?: HKIndoorWorkout;
|
|
354
819
|
}
|
|
355
820
|
/**
|
|
356
|
-
*
|
|
821
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }
|
|
357
822
|
*/
|
|
358
823
|
export declare enum HKAuthorizationRequestStatus {
|
|
359
824
|
unknown = 0,
|
|
@@ -361,7 +826,7 @@ export declare enum HKAuthorizationRequestStatus {
|
|
|
361
826
|
unnecessary = 2
|
|
362
827
|
}
|
|
363
828
|
/**
|
|
364
|
-
*
|
|
829
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }
|
|
365
830
|
*/
|
|
366
831
|
export declare enum HKAuthorizationStatus {
|
|
367
832
|
notDetermined = 0,
|
|
@@ -373,7 +838,7 @@ export type HKQuantity<TIdentifier extends HKQuantityTypeIdentifier = HKQuantity
|
|
|
373
838
|
readonly quantity: number;
|
|
374
839
|
};
|
|
375
840
|
/**
|
|
376
|
-
*
|
|
841
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }
|
|
377
842
|
*/
|
|
378
843
|
export declare enum HKBloodType {
|
|
379
844
|
notSet = 0,
|
|
@@ -387,7 +852,7 @@ export declare enum HKBloodType {
|
|
|
387
852
|
oNegative = 8
|
|
388
853
|
}
|
|
389
854
|
/**
|
|
390
|
-
*
|
|
855
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }
|
|
391
856
|
*/
|
|
392
857
|
export declare enum HKBiologicalSex {
|
|
393
858
|
notSet = 0,
|
|
@@ -396,7 +861,7 @@ export declare enum HKBiologicalSex {
|
|
|
396
861
|
other = 3
|
|
397
862
|
}
|
|
398
863
|
/**
|
|
399
|
-
*
|
|
864
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }
|
|
400
865
|
*/
|
|
401
866
|
export declare enum HKFitzpatrickSkinType {
|
|
402
867
|
notSet = 0,
|
|
@@ -408,7 +873,7 @@ export declare enum HKFitzpatrickSkinType {
|
|
|
408
873
|
VI = 6
|
|
409
874
|
}
|
|
410
875
|
/**
|
|
411
|
-
*
|
|
876
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }
|
|
412
877
|
*/
|
|
413
878
|
export declare enum HKStatisticsOptions {
|
|
414
879
|
cumulativeSum = "cumulativeSum",
|
|
@@ -433,7 +898,7 @@ export type QueryStatisticsResponseRaw<TIdentifier extends HKQuantityTypeIdentif
|
|
|
433
898
|
readonly duration?: HKQuantity<HKQuantityTypeIdentifier, TimeUnit>;
|
|
434
899
|
};
|
|
435
900
|
/**
|
|
436
|
-
* https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality
|
|
901
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }
|
|
437
902
|
*/
|
|
438
903
|
export declare enum HKCategoryValueCervicalMucusQuality {
|
|
439
904
|
dry = 1,
|
|
@@ -443,7 +908,7 @@ export declare enum HKCategoryValueCervicalMucusQuality {
|
|
|
443
908
|
eggWhite = 5
|
|
444
909
|
}
|
|
445
910
|
/**
|
|
446
|
-
*
|
|
911
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }
|
|
447
912
|
*/
|
|
448
913
|
export declare enum HKCategoryValueMenstrualFlow {
|
|
449
914
|
unspecified = 1,
|
|
@@ -453,7 +918,7 @@ export declare enum HKCategoryValueMenstrualFlow {
|
|
|
453
918
|
heavy = 4
|
|
454
919
|
}
|
|
455
920
|
/**
|
|
456
|
-
*
|
|
921
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }
|
|
457
922
|
*/
|
|
458
923
|
export declare enum HKCategoryValueOvulationTestResult {
|
|
459
924
|
negative = 1,
|
|
@@ -462,7 +927,7 @@ export declare enum HKCategoryValueOvulationTestResult {
|
|
|
462
927
|
estrogenSurge = 4
|
|
463
928
|
}
|
|
464
929
|
/**
|
|
465
|
-
*
|
|
930
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }
|
|
466
931
|
*/
|
|
467
932
|
export declare enum HKCategoryValueSleepAnalysis {
|
|
468
933
|
inBed = 0,
|
|
@@ -473,7 +938,7 @@ export declare enum HKCategoryValueSleepAnalysis {
|
|
|
473
938
|
asleepREM = 5
|
|
474
939
|
}
|
|
475
940
|
/**
|
|
476
|
-
* https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges
|
|
941
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges
|
|
477
942
|
*/
|
|
478
943
|
export declare enum HKCategoryValueAppetiteChanges {
|
|
479
944
|
decreased = 2,
|
|
@@ -482,14 +947,14 @@ export declare enum HKCategoryValueAppetiteChanges {
|
|
|
482
947
|
unspecified = 0
|
|
483
948
|
}
|
|
484
949
|
/**
|
|
485
|
-
* https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence
|
|
950
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence
|
|
486
951
|
*/
|
|
487
952
|
export declare enum HKCategoryValuePresence {
|
|
488
953
|
notPresent = 1,
|
|
489
954
|
present = 0
|
|
490
955
|
}
|
|
491
956
|
/**
|
|
492
|
-
*
|
|
957
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }
|
|
493
958
|
*/
|
|
494
959
|
export declare enum HKCategoryValueSeverity {
|
|
495
960
|
notPresent = 1,
|
|
@@ -499,17 +964,17 @@ export declare enum HKCategoryValueSeverity {
|
|
|
499
964
|
unspecified = 0
|
|
500
965
|
}
|
|
501
966
|
/**
|
|
502
|
-
*
|
|
967
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }
|
|
503
968
|
*/
|
|
504
969
|
export declare enum HKCategoryValueNotApplicable {
|
|
505
970
|
notApplicable = 0
|
|
506
971
|
}
|
|
507
972
|
/**
|
|
508
|
-
*
|
|
973
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }
|
|
509
974
|
*/
|
|
510
975
|
export type HKCategoryValue = HKCategoryValueAppetiteChanges | HKCategoryValueCervicalMucusQuality | HKCategoryValueLowCardioFitnessEvent | HKCategoryValueMenstrualFlow | HKCategoryValueOvulationTestResult | HKCategoryValuePresence | HKCategoryValueSeverity | HKCategoryValueSleepAnalysis | number;
|
|
511
976
|
/**
|
|
512
|
-
*
|
|
977
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }
|
|
513
978
|
*/
|
|
514
979
|
export declare enum HKInsulinDeliveryReason {
|
|
515
980
|
basal = 1,
|
|
@@ -528,7 +993,7 @@ export type MetadataMapperForCorrelationIdentifier<TCorrelationTypeIdentifier =
|
|
|
528
993
|
export type UnitForIdentifier<T extends HKQuantityTypeIdentifier> = T extends HKQuantityTypeIdentifier.bloodGlucose ? BloodGlucoseUnit : T extends HKQuantityTypeIdentifier.appleExerciseTime | HKQuantityTypeIdentifier.appleMoveTime | HKQuantityTypeIdentifier.appleStandTime ? TimeUnit : T extends HKQuantityTypeIdentifier.activeEnergyBurned | HKQuantityTypeIdentifier.basalEnergyBurned | HKQuantityTypeIdentifier.dietaryEnergyConsumed ? EnergyUnit : T extends HKQuantityTypeIdentifier.distanceCycling | HKQuantityTypeIdentifier.distanceDownhillSnowSports | HKQuantityTypeIdentifier.distanceSwimming | HKQuantityTypeIdentifier.distanceWalkingRunning | HKQuantityTypeIdentifier.distanceWheelchair | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance | HKQuantityTypeIdentifier.waistCircumference ? LengthUnit : T extends HKQuantityTypeIdentifier.bodyFatPercentage | HKQuantityTypeIdentifier.oxygenSaturation | HKQuantityTypeIdentifier.walkingAsymmetryPercentage | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage ? HKUnits.Percent : T extends HKQuantityTypeIdentifier.basalBodyTemperature | HKQuantityTypeIdentifier.basalBodyTemperature ? TemperatureUnit : T extends HKQuantityTypeIdentifier.stairAscentSpeed | HKQuantityTypeIdentifier.stairDescentSpeed | HKQuantityTypeIdentifier.walkingSpeed | HKQuantityTypeIdentifier.walkingSpeed ? SpeedUnit<LengthUnit, TimeUnit> : T extends HKQuantityTypeIdentifier.flightsClimbed | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages | HKQuantityTypeIdentifier.numberOfTimesFallen | HKQuantityTypeIdentifier.pushCount | HKQuantityTypeIdentifier.stepCount | HKQuantityTypeIdentifier.swimmingStrokeCount ? HKUnits.Count : T extends HKQuantityTypeIdentifier.dietaryBiotin | HKQuantityTypeIdentifier.dietaryCaffeine | HKQuantityTypeIdentifier.dietaryCalcium | HKQuantityTypeIdentifier.dietaryCarbohydrates | HKQuantityTypeIdentifier.dietaryChloride | HKQuantityTypeIdentifier.dietaryCholesterol | HKQuantityTypeIdentifier.dietaryChromium | HKQuantityTypeIdentifier.dietaryCopper | HKQuantityTypeIdentifier.dietaryFatMonounsaturated | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated | HKQuantityTypeIdentifier.dietaryFatSaturated | HKQuantityTypeIdentifier.dietaryFatTotal | HKQuantityTypeIdentifier.dietaryFiber | HKQuantityTypeIdentifier.dietaryFolate | HKQuantityTypeIdentifier.dietaryIodine | HKQuantityTypeIdentifier.dietaryIodine | HKQuantityTypeIdentifier.dietaryIron | HKQuantityTypeIdentifier.dietaryMagnesium | HKQuantityTypeIdentifier.dietaryManganese | HKQuantityTypeIdentifier.dietaryMolybdenum | HKQuantityTypeIdentifier.dietaryNiacin | HKQuantityTypeIdentifier.dietaryPantothenicAcid | HKQuantityTypeIdentifier.dietaryPhosphorus | HKQuantityTypeIdentifier.dietaryPotassium | HKQuantityTypeIdentifier.dietaryProtein | HKQuantityTypeIdentifier.dietaryRiboflavin | HKQuantityTypeIdentifier.dietarySelenium | HKQuantityTypeIdentifier.dietarySodium | HKQuantityTypeIdentifier.dietarySugar | HKQuantityTypeIdentifier.dietaryThiamin | HKQuantityTypeIdentifier.dietaryVitaminA | HKQuantityTypeIdentifier.dietaryVitaminB6 | HKQuantityTypeIdentifier.dietaryVitaminB12 | HKQuantityTypeIdentifier.dietaryVitaminC | HKQuantityTypeIdentifier.dietaryVitaminD | HKQuantityTypeIdentifier.dietaryVitaminE | HKQuantityTypeIdentifier.dietaryVitaminK | HKQuantityTypeIdentifier.dietaryZinc ? MassUnit : T extends HKQuantityTypeIdentifier.dietaryWater ? VolumeUnit : T extends HKQuantityTypeIdentifier.insulinDelivery ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}` : T extends HKQuantityTypeIdentifier.heartRate | HKQuantityTypeIdentifier.restingHeartRate | HKQuantityTypeIdentifier.walkingHeartRateAverage ? CountPerTime<TimeUnit> : HKUnit;
|
|
529
994
|
export type HKCategoryValueForIdentifier<T extends HKCategoryTypeIdentifier> = T extends HKCategoryTypeIdentifier.cervicalMucusQuality ? HKCategoryValueCervicalMucusQuality : T extends HKCategoryTypeIdentifier.menstrualFlow ? HKCategoryValueMenstrualFlow : T extends HKCategoryTypeIdentifier.ovulationTestResult ? HKCategoryValueOvulationTestResult : T extends HKCategoryTypeIdentifier.sleepAnalysis ? HKCategoryValueSleepAnalysis : T extends HKCategoryTypeIdentifier.highHeartRateEvent | HKCategoryTypeIdentifier.intermenstrualBleeding | HKCategoryTypeIdentifier.mindfulSession | HKCategoryTypeIdentifier.sexualActivity ? HKCategoryValueNotApplicable : T extends HKCategoryTypeIdentifier.abdominalCramps | HKCategoryTypeIdentifier.abdominalCramps | HKCategoryTypeIdentifier.acne | HKCategoryTypeIdentifier.bladderIncontinence | HKCategoryTypeIdentifier.bloating | HKCategoryTypeIdentifier.breastPain | HKCategoryTypeIdentifier.chestTightnessOrPain | HKCategoryTypeIdentifier.chills | HKCategoryTypeIdentifier.constipation | HKCategoryTypeIdentifier.coughing | HKCategoryTypeIdentifier.diarrhea | HKCategoryTypeIdentifier.dizziness | HKCategoryTypeIdentifier.drySkin | HKCategoryTypeIdentifier.fainting | HKCategoryTypeIdentifier.fatigue | HKCategoryTypeIdentifier.fever | HKCategoryTypeIdentifier.generalizedBodyAche | HKCategoryTypeIdentifier.hairLoss | HKCategoryTypeIdentifier.headache | HKCategoryTypeIdentifier.heartburn | HKCategoryTypeIdentifier.hotFlashes | HKCategoryTypeIdentifier.lossOfSmell | HKCategoryTypeIdentifier.lossOfTaste | HKCategoryTypeIdentifier.lowerBackPain | HKCategoryTypeIdentifier.memoryLapse | HKCategoryTypeIdentifier.moodChanges | HKCategoryTypeIdentifier.nausea | HKCategoryTypeIdentifier.nightSweats | HKCategoryTypeIdentifier.pelvicPain | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat | HKCategoryTypeIdentifier.runnyNose | HKCategoryTypeIdentifier.shortnessOfBreath | HKCategoryTypeIdentifier.sinusCongestion | HKCategoryTypeIdentifier.skippedHeartbeat | HKCategoryTypeIdentifier.soreThroat | HKCategoryTypeIdentifier.vaginalDryness | HKCategoryTypeIdentifier.vomiting | HKCategoryTypeIdentifier.wheezing ? HKCategoryValueSeverity : T extends HKCategoryTypeIdentifier.appetiteChanges | HKCategoryTypeIdentifier.sleepChanges ? HKCategoryValuePresence : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent ? HKCategoryValueLowCardioFitnessEvent : T extends HKCategoryTypeIdentifier.pregnancyTestResult ? HKCategoryValuePregnancyTestResult : T extends HKCategoryTypeIdentifier.pregnancyTestResult ? HKCategoryValuePregnancyTestResult : T extends HKCategoryTypeIdentifier.appleStandHour ? HKCategoryValueAppleStandHour : number;
|
|
530
995
|
/**
|
|
531
|
-
*
|
|
996
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }
|
|
532
997
|
*/
|
|
533
998
|
declare enum HKCategoryValuePregnancyTestResult {
|
|
534
999
|
positive = 2,
|
|
@@ -716,7 +1181,7 @@ export type SpeedUnit<TLength extends LengthUnit, TTime extends TimeUnit> = `${T
|
|
|
716
1181
|
export type CountPerTime<TTime extends TimeUnit> = `count/${TTime}`;
|
|
717
1182
|
export type HKUnit = BloodGlucoseUnit | CountPerTime<TimeUnit> | EnergyUnit | FrequencyUnit | HKUnits | LengthUnit | MassUnit | PressureUnit | SpeedUnit<LengthUnit, TimeUnit> | TemperatureUnit | TimeUnit | VolumeUnit | `${BloodGlucoseUnit}` | `${EnergyUnit}` | `${FrequencyUnit}` | `${HKUnits}` | `${LengthUnit}` | `${MassUnit}` | `${PressureUnit}` | `${TemperatureUnit}` | `${TimeUnit}` | `${VolumeUnit}`;
|
|
718
1183
|
/**
|
|
719
|
-
*
|
|
1184
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }
|
|
720
1185
|
*/
|
|
721
1186
|
export type HKDevice = {
|
|
722
1187
|
readonly name: string;
|
|
@@ -729,14 +1194,14 @@ export type HKDevice = {
|
|
|
729
1194
|
readonly udiDeviceIdentifier: string | null;
|
|
730
1195
|
};
|
|
731
1196
|
/**
|
|
732
|
-
*
|
|
1197
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }
|
|
733
1198
|
*/
|
|
734
1199
|
export type HKSource = {
|
|
735
1200
|
readonly name: string;
|
|
736
1201
|
readonly bundleIdentifier: string;
|
|
737
1202
|
};
|
|
738
1203
|
/**
|
|
739
|
-
*
|
|
1204
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }
|
|
740
1205
|
*/
|
|
741
1206
|
export type HKSourceRevision = {
|
|
742
1207
|
readonly source: HKSource;
|
|
@@ -745,7 +1210,7 @@ export type HKSourceRevision = {
|
|
|
745
1210
|
readonly productType?: string;
|
|
746
1211
|
};
|
|
747
1212
|
/**
|
|
748
|
-
*
|
|
1213
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }
|
|
749
1214
|
*/
|
|
750
1215
|
export type HKQuantitySampleRaw<TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TQuantityIdentifier> = UnitForIdentifier<TQuantityIdentifier>> = {
|
|
751
1216
|
readonly uuid: string;
|
|
@@ -846,7 +1311,9 @@ export type HKCorrelationRaw<TIdentifier extends HKCorrelationTypeIdentifier> =
|
|
|
846
1311
|
readonly endDate: string;
|
|
847
1312
|
};
|
|
848
1313
|
type QueryId = string;
|
|
849
|
-
/**
|
|
1314
|
+
/**
|
|
1315
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }
|
|
1316
|
+
*/
|
|
850
1317
|
export declare enum HKUpdateFrequency {
|
|
851
1318
|
immediate = 1,
|
|
852
1319
|
hourly = 2,
|
|
@@ -870,7 +1337,9 @@ export type WorkoutRoute = {
|
|
|
870
1337
|
readonly HKMetadataKeySyncVersion?: number;
|
|
871
1338
|
};
|
|
872
1339
|
type ReactNativeHealthkitTypeNative = {
|
|
873
|
-
/**
|
|
1340
|
+
/**
|
|
1341
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }
|
|
1342
|
+
*/
|
|
874
1343
|
isHealthDataAvailable(): Promise<boolean>;
|
|
875
1344
|
canAccessProtectedData(): Promise<boolean>;
|
|
876
1345
|
getBloodType(): Promise<HKBloodType>;
|
|
@@ -878,22 +1347,34 @@ type ReactNativeHealthkitTypeNative = {
|
|
|
878
1347
|
getBiologicalSex(): Promise<HKBiologicalSex>;
|
|
879
1348
|
getFitzpatrickSkinType(): Promise<HKFitzpatrickSkinType>;
|
|
880
1349
|
readonly getWheelchairUse: () => Promise<HKWheelchairUse>;
|
|
881
|
-
/**
|
|
1350
|
+
/**
|
|
1351
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }
|
|
1352
|
+
*/
|
|
882
1353
|
readonly enableBackgroundDelivery: (typeIdentifier: HKSampleTypeIdentifier, updateFrequency: HKUpdateFrequency) => Promise<boolean>;
|
|
883
|
-
/**
|
|
1354
|
+
/**
|
|
1355
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }
|
|
1356
|
+
*/
|
|
884
1357
|
readonly disableBackgroundDelivery: (typeIdentifier: HKSampleTypeIdentifier) => Promise<boolean>;
|
|
885
|
-
/**
|
|
1358
|
+
/**
|
|
1359
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }
|
|
1360
|
+
*/
|
|
886
1361
|
readonly disableAllBackgroundDelivery: () => Promise<boolean>;
|
|
887
1362
|
readonly saveCorrelationSample: <TIdentifier extends HKCorrelationTypeIdentifier, TSamples extends readonly (HKCategorySampleRawForSaving | HKQuantitySampleRawForSaving)[]>(typeIdentifier: TIdentifier, samples: TSamples, start: string, end: string, metadata: MetadataMapperForCorrelationIdentifier<TIdentifier>) => Promise<boolean>;
|
|
888
1363
|
readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, metadata: HKWorkoutMetadata) => Promise<boolean>;
|
|
889
1364
|
readonly queryCorrelationSamples: <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, from: string, to: string) => Promise<readonly HKCorrelationRaw<TIdentifier>[]>;
|
|
890
1365
|
subscribeToObserverQuery(identifier: HKSampleTypeIdentifier): Promise<QueryId>;
|
|
891
1366
|
unsubscribeQuery(queryId: QueryId): Promise<boolean>;
|
|
892
|
-
/**
|
|
1367
|
+
/**
|
|
1368
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }
|
|
1369
|
+
*/
|
|
893
1370
|
authorizationStatusFor(type: HealthkitReadAuthorization): Promise<HKAuthorizationStatus>;
|
|
894
|
-
/**
|
|
1371
|
+
/**
|
|
1372
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }
|
|
1373
|
+
*/
|
|
895
1374
|
getRequestStatusForAuthorization(write: WritePermissions, read: ReadPermissions): Promise<HKAuthorizationRequestStatus>;
|
|
896
|
-
/**
|
|
1375
|
+
/**
|
|
1376
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }
|
|
1377
|
+
*/
|
|
897
1378
|
requestAuthorization(write: WritePermissions, read: ReadPermissions): Promise<boolean>;
|
|
898
1379
|
readonly saveQuantitySample: <TType extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TType> = UnitForIdentifier<TType>>(identifier: TType, unit: TUnit, value: number, start: string, end: string, metadata: unknown) => Promise<boolean>;
|
|
899
1380
|
readonly deleteQuantitySample: <TIdentifier extends HKQuantityTypeIdentifier>(typeIdentifier: TIdentifier, uuid: string) => Promise<boolean>;
|