@kingstinct/react-native-healthkit 5.1.2 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -23
- package/android/.project +18 -1
- package/android/.settings/org.eclipse.buildship.core.prefs +4 -4
- package/ios/ReactNativeHealthkit.m +9 -0
- package/ios/ReactNativeHealthkit.swift +23 -7
- package/lib/commonjs/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js +57 -0
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js.map +1 -0
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js +12 -19
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/commonjs/index.ios.js +1 -0
- 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 +29 -2
- package/lib/commonjs/jest.setup.js.map +1 -1
- package/lib/commonjs/native-types.js +27 -27
- package/lib/commonjs/native-types.js.map +1 -1
- package/lib/commonjs/test-utils.js +21 -0
- package/lib/commonjs/test-utils.js.map +1 -0
- package/lib/commonjs/utils/getPreferredUnit.js.map +1 -1
- package/lib/commonjs/utils/subscribeToChanges.js +4 -4
- package/lib/commonjs/utils/subscribeToChanges.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.test.js +45 -0
- package/lib/module/hooks/useHealthkitAuthorization.test.js.map +1 -0
- package/lib/module/hooks/useIsHealthDataAvailable.test.js +8 -16
- package/lib/module/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/module/index.ios.js +1 -0
- 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 +29 -2
- package/lib/module/jest.setup.js.map +1 -1
- package/lib/module/native-types.js +27 -27
- package/lib/module/native-types.js.map +1 -1
- package/lib/module/test-utils.js +13 -0
- package/lib/module/test-utils.js.map +1 -0
- package/lib/module/utils/getPreferredUnit.js.map +1 -1
- package/lib/module/utils/subscribeToChanges.js +1 -2
- package/lib/module/utils/subscribeToChanges.js.map +1 -1
- package/lib/{src/types.js → typescript/src/hooks/useHealthkitAuthorization.test.d.ts} +0 -0
- package/lib/typescript/src/index.ios.d.ts +1 -0
- package/lib/typescript/src/native-types.d.ts +48 -46
- package/lib/typescript/src/test-utils.d.ts +2 -0
- package/lib/typescript/src/utils/getPreferredUnit.d.ts +1 -1
- package/package.json +8 -4
- package/src/hooks/useHealthkitAuthorization.test.ts +54 -0
- package/src/hooks/useHealthkitAuthorization.ts +1 -0
- package/src/hooks/useIsHealthDataAvailable.test.ts +9 -14
- package/src/index.ios.tsx +3 -1
- package/src/index.tsx +2 -0
- package/src/jest.setup.ts +32 -2
- package/src/native-types.ts +349 -159
- package/src/test-utils.ts +10 -0
- package/src/utils/getPreferredUnit.ts +2 -2
- package/src/utils/subscribeToChanges.ts +1 -2
- package/lib/example/App.js +0 -197
- package/lib/index.ios.js +0 -310
- package/lib/index.js +0 -44
- package/lib/native-types.js +0 -447
- package/lib/src/index.ios.js +0 -314
- package/lib/src/index.js +0 -45
- package/lib/src/native-types.js +0 -453
- package/lib/types.js +0 -1
package/lib/native-types.js
DELETED
|
@@ -1,447 +0,0 @@
|
|
|
1
|
-
import { NativeModules, NativeEventEmitter, } from 'react-native';
|
|
2
|
-
export var HKHeartRateMotionContext;
|
|
3
|
-
(function (HKHeartRateMotionContext) {
|
|
4
|
-
HKHeartRateMotionContext[HKHeartRateMotionContext["active"] = 2] = "active";
|
|
5
|
-
HKHeartRateMotionContext[HKHeartRateMotionContext["notSet"] = 0] = "notSet";
|
|
6
|
-
HKHeartRateMotionContext[HKHeartRateMotionContext["sedentary"] = 1] = "sedentary";
|
|
7
|
-
})(HKHeartRateMotionContext || (HKHeartRateMotionContext = {}));
|
|
8
|
-
export var HKCategoryTypeIdentifier;
|
|
9
|
-
(function (HKCategoryTypeIdentifier) {
|
|
10
|
-
HKCategoryTypeIdentifier["sleepAnalysis"] = "HKCategoryTypeIdentifierSleepAnalysis";
|
|
11
|
-
HKCategoryTypeIdentifier["appleStandHour"] = "HKCategoryTypeIdentifierAppleStandHour";
|
|
12
|
-
HKCategoryTypeIdentifier["cervicalMucusQuality"] = "HKCategoryTypeIdentifierCervicalMucusQuality";
|
|
13
|
-
HKCategoryTypeIdentifier["ovulationTestResult"] = "HKCategoryTypeIdentifierOvulationTestResult";
|
|
14
|
-
HKCategoryTypeIdentifier["menstrualFlow"] = "HKCategoryTypeIdentifierMenstrualFlow";
|
|
15
|
-
HKCategoryTypeIdentifier["intermenstrualBleeding"] = "HKCategoryTypeIdentifierIntermenstrualBleeding";
|
|
16
|
-
HKCategoryTypeIdentifier["sexualActivity"] = "HKCategoryTypeIdentifierSexualActivity";
|
|
17
|
-
HKCategoryTypeIdentifier["mindfulSession"] = "HKCategoryTypeIdentifierMindfulSession";
|
|
18
|
-
HKCategoryTypeIdentifier["highHeartRateEvent"] = "HKCategoryTypeIdentifierHighHeartRateEvent";
|
|
19
|
-
HKCategoryTypeIdentifier["lowHeartRateEvent"] = "HKCategoryTypeIdentifierLowHeartRateEvent";
|
|
20
|
-
HKCategoryTypeIdentifier["irregularHeartRhythmEvent"] = "HKCategoryTypeIdentifierIrregularHeartRhythmEvent";
|
|
21
|
-
HKCategoryTypeIdentifier["audioExposureEvent"] = "HKCategoryTypeIdentifierAudioExposureEvent";
|
|
22
|
-
HKCategoryTypeIdentifier["toothbrushingEvent"] = "HKCategoryTypeIdentifierToothbrushingEvent";
|
|
23
|
-
})(HKCategoryTypeIdentifier || (HKCategoryTypeIdentifier = {}));
|
|
24
|
-
export var HKCategoryValueAppleStandHour;
|
|
25
|
-
(function (HKCategoryValueAppleStandHour) {
|
|
26
|
-
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["stood"] = 0] = "stood";
|
|
27
|
-
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["idle"] = 1] = "idle";
|
|
28
|
-
})(HKCategoryValueAppleStandHour || (HKCategoryValueAppleStandHour = {}));
|
|
29
|
-
export var HKWorkoutActivityType;
|
|
30
|
-
(function (HKWorkoutActivityType) {
|
|
31
|
-
HKWorkoutActivityType[HKWorkoutActivityType["americanFootball"] = 1] = "americanFootball";
|
|
32
|
-
HKWorkoutActivityType[HKWorkoutActivityType["archery"] = 2] = "archery";
|
|
33
|
-
HKWorkoutActivityType[HKWorkoutActivityType["australianFootball"] = 3] = "australianFootball";
|
|
34
|
-
HKWorkoutActivityType[HKWorkoutActivityType["badminton"] = 4] = "badminton";
|
|
35
|
-
HKWorkoutActivityType[HKWorkoutActivityType["baseball"] = 5] = "baseball";
|
|
36
|
-
HKWorkoutActivityType[HKWorkoutActivityType["basketball"] = 6] = "basketball";
|
|
37
|
-
HKWorkoutActivityType[HKWorkoutActivityType["bowling"] = 7] = "bowling";
|
|
38
|
-
HKWorkoutActivityType[HKWorkoutActivityType["boxing"] = 8] = "boxing";
|
|
39
|
-
HKWorkoutActivityType[HKWorkoutActivityType["climbing"] = 9] = "climbing";
|
|
40
|
-
HKWorkoutActivityType[HKWorkoutActivityType["cricket"] = 10] = "cricket";
|
|
41
|
-
HKWorkoutActivityType[HKWorkoutActivityType["crossTraining"] = 11] = "crossTraining";
|
|
42
|
-
HKWorkoutActivityType[HKWorkoutActivityType["curling"] = 12] = "curling";
|
|
43
|
-
HKWorkoutActivityType[HKWorkoutActivityType["cycling"] = 13] = "cycling";
|
|
44
|
-
HKWorkoutActivityType[HKWorkoutActivityType["dance"] = 14] = "dance";
|
|
45
|
-
HKWorkoutActivityType[HKWorkoutActivityType["danceInspiredTraining"] = 15] = "danceInspiredTraining";
|
|
46
|
-
HKWorkoutActivityType[HKWorkoutActivityType["elliptical"] = 16] = "elliptical";
|
|
47
|
-
HKWorkoutActivityType[HKWorkoutActivityType["equestrianSports"] = 17] = "equestrianSports";
|
|
48
|
-
HKWorkoutActivityType[HKWorkoutActivityType["fencing"] = 18] = "fencing";
|
|
49
|
-
HKWorkoutActivityType[HKWorkoutActivityType["fishing"] = 19] = "fishing";
|
|
50
|
-
HKWorkoutActivityType[HKWorkoutActivityType["functionalStrengthTraining"] = 20] = "functionalStrengthTraining";
|
|
51
|
-
HKWorkoutActivityType[HKWorkoutActivityType["golf"] = 21] = "golf";
|
|
52
|
-
HKWorkoutActivityType[HKWorkoutActivityType["gymnastics"] = 22] = "gymnastics";
|
|
53
|
-
HKWorkoutActivityType[HKWorkoutActivityType["handball"] = 23] = "handball";
|
|
54
|
-
HKWorkoutActivityType[HKWorkoutActivityType["hiking"] = 24] = "hiking";
|
|
55
|
-
HKWorkoutActivityType[HKWorkoutActivityType["hockey"] = 25] = "hockey";
|
|
56
|
-
HKWorkoutActivityType[HKWorkoutActivityType["hunting"] = 26] = "hunting";
|
|
57
|
-
HKWorkoutActivityType[HKWorkoutActivityType["lacrosse"] = 27] = "lacrosse";
|
|
58
|
-
HKWorkoutActivityType[HKWorkoutActivityType["martialArts"] = 28] = "martialArts";
|
|
59
|
-
HKWorkoutActivityType[HKWorkoutActivityType["mindAndBody"] = 29] = "mindAndBody";
|
|
60
|
-
HKWorkoutActivityType[HKWorkoutActivityType["mixedMetabolicCardioTraining"] = 30] = "mixedMetabolicCardioTraining";
|
|
61
|
-
HKWorkoutActivityType[HKWorkoutActivityType["paddleSports"] = 31] = "paddleSports";
|
|
62
|
-
HKWorkoutActivityType[HKWorkoutActivityType["play"] = 32] = "play";
|
|
63
|
-
HKWorkoutActivityType[HKWorkoutActivityType["preparationAndRecovery"] = 33] = "preparationAndRecovery";
|
|
64
|
-
HKWorkoutActivityType[HKWorkoutActivityType["racquetball"] = 34] = "racquetball";
|
|
65
|
-
HKWorkoutActivityType[HKWorkoutActivityType["rowing"] = 35] = "rowing";
|
|
66
|
-
HKWorkoutActivityType[HKWorkoutActivityType["rugby"] = 36] = "rugby";
|
|
67
|
-
HKWorkoutActivityType[HKWorkoutActivityType["running"] = 37] = "running";
|
|
68
|
-
HKWorkoutActivityType[HKWorkoutActivityType["sailing"] = 38] = "sailing";
|
|
69
|
-
HKWorkoutActivityType[HKWorkoutActivityType["skatingSports"] = 39] = "skatingSports";
|
|
70
|
-
HKWorkoutActivityType[HKWorkoutActivityType["snowSports"] = 40] = "snowSports";
|
|
71
|
-
HKWorkoutActivityType[HKWorkoutActivityType["soccer"] = 41] = "soccer";
|
|
72
|
-
HKWorkoutActivityType[HKWorkoutActivityType["softball"] = 42] = "softball";
|
|
73
|
-
HKWorkoutActivityType[HKWorkoutActivityType["squash"] = 43] = "squash";
|
|
74
|
-
HKWorkoutActivityType[HKWorkoutActivityType["stairClimbing"] = 44] = "stairClimbing";
|
|
75
|
-
HKWorkoutActivityType[HKWorkoutActivityType["surfingSports"] = 45] = "surfingSports";
|
|
76
|
-
HKWorkoutActivityType[HKWorkoutActivityType["swimming"] = 46] = "swimming";
|
|
77
|
-
HKWorkoutActivityType[HKWorkoutActivityType["tableTennis"] = 47] = "tableTennis";
|
|
78
|
-
HKWorkoutActivityType[HKWorkoutActivityType["tennis"] = 48] = "tennis";
|
|
79
|
-
HKWorkoutActivityType[HKWorkoutActivityType["trackAndField"] = 49] = "trackAndField";
|
|
80
|
-
HKWorkoutActivityType[HKWorkoutActivityType["traditionalStrengthTraining"] = 50] = "traditionalStrengthTraining";
|
|
81
|
-
HKWorkoutActivityType[HKWorkoutActivityType["volleyball"] = 51] = "volleyball";
|
|
82
|
-
HKWorkoutActivityType[HKWorkoutActivityType["walking"] = 52] = "walking";
|
|
83
|
-
HKWorkoutActivityType[HKWorkoutActivityType["waterFitness"] = 53] = "waterFitness";
|
|
84
|
-
HKWorkoutActivityType[HKWorkoutActivityType["waterPolo"] = 54] = "waterPolo";
|
|
85
|
-
HKWorkoutActivityType[HKWorkoutActivityType["waterSports"] = 55] = "waterSports";
|
|
86
|
-
HKWorkoutActivityType[HKWorkoutActivityType["wrestling"] = 56] = "wrestling";
|
|
87
|
-
HKWorkoutActivityType[HKWorkoutActivityType["yoga"] = 57] = "yoga";
|
|
88
|
-
HKWorkoutActivityType[HKWorkoutActivityType["barre"] = 58] = "barre";
|
|
89
|
-
HKWorkoutActivityType[HKWorkoutActivityType["coreTraining"] = 59] = "coreTraining";
|
|
90
|
-
HKWorkoutActivityType[HKWorkoutActivityType["crossCountrySkiing"] = 60] = "crossCountrySkiing";
|
|
91
|
-
HKWorkoutActivityType[HKWorkoutActivityType["downhillSkiing"] = 61] = "downhillSkiing";
|
|
92
|
-
HKWorkoutActivityType[HKWorkoutActivityType["flexibility"] = 62] = "flexibility";
|
|
93
|
-
HKWorkoutActivityType[HKWorkoutActivityType["highIntensityIntervalTraining"] = 63] = "highIntensityIntervalTraining";
|
|
94
|
-
HKWorkoutActivityType[HKWorkoutActivityType["jumpRope"] = 64] = "jumpRope";
|
|
95
|
-
HKWorkoutActivityType[HKWorkoutActivityType["kickboxing"] = 65] = "kickboxing";
|
|
96
|
-
HKWorkoutActivityType[HKWorkoutActivityType["pilates"] = 66] = "pilates";
|
|
97
|
-
HKWorkoutActivityType[HKWorkoutActivityType["snowboarding"] = 67] = "snowboarding";
|
|
98
|
-
HKWorkoutActivityType[HKWorkoutActivityType["stairs"] = 68] = "stairs";
|
|
99
|
-
HKWorkoutActivityType[HKWorkoutActivityType["stepTraining"] = 69] = "stepTraining";
|
|
100
|
-
HKWorkoutActivityType[HKWorkoutActivityType["wheelchairWalkPace"] = 70] = "wheelchairWalkPace";
|
|
101
|
-
HKWorkoutActivityType[HKWorkoutActivityType["wheelchairRunPace"] = 71] = "wheelchairRunPace";
|
|
102
|
-
HKWorkoutActivityType[HKWorkoutActivityType["taiChi"] = 72] = "taiChi";
|
|
103
|
-
HKWorkoutActivityType[HKWorkoutActivityType["mixedCardio"] = 73] = "mixedCardio";
|
|
104
|
-
HKWorkoutActivityType[HKWorkoutActivityType["handCycling"] = 74] = "handCycling";
|
|
105
|
-
HKWorkoutActivityType[HKWorkoutActivityType["discSports"] = 75] = "discSports";
|
|
106
|
-
HKWorkoutActivityType[HKWorkoutActivityType["fitnessGaming"] = 76] = "fitnessGaming";
|
|
107
|
-
HKWorkoutActivityType[HKWorkoutActivityType["other"] = 3000] = "other";
|
|
108
|
-
})(HKWorkoutActivityType || (HKWorkoutActivityType = {}));
|
|
109
|
-
// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition
|
|
110
|
-
export var HKWeatherCondition;
|
|
111
|
-
(function (HKWeatherCondition) {
|
|
112
|
-
HKWeatherCondition[HKWeatherCondition["none"] = 0] = "none";
|
|
113
|
-
HKWeatherCondition[HKWeatherCondition["clear"] = 1] = "clear";
|
|
114
|
-
HKWeatherCondition[HKWeatherCondition["fair"] = 2] = "fair";
|
|
115
|
-
HKWeatherCondition[HKWeatherCondition["partlyCloudy"] = 3] = "partlyCloudy";
|
|
116
|
-
HKWeatherCondition[HKWeatherCondition["mostlyCloudy"] = 4] = "mostlyCloudy";
|
|
117
|
-
HKWeatherCondition[HKWeatherCondition["cloudy"] = 5] = "cloudy";
|
|
118
|
-
HKWeatherCondition[HKWeatherCondition["foggy"] = 6] = "foggy";
|
|
119
|
-
HKWeatherCondition[HKWeatherCondition["haze"] = 7] = "haze";
|
|
120
|
-
HKWeatherCondition[HKWeatherCondition["windy"] = 8] = "windy";
|
|
121
|
-
HKWeatherCondition[HKWeatherCondition["blustery"] = 9] = "blustery";
|
|
122
|
-
HKWeatherCondition[HKWeatherCondition["smoky"] = 10] = "smoky";
|
|
123
|
-
HKWeatherCondition[HKWeatherCondition["dust"] = 11] = "dust";
|
|
124
|
-
HKWeatherCondition[HKWeatherCondition["snow"] = 12] = "snow";
|
|
125
|
-
HKWeatherCondition[HKWeatherCondition["hail"] = 13] = "hail";
|
|
126
|
-
HKWeatherCondition[HKWeatherCondition["sleet"] = 14] = "sleet";
|
|
127
|
-
HKWeatherCondition[HKWeatherCondition["freezingDrizzle"] = 15] = "freezingDrizzle";
|
|
128
|
-
HKWeatherCondition[HKWeatherCondition["freezingRain"] = 16] = "freezingRain";
|
|
129
|
-
HKWeatherCondition[HKWeatherCondition["mixedRainAndHail"] = 17] = "mixedRainAndHail";
|
|
130
|
-
HKWeatherCondition[HKWeatherCondition["mixedRainAndSnow"] = 18] = "mixedRainAndSnow";
|
|
131
|
-
HKWeatherCondition[HKWeatherCondition["mixedRainAndSleet"] = 19] = "mixedRainAndSleet";
|
|
132
|
-
HKWeatherCondition[HKWeatherCondition["mixedSnowAndSleet"] = 20] = "mixedSnowAndSleet";
|
|
133
|
-
HKWeatherCondition[HKWeatherCondition["drizzle"] = 21] = "drizzle";
|
|
134
|
-
HKWeatherCondition[HKWeatherCondition["scatteredShowers"] = 22] = "scatteredShowers";
|
|
135
|
-
HKWeatherCondition[HKWeatherCondition["showers"] = 23] = "showers";
|
|
136
|
-
HKWeatherCondition[HKWeatherCondition["thunderstorms"] = 24] = "thunderstorms";
|
|
137
|
-
HKWeatherCondition[HKWeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
|
|
138
|
-
HKWeatherCondition[HKWeatherCondition["hurricane"] = 26] = "hurricane";
|
|
139
|
-
HKWeatherCondition[HKWeatherCondition["tornado"] = 27] = "tornado";
|
|
140
|
-
})(HKWeatherCondition || (HKWeatherCondition = {}));
|
|
141
|
-
// Straight mapping to https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier
|
|
142
|
-
export var HKQuantityTypeIdentifier;
|
|
143
|
-
(function (HKQuantityTypeIdentifier) {
|
|
144
|
-
HKQuantityTypeIdentifier["bodyMassIndex"] = "HKQuantityTypeIdentifierBodyMassIndex";
|
|
145
|
-
HKQuantityTypeIdentifier["bodyFatPercentage"] = "HKQuantityTypeIdentifierBodyFatPercentage";
|
|
146
|
-
HKQuantityTypeIdentifier["height"] = "HKQuantityTypeIdentifierHeight";
|
|
147
|
-
HKQuantityTypeIdentifier["bodyMass"] = "HKQuantityTypeIdentifierBodyMass";
|
|
148
|
-
HKQuantityTypeIdentifier["leanBodyMass"] = "HKQuantityTypeIdentifierLeanBodyMass";
|
|
149
|
-
HKQuantityTypeIdentifier["waistCircumference"] = "HKQuantityTypeIdentifierWaistCircumference";
|
|
150
|
-
// Fitness
|
|
151
|
-
HKQuantityTypeIdentifier["stepCount"] = "HKQuantityTypeIdentifierStepCount";
|
|
152
|
-
HKQuantityTypeIdentifier["distanceWalkingRunning"] = "HKQuantityTypeIdentifierDistanceWalkingRunning";
|
|
153
|
-
HKQuantityTypeIdentifier["distanceCycling"] = "HKQuantityTypeIdentifierDistanceCycling";
|
|
154
|
-
HKQuantityTypeIdentifier["distanceWheelchair"] = "HKQuantityTypeIdentifierDistanceWheelchair";
|
|
155
|
-
HKQuantityTypeIdentifier["basalEnergyBurned"] = "HKQuantityTypeIdentifierBasalEnergyBurned";
|
|
156
|
-
HKQuantityTypeIdentifier["activeEnergyBurned"] = "HKQuantityTypeIdentifierActiveEnergyBurned";
|
|
157
|
-
HKQuantityTypeIdentifier["flightsClimbed"] = "HKQuantityTypeIdentifierFlightsClimbed";
|
|
158
|
-
HKQuantityTypeIdentifier["nikeFuel"] = "HKQuantityTypeIdentifierNikeFuel";
|
|
159
|
-
HKQuantityTypeIdentifier["appleExerciseTime"] = "HKQuantityTypeIdentifierAppleExerciseTime";
|
|
160
|
-
HKQuantityTypeIdentifier["pushCount"] = "HKQuantityTypeIdentifierPushCount";
|
|
161
|
-
HKQuantityTypeIdentifier["distanceSwimming"] = "HKQuantityTypeIdentifierDistanceSwimming";
|
|
162
|
-
HKQuantityTypeIdentifier["swimmingStrokeCount"] = "HKQuantityTypeIdentifierSwimmingStrokeCount";
|
|
163
|
-
HKQuantityTypeIdentifier["vo2Max"] = "HKQuantityTypeIdentifierVo2Max";
|
|
164
|
-
HKQuantityTypeIdentifier["distanceDownhillSnowSports"] = "HKQuantityTypeIdentifierDistanceDownhillSnowSports";
|
|
165
|
-
HKQuantityTypeIdentifier["appleStandTime"] = "HKQuantityTypeIdentifierAppleStandTime";
|
|
166
|
-
// Vitals
|
|
167
|
-
HKQuantityTypeIdentifier["heartRate"] = "HKQuantityTypeIdentifierHeartRate";
|
|
168
|
-
HKQuantityTypeIdentifier["bodyTemperature"] = "HKQuantityTypeIdentifierBodyTemperature";
|
|
169
|
-
HKQuantityTypeIdentifier["basalBodyTemperature"] = "HKQuantityTypeIdentifierBasalBodyTemperature";
|
|
170
|
-
HKQuantityTypeIdentifier["bloodPressureSystolic"] = "HKQuantityTypeIdentifierBloodPressureSystolic";
|
|
171
|
-
HKQuantityTypeIdentifier["bloodPressureDiastolic"] = "HKQuantityTypeIdentifierBloodPressureDiastolic";
|
|
172
|
-
HKQuantityTypeIdentifier["respiratoryRate"] = "HKQuantityTypeIdentifierRespiratoryRate";
|
|
173
|
-
// Beats per minute estimate of a user's lowest heart rate while at rest
|
|
174
|
-
HKQuantityTypeIdentifier["restingHeartRate"] = "HKQuantityTypeIdentifierRestingHeartRate";
|
|
175
|
-
// Average heartbeats per minute captured by an Apple Watch while a user is walking
|
|
176
|
-
HKQuantityTypeIdentifier["walkingHeartRateAverage"] = "HKQuantityTypeIdentifierWalkingHeartRateAverage";
|
|
177
|
-
// The standard deviation of heart beat-to-beat intevals (Standard Deviation of Normal to Normal)
|
|
178
|
-
HKQuantityTypeIdentifier["heartRateVariabilitySDNN"] = "HKQuantityTypeIdentifierHeartRateVariabilitySDNN";
|
|
179
|
-
// Results
|
|
180
|
-
HKQuantityTypeIdentifier["oxygenSaturation"] = "HKQuantityTypeIdentifierOxygenSaturation";
|
|
181
|
-
HKQuantityTypeIdentifier["peripheralPerfusionIndex"] = "HKQuantityTypeIdentifierPeripheralPerfusionIndex";
|
|
182
|
-
HKQuantityTypeIdentifier["bloodGlucose"] = "HKQuantityTypeIdentifierBloodGlucose";
|
|
183
|
-
HKQuantityTypeIdentifier["numberOfTimesFallen"] = "HKQuantityTypeIdentifierNumberOfTimesFallen";
|
|
184
|
-
HKQuantityTypeIdentifier["electrodermalActivity"] = "HKQuantityTypeIdentifierElectrodermalActivity";
|
|
185
|
-
HKQuantityTypeIdentifier["inhalerUsage"] = "HKQuantityTypeIdentifierInhalerUsage";
|
|
186
|
-
HKQuantityTypeIdentifier["insulinDelivery"] = "HKQuantityTypeIdentifierInsulinDelivery";
|
|
187
|
-
HKQuantityTypeIdentifier["bloodAlcoholContent"] = "HKQuantityTypeIdentifierBloodAlcoholContent";
|
|
188
|
-
HKQuantityTypeIdentifier["forcedVitalCapacity"] = "HKQuantityTypeIdentifierForcedVitalCapacity";
|
|
189
|
-
HKQuantityTypeIdentifier["forcedExpiratoryVolume1"] = "HKQuantityTypeIdentifierForcedExpiratoryVolume1";
|
|
190
|
-
HKQuantityTypeIdentifier["peakExpiratoryFlowRate"] = "HKQuantityTypeIdentifierPeakExpiratoryFlowRate";
|
|
191
|
-
HKQuantityTypeIdentifier["environmentalAudioExposure"] = "HKQuantityTypeIdentifierEnvironmentalAudioExposure";
|
|
192
|
-
HKQuantityTypeIdentifier["headphoneAudioExposure"] = "HKQuantityTypeIdentifierHeadphoneAudioExposure";
|
|
193
|
-
// Nutrition
|
|
194
|
-
HKQuantityTypeIdentifier["dietaryFatTotal"] = "HKQuantityTypeIdentifierDietaryFatTotal";
|
|
195
|
-
HKQuantityTypeIdentifier["dietaryFatPolyunsaturated"] = "HKQuantityTypeIdentifierDietaryFatPolyunsaturated";
|
|
196
|
-
HKQuantityTypeIdentifier["dietaryFatMonounsaturated"] = "HKQuantityTypeIdentifierDietaryFatMonounsaturated";
|
|
197
|
-
HKQuantityTypeIdentifier["dietaryFatSaturated"] = "HKQuantityTypeIdentifierDietaryFatSaturated";
|
|
198
|
-
HKQuantityTypeIdentifier["dietaryCholesterol"] = "HKQuantityTypeIdentifierDietaryCholesterol";
|
|
199
|
-
HKQuantityTypeIdentifier["dietarySodium"] = "HKQuantityTypeIdentifierDietarySodium";
|
|
200
|
-
HKQuantityTypeIdentifier["dietaryCarbohydrates"] = "HKQuantityTypeIdentifierDietaryCarbohydrates";
|
|
201
|
-
HKQuantityTypeIdentifier["dietaryFiber"] = "HKQuantityTypeIdentifierDietaryFiber";
|
|
202
|
-
HKQuantityTypeIdentifier["dietarySugar"] = "HKQuantityTypeIdentifierDietarySugar";
|
|
203
|
-
HKQuantityTypeIdentifier["dietaryEnergyConsumed"] = "HKQuantityTypeIdentifierDietaryEnergyConsumed";
|
|
204
|
-
HKQuantityTypeIdentifier["dietaryProtein"] = "HKQuantityTypeIdentifierDietaryProtein";
|
|
205
|
-
HKQuantityTypeIdentifier["dietaryVitaminA"] = "HKQuantityTypeIdentifierDietaryVitaminA";
|
|
206
|
-
HKQuantityTypeIdentifier["dietaryVitaminB6"] = "HKQuantityTypeIdentifierDietaryVitaminB6";
|
|
207
|
-
HKQuantityTypeIdentifier["dietaryVitaminB12"] = "HKQuantityTypeIdentifierDietaryVitaminB12";
|
|
208
|
-
HKQuantityTypeIdentifier["dietaryVitaminC"] = "HKQuantityTypeIdentifierDietaryVitaminC";
|
|
209
|
-
HKQuantityTypeIdentifier["dietaryVitaminD"] = "HKQuantityTypeIdentifierDietaryVitaminD";
|
|
210
|
-
HKQuantityTypeIdentifier["dietaryVitaminE"] = "HKQuantityTypeIdentifierDietaryVitaminE";
|
|
211
|
-
HKQuantityTypeIdentifier["dietaryVitaminK"] = "HKQuantityTypeIdentifierDietaryVitaminK";
|
|
212
|
-
HKQuantityTypeIdentifier["dietaryCalcium"] = "HKQuantityTypeIdentifierDietaryCalcium";
|
|
213
|
-
HKQuantityTypeIdentifier["dietaryIron"] = "HKQuantityTypeIdentifierDietaryIron";
|
|
214
|
-
HKQuantityTypeIdentifier["dietaryThiamin"] = "HKQuantityTypeIdentifierDietaryThiamin";
|
|
215
|
-
HKQuantityTypeIdentifier["dietaryRiboflavin"] = "HKQuantityTypeIdentifierDietaryRiboflavin";
|
|
216
|
-
HKQuantityTypeIdentifier["dietaryNiacin"] = "HKQuantityTypeIdentifierDietaryNiacin";
|
|
217
|
-
HKQuantityTypeIdentifier["dietaryFolate"] = "HKQuantityTypeIdentifierDietaryFolate";
|
|
218
|
-
HKQuantityTypeIdentifier["dietaryBiotin"] = "HKQuantityTypeIdentifierDietaryBiotin";
|
|
219
|
-
HKQuantityTypeIdentifier["dietaryPantothenicAcid"] = "HKQuantityTypeIdentifierDietaryPantothenicAcid";
|
|
220
|
-
HKQuantityTypeIdentifier["dietaryPhosphorus"] = "HKQuantityTypeIdentifierDietaryPhosphorus";
|
|
221
|
-
HKQuantityTypeIdentifier["dietaryIodine"] = "HKQuantityTypeIdentifierDietaryIodine";
|
|
222
|
-
HKQuantityTypeIdentifier["dietaryMagnesium"] = "HKQuantityTypeIdentifierDietaryMagnesium";
|
|
223
|
-
HKQuantityTypeIdentifier["dietaryZinc"] = "HKQuantityTypeIdentifierDietaryZinc";
|
|
224
|
-
HKQuantityTypeIdentifier["dietarySelenium"] = "HKQuantityTypeIdentifierDietarySelenium";
|
|
225
|
-
HKQuantityTypeIdentifier["dietaryCopper"] = "HKQuantityTypeIdentifierDietaryCopper";
|
|
226
|
-
HKQuantityTypeIdentifier["dietaryManganese"] = "HKQuantityTypeIdentifierDietaryManganese";
|
|
227
|
-
HKQuantityTypeIdentifier["dietaryChromium"] = "HKQuantityTypeIdentifierDietaryChromium";
|
|
228
|
-
HKQuantityTypeIdentifier["dietaryMolybdenum"] = "HKQuantityTypeIdentifierDietaryMolybdenum";
|
|
229
|
-
HKQuantityTypeIdentifier["dietaryChloride"] = "HKQuantityTypeIdentifierDietaryChloride";
|
|
230
|
-
HKQuantityTypeIdentifier["dietaryPotassium"] = "HKQuantityTypeIdentifierDietaryPotassium";
|
|
231
|
-
HKQuantityTypeIdentifier["dietaryCaffeine"] = "HKQuantityTypeIdentifierDietaryCaffeine";
|
|
232
|
-
HKQuantityTypeIdentifier["dietaryWater"] = "HKQuantityTypeIdentifierDietaryWater";
|
|
233
|
-
// Mobility
|
|
234
|
-
HKQuantityTypeIdentifier["sixMinuteWalkTestDistance"] = "HKQuantityTypeIdentifierSixMinuteWalkTestDistance";
|
|
235
|
-
HKQuantityTypeIdentifier["walkingSpeed"] = "HKQuantityTypeIdentifierWalkingSpeed";
|
|
236
|
-
HKQuantityTypeIdentifier["walkingStepLength"] = "HKQuantityTypeIdentifierWalkingStepLength";
|
|
237
|
-
HKQuantityTypeIdentifier["walkingAsymmetryPercentage"] = "HKQuantityTypeIdentifierWalkingAsymmetryPercentage";
|
|
238
|
-
HKQuantityTypeIdentifier["walkingDoubleSupportPercentage"] = "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage";
|
|
239
|
-
HKQuantityTypeIdentifier["stairAscentSpeed"] = "HKQuantityTypeIdentifierStairAscentSpeed";
|
|
240
|
-
HKQuantityTypeIdentifier["stairDescentSpeed"] = "HKQuantityTypeIdentifierStairDescentSpeed";
|
|
241
|
-
HKQuantityTypeIdentifier["uvExposure"] = "HKQuantityTypeIdentifierUvExposure";
|
|
242
|
-
})(HKQuantityTypeIdentifier || (HKQuantityTypeIdentifier = {}));
|
|
243
|
-
export var HKAuthorizationRequestStatus;
|
|
244
|
-
(function (HKAuthorizationRequestStatus) {
|
|
245
|
-
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unknown"] = 0] = "unknown";
|
|
246
|
-
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["shouldRequest"] = 1] = "shouldRequest";
|
|
247
|
-
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unnecessary"] = 2] = "unnecessary";
|
|
248
|
-
})(HKAuthorizationRequestStatus || (HKAuthorizationRequestStatus = {}));
|
|
249
|
-
export var HKBloodType;
|
|
250
|
-
(function (HKBloodType) {
|
|
251
|
-
HKBloodType[HKBloodType["notSet"] = 0] = "notSet";
|
|
252
|
-
HKBloodType[HKBloodType["aPositive"] = 1] = "aPositive";
|
|
253
|
-
HKBloodType[HKBloodType["aNegative"] = 2] = "aNegative";
|
|
254
|
-
HKBloodType[HKBloodType["bPositive"] = 3] = "bPositive";
|
|
255
|
-
HKBloodType[HKBloodType["bNegative"] = 4] = "bNegative";
|
|
256
|
-
HKBloodType[HKBloodType["abPositive"] = 5] = "abPositive";
|
|
257
|
-
HKBloodType[HKBloodType["abNegative"] = 6] = "abNegative";
|
|
258
|
-
HKBloodType[HKBloodType["oPositive"] = 7] = "oPositive";
|
|
259
|
-
HKBloodType[HKBloodType["oNegative"] = 8] = "oNegative";
|
|
260
|
-
})(HKBloodType || (HKBloodType = {}));
|
|
261
|
-
export var HKBiologicalSex;
|
|
262
|
-
(function (HKBiologicalSex) {
|
|
263
|
-
HKBiologicalSex[HKBiologicalSex["notSet"] = 0] = "notSet";
|
|
264
|
-
HKBiologicalSex[HKBiologicalSex["female"] = 1] = "female";
|
|
265
|
-
HKBiologicalSex[HKBiologicalSex["male"] = 2] = "male";
|
|
266
|
-
HKBiologicalSex[HKBiologicalSex["other"] = 3] = "other";
|
|
267
|
-
})(HKBiologicalSex || (HKBiologicalSex = {}));
|
|
268
|
-
export var HKFitzpatrickSkinType;
|
|
269
|
-
(function (HKFitzpatrickSkinType) {
|
|
270
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["notSet"] = 0] = "notSet";
|
|
271
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["I"] = 1] = "I";
|
|
272
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["II"] = 2] = "II";
|
|
273
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["III"] = 3] = "III";
|
|
274
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["IV"] = 4] = "IV";
|
|
275
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["V"] = 5] = "V";
|
|
276
|
-
HKFitzpatrickSkinType[HKFitzpatrickSkinType["VI"] = 6] = "VI";
|
|
277
|
-
})(HKFitzpatrickSkinType || (HKFitzpatrickSkinType = {}));
|
|
278
|
-
export var HKStatisticsOptions;
|
|
279
|
-
(function (HKStatisticsOptions) {
|
|
280
|
-
HKStatisticsOptions["cumulativeSum"] = "cumulativeSum";
|
|
281
|
-
HKStatisticsOptions["discreteAverage"] = "discreteAverage";
|
|
282
|
-
HKStatisticsOptions["discreteMax"] = "discreteMax";
|
|
283
|
-
HKStatisticsOptions["discreteMin"] = "discreteMin";
|
|
284
|
-
HKStatisticsOptions["discreteMostRecent"] = "discreteMostRecent";
|
|
285
|
-
HKStatisticsOptions["duration"] = "duration";
|
|
286
|
-
HKStatisticsOptions["mostRecent"] = "mostRecent";
|
|
287
|
-
HKStatisticsOptions["separateBySource"] = "separateBySource";
|
|
288
|
-
})(HKStatisticsOptions || (HKStatisticsOptions = {}));
|
|
289
|
-
export var HKCategoryValueCervicalMucusQuality;
|
|
290
|
-
(function (HKCategoryValueCervicalMucusQuality) {
|
|
291
|
-
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["dry"] = 1] = "dry";
|
|
292
|
-
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["sticky"] = 2] = "sticky";
|
|
293
|
-
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["creamy"] = 3] = "creamy";
|
|
294
|
-
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["watery"] = 4] = "watery";
|
|
295
|
-
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["eggWhite"] = 5] = "eggWhite";
|
|
296
|
-
})(HKCategoryValueCervicalMucusQuality || (HKCategoryValueCervicalMucusQuality = {}));
|
|
297
|
-
export var HKCategoryValueMenstrualFlow;
|
|
298
|
-
(function (HKCategoryValueMenstrualFlow) {
|
|
299
|
-
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
|
|
300
|
-
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["none"] = 5] = "none";
|
|
301
|
-
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["light"] = 2] = "light";
|
|
302
|
-
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["medium"] = 3] = "medium";
|
|
303
|
-
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["heavy"] = 4] = "heavy";
|
|
304
|
-
})(HKCategoryValueMenstrualFlow || (HKCategoryValueMenstrualFlow = {}));
|
|
305
|
-
export var HKCategoryValueOvulationTestResult;
|
|
306
|
-
(function (HKCategoryValueOvulationTestResult) {
|
|
307
|
-
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["negative"] = 1] = "negative";
|
|
308
|
-
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
|
|
309
|
-
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
|
|
310
|
-
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["estrogenSurge"] = 4] = "estrogenSurge";
|
|
311
|
-
})(HKCategoryValueOvulationTestResult || (HKCategoryValueOvulationTestResult = {}));
|
|
312
|
-
export var HKCategoryValueSleepAnalysis;
|
|
313
|
-
(function (HKCategoryValueSleepAnalysis) {
|
|
314
|
-
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
|
|
315
|
-
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleep"] = 1] = "asleep";
|
|
316
|
-
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["awake"] = 2] = "awake";
|
|
317
|
-
})(HKCategoryValueSleepAnalysis || (HKCategoryValueSleepAnalysis = {}));
|
|
318
|
-
export var HKCategoryValueAppetiteChanges;
|
|
319
|
-
(function (HKCategoryValueAppetiteChanges) {
|
|
320
|
-
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
|
|
321
|
-
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["increased"] = 3] = "increased";
|
|
322
|
-
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
|
|
323
|
-
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["unspecified"] = 0] = "unspecified";
|
|
324
|
-
})(HKCategoryValueAppetiteChanges || (HKCategoryValueAppetiteChanges = {}));
|
|
325
|
-
export var HKCategoryValuePresence;
|
|
326
|
-
(function (HKCategoryValuePresence) {
|
|
327
|
-
HKCategoryValuePresence[HKCategoryValuePresence["notPresent"] = 1] = "notPresent";
|
|
328
|
-
HKCategoryValuePresence[HKCategoryValuePresence["present"] = 0] = "present";
|
|
329
|
-
})(HKCategoryValuePresence || (HKCategoryValuePresence = {}));
|
|
330
|
-
export var HKCategoryValueSeverity;
|
|
331
|
-
(function (HKCategoryValueSeverity) {
|
|
332
|
-
HKCategoryValueSeverity[HKCategoryValueSeverity["notPresent"] = 1] = "notPresent";
|
|
333
|
-
HKCategoryValueSeverity[HKCategoryValueSeverity["mild"] = 2] = "mild";
|
|
334
|
-
HKCategoryValueSeverity[HKCategoryValueSeverity["moderate"] = 3] = "moderate";
|
|
335
|
-
HKCategoryValueSeverity[HKCategoryValueSeverity["severe"] = 4] = "severe";
|
|
336
|
-
HKCategoryValueSeverity[HKCategoryValueSeverity["unspecified"] = 0] = "unspecified";
|
|
337
|
-
})(HKCategoryValueSeverity || (HKCategoryValueSeverity = {}));
|
|
338
|
-
export var HKCategoryValueNotApplicable;
|
|
339
|
-
(function (HKCategoryValueNotApplicable) {
|
|
340
|
-
HKCategoryValueNotApplicable[HKCategoryValueNotApplicable["notApplicable"] = 0] = "notApplicable";
|
|
341
|
-
})(HKCategoryValueNotApplicable || (HKCategoryValueNotApplicable = {}));
|
|
342
|
-
export var HKInsulinDeliveryReason;
|
|
343
|
-
(function (HKInsulinDeliveryReason) {
|
|
344
|
-
HKInsulinDeliveryReason[HKInsulinDeliveryReason["basal"] = 1] = "basal";
|
|
345
|
-
HKInsulinDeliveryReason[HKInsulinDeliveryReason["bolus"] = 2] = "bolus";
|
|
346
|
-
})(HKInsulinDeliveryReason || (HKInsulinDeliveryReason = {}));
|
|
347
|
-
// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse
|
|
348
|
-
export var HKWheelchairUse;
|
|
349
|
-
(function (HKWheelchairUse) {
|
|
350
|
-
HKWheelchairUse[HKWheelchairUse["notSet"] = 0] = "notSet";
|
|
351
|
-
HKWheelchairUse[HKWheelchairUse["no"] = 1] = "no";
|
|
352
|
-
HKWheelchairUse[HKWheelchairUse["yes"] = 2] = "yes";
|
|
353
|
-
})(HKWheelchairUse || (HKWheelchairUse = {}));
|
|
354
|
-
// Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init
|
|
355
|
-
export var HKUnitSIPrefix;
|
|
356
|
-
(function (HKUnitSIPrefix) {
|
|
357
|
-
HKUnitSIPrefix["Pico"] = "p";
|
|
358
|
-
HKUnitSIPrefix["Nano"] = "n";
|
|
359
|
-
HKUnitSIPrefix["Micro"] = "mc";
|
|
360
|
-
HKUnitSIPrefix["Milli"] = "m";
|
|
361
|
-
HKUnitSIPrefix["Centi"] = "c";
|
|
362
|
-
HKUnitSIPrefix["Deci"] = "d";
|
|
363
|
-
HKUnitSIPrefix["Deca"] = "da";
|
|
364
|
-
HKUnitSIPrefix["Hecto"] = "h";
|
|
365
|
-
HKUnitSIPrefix["Kilo"] = "k";
|
|
366
|
-
HKUnitSIPrefix["Mega"] = "M";
|
|
367
|
-
HKUnitSIPrefix["Giga"] = "G";
|
|
368
|
-
HKUnitSIPrefix["Tera"] = "T";
|
|
369
|
-
})(HKUnitSIPrefix || (HKUnitSIPrefix = {}));
|
|
370
|
-
export var HKUnitSI;
|
|
371
|
-
(function (HKUnitSI) {
|
|
372
|
-
HKUnitSI["Grams"] = "g";
|
|
373
|
-
HKUnitSI["Joules"] = "J";
|
|
374
|
-
HKUnitSI["Kelvin"] = "K";
|
|
375
|
-
HKUnitSI["Liters"] = "l";
|
|
376
|
-
HKUnitSI["Meters"] = "m";
|
|
377
|
-
HKUnitSI["Pascals"] = "Pa";
|
|
378
|
-
HKUnitSI["Seconds"] = "s";
|
|
379
|
-
HKUnitSI["Siemens"] = "S";
|
|
380
|
-
})(HKUnitSI || (HKUnitSI = {}));
|
|
381
|
-
export var HKUnit;
|
|
382
|
-
(function (HKUnit) {
|
|
383
|
-
HKUnit["Grams"] = "g";
|
|
384
|
-
HKUnit["Joules"] = "J";
|
|
385
|
-
HKUnit["Kelvin"] = "K";
|
|
386
|
-
HKUnit["Liters"] = "l";
|
|
387
|
-
HKUnit["Meters"] = "m";
|
|
388
|
-
HKUnit["Pascals"] = "Pa";
|
|
389
|
-
HKUnit["Seconds"] = "s";
|
|
390
|
-
HKUnit["Siemens"] = "S";
|
|
391
|
-
HKUnit["Atmospheres"] = "atm";
|
|
392
|
-
HKUnit["CentimetersOfWater"] = "cmAq";
|
|
393
|
-
HKUnit["Count"] = "count";
|
|
394
|
-
HKUnit["Days"] = "d";
|
|
395
|
-
HKUnit["DecibelHearingLevel"] = "dBHL";
|
|
396
|
-
HKUnit["DecibelSoundPressureLevel"] = "dBASPL";
|
|
397
|
-
HKUnit["DegreesCelsius"] = "degC";
|
|
398
|
-
HKUnit["DegreesFahrenheit"] = "degF";
|
|
399
|
-
HKUnit["Feet"] = "ft";
|
|
400
|
-
HKUnit["Hertz"] = "Hz";
|
|
401
|
-
HKUnit["Hours"] = "hr";
|
|
402
|
-
HKUnit["ImperialCup"] = "cup_imp";
|
|
403
|
-
HKUnit["ImperialFluidOunces"] = "fl_oz_imp";
|
|
404
|
-
HKUnit["ImperialPint"] = "pt_imp";
|
|
405
|
-
HKUnit["Inches"] = "in";
|
|
406
|
-
HKUnit["InternationalUnit"] = "IU";
|
|
407
|
-
HKUnit["Kilocalories"] = "kcal";
|
|
408
|
-
HKUnit["LargeCalories"] = "Cal";
|
|
409
|
-
HKUnit["Miles"] = "mi";
|
|
410
|
-
HKUnit["MillimetersOfMercury"] = "mmHg";
|
|
411
|
-
HKUnit["Minutes"] = "min";
|
|
412
|
-
HKUnit["Ounces"] = "oz";
|
|
413
|
-
HKUnit["Percent"] = "%";
|
|
414
|
-
HKUnit["Pounds"] = "lb";
|
|
415
|
-
HKUnit["SmallCalories"] = "cal";
|
|
416
|
-
HKUnit["Stones"] = "st";
|
|
417
|
-
HKUnit["USCup"] = "cup_us";
|
|
418
|
-
HKUnit["USFluidOunces"] = "fl_oz_us";
|
|
419
|
-
HKUnit["USPint"] = "pt_us";
|
|
420
|
-
HKUnit["Yard"] = "yd";
|
|
421
|
-
HKUnit["GlucoseMmolPerL"] = "mmol<180.15588000005408>/l";
|
|
422
|
-
HKUnit["GlucoseMgPerDl"] = "mg/dL";
|
|
423
|
-
})(HKUnit || (HKUnit = {}));
|
|
424
|
-
// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier
|
|
425
|
-
export var HKCharacteristicTypeIdentifier;
|
|
426
|
-
(function (HKCharacteristicTypeIdentifier) {
|
|
427
|
-
HKCharacteristicTypeIdentifier["fitzpatrickSkinType"] = "HKCharacteristicTypeIdentifierFitzpatrickSkinType";
|
|
428
|
-
HKCharacteristicTypeIdentifier["biologicalSex"] = "HKCharacteristicTypeIdentifierBiologicalSex";
|
|
429
|
-
HKCharacteristicTypeIdentifier["bloodType"] = "HKCharacteristicTypeIdentifierBloodType";
|
|
430
|
-
HKCharacteristicTypeIdentifier["dateOfBirth"] = "HKCharacteristicTypeIdentifierDateOfBirth";
|
|
431
|
-
HKCharacteristicTypeIdentifier["wheelchairUse"] = "HKCharacteristicTypeIdentifierWheelchairUse";
|
|
432
|
-
})(HKCharacteristicTypeIdentifier || (HKCharacteristicTypeIdentifier = {}));
|
|
433
|
-
export var HKCorrelationTypeIdentifier;
|
|
434
|
-
(function (HKCorrelationTypeIdentifier) {
|
|
435
|
-
HKCorrelationTypeIdentifier["bloodPressure"] = "HKCorrelationTypeIdentifierBloodPressure";
|
|
436
|
-
HKCorrelationTypeIdentifier["food"] = "HKCorrelationTypeIdentifierFood";
|
|
437
|
-
})(HKCorrelationTypeIdentifier || (HKCorrelationTypeIdentifier = {}));
|
|
438
|
-
export var HKUpdateFrequency;
|
|
439
|
-
(function (HKUpdateFrequency) {
|
|
440
|
-
HKUpdateFrequency[HKUpdateFrequency["immediate"] = 1] = "immediate";
|
|
441
|
-
HKUpdateFrequency[HKUpdateFrequency["hourly"] = 2] = "hourly";
|
|
442
|
-
HKUpdateFrequency[HKUpdateFrequency["daily"] = 3] = "daily";
|
|
443
|
-
HKUpdateFrequency[HKUpdateFrequency["weekly"] = 4] = "weekly";
|
|
444
|
-
})(HKUpdateFrequency || (HKUpdateFrequency = {}));
|
|
445
|
-
const Native = NativeModules.ReactNativeHealthkit;
|
|
446
|
-
export const EventEmitter = new NativeEventEmitter(NativeModules.ReactNativeHealthkit);
|
|
447
|
-
export default Native;
|