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