@appeeky/expo-healthkit 0.1.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/CHANGELOG.md +26 -0
- package/LICENSE +92 -0
- package/README.md +453 -0
- package/android/build.gradle +22 -0
- package/android/src/main/AndroidManifest.xml +74 -0
- package/android/src/main/java/expo/modules/healthkit/ExpoHealthKitModule.kt +228 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectMapping.kt +129 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectNutrition.kt +152 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectRationaleActivity.kt +62 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectService.kt +1054 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectUnits.kt +133 -0
- package/android/src/main/java/expo/modules/healthkit/HealthConnectWorkouts.kt +105 -0
- package/android/src/main/java/expo/modules/healthkit/HealthKitExceptions.kt +30 -0
- package/app.plugin.js +1 -0
- package/build/ExpoHealthKitModule.d.ts +39 -0
- package/build/ExpoHealthKitModule.d.ts.map +1 -0
- package/build/ExpoHealthKitModule.js +35 -0
- package/build/ExpoHealthKitModule.js.map +1 -0
- package/build/ExpoHealthKitModule.web.d.ts +39 -0
- package/build/ExpoHealthKitModule.web.d.ts.map +1 -0
- package/build/ExpoHealthKitModule.web.js +105 -0
- package/build/ExpoHealthKitModule.web.js.map +1 -0
- package/build/dates.d.ts +6 -0
- package/build/dates.d.ts.map +1 -0
- package/build/dates.js +13 -0
- package/build/dates.js.map +1 -0
- package/build/errors.d.ts +9 -0
- package/build/errors.d.ts.map +1 -0
- package/build/errors.js +18 -0
- package/build/errors.js.map +1 -0
- package/build/identifiers.d.ts +418 -0
- package/build/identifiers.d.ts.map +1 -0
- package/build/identifiers.js +402 -0
- package/build/identifiers.js.map +1 -0
- package/build/index.d.ts +454 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +418 -0
- package/build/index.js.map +1 -0
- package/build/types.d.ts +542 -0
- package/build/types.d.ts.map +1 -0
- package/build/types.js +2 -0
- package/build/types.js.map +1 -0
- package/docs/banner.jpg +0 -0
- package/expo-module.config.json +9 -0
- package/ios/ExpoHealthKit.podspec +30 -0
- package/ios/ExpoHealthKitModule.swift +155 -0
- package/ios/HealthKitAdvancedQueries.swift +458 -0
- package/ios/HealthKitExceptions.swift +109 -0
- package/ios/HealthKitIdentifiers.swift +183 -0
- package/ios/HealthKitRecords.swift +214 -0
- package/ios/HealthKitService.swift +626 -0
- package/ios/PrivacyInfo.xcprivacy +14 -0
- package/package.json +105 -0
- package/plugin/build/index.d.ts +30 -0
- package/plugin/build/index.js +138 -0
- package/src/ExpoHealthKitModule.ts +116 -0
- package/src/ExpoHealthKitModule.web.ts +140 -0
- package/src/dates.ts +17 -0
- package/src/errors.ts +22 -0
- package/src/identifiers.ts +494 -0
- package/src/index.ts +563 -0
- package/src/types.ts +625 -0
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { AuthorizationRequestStatus, AuthorizationStatus, BiologicalSex, BloodType, FitzpatrickSkinType, UpdateFrequency, WheelchairUse } from './identifiers';
|
|
2
|
+
import type { AnchoredQueryOptions, AnchoredQueryResult, AuthorizationOptions, CategorySample, CategorySampleInput, ClinicalRecord, ClinicalRecordQueryOptions, Correlation, CorrelationInput, CorrelationQueryOptions, DeleteObjectsOptions, ElectrocardiogramQueryOptions, ElectrocardiogramSample, ActivitySummary, ActivitySummaryQueryOptions, AudiogramSample, DateRangeQueryOptions, HeartbeatSeriesQueryOptions, HeartbeatSeriesSample, QuantityQueryOptions, QuantitySample, SampleQueryOptions, QuantitySampleInput, Statistics, StatisticsCollectionQueryOptions, StatisticsQueryOptions, WorkoutInput, WorkoutQueryOptions, WorkoutRoute, WorkoutRouteQueryOptions, WorkoutSample } from './types';
|
|
3
|
+
export * from './identifiers';
|
|
4
|
+
export * from './errors';
|
|
5
|
+
export type * from './types';
|
|
6
|
+
export declare function isAvailable(): boolean;
|
|
7
|
+
export declare function requestAuthorization(options?: AuthorizationOptions): Promise<boolean>;
|
|
8
|
+
export declare function getAuthorizationStatus(type: string): Promise<AuthorizationStatus>;
|
|
9
|
+
export declare function getRequestStatusForAuthorization(options?: AuthorizationOptions): Promise<AuthorizationRequestStatus>;
|
|
10
|
+
export declare function queryQuantitySamples(options: QuantityQueryOptions): Promise<QuantitySample[]>;
|
|
11
|
+
export declare function queryCategorySamples(options: SampleQueryOptions): Promise<CategorySample[]>;
|
|
12
|
+
export declare function queryWorkouts(options?: WorkoutQueryOptions): Promise<WorkoutSample[]>;
|
|
13
|
+
export declare function queryElectrocardiograms(options?: ElectrocardiogramQueryOptions): Promise<ElectrocardiogramSample[]>;
|
|
14
|
+
export declare function queryActivitySummaries(options?: ActivitySummaryQueryOptions): Promise<ActivitySummary[]>;
|
|
15
|
+
export declare function queryClinicalRecords(options: ClinicalRecordQueryOptions): Promise<ClinicalRecord[]>;
|
|
16
|
+
export declare function queryAudiograms(options?: DateRangeQueryOptions): Promise<AudiogramSample[]>;
|
|
17
|
+
export declare function queryWorkoutRoute(options: WorkoutRouteQueryOptions): Promise<WorkoutRoute[]>;
|
|
18
|
+
export declare function queryCorrelations(options: CorrelationQueryOptions): Promise<Correlation[]>;
|
|
19
|
+
export declare function queryHeartbeatSeries(options?: HeartbeatSeriesQueryOptions): Promise<HeartbeatSeriesSample[]>;
|
|
20
|
+
export declare function queryStatistics(options: StatisticsQueryOptions): Promise<Statistics>;
|
|
21
|
+
export declare function queryStatisticsCollection(options: StatisticsCollectionQueryOptions): Promise<Statistics[]>;
|
|
22
|
+
export declare function queryAnchored(options: AnchoredQueryOptions): Promise<AnchoredQueryResult>;
|
|
23
|
+
export declare function saveQuantitySample(sample: QuantitySampleInput): Promise<string>;
|
|
24
|
+
export declare function saveCategorySample(sample: CategorySampleInput): Promise<string>;
|
|
25
|
+
export declare function saveWorkout(workout: WorkoutInput): Promise<string>;
|
|
26
|
+
export declare function saveCorrelation(correlation: CorrelationInput): Promise<string>;
|
|
27
|
+
export declare function deleteObjects(options: DeleteObjectsOptions): Promise<number>;
|
|
28
|
+
export declare function getBiologicalSex(): Promise<BiologicalSex>;
|
|
29
|
+
export declare function getBloodType(): Promise<BloodType>;
|
|
30
|
+
export declare function getDateOfBirth(): Promise<Date | null>;
|
|
31
|
+
export declare function getFitzpatrickSkinType(): Promise<FitzpatrickSkinType>;
|
|
32
|
+
export declare function getWheelchairUse(): Promise<WheelchairUse>;
|
|
33
|
+
export declare function enableBackgroundDelivery(type: string, frequency: UpdateFrequency): Promise<boolean>;
|
|
34
|
+
export declare function disableBackgroundDelivery(type: string): Promise<boolean>;
|
|
35
|
+
export declare function disableAllBackgroundDelivery(): Promise<boolean>;
|
|
36
|
+
export declare function observe(types: readonly string[]): Promise<void>;
|
|
37
|
+
export declare function clearObservers(): Promise<void>;
|
|
38
|
+
export declare function addUpdateListener(listener: (event: {
|
|
39
|
+
type: string;
|
|
40
|
+
}) => void): {
|
|
41
|
+
remove(): void;
|
|
42
|
+
};
|
|
43
|
+
export declare function useHealthKitUpdates(): import("./types").HealthUpdateEvent | null;
|
|
44
|
+
declare const HealthKit: {
|
|
45
|
+
isAvailable: typeof isAvailable;
|
|
46
|
+
requestAuthorization: typeof requestAuthorization;
|
|
47
|
+
getAuthorizationStatus: typeof getAuthorizationStatus;
|
|
48
|
+
getRequestStatusForAuthorization: typeof getRequestStatusForAuthorization;
|
|
49
|
+
queryQuantitySamples: typeof queryQuantitySamples;
|
|
50
|
+
queryCategorySamples: typeof queryCategorySamples;
|
|
51
|
+
queryWorkouts: typeof queryWorkouts;
|
|
52
|
+
queryElectrocardiograms: typeof queryElectrocardiograms;
|
|
53
|
+
queryActivitySummaries: typeof queryActivitySummaries;
|
|
54
|
+
queryClinicalRecords: typeof queryClinicalRecords;
|
|
55
|
+
queryAudiograms: typeof queryAudiograms;
|
|
56
|
+
queryWorkoutRoute: typeof queryWorkoutRoute;
|
|
57
|
+
queryCorrelations: typeof queryCorrelations;
|
|
58
|
+
queryHeartbeatSeries: typeof queryHeartbeatSeries;
|
|
59
|
+
queryStatistics: typeof queryStatistics;
|
|
60
|
+
queryStatisticsCollection: typeof queryStatisticsCollection;
|
|
61
|
+
queryAnchored: typeof queryAnchored;
|
|
62
|
+
saveQuantitySample: typeof saveQuantitySample;
|
|
63
|
+
saveCategorySample: typeof saveCategorySample;
|
|
64
|
+
saveWorkout: typeof saveWorkout;
|
|
65
|
+
saveCorrelation: typeof saveCorrelation;
|
|
66
|
+
deleteObjects: typeof deleteObjects;
|
|
67
|
+
getBiologicalSex: typeof getBiologicalSex;
|
|
68
|
+
getBloodType: typeof getBloodType;
|
|
69
|
+
getDateOfBirth: typeof getDateOfBirth;
|
|
70
|
+
getFitzpatrickSkinType: typeof getFitzpatrickSkinType;
|
|
71
|
+
getWheelchairUse: typeof getWheelchairUse;
|
|
72
|
+
enableBackgroundDelivery: typeof enableBackgroundDelivery;
|
|
73
|
+
disableBackgroundDelivery: typeof disableBackgroundDelivery;
|
|
74
|
+
disableAllBackgroundDelivery: typeof disableAllBackgroundDelivery;
|
|
75
|
+
observe: typeof observe;
|
|
76
|
+
clearObservers: typeof clearObservers;
|
|
77
|
+
addUpdateListener: typeof addUpdateListener;
|
|
78
|
+
useHealthKitUpdates: typeof useHealthKitUpdates;
|
|
79
|
+
QuantityType: {
|
|
80
|
+
readonly stepCount: "HKQuantityTypeIdentifierStepCount";
|
|
81
|
+
readonly distanceWalkingRunning: "HKQuantityTypeIdentifierDistanceWalkingRunning";
|
|
82
|
+
readonly distanceCycling: "HKQuantityTypeIdentifierDistanceCycling";
|
|
83
|
+
readonly distanceSwimming: "HKQuantityTypeIdentifierDistanceSwimming";
|
|
84
|
+
readonly distanceWheelchair: "HKQuantityTypeIdentifierDistanceWheelchair";
|
|
85
|
+
readonly distanceDownhillSnowSports: "HKQuantityTypeIdentifierDistanceDownhillSnowSports";
|
|
86
|
+
readonly basalEnergyBurned: "HKQuantityTypeIdentifierBasalEnergyBurned";
|
|
87
|
+
readonly activeEnergyBurned: "HKQuantityTypeIdentifierActiveEnergyBurned";
|
|
88
|
+
readonly flightsClimbed: "HKQuantityTypeIdentifierFlightsClimbed";
|
|
89
|
+
readonly appleExerciseTime: "HKQuantityTypeIdentifierAppleExerciseTime";
|
|
90
|
+
readonly appleMoveTime: "HKQuantityTypeIdentifierAppleMoveTime";
|
|
91
|
+
readonly appleStandTime: "HKQuantityTypeIdentifierAppleStandTime";
|
|
92
|
+
readonly nikeFuel: "HKQuantityTypeIdentifierNikeFuel";
|
|
93
|
+
readonly pushCount: "HKQuantityTypeIdentifierPushCount";
|
|
94
|
+
readonly swimmingStrokeCount: "HKQuantityTypeIdentifierSwimmingStrokeCount";
|
|
95
|
+
readonly vo2Max: "HKQuantityTypeIdentifierVO2Max";
|
|
96
|
+
readonly appleSleepingBreathingDisturbances: "HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances";
|
|
97
|
+
readonly physicalEffort: "HKQuantityTypeIdentifierPhysicalEffort";
|
|
98
|
+
readonly estimatedWorkoutEffortScore: "HKQuantityTypeIdentifierEstimatedWorkoutEffortScore";
|
|
99
|
+
readonly workoutEffortScore: "HKQuantityTypeIdentifierWorkoutEffortScore";
|
|
100
|
+
readonly runningStrideLength: "HKQuantityTypeIdentifierRunningStrideLength";
|
|
101
|
+
readonly runningVerticalOscillation: "HKQuantityTypeIdentifierRunningVerticalOscillation";
|
|
102
|
+
readonly runningGroundContactTime: "HKQuantityTypeIdentifierRunningGroundContactTime";
|
|
103
|
+
readonly runningPower: "HKQuantityTypeIdentifierRunningPower";
|
|
104
|
+
readonly runningSpeed: "HKQuantityTypeIdentifierRunningSpeed";
|
|
105
|
+
readonly cyclingPower: "HKQuantityTypeIdentifierCyclingPower";
|
|
106
|
+
readonly cyclingCadence: "HKQuantityTypeIdentifierCyclingCadence";
|
|
107
|
+
readonly cyclingFunctionalThresholdPower: "HKQuantityTypeIdentifierCyclingFunctionalThresholdPower";
|
|
108
|
+
readonly cyclingSpeed: "HKQuantityTypeIdentifierCyclingSpeed";
|
|
109
|
+
readonly heartRate: "HKQuantityTypeIdentifierHeartRate";
|
|
110
|
+
readonly restingHeartRate: "HKQuantityTypeIdentifierRestingHeartRate";
|
|
111
|
+
readonly walkingHeartRateAverage: "HKQuantityTypeIdentifierWalkingHeartRateAverage";
|
|
112
|
+
readonly heartRateVariabilitySDNN: "HKQuantityTypeIdentifierHeartRateVariabilitySDNN";
|
|
113
|
+
readonly heartRateRecoveryOneMinute: "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute";
|
|
114
|
+
readonly atrialFibrillationBurden: "HKQuantityTypeIdentifierAtrialFibrillationBurden";
|
|
115
|
+
readonly oxygenSaturation: "HKQuantityTypeIdentifierOxygenSaturation";
|
|
116
|
+
readonly peripheralPerfusionIndex: "HKQuantityTypeIdentifierPeripheralPerfusionIndex";
|
|
117
|
+
readonly respiratoryRate: "HKQuantityTypeIdentifierRespiratoryRate";
|
|
118
|
+
readonly bodyTemperature: "HKQuantityTypeIdentifierBodyTemperature";
|
|
119
|
+
readonly basalBodyTemperature: "HKQuantityTypeIdentifierBasalBodyTemperature";
|
|
120
|
+
readonly bloodPressureSystolic: "HKQuantityTypeIdentifierBloodPressureSystolic";
|
|
121
|
+
readonly bloodPressureDiastolic: "HKQuantityTypeIdentifierBloodPressureDiastolic";
|
|
122
|
+
readonly bloodGlucose: "HKQuantityTypeIdentifierBloodGlucose";
|
|
123
|
+
readonly bloodAlcoholContent: "HKQuantityTypeIdentifierBloodAlcoholContent";
|
|
124
|
+
readonly electrodermalActivity: "HKQuantityTypeIdentifierElectrodermalActivity";
|
|
125
|
+
readonly insulinDelivery: "HKQuantityTypeIdentifierInsulinDelivery";
|
|
126
|
+
readonly numberOfTimesFallen: "HKQuantityTypeIdentifierNumberOfTimesFallen";
|
|
127
|
+
readonly inhalerUsage: "HKQuantityTypeIdentifierInhalerUsage";
|
|
128
|
+
readonly forcedVitalCapacity: "HKQuantityTypeIdentifierForcedVitalCapacity";
|
|
129
|
+
readonly forcedExpiratoryVolume1: "HKQuantityTypeIdentifierForcedExpiratoryVolume1";
|
|
130
|
+
readonly peakExpiratoryFlowRate: "HKQuantityTypeIdentifierPeakExpiratoryFlowRate";
|
|
131
|
+
readonly height: "HKQuantityTypeIdentifierHeight";
|
|
132
|
+
readonly bodyMass: "HKQuantityTypeIdentifierBodyMass";
|
|
133
|
+
readonly bodyMassIndex: "HKQuantityTypeIdentifierBodyMassIndex";
|
|
134
|
+
readonly leanBodyMass: "HKQuantityTypeIdentifierLeanBodyMass";
|
|
135
|
+
readonly bodyFatPercentage: "HKQuantityTypeIdentifierBodyFatPercentage";
|
|
136
|
+
readonly waistCircumference: "HKQuantityTypeIdentifierWaistCircumference";
|
|
137
|
+
readonly appleSleepingWristTemperature: "HKQuantityTypeIdentifierAppleSleepingWristTemperature";
|
|
138
|
+
readonly sixMinuteWalkTestDistance: "HKQuantityTypeIdentifierSixMinuteWalkTestDistance";
|
|
139
|
+
readonly walkingSpeed: "HKQuantityTypeIdentifierWalkingSpeed";
|
|
140
|
+
readonly walkingStepLength: "HKQuantityTypeIdentifierWalkingStepLength";
|
|
141
|
+
readonly walkingAsymmetryPercentage: "HKQuantityTypeIdentifierWalkingAsymmetryPercentage";
|
|
142
|
+
readonly walkingDoubleSupportPercentage: "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage";
|
|
143
|
+
readonly stairAscentSpeed: "HKQuantityTypeIdentifierStairAscentSpeed";
|
|
144
|
+
readonly stairDescentSpeed: "HKQuantityTypeIdentifierStairDescentSpeed";
|
|
145
|
+
readonly appleWalkingSteadiness: "HKQuantityTypeIdentifierAppleWalkingSteadiness";
|
|
146
|
+
readonly environmentalAudioExposure: "HKQuantityTypeIdentifierEnvironmentalAudioExposure";
|
|
147
|
+
readonly headphoneAudioExposure: "HKQuantityTypeIdentifierHeadphoneAudioExposure";
|
|
148
|
+
readonly dietaryEnergyConsumed: "HKQuantityTypeIdentifierDietaryEnergyConsumed";
|
|
149
|
+
readonly dietaryWater: "HKQuantityTypeIdentifierDietaryWater";
|
|
150
|
+
readonly dietaryCarbohydrates: "HKQuantityTypeIdentifierDietaryCarbohydrates";
|
|
151
|
+
readonly dietaryProtein: "HKQuantityTypeIdentifierDietaryProtein";
|
|
152
|
+
readonly dietaryFatTotal: "HKQuantityTypeIdentifierDietaryFatTotal";
|
|
153
|
+
readonly dietaryFatSaturated: "HKQuantityTypeIdentifierDietaryFatSaturated";
|
|
154
|
+
readonly dietaryFatMonounsaturated: "HKQuantityTypeIdentifierDietaryFatMonounsaturated";
|
|
155
|
+
readonly dietaryFatPolyunsaturated: "HKQuantityTypeIdentifierDietaryFatPolyunsaturated";
|
|
156
|
+
readonly dietaryCholesterol: "HKQuantityTypeIdentifierDietaryCholesterol";
|
|
157
|
+
readonly dietarySodium: "HKQuantityTypeIdentifierDietarySodium";
|
|
158
|
+
readonly dietarySugar: "HKQuantityTypeIdentifierDietarySugar";
|
|
159
|
+
readonly dietaryFiber: "HKQuantityTypeIdentifierDietaryFiber";
|
|
160
|
+
readonly dietaryCaffeine: "HKQuantityTypeIdentifierDietaryCaffeine";
|
|
161
|
+
readonly dietaryCalcium: "HKQuantityTypeIdentifierDietaryCalcium";
|
|
162
|
+
readonly dietaryIron: "HKQuantityTypeIdentifierDietaryIron";
|
|
163
|
+
readonly dietaryPotassium: "HKQuantityTypeIdentifierDietaryPotassium";
|
|
164
|
+
readonly dietaryVitaminA: "HKQuantityTypeIdentifierDietaryVitaminA";
|
|
165
|
+
readonly dietaryVitaminC: "HKQuantityTypeIdentifierDietaryVitaminC";
|
|
166
|
+
readonly dietaryVitaminD: "HKQuantityTypeIdentifierDietaryVitaminD";
|
|
167
|
+
readonly dietaryVitaminE: "HKQuantityTypeIdentifierDietaryVitaminE";
|
|
168
|
+
readonly dietaryVitaminK: "HKQuantityTypeIdentifierDietaryVitaminK";
|
|
169
|
+
readonly dietaryVitaminB6: "HKQuantityTypeIdentifierDietaryVitaminB6";
|
|
170
|
+
readonly dietaryVitaminB12: "HKQuantityTypeIdentifierDietaryVitaminB12";
|
|
171
|
+
readonly dietaryBiotin: "HKQuantityTypeIdentifierDietaryBiotin";
|
|
172
|
+
readonly dietaryFolate: "HKQuantityTypeIdentifierDietaryFolate";
|
|
173
|
+
readonly dietaryNiacin: "HKQuantityTypeIdentifierDietaryNiacin";
|
|
174
|
+
readonly dietaryPantothenicAcid: "HKQuantityTypeIdentifierDietaryPantothenicAcid";
|
|
175
|
+
readonly dietaryRiboflavin: "HKQuantityTypeIdentifierDietaryRiboflavin";
|
|
176
|
+
readonly dietaryThiamin: "HKQuantityTypeIdentifierDietaryThiamin";
|
|
177
|
+
readonly dietaryMagnesium: "HKQuantityTypeIdentifierDietaryMagnesium";
|
|
178
|
+
readonly dietaryManganese: "HKQuantityTypeIdentifierDietaryManganese";
|
|
179
|
+
readonly dietaryPhosphorus: "HKQuantityTypeIdentifierDietaryPhosphorus";
|
|
180
|
+
readonly dietarySelenium: "HKQuantityTypeIdentifierDietarySelenium";
|
|
181
|
+
readonly dietaryZinc: "HKQuantityTypeIdentifierDietaryZinc";
|
|
182
|
+
readonly dietaryIodine: "HKQuantityTypeIdentifierDietaryIodine";
|
|
183
|
+
readonly dietaryChromium: "HKQuantityTypeIdentifierDietaryChromium";
|
|
184
|
+
readonly dietaryCopper: "HKQuantityTypeIdentifierDietaryCopper";
|
|
185
|
+
readonly dietaryMolybdenum: "HKQuantityTypeIdentifierDietaryMolybdenum";
|
|
186
|
+
readonly dietaryChloride: "HKQuantityTypeIdentifierDietaryChloride";
|
|
187
|
+
};
|
|
188
|
+
CategoryType: {
|
|
189
|
+
readonly sleepAnalysis: "HKCategoryTypeIdentifierSleepAnalysis";
|
|
190
|
+
readonly appleStandHour: "HKCategoryTypeIdentifierAppleStandHour";
|
|
191
|
+
readonly cervicalMucusQuality: "HKCategoryTypeIdentifierCervicalMucusQuality";
|
|
192
|
+
readonly ovulationTestResult: "HKCategoryTypeIdentifierOvulationTestResult";
|
|
193
|
+
readonly menstrualFlow: "HKCategoryTypeIdentifierMenstrualFlow";
|
|
194
|
+
readonly intermenstrualBleeding: "HKCategoryTypeIdentifierIntermenstrualBleeding";
|
|
195
|
+
readonly sexualActivity: "HKCategoryTypeIdentifierSexualActivity";
|
|
196
|
+
readonly mindfulSession: "HKCategoryTypeIdentifierMindfulSession";
|
|
197
|
+
readonly highHeartRateEvent: "HKCategoryTypeIdentifierHighHeartRateEvent";
|
|
198
|
+
readonly lowHeartRateEvent: "HKCategoryTypeIdentifierLowHeartRateEvent";
|
|
199
|
+
readonly irregularHeartRhythmEvent: "HKCategoryTypeIdentifierIrregularHeartRhythmEvent";
|
|
200
|
+
readonly toothbrushingEvent: "HKCategoryTypeIdentifierToothbrushingEvent";
|
|
201
|
+
readonly pregnancy: "HKCategoryTypeIdentifierPregnancy";
|
|
202
|
+
readonly lactation: "HKCategoryTypeIdentifierLactation";
|
|
203
|
+
readonly contraceptive: "HKCategoryTypeIdentifierContraceptive";
|
|
204
|
+
readonly audioExposureEvent: "HKCategoryTypeIdentifierAudioExposureEvent";
|
|
205
|
+
readonly environmentalAudioExposureEvent: "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent";
|
|
206
|
+
readonly headphoneAudioExposureEvent: "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent";
|
|
207
|
+
readonly appleWalkingSteadinessEvent: "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent";
|
|
208
|
+
readonly lowCardioFitnessEvent: "HKCategoryTypeIdentifierLowCardioFitnessEvent";
|
|
209
|
+
readonly handwashingEvent: "HKCategoryTypeIdentifierHandwashingEvent";
|
|
210
|
+
readonly pregnancyTestResult: "HKCategoryTypeIdentifierPregnancyTestResult";
|
|
211
|
+
readonly progesteroneTestResult: "HKCategoryTypeIdentifierProgesteroneTestResult";
|
|
212
|
+
};
|
|
213
|
+
CharacteristicType: {
|
|
214
|
+
readonly biologicalSex: "HKCharacteristicTypeIdentifierBiologicalSex";
|
|
215
|
+
readonly bloodType: "HKCharacteristicTypeIdentifierBloodType";
|
|
216
|
+
readonly dateOfBirth: "HKCharacteristicTypeIdentifierDateOfBirth";
|
|
217
|
+
readonly fitzpatrickSkinType: "HKCharacteristicTypeIdentifierFitzpatrickSkinType";
|
|
218
|
+
readonly wheelchairUse: "HKCharacteristicTypeIdentifierWheelchairUse";
|
|
219
|
+
readonly activityMoveMode: "HKCharacteristicTypeIdentifierActivityMoveMode";
|
|
220
|
+
};
|
|
221
|
+
CorrelationType: {
|
|
222
|
+
readonly bloodPressure: "HKCorrelationTypeIdentifierBloodPressure";
|
|
223
|
+
readonly food: "HKCorrelationTypeIdentifierFood";
|
|
224
|
+
};
|
|
225
|
+
WorkoutType: {
|
|
226
|
+
readonly workout: "HKWorkoutTypeIdentifier";
|
|
227
|
+
};
|
|
228
|
+
ElectrocardiogramType: {
|
|
229
|
+
readonly electrocardiogram: "HKElectrocardiogramTypeIdentifier";
|
|
230
|
+
};
|
|
231
|
+
AudiogramType: {
|
|
232
|
+
readonly audiogram: "HKAudiogramSampleTypeIdentifier";
|
|
233
|
+
};
|
|
234
|
+
SeriesType: {
|
|
235
|
+
readonly workoutRoute: "HKWorkoutRouteTypeIdentifier";
|
|
236
|
+
readonly heartbeat: "HKDataTypeIdentifierHeartbeatSeries";
|
|
237
|
+
};
|
|
238
|
+
ActivitySummaryType: {
|
|
239
|
+
readonly activitySummary: "HKActivitySummaryTypeIdentifier";
|
|
240
|
+
};
|
|
241
|
+
ClinicalType: {
|
|
242
|
+
readonly allergyRecord: "HKClinicalTypeIdentifierAllergyRecord";
|
|
243
|
+
readonly conditionRecord: "HKClinicalTypeIdentifierConditionRecord";
|
|
244
|
+
readonly immunizationRecord: "HKClinicalTypeIdentifierImmunizationRecord";
|
|
245
|
+
readonly labResultRecord: "HKClinicalTypeIdentifierLabResultRecord";
|
|
246
|
+
readonly medicationRecord: "HKClinicalTypeIdentifierMedicationRecord";
|
|
247
|
+
readonly procedureRecord: "HKClinicalTypeIdentifierProcedureRecord";
|
|
248
|
+
readonly vitalSignRecord: "HKClinicalTypeIdentifierVitalSignRecord";
|
|
249
|
+
readonly coverageRecord: "HKClinicalTypeIdentifierCoverageRecord";
|
|
250
|
+
};
|
|
251
|
+
Unit: {
|
|
252
|
+
readonly count: "count";
|
|
253
|
+
readonly countPerMinute: "count/min";
|
|
254
|
+
readonly countPerSecond: "count/s";
|
|
255
|
+
readonly percent: "%";
|
|
256
|
+
readonly kilogram: "kg";
|
|
257
|
+
readonly gram: "g";
|
|
258
|
+
readonly milligram: "mg";
|
|
259
|
+
readonly pound: "lb";
|
|
260
|
+
readonly meter: "m";
|
|
261
|
+
readonly kilometer: "km";
|
|
262
|
+
readonly centimeter: "cm";
|
|
263
|
+
readonly mile: "mi";
|
|
264
|
+
readonly foot: "ft";
|
|
265
|
+
readonly inch: "in";
|
|
266
|
+
readonly meterPerSecond: "m/s";
|
|
267
|
+
readonly kilometerPerHour: "km/hr";
|
|
268
|
+
readonly milePerHour: "mi/hr";
|
|
269
|
+
readonly kilocalorie: "kcal";
|
|
270
|
+
readonly joule: "J";
|
|
271
|
+
readonly degreeCelsius: "degC";
|
|
272
|
+
readonly degreeFahrenheit: "degF";
|
|
273
|
+
readonly millimeterOfMercury: "mmHg";
|
|
274
|
+
readonly milliliter: "mL";
|
|
275
|
+
readonly liter: "L";
|
|
276
|
+
readonly milligramPerDeciliter: "mg/dL";
|
|
277
|
+
readonly millimolePerLiter: "mmol<mol>/L";
|
|
278
|
+
readonly second: "s";
|
|
279
|
+
readonly minute: "min";
|
|
280
|
+
readonly hour: "hr";
|
|
281
|
+
readonly watt: "W";
|
|
282
|
+
readonly decibelAWeightedSoundPressureLevel: "dBASPL";
|
|
283
|
+
readonly hertz: "Hz";
|
|
284
|
+
readonly decibelHearingLevel: "dBHL";
|
|
285
|
+
readonly volt: "V";
|
|
286
|
+
readonly microvolt: "uV";
|
|
287
|
+
};
|
|
288
|
+
WorkoutActivityType: {
|
|
289
|
+
readonly americanFootball: 1;
|
|
290
|
+
readonly archery: 2;
|
|
291
|
+
readonly australianFootball: 3;
|
|
292
|
+
readonly badminton: 4;
|
|
293
|
+
readonly baseball: 5;
|
|
294
|
+
readonly basketball: 6;
|
|
295
|
+
readonly bowling: 7;
|
|
296
|
+
readonly boxing: 8;
|
|
297
|
+
readonly climbing: 9;
|
|
298
|
+
readonly cricket: 10;
|
|
299
|
+
readonly crossTraining: 11;
|
|
300
|
+
readonly curling: 12;
|
|
301
|
+
readonly cycling: 13;
|
|
302
|
+
readonly dance: 14;
|
|
303
|
+
readonly danceInspiredTraining: 15;
|
|
304
|
+
readonly elliptical: 16;
|
|
305
|
+
readonly equestrianSports: 17;
|
|
306
|
+
readonly fencing: 18;
|
|
307
|
+
readonly fishing: 19;
|
|
308
|
+
readonly functionalStrengthTraining: 20;
|
|
309
|
+
readonly golf: 21;
|
|
310
|
+
readonly gymnastics: 22;
|
|
311
|
+
readonly handball: 23;
|
|
312
|
+
readonly hiking: 24;
|
|
313
|
+
readonly hockey: 25;
|
|
314
|
+
readonly hunting: 26;
|
|
315
|
+
readonly lacrosse: 27;
|
|
316
|
+
readonly martialArts: 28;
|
|
317
|
+
readonly mindAndBody: 29;
|
|
318
|
+
readonly mixedMetabolicCardioTraining: 30;
|
|
319
|
+
readonly paddleSports: 31;
|
|
320
|
+
readonly play: 32;
|
|
321
|
+
readonly preparationAndRecovery: 33;
|
|
322
|
+
readonly racquetball: 34;
|
|
323
|
+
readonly rowing: 35;
|
|
324
|
+
readonly rugby: 36;
|
|
325
|
+
readonly running: 37;
|
|
326
|
+
readonly sailing: 38;
|
|
327
|
+
readonly skatingSports: 39;
|
|
328
|
+
readonly snowSports: 40;
|
|
329
|
+
readonly soccer: 41;
|
|
330
|
+
readonly softball: 42;
|
|
331
|
+
readonly squash: 43;
|
|
332
|
+
readonly stairClimbing: 44;
|
|
333
|
+
readonly surfingSports: 45;
|
|
334
|
+
readonly swimming: 46;
|
|
335
|
+
readonly tableTennis: 47;
|
|
336
|
+
readonly tennis: 48;
|
|
337
|
+
readonly trackAndField: 49;
|
|
338
|
+
readonly traditionalStrengthTraining: 50;
|
|
339
|
+
readonly volleyball: 51;
|
|
340
|
+
readonly walking: 52;
|
|
341
|
+
readonly waterFitness: 53;
|
|
342
|
+
readonly waterPolo: 54;
|
|
343
|
+
readonly waterSports: 55;
|
|
344
|
+
readonly wrestling: 56;
|
|
345
|
+
readonly yoga: 57;
|
|
346
|
+
readonly barre: 58;
|
|
347
|
+
readonly coreTraining: 59;
|
|
348
|
+
readonly crossCountrySkiing: 60;
|
|
349
|
+
readonly downhillSkiing: 61;
|
|
350
|
+
readonly flexibility: 62;
|
|
351
|
+
readonly highIntensityIntervalTraining: 63;
|
|
352
|
+
readonly jumpRope: 64;
|
|
353
|
+
readonly kickboxing: 65;
|
|
354
|
+
readonly pilates: 66;
|
|
355
|
+
readonly snowboarding: 67;
|
|
356
|
+
readonly stairs: 68;
|
|
357
|
+
readonly stepTraining: 69;
|
|
358
|
+
readonly wheelchairWalkPace: 70;
|
|
359
|
+
readonly wheelchairRunPace: 71;
|
|
360
|
+
readonly taiChi: 72;
|
|
361
|
+
readonly mixedCardio: 73;
|
|
362
|
+
readonly handCycling: 74;
|
|
363
|
+
readonly discSports: 75;
|
|
364
|
+
readonly fitnessGaming: 76;
|
|
365
|
+
readonly cardioDance: 77;
|
|
366
|
+
readonly socialDance: 78;
|
|
367
|
+
readonly pickleball: 79;
|
|
368
|
+
readonly cooldown: 80;
|
|
369
|
+
readonly swimBikeRun: 82;
|
|
370
|
+
readonly transition: 83;
|
|
371
|
+
readonly underwaterDiving: 84;
|
|
372
|
+
readonly other: 3000;
|
|
373
|
+
};
|
|
374
|
+
SleepAnalysisValue: {
|
|
375
|
+
readonly inBed: 0;
|
|
376
|
+
readonly asleepUnspecified: 1;
|
|
377
|
+
readonly awake: 2;
|
|
378
|
+
readonly asleepCore: 3;
|
|
379
|
+
readonly asleepDeep: 4;
|
|
380
|
+
readonly asleepREM: 5;
|
|
381
|
+
};
|
|
382
|
+
UpdateFrequency: {
|
|
383
|
+
readonly immediate: 1;
|
|
384
|
+
readonly hourly: 2;
|
|
385
|
+
readonly daily: 3;
|
|
386
|
+
readonly weekly: 4;
|
|
387
|
+
};
|
|
388
|
+
StatisticsOption: {
|
|
389
|
+
readonly none: 0;
|
|
390
|
+
readonly discreteAverage: 1;
|
|
391
|
+
readonly discreteMin: 2;
|
|
392
|
+
readonly discreteMax: 4;
|
|
393
|
+
readonly cumulativeSum: 8;
|
|
394
|
+
readonly discreteMostRecent: 32;
|
|
395
|
+
};
|
|
396
|
+
AuthorizationStatus: {
|
|
397
|
+
readonly notDetermined: 0;
|
|
398
|
+
readonly sharingDenied: 1;
|
|
399
|
+
readonly sharingAuthorized: 2;
|
|
400
|
+
};
|
|
401
|
+
AuthorizationRequestStatus: {
|
|
402
|
+
readonly unknown: 0;
|
|
403
|
+
readonly shouldRequest: 1;
|
|
404
|
+
readonly unnecessary: 2;
|
|
405
|
+
};
|
|
406
|
+
BiologicalSex: {
|
|
407
|
+
readonly notSet: 0;
|
|
408
|
+
readonly female: 1;
|
|
409
|
+
readonly male: 2;
|
|
410
|
+
readonly other: 3;
|
|
411
|
+
};
|
|
412
|
+
BloodType: {
|
|
413
|
+
readonly notSet: 0;
|
|
414
|
+
readonly aPositive: 1;
|
|
415
|
+
readonly aNegative: 2;
|
|
416
|
+
readonly bPositive: 3;
|
|
417
|
+
readonly bNegative: 4;
|
|
418
|
+
readonly abPositive: 5;
|
|
419
|
+
readonly abNegative: 6;
|
|
420
|
+
readonly oPositive: 7;
|
|
421
|
+
readonly oNegative: 8;
|
|
422
|
+
};
|
|
423
|
+
FitzpatrickSkinType: {
|
|
424
|
+
readonly notSet: 0;
|
|
425
|
+
readonly I: 1;
|
|
426
|
+
readonly II: 2;
|
|
427
|
+
readonly III: 3;
|
|
428
|
+
readonly IV: 4;
|
|
429
|
+
readonly V: 5;
|
|
430
|
+
readonly VI: 6;
|
|
431
|
+
};
|
|
432
|
+
WheelchairUse: {
|
|
433
|
+
readonly notSet: 0;
|
|
434
|
+
readonly no: 1;
|
|
435
|
+
readonly yes: 2;
|
|
436
|
+
};
|
|
437
|
+
ElectrocardiogramClassification: {
|
|
438
|
+
readonly notSet: 0;
|
|
439
|
+
readonly sinusRhythm: 1;
|
|
440
|
+
readonly atrialFibrillation: 2;
|
|
441
|
+
readonly inconclusiveLowHeartRate: 3;
|
|
442
|
+
readonly inconclusiveHighHeartRate: 4;
|
|
443
|
+
readonly inconclusivePoorReading: 5;
|
|
444
|
+
readonly inconclusiveOther: 6;
|
|
445
|
+
readonly unrecognized: 100;
|
|
446
|
+
};
|
|
447
|
+
ElectrocardiogramSymptomsStatus: {
|
|
448
|
+
readonly notSet: 0;
|
|
449
|
+
readonly none: 1;
|
|
450
|
+
readonly present: 2;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
export default HealthKit;
|
|
454
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,0BAA0B,EAC1B,mBAAmB,EACnB,aAAa,EACb,SAAS,EAWT,mBAAmB,EAKnB,eAAe,EACf,aAAa,EAGd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,0BAA0B,EAC1B,WAAW,EACX,gBAAgB,EAChB,uBAAuB,EACvB,oBAAoB,EACpB,6BAA6B,EAC7B,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,gCAAgC,EAChC,sBAAsB,EACtB,YAAY,EACZ,mBAAmB,EACnB,YA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