@kingstinct/react-native-healthkit 13.3.1 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/ReactNativeHealthkit.podspec +1 -0
  2. package/app.plugin.ts +40 -2
  3. package/ios/BackgroundDeliveryManager.swift +196 -0
  4. package/ios/CategoryTypeModule.swift +1 -1
  5. package/ios/CoreModule.swift +24 -0
  6. package/ios/CorrelationTypeModule.swift +2 -35
  7. package/ios/ElectrocardiogramModule.swift +2 -34
  8. package/ios/HeartbeatSeriesModule.swift +2 -34
  9. package/ios/MedicationModule.swift +3 -35
  10. package/ios/PredicateHelpers.swift +2 -2
  11. package/ios/QuantityTypeModule.swift +11 -11
  12. package/ios/Serializers.swift +58 -90
  13. package/ios/StateOfMindModule.swift +2 -34
  14. package/ios/WorkoutProxy.swift +4 -149
  15. package/ios/generated/HealthkitGenerated.swift +52 -0
  16. package/lib/commonjs/generated/healthkit.generated.js +745 -0
  17. package/lib/commonjs/healthkit.ios.js +51 -17
  18. package/lib/commonjs/healthkit.js +120 -34
  19. package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
  20. package/lib/commonjs/type-tests/generated-typing.js +2 -0
  21. package/lib/commonjs/types/CategoryType.js +19 -99
  22. package/lib/commonjs/types/Medication.js +2 -0
  23. package/lib/commonjs/types/MetadataEnums.js +17 -0
  24. package/lib/commonjs/types/QuantityType.js +4 -15
  25. package/lib/commonjs/types/WeatherCondition.js +2 -32
  26. package/lib/commonjs/types/Workouts.js +3 -98
  27. package/lib/commonjs/types/index.js +2 -0
  28. package/lib/module/generated/healthkit.generated.js +742 -0
  29. package/lib/module/healthkit.ios.js +49 -15
  30. package/lib/module/healthkit.js +94 -20
  31. package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
  32. package/lib/module/type-tests/generated-typing.js +1 -0
  33. package/lib/module/types/CategoryType.js +2 -98
  34. package/lib/module/types/Medication.js +1 -0
  35. package/lib/module/types/MetadataEnums.js +1 -0
  36. package/lib/module/types/QuantityType.js +2 -14
  37. package/lib/module/types/WeatherCondition.js +1 -32
  38. package/lib/module/types/Workouts.js +2 -98
  39. package/lib/module/types/index.js +2 -0
  40. package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
  41. package/lib/typescript/healthkit.d.ts +39 -36
  42. package/lib/typescript/healthkit.ios.d.ts +64 -53
  43. package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
  44. package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
  45. package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
  46. package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
  47. package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
  48. package/lib/typescript/modules.d.ts +2 -2
  49. package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
  50. package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
  51. package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
  52. package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
  53. package/lib/typescript/types/CategoryType.d.ts +10 -104
  54. package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
  55. package/lib/typescript/types/CorrelationType.d.ts +8 -2
  56. package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
  57. package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
  58. package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
  59. package/lib/typescript/types/Medication.d.ts +10 -0
  60. package/lib/typescript/types/MetadataEnums.d.ts +1 -0
  61. package/lib/typescript/types/QuantitySample.d.ts +9 -1
  62. package/lib/typescript/types/QuantityType.d.ts +14 -18
  63. package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
  64. package/lib/typescript/types/QueryOptions.d.ts +8 -4
  65. package/lib/typescript/types/Shared.d.ts +12 -41
  66. package/lib/typescript/types/StateOfMind.d.ts +8 -1
  67. package/lib/typescript/types/Subscriptions.d.ts +11 -11
  68. package/lib/typescript/types/WeatherCondition.d.ts +1 -30
  69. package/lib/typescript/types/Workouts.d.ts +20 -104
  70. package/lib/typescript/types/index.d.ts +2 -0
  71. package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
  72. package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
  73. package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
  74. package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
  75. package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
  76. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
  77. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
  78. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
  79. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
  80. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
  81. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
  82. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
  83. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
  84. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
  85. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
  86. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +3 -116
  87. package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
  88. package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
  89. package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
  90. package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
  91. package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
  92. package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
  93. package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
  94. package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
  95. package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
  96. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
  97. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
  98. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
  99. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
  100. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
  101. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
  102. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
  103. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
  104. package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
  105. package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
  106. package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
  107. package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
  108. package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
  109. package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
  110. package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
  111. package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
  112. package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
  113. package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
  114. package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
  115. package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
  116. package/nitrogen/generated/ios/swift/WorkoutEvent.swift +20 -2
  117. package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
  118. package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
  119. package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
  120. package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
  121. package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
  122. package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
  123. package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
  124. package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
  125. package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
  126. package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
  127. package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
  128. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
  129. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
  130. package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
  131. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
  132. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
  133. package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
  134. package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
  135. package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
  136. package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
  137. package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
  138. package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
  139. package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
  140. package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
  141. package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
  142. package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
  143. package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
  144. package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
  145. package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +8 -2
  146. package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
  147. package/package.json +5 -2
  148. package/src/generated/healthkit-schema.json +3680 -0
  149. package/src/generated/healthkit.generated.ts +1307 -0
  150. package/src/healthkit.ios.ts +225 -19
  151. package/src/healthkit.ts +181 -55
  152. package/src/hooks/useMostRecentQuantitySample.ts +6 -5
  153. package/src/hooks/useMostRecentWorkout.ts +2 -2
  154. package/src/hooks/useQuantitySampleById.ts +6 -5
  155. package/src/hooks/useStatisticsForQuantity.ts +2 -1
  156. package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
  157. package/src/modules.ts +7 -2
  158. package/src/specs/CategoryTypeModule.nitro.ts +8 -5
  159. package/src/specs/CoreModule.nitro.ts +20 -0
  160. package/src/specs/QuantityTypeModule.nitro.ts +81 -7
  161. package/src/test-setup.ts +2 -0
  162. package/src/type-tests/generated-typing.ts +133 -0
  163. package/src/types/CategoryType.ts +52 -148
  164. package/src/types/CategoryTypeIdentifier.ts +5 -134
  165. package/src/types/CorrelationType.ts +13 -3
  166. package/src/types/ElectrocardiogramSample.ts +13 -1
  167. package/src/types/HeartbeatSeries.ts +13 -1
  168. package/src/types/InterfaceVerification.ts +38 -1
  169. package/src/types/Medication.ts +19 -0
  170. package/src/types/MetadataEnums.ts +15 -0
  171. package/src/types/QuantitySample.ts +14 -2
  172. package/src/types/QuantityType.ts +22 -122
  173. package/src/types/QuantityTypeIdentifier.ts +5 -772
  174. package/src/types/QueryOptions.ts +11 -4
  175. package/src/types/Shared.ts +22 -49
  176. package/src/types/StateOfMind.ts +13 -1
  177. package/src/types/Subscriptions.ts +19 -13
  178. package/src/types/WeatherCondition.ts +1 -31
  179. package/src/types/Workouts.ts +46 -108
  180. package/src/types/index.ts +2 -0
  181. package/src/utils/getMostRecentQuantitySample.ts +4 -3
  182. package/src/utils/getMostRecentWorkout.ts +5 -2
  183. package/src/utils/getPreferredUnit.ts +5 -4
  184. package/src/utils/getQuantitySampleById.ts +4 -3
  185. package/src/utils/subscribeToQuantitySamples.ts +5 -3
  186. package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
  187. package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
  188. package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
  189. package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
  190. package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
  191. package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
@@ -0,0 +1,745 @@
1
+ "use strict";
2
+ /*
3
+ * AUTO-GENERATED FILE. DO NOT EDIT.
4
+ * Source: scripts/generate-healthkit.ts
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.WorkoutSwimmingLocationType = exports.WorkoutEventType = exports.WorkoutActivityType = exports.WeatherCondition = exports.WaterSalinity = exports.VO2MaxTestType = exports.UserMotionContext = exports.SwimmingStrokeStyle = exports.PhysicalEffortEstimationType = exports.InsulinDeliveryReason = exports.HeartRateSensorLocation = exports.HeartRateRecoveryTestType = exports.HeartRateMotionContext = exports.DevicePlacementSide = exports.CyclingFunctionalThresholdPowerTestType = exports.CategoryValueVaginalBleeding = exports.CategoryValueSleepAnalysis = exports.CategoryValueSeverity = exports.CategoryValueProgesteroneTestResult = exports.CategoryValuePresence = exports.CategoryValuePregnancyTestResult = exports.CategoryValueOvulationTestResult = exports.CategoryValueMenstrualFlow = exports.CategoryValueLowCardioFitnessEvent = exports.CategoryValueHeadphoneAudioExposureEvent = exports.CategoryValueEnvironmentalAudioExposureEvent = exports.CategoryValueContraceptive = exports.CategoryValueCervicalMucusQuality = exports.CategoryValueAudioExposureEvent = exports.CategoryValueAppleWalkingSteadinessEvent = exports.CategoryValueAppleStandHour = exports.CategoryValueAppetiteChanges = exports.CategoryValue = exports.BodyTemperatureSensorLocation = exports.BloodGlucoseMealTime = exports.AppleECGAlgorithmVersion = exports.CATEGORY_IDENTIFIER_VALUE_ENUMS = exports.QUANTITY_IDENTIFIER_CANONICAL_UNITS = exports.CATEGORY_IDENTIFIER_IOS_AVAILABILITY = exports.QUANTITY_IDENTIFIER_IOS_AVAILABILITY = void 0;
8
+ exports.QUANTITY_IDENTIFIER_IOS_AVAILABILITY = {
9
+ HKQuantityTypeIdentifierActiveEnergyBurned: '8.0',
10
+ HKQuantityTypeIdentifierAppleExerciseTime: '9.3',
11
+ HKQuantityTypeIdentifierAppleMoveTime: '14.5',
12
+ HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances: '18.0',
13
+ HKQuantityTypeIdentifierAppleSleepingWristTemperature: '16.0',
14
+ HKQuantityTypeIdentifierAppleStandTime: '13.0',
15
+ HKQuantityTypeIdentifierAppleWalkingSteadiness: '15.0',
16
+ HKQuantityTypeIdentifierAtrialFibrillationBurden: '16.0',
17
+ HKQuantityTypeIdentifierBasalBodyTemperature: '9.0',
18
+ HKQuantityTypeIdentifierBasalEnergyBurned: '8.0',
19
+ HKQuantityTypeIdentifierBloodAlcoholContent: '8.0',
20
+ HKQuantityTypeIdentifierBloodGlucose: '8.0',
21
+ HKQuantityTypeIdentifierBloodPressureDiastolic: '8.0',
22
+ HKQuantityTypeIdentifierBloodPressureSystolic: '8.0',
23
+ HKQuantityTypeIdentifierBodyFatPercentage: '8.0',
24
+ HKQuantityTypeIdentifierBodyMass: '8.0',
25
+ HKQuantityTypeIdentifierBodyMassIndex: '8.0',
26
+ HKQuantityTypeIdentifierBodyTemperature: '8.0',
27
+ HKQuantityTypeIdentifierCrossCountrySkiingSpeed: '18.0',
28
+ HKQuantityTypeIdentifierCyclingCadence: '17.0',
29
+ HKQuantityTypeIdentifierCyclingFunctionalThresholdPower: '17.0',
30
+ HKQuantityTypeIdentifierCyclingPower: '17.0',
31
+ HKQuantityTypeIdentifierCyclingSpeed: '17.0',
32
+ HKQuantityTypeIdentifierDietaryBiotin: '8.0',
33
+ HKQuantityTypeIdentifierDietaryCaffeine: '8.0',
34
+ HKQuantityTypeIdentifierDietaryCalcium: '8.0',
35
+ HKQuantityTypeIdentifierDietaryCarbohydrates: '8.0',
36
+ HKQuantityTypeIdentifierDietaryChloride: '8.0',
37
+ HKQuantityTypeIdentifierDietaryCholesterol: '8.0',
38
+ HKQuantityTypeIdentifierDietaryChromium: '8.0',
39
+ HKQuantityTypeIdentifierDietaryCopper: '8.0',
40
+ HKQuantityTypeIdentifierDietaryEnergyConsumed: '8.0',
41
+ HKQuantityTypeIdentifierDietaryFatMonounsaturated: '8.0',
42
+ HKQuantityTypeIdentifierDietaryFatPolyunsaturated: '8.0',
43
+ HKQuantityTypeIdentifierDietaryFatSaturated: '8.0',
44
+ HKQuantityTypeIdentifierDietaryFatTotal: '8.0',
45
+ HKQuantityTypeIdentifierDietaryFiber: '8.0',
46
+ HKQuantityTypeIdentifierDietaryFolate: '8.0',
47
+ HKQuantityTypeIdentifierDietaryIodine: '8.0',
48
+ HKQuantityTypeIdentifierDietaryIron: '8.0',
49
+ HKQuantityTypeIdentifierDietaryMagnesium: '8.0',
50
+ HKQuantityTypeIdentifierDietaryManganese: '8.0',
51
+ HKQuantityTypeIdentifierDietaryMolybdenum: '8.0',
52
+ HKQuantityTypeIdentifierDietaryNiacin: '8.0',
53
+ HKQuantityTypeIdentifierDietaryPantothenicAcid: '8.0',
54
+ HKQuantityTypeIdentifierDietaryPhosphorus: '8.0',
55
+ HKQuantityTypeIdentifierDietaryPotassium: '8.0',
56
+ HKQuantityTypeIdentifierDietaryProtein: '8.0',
57
+ HKQuantityTypeIdentifierDietaryRiboflavin: '8.0',
58
+ HKQuantityTypeIdentifierDietarySelenium: '8.0',
59
+ HKQuantityTypeIdentifierDietarySodium: '8.0',
60
+ HKQuantityTypeIdentifierDietarySugar: '8.0',
61
+ HKQuantityTypeIdentifierDietaryThiamin: '8.0',
62
+ HKQuantityTypeIdentifierDietaryVitaminA: '8.0',
63
+ HKQuantityTypeIdentifierDietaryVitaminB12: '8.0',
64
+ HKQuantityTypeIdentifierDietaryVitaminB6: '8.0',
65
+ HKQuantityTypeIdentifierDietaryVitaminC: '8.0',
66
+ HKQuantityTypeIdentifierDietaryVitaminD: '8.0',
67
+ HKQuantityTypeIdentifierDietaryVitaminE: '8.0',
68
+ HKQuantityTypeIdentifierDietaryVitaminK: '8.0',
69
+ HKQuantityTypeIdentifierDietaryWater: '9.0',
70
+ HKQuantityTypeIdentifierDietaryZinc: '8.0',
71
+ HKQuantityTypeIdentifierDistanceCrossCountrySkiing: '18.0',
72
+ HKQuantityTypeIdentifierDistanceCycling: '8.0',
73
+ HKQuantityTypeIdentifierDistanceDownhillSnowSports: '11.2',
74
+ HKQuantityTypeIdentifierDistancePaddleSports: '18.0',
75
+ HKQuantityTypeIdentifierDistanceRowing: '18.0',
76
+ HKQuantityTypeIdentifierDistanceSkatingSports: '18.0',
77
+ HKQuantityTypeIdentifierDistanceSwimming: '10.0',
78
+ HKQuantityTypeIdentifierDistanceWalkingRunning: '8.0',
79
+ HKQuantityTypeIdentifierDistanceWheelchair: '10.0',
80
+ HKQuantityTypeIdentifierElectrodermalActivity: '8.0',
81
+ HKQuantityTypeIdentifierEnvironmentalAudioExposure: '13.0',
82
+ HKQuantityTypeIdentifierEnvironmentalSoundReduction: '16.0',
83
+ HKQuantityTypeIdentifierEstimatedWorkoutEffortScore: '18.0',
84
+ HKQuantityTypeIdentifierFlightsClimbed: '8.0',
85
+ HKQuantityTypeIdentifierForcedExpiratoryVolume1: '8.0',
86
+ HKQuantityTypeIdentifierForcedVitalCapacity: '8.0',
87
+ HKQuantityTypeIdentifierHeadphoneAudioExposure: '13.0',
88
+ HKQuantityTypeIdentifierHeartRate: '8.0',
89
+ HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: '16.0',
90
+ HKQuantityTypeIdentifierHeartRateVariabilitySDNN: '11.0',
91
+ HKQuantityTypeIdentifierHeight: '8.0',
92
+ HKQuantityTypeIdentifierInhalerUsage: '8.0',
93
+ HKQuantityTypeIdentifierInsulinDelivery: '11.0',
94
+ HKQuantityTypeIdentifierLeanBodyMass: '8.0',
95
+ HKQuantityTypeIdentifierNikeFuel: '8.0',
96
+ HKQuantityTypeIdentifierNumberOfAlcoholicBeverages: '15.0',
97
+ HKQuantityTypeIdentifierNumberOfTimesFallen: '8.0',
98
+ HKQuantityTypeIdentifierOxygenSaturation: '8.0',
99
+ HKQuantityTypeIdentifierPaddleSportsSpeed: '18.0',
100
+ HKQuantityTypeIdentifierPeakExpiratoryFlowRate: '8.0',
101
+ HKQuantityTypeIdentifierPeripheralPerfusionIndex: '8.0',
102
+ HKQuantityTypeIdentifierPhysicalEffort: '17.0',
103
+ HKQuantityTypeIdentifierPushCount: '10.0',
104
+ HKQuantityTypeIdentifierRespiratoryRate: '8.0',
105
+ HKQuantityTypeIdentifierRestingHeartRate: '11.0',
106
+ HKQuantityTypeIdentifierRowingSpeed: '18.0',
107
+ HKQuantityTypeIdentifierRunningGroundContactTime: '16.0',
108
+ HKQuantityTypeIdentifierRunningPower: '16.0',
109
+ HKQuantityTypeIdentifierRunningSpeed: '16.0',
110
+ HKQuantityTypeIdentifierRunningStrideLength: '16.0',
111
+ HKQuantityTypeIdentifierRunningVerticalOscillation: '16.0',
112
+ HKQuantityTypeIdentifierSixMinuteWalkTestDistance: '14.0',
113
+ HKQuantityTypeIdentifierStairAscentSpeed: '14.0',
114
+ HKQuantityTypeIdentifierStairDescentSpeed: '14.0',
115
+ HKQuantityTypeIdentifierStepCount: '8.0',
116
+ HKQuantityTypeIdentifierSwimmingStrokeCount: '10.0',
117
+ HKQuantityTypeIdentifierTimeInDaylight: '17.0',
118
+ HKQuantityTypeIdentifierUnderwaterDepth: '16.0',
119
+ HKQuantityTypeIdentifierUVExposure: '9.0',
120
+ HKQuantityTypeIdentifierVO2Max: '11.0',
121
+ HKQuantityTypeIdentifierWaistCircumference: '11.0',
122
+ HKQuantityTypeIdentifierWalkingAsymmetryPercentage: '14.0',
123
+ HKQuantityTypeIdentifierWalkingDoubleSupportPercentage: '14.0',
124
+ HKQuantityTypeIdentifierWalkingHeartRateAverage: '11.0',
125
+ HKQuantityTypeIdentifierWalkingSpeed: '14.0',
126
+ HKQuantityTypeIdentifierWalkingStepLength: '14.0',
127
+ HKQuantityTypeIdentifierWaterTemperature: '16.0',
128
+ HKQuantityTypeIdentifierWorkoutEffortScore: '18.0',
129
+ };
130
+ exports.CATEGORY_IDENTIFIER_IOS_AVAILABILITY = {
131
+ HKCategoryTypeIdentifierAbdominalCramps: '13.6',
132
+ HKCategoryTypeIdentifierAcne: '13.6',
133
+ HKCategoryTypeIdentifierAppetiteChanges: '13.6',
134
+ HKCategoryTypeIdentifierAppleStandHour: '9.0',
135
+ HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: '15.0',
136
+ HKCategoryTypeIdentifierAudioExposureEvent: '13.0',
137
+ HKCategoryTypeIdentifierBladderIncontinence: '14.0',
138
+ HKCategoryTypeIdentifierBleedingAfterPregnancy: '18.0',
139
+ HKCategoryTypeIdentifierBleedingDuringPregnancy: '18.0',
140
+ HKCategoryTypeIdentifierBloating: '13.6',
141
+ HKCategoryTypeIdentifierBreastPain: '13.6',
142
+ HKCategoryTypeIdentifierCervicalMucusQuality: '9.0',
143
+ HKCategoryTypeIdentifierChestTightnessOrPain: '13.6',
144
+ HKCategoryTypeIdentifierChills: '13.6',
145
+ HKCategoryTypeIdentifierConstipation: '13.6',
146
+ HKCategoryTypeIdentifierContraceptive: '14.3',
147
+ HKCategoryTypeIdentifierCoughing: '13.6',
148
+ HKCategoryTypeIdentifierDiarrhea: '13.6',
149
+ HKCategoryTypeIdentifierDizziness: '13.6',
150
+ HKCategoryTypeIdentifierDrySkin: '14.0',
151
+ HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: '14.0',
152
+ HKCategoryTypeIdentifierFainting: '13.6',
153
+ HKCategoryTypeIdentifierFatigue: '13.6',
154
+ HKCategoryTypeIdentifierFever: '13.6',
155
+ HKCategoryTypeIdentifierGeneralizedBodyAche: '13.6',
156
+ HKCategoryTypeIdentifierHairLoss: '14.0',
157
+ HKCategoryTypeIdentifierHandwashingEvent: '14.0',
158
+ HKCategoryTypeIdentifierHeadache: '13.6',
159
+ HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: '14.2',
160
+ HKCategoryTypeIdentifierHeartburn: '13.6',
161
+ HKCategoryTypeIdentifierHighHeartRateEvent: '12.2',
162
+ HKCategoryTypeIdentifierHotFlashes: '13.6',
163
+ HKCategoryTypeIdentifierHypertensionEvent: '26.2',
164
+ HKCategoryTypeIdentifierInfrequentMenstrualCycles: '16.0',
165
+ HKCategoryTypeIdentifierIntermenstrualBleeding: '9.0',
166
+ HKCategoryTypeIdentifierIrregularHeartRhythmEvent: '12.2',
167
+ HKCategoryTypeIdentifierIrregularMenstrualCycles: '16.0',
168
+ HKCategoryTypeIdentifierLactation: '14.3',
169
+ HKCategoryTypeIdentifierLossOfSmell: '13.6',
170
+ HKCategoryTypeIdentifierLossOfTaste: '13.6',
171
+ HKCategoryTypeIdentifierLowCardioFitnessEvent: '14.3',
172
+ HKCategoryTypeIdentifierLowerBackPain: '13.6',
173
+ HKCategoryTypeIdentifierLowHeartRateEvent: '12.2',
174
+ HKCategoryTypeIdentifierMemoryLapse: '14.0',
175
+ HKCategoryTypeIdentifierMenstrualFlow: '9.0',
176
+ HKCategoryTypeIdentifierMindfulSession: '10.0',
177
+ HKCategoryTypeIdentifierMoodChanges: '13.6',
178
+ HKCategoryTypeIdentifierNausea: '13.6',
179
+ HKCategoryTypeIdentifierNightSweats: '14.0',
180
+ HKCategoryTypeIdentifierOvulationTestResult: '9.0',
181
+ HKCategoryTypeIdentifierPelvicPain: '13.6',
182
+ HKCategoryTypeIdentifierPersistentIntermenstrualBleeding: '16.0',
183
+ HKCategoryTypeIdentifierPregnancy: '14.3',
184
+ HKCategoryTypeIdentifierPregnancyTestResult: '15.0',
185
+ HKCategoryTypeIdentifierProgesteroneTestResult: '15.0',
186
+ HKCategoryTypeIdentifierProlongedMenstrualPeriods: '16.0',
187
+ HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat: '13.6',
188
+ HKCategoryTypeIdentifierRunnyNose: '13.6',
189
+ HKCategoryTypeIdentifierSexualActivity: '9.0',
190
+ HKCategoryTypeIdentifierShortnessOfBreath: '13.6',
191
+ HKCategoryTypeIdentifierSinusCongestion: '13.6',
192
+ HKCategoryTypeIdentifierSkippedHeartbeat: '13.6',
193
+ HKCategoryTypeIdentifierSleepAnalysis: '8.0',
194
+ HKCategoryTypeIdentifierSleepApneaEvent: '18.0',
195
+ HKCategoryTypeIdentifierSleepChanges: '13.6',
196
+ HKCategoryTypeIdentifierSoreThroat: '13.6',
197
+ HKCategoryTypeIdentifierToothbrushingEvent: '13.0',
198
+ HKCategoryTypeIdentifierVaginalDryness: '14.0',
199
+ HKCategoryTypeIdentifierVomiting: '13.6',
200
+ HKCategoryTypeIdentifierWheezing: '13.6',
201
+ };
202
+ exports.QUANTITY_IDENTIFIER_CANONICAL_UNITS = {
203
+ HKQuantityTypeIdentifierActiveEnergyBurned: 'kcal',
204
+ HKQuantityTypeIdentifierAppleExerciseTime: 'min',
205
+ HKQuantityTypeIdentifierAppleMoveTime: 'min',
206
+ HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances: 'count',
207
+ HKQuantityTypeIdentifierAppleSleepingWristTemperature: 'degC',
208
+ HKQuantityTypeIdentifierAppleStandTime: 'min',
209
+ HKQuantityTypeIdentifierAppleWalkingSteadiness: '%',
210
+ HKQuantityTypeIdentifierAtrialFibrillationBurden: '%',
211
+ HKQuantityTypeIdentifierBasalBodyTemperature: 'degC',
212
+ HKQuantityTypeIdentifierBasalEnergyBurned: 'kcal',
213
+ HKQuantityTypeIdentifierBloodAlcoholContent: '%',
214
+ HKQuantityTypeIdentifierBloodGlucose: 'mg/dL',
215
+ HKQuantityTypeIdentifierBloodPressureDiastolic: 'mmHg',
216
+ HKQuantityTypeIdentifierBloodPressureSystolic: 'mmHg',
217
+ HKQuantityTypeIdentifierBodyFatPercentage: '%',
218
+ HKQuantityTypeIdentifierBodyMass: 'kg',
219
+ HKQuantityTypeIdentifierBodyMassIndex: 'count',
220
+ HKQuantityTypeIdentifierBodyTemperature: 'degC',
221
+ HKQuantityTypeIdentifierCrossCountrySkiingSpeed: 'm/s',
222
+ HKQuantityTypeIdentifierCyclingCadence: 'count/min',
223
+ HKQuantityTypeIdentifierCyclingFunctionalThresholdPower: 'W',
224
+ HKQuantityTypeIdentifierCyclingPower: 'W',
225
+ HKQuantityTypeIdentifierCyclingSpeed: 'm/s',
226
+ HKQuantityTypeIdentifierDietaryBiotin: 'g',
227
+ HKQuantityTypeIdentifierDietaryCaffeine: 'g',
228
+ HKQuantityTypeIdentifierDietaryCalcium: 'g',
229
+ HKQuantityTypeIdentifierDietaryCarbohydrates: 'g',
230
+ HKQuantityTypeIdentifierDietaryChloride: 'g',
231
+ HKQuantityTypeIdentifierDietaryCholesterol: 'g',
232
+ HKQuantityTypeIdentifierDietaryChromium: 'g',
233
+ HKQuantityTypeIdentifierDietaryCopper: 'g',
234
+ HKQuantityTypeIdentifierDietaryEnergyConsumed: 'kcal',
235
+ HKQuantityTypeIdentifierDietaryFatMonounsaturated: 'g',
236
+ HKQuantityTypeIdentifierDietaryFatPolyunsaturated: 'g',
237
+ HKQuantityTypeIdentifierDietaryFatSaturated: 'g',
238
+ HKQuantityTypeIdentifierDietaryFatTotal: 'g',
239
+ HKQuantityTypeIdentifierDietaryFiber: 'g',
240
+ HKQuantityTypeIdentifierDietaryFolate: 'g',
241
+ HKQuantityTypeIdentifierDietaryIodine: 'g',
242
+ HKQuantityTypeIdentifierDietaryIron: 'g',
243
+ HKQuantityTypeIdentifierDietaryMagnesium: 'g',
244
+ HKQuantityTypeIdentifierDietaryManganese: 'g',
245
+ HKQuantityTypeIdentifierDietaryMolybdenum: 'g',
246
+ HKQuantityTypeIdentifierDietaryNiacin: 'g',
247
+ HKQuantityTypeIdentifierDietaryPantothenicAcid: 'g',
248
+ HKQuantityTypeIdentifierDietaryPhosphorus: 'g',
249
+ HKQuantityTypeIdentifierDietaryPotassium: 'g',
250
+ HKQuantityTypeIdentifierDietaryProtein: 'g',
251
+ HKQuantityTypeIdentifierDietaryRiboflavin: 'g',
252
+ HKQuantityTypeIdentifierDietarySelenium: 'g',
253
+ HKQuantityTypeIdentifierDietarySodium: 'g',
254
+ HKQuantityTypeIdentifierDietarySugar: 'g',
255
+ HKQuantityTypeIdentifierDietaryThiamin: 'g',
256
+ HKQuantityTypeIdentifierDietaryVitaminA: 'g',
257
+ HKQuantityTypeIdentifierDietaryVitaminB12: 'g',
258
+ HKQuantityTypeIdentifierDietaryVitaminB6: 'g',
259
+ HKQuantityTypeIdentifierDietaryVitaminC: 'g',
260
+ HKQuantityTypeIdentifierDietaryVitaminD: 'g',
261
+ HKQuantityTypeIdentifierDietaryVitaminE: 'g',
262
+ HKQuantityTypeIdentifierDietaryVitaminK: 'g',
263
+ HKQuantityTypeIdentifierDietaryWater: 'mL',
264
+ HKQuantityTypeIdentifierDietaryZinc: 'g',
265
+ HKQuantityTypeIdentifierDistanceCrossCountrySkiing: 'm',
266
+ HKQuantityTypeIdentifierDistanceCycling: 'm',
267
+ HKQuantityTypeIdentifierDistanceDownhillSnowSports: 'm',
268
+ HKQuantityTypeIdentifierDistancePaddleSports: 'm',
269
+ HKQuantityTypeIdentifierDistanceRowing: 'm',
270
+ HKQuantityTypeIdentifierDistanceSkatingSports: 'm',
271
+ HKQuantityTypeIdentifierDistanceSwimming: 'm',
272
+ HKQuantityTypeIdentifierDistanceWalkingRunning: 'm',
273
+ HKQuantityTypeIdentifierDistanceWheelchair: 'm',
274
+ HKQuantityTypeIdentifierElectrodermalActivity: 'S',
275
+ HKQuantityTypeIdentifierEnvironmentalAudioExposure: 'dBASPL',
276
+ HKQuantityTypeIdentifierEnvironmentalSoundReduction: 'dBASPL',
277
+ HKQuantityTypeIdentifierEstimatedWorkoutEffortScore: 'appleEffortScore',
278
+ HKQuantityTypeIdentifierFlightsClimbed: 'count',
279
+ HKQuantityTypeIdentifierForcedExpiratoryVolume1: 'L',
280
+ HKQuantityTypeIdentifierForcedVitalCapacity: 'L',
281
+ HKQuantityTypeIdentifierHeadphoneAudioExposure: 'dBASPL',
282
+ HKQuantityTypeIdentifierHeartRate: 'count/s',
283
+ HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: 'count/min',
284
+ HKQuantityTypeIdentifierHeartRateVariabilitySDNN: 'ms',
285
+ HKQuantityTypeIdentifierHeight: 'm',
286
+ HKQuantityTypeIdentifierInhalerUsage: 'count',
287
+ HKQuantityTypeIdentifierInsulinDelivery: 'IU',
288
+ HKQuantityTypeIdentifierLeanBodyMass: 'kg',
289
+ HKQuantityTypeIdentifierNikeFuel: 'count',
290
+ HKQuantityTypeIdentifierNumberOfAlcoholicBeverages: 'count',
291
+ HKQuantityTypeIdentifierNumberOfTimesFallen: 'count',
292
+ HKQuantityTypeIdentifierOxygenSaturation: '%',
293
+ HKQuantityTypeIdentifierPaddleSportsSpeed: 'm/s',
294
+ HKQuantityTypeIdentifierPeakExpiratoryFlowRate: 'L/min',
295
+ HKQuantityTypeIdentifierPeripheralPerfusionIndex: '%',
296
+ HKQuantityTypeIdentifierPhysicalEffort: 'kcal/(kg*hr)',
297
+ HKQuantityTypeIdentifierPushCount: 'count',
298
+ HKQuantityTypeIdentifierRespiratoryRate: 'count/s',
299
+ HKQuantityTypeIdentifierRestingHeartRate: 'count/min',
300
+ HKQuantityTypeIdentifierRowingSpeed: 'm/s',
301
+ HKQuantityTypeIdentifierRunningGroundContactTime: 'ms',
302
+ HKQuantityTypeIdentifierRunningPower: 'W',
303
+ HKQuantityTypeIdentifierRunningSpeed: 'm/s',
304
+ HKQuantityTypeIdentifierRunningStrideLength: 'm',
305
+ HKQuantityTypeIdentifierRunningVerticalOscillation: 'cm',
306
+ HKQuantityTypeIdentifierSixMinuteWalkTestDistance: 'm',
307
+ HKQuantityTypeIdentifierStairAscentSpeed: 'm/s',
308
+ HKQuantityTypeIdentifierStairDescentSpeed: 'm/s',
309
+ HKQuantityTypeIdentifierStepCount: 'count',
310
+ HKQuantityTypeIdentifierSwimmingStrokeCount: 'count',
311
+ HKQuantityTypeIdentifierTimeInDaylight: 'min',
312
+ HKQuantityTypeIdentifierUnderwaterDepth: 'm',
313
+ HKQuantityTypeIdentifierUVExposure: null,
314
+ HKQuantityTypeIdentifierVO2Max: 'ml/(kg*min)',
315
+ HKQuantityTypeIdentifierWaistCircumference: 'm',
316
+ HKQuantityTypeIdentifierWalkingAsymmetryPercentage: '%',
317
+ HKQuantityTypeIdentifierWalkingDoubleSupportPercentage: '%',
318
+ HKQuantityTypeIdentifierWalkingHeartRateAverage: 'count/min',
319
+ HKQuantityTypeIdentifierWalkingSpeed: 'm/s',
320
+ HKQuantityTypeIdentifierWalkingStepLength: 'm',
321
+ HKQuantityTypeIdentifierWaterTemperature: 'degC',
322
+ HKQuantityTypeIdentifierWorkoutEffortScore: 'appleEffortScore',
323
+ };
324
+ exports.CATEGORY_IDENTIFIER_VALUE_ENUMS = {
325
+ HKCategoryTypeIdentifierAbdominalCramps: 'CategoryValueSeverity',
326
+ HKCategoryTypeIdentifierAcne: 'CategoryValueSeverity',
327
+ HKCategoryTypeIdentifierAppetiteChanges: 'CategoryValueAppetiteChanges',
328
+ HKCategoryTypeIdentifierAppleStandHour: 'CategoryValueAppleStandHour',
329
+ HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: 'CategoryValueAppleWalkingSteadinessEvent',
330
+ HKCategoryTypeIdentifierAudioExposureEvent: null,
331
+ HKCategoryTypeIdentifierBladderIncontinence: 'CategoryValueSeverity',
332
+ HKCategoryTypeIdentifierBleedingAfterPregnancy: 'CategoryValueVaginalBleeding',
333
+ HKCategoryTypeIdentifierBleedingDuringPregnancy: 'CategoryValueVaginalBleeding',
334
+ HKCategoryTypeIdentifierBloating: 'CategoryValueSeverity',
335
+ HKCategoryTypeIdentifierBreastPain: 'CategoryValueSeverity',
336
+ HKCategoryTypeIdentifierCervicalMucusQuality: 'CategoryValueCervicalMucusQuality',
337
+ HKCategoryTypeIdentifierChestTightnessOrPain: 'CategoryValueSeverity',
338
+ HKCategoryTypeIdentifierChills: 'CategoryValueSeverity',
339
+ HKCategoryTypeIdentifierConstipation: 'CategoryValueSeverity',
340
+ HKCategoryTypeIdentifierContraceptive: 'CategoryValueContraceptive',
341
+ HKCategoryTypeIdentifierCoughing: 'CategoryValueSeverity',
342
+ HKCategoryTypeIdentifierDiarrhea: 'CategoryValueSeverity',
343
+ HKCategoryTypeIdentifierDizziness: 'CategoryValueSeverity',
344
+ HKCategoryTypeIdentifierDrySkin: 'CategoryValueSeverity',
345
+ HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: 'CategoryValueEnvironmentalAudioExposureEvent',
346
+ HKCategoryTypeIdentifierFainting: 'CategoryValueSeverity',
347
+ HKCategoryTypeIdentifierFatigue: 'CategoryValueSeverity',
348
+ HKCategoryTypeIdentifierFever: 'CategoryValueSeverity',
349
+ HKCategoryTypeIdentifierGeneralizedBodyAche: 'CategoryValueSeverity',
350
+ HKCategoryTypeIdentifierHairLoss: 'CategoryValueSeverity',
351
+ HKCategoryTypeIdentifierHandwashingEvent: 'CategoryValue',
352
+ HKCategoryTypeIdentifierHeadache: 'CategoryValueSeverity',
353
+ HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: 'CategoryValueHeadphoneAudioExposureEvent',
354
+ HKCategoryTypeIdentifierHeartburn: 'CategoryValueSeverity',
355
+ HKCategoryTypeIdentifierHighHeartRateEvent: 'CategoryValue',
356
+ HKCategoryTypeIdentifierHotFlashes: 'CategoryValueSeverity',
357
+ HKCategoryTypeIdentifierHypertensionEvent: 'CategoryValue',
358
+ HKCategoryTypeIdentifierInfrequentMenstrualCycles: 'CategoryValue',
359
+ HKCategoryTypeIdentifierIntermenstrualBleeding: 'CategoryValue',
360
+ HKCategoryTypeIdentifierIrregularHeartRhythmEvent: 'CategoryValue',
361
+ HKCategoryTypeIdentifierIrregularMenstrualCycles: 'CategoryValue',
362
+ HKCategoryTypeIdentifierLactation: 'CategoryValue',
363
+ HKCategoryTypeIdentifierLossOfSmell: 'CategoryValueSeverity',
364
+ HKCategoryTypeIdentifierLossOfTaste: 'CategoryValueSeverity',
365
+ HKCategoryTypeIdentifierLowCardioFitnessEvent: 'CategoryValueLowCardioFitnessEvent',
366
+ HKCategoryTypeIdentifierLowerBackPain: 'CategoryValueSeverity',
367
+ HKCategoryTypeIdentifierLowHeartRateEvent: 'CategoryValue',
368
+ HKCategoryTypeIdentifierMemoryLapse: 'CategoryValueSeverity',
369
+ HKCategoryTypeIdentifierMenstrualFlow: 'CategoryValueMenstrualFlow',
370
+ HKCategoryTypeIdentifierMindfulSession: 'CategoryValue',
371
+ HKCategoryTypeIdentifierMoodChanges: 'CategoryValuePresence',
372
+ HKCategoryTypeIdentifierNausea: 'CategoryValueSeverity',
373
+ HKCategoryTypeIdentifierNightSweats: 'CategoryValueSeverity',
374
+ HKCategoryTypeIdentifierOvulationTestResult: 'CategoryValueOvulationTestResult',
375
+ HKCategoryTypeIdentifierPelvicPain: 'CategoryValueSeverity',
376
+ HKCategoryTypeIdentifierPersistentIntermenstrualBleeding: 'CategoryValue',
377
+ HKCategoryTypeIdentifierPregnancy: 'CategoryValue',
378
+ HKCategoryTypeIdentifierPregnancyTestResult: 'CategoryValuePregnancyTestResult',
379
+ HKCategoryTypeIdentifierProgesteroneTestResult: 'CategoryValueProgesteroneTestResult',
380
+ HKCategoryTypeIdentifierProlongedMenstrualPeriods: 'CategoryValue',
381
+ HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat: 'CategoryValueSeverity',
382
+ HKCategoryTypeIdentifierRunnyNose: 'CategoryValueSeverity',
383
+ HKCategoryTypeIdentifierSexualActivity: 'CategoryValue',
384
+ HKCategoryTypeIdentifierShortnessOfBreath: 'CategoryValueSeverity',
385
+ HKCategoryTypeIdentifierSinusCongestion: 'CategoryValueSeverity',
386
+ HKCategoryTypeIdentifierSkippedHeartbeat: 'CategoryValueSeverity',
387
+ HKCategoryTypeIdentifierSleepAnalysis: 'CategoryValueSleepAnalysis',
388
+ HKCategoryTypeIdentifierSleepApneaEvent: 'CategoryValue',
389
+ HKCategoryTypeIdentifierSleepChanges: 'CategoryValuePresence',
390
+ HKCategoryTypeIdentifierSoreThroat: 'CategoryValueSeverity',
391
+ HKCategoryTypeIdentifierToothbrushingEvent: 'CategoryValue',
392
+ HKCategoryTypeIdentifierVaginalDryness: 'CategoryValueSeverity',
393
+ HKCategoryTypeIdentifierVomiting: 'CategoryValueSeverity',
394
+ HKCategoryTypeIdentifierWheezing: 'CategoryValueSeverity',
395
+ };
396
+ var AppleECGAlgorithmVersion;
397
+ (function (AppleECGAlgorithmVersion) {
398
+ AppleECGAlgorithmVersion[AppleECGAlgorithmVersion["value1"] = 1] = "value1";
399
+ AppleECGAlgorithmVersion[AppleECGAlgorithmVersion["value2"] = 2] = "value2";
400
+ })(AppleECGAlgorithmVersion || (exports.AppleECGAlgorithmVersion = AppleECGAlgorithmVersion = {}));
401
+ var BloodGlucoseMealTime;
402
+ (function (BloodGlucoseMealTime) {
403
+ BloodGlucoseMealTime[BloodGlucoseMealTime["preprandial"] = 1] = "preprandial";
404
+ BloodGlucoseMealTime[BloodGlucoseMealTime["postprandial"] = 2] = "postprandial";
405
+ })(BloodGlucoseMealTime || (exports.BloodGlucoseMealTime = BloodGlucoseMealTime = {}));
406
+ var BodyTemperatureSensorLocation;
407
+ (function (BodyTemperatureSensorLocation) {
408
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["other"] = 0] = "other";
409
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["armpit"] = 1] = "armpit";
410
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["body"] = 2] = "body";
411
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["ear"] = 3] = "ear";
412
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["finger"] = 4] = "finger";
413
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["gastroIntestinal"] = 5] = "gastroIntestinal";
414
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["mouth"] = 6] = "mouth";
415
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["rectum"] = 7] = "rectum";
416
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["toe"] = 8] = "toe";
417
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["earDrum"] = 9] = "earDrum";
418
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["temporalArtery"] = 10] = "temporalArtery";
419
+ BodyTemperatureSensorLocation[BodyTemperatureSensorLocation["forehead"] = 11] = "forehead";
420
+ })(BodyTemperatureSensorLocation || (exports.BodyTemperatureSensorLocation = BodyTemperatureSensorLocation = {}));
421
+ var CategoryValue;
422
+ (function (CategoryValue) {
423
+ CategoryValue[CategoryValue["notApplicable"] = 0] = "notApplicable";
424
+ })(CategoryValue || (exports.CategoryValue = CategoryValue = {}));
425
+ var CategoryValueAppetiteChanges;
426
+ (function (CategoryValueAppetiteChanges) {
427
+ CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["unspecified"] = 0] = "unspecified";
428
+ CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
429
+ CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
430
+ CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["increased"] = 3] = "increased";
431
+ })(CategoryValueAppetiteChanges || (exports.CategoryValueAppetiteChanges = CategoryValueAppetiteChanges = {}));
432
+ var CategoryValueAppleStandHour;
433
+ (function (CategoryValueAppleStandHour) {
434
+ CategoryValueAppleStandHour[CategoryValueAppleStandHour["stood"] = 0] = "stood";
435
+ CategoryValueAppleStandHour[CategoryValueAppleStandHour["idle"] = 1] = "idle";
436
+ })(CategoryValueAppleStandHour || (exports.CategoryValueAppleStandHour = CategoryValueAppleStandHour = {}));
437
+ var CategoryValueAppleWalkingSteadinessEvent;
438
+ (function (CategoryValueAppleWalkingSteadinessEvent) {
439
+ CategoryValueAppleWalkingSteadinessEvent[CategoryValueAppleWalkingSteadinessEvent["initialLow"] = 1] = "initialLow";
440
+ CategoryValueAppleWalkingSteadinessEvent[CategoryValueAppleWalkingSteadinessEvent["initialVeryLow"] = 2] = "initialVeryLow";
441
+ CategoryValueAppleWalkingSteadinessEvent[CategoryValueAppleWalkingSteadinessEvent["repeatLow"] = 3] = "repeatLow";
442
+ CategoryValueAppleWalkingSteadinessEvent[CategoryValueAppleWalkingSteadinessEvent["repeatVeryLow"] = 4] = "repeatVeryLow";
443
+ })(CategoryValueAppleWalkingSteadinessEvent || (exports.CategoryValueAppleWalkingSteadinessEvent = CategoryValueAppleWalkingSteadinessEvent = {}));
444
+ var CategoryValueAudioExposureEvent;
445
+ (function (CategoryValueAudioExposureEvent) {
446
+ CategoryValueAudioExposureEvent[CategoryValueAudioExposureEvent["loudEnvironment"] = 1] = "loudEnvironment";
447
+ })(CategoryValueAudioExposureEvent || (exports.CategoryValueAudioExposureEvent = CategoryValueAudioExposureEvent = {}));
448
+ var CategoryValueCervicalMucusQuality;
449
+ (function (CategoryValueCervicalMucusQuality) {
450
+ CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["dry"] = 1] = "dry";
451
+ CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["sticky"] = 2] = "sticky";
452
+ CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["creamy"] = 3] = "creamy";
453
+ CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["watery"] = 4] = "watery";
454
+ CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["eggWhite"] = 5] = "eggWhite";
455
+ })(CategoryValueCervicalMucusQuality || (exports.CategoryValueCervicalMucusQuality = CategoryValueCervicalMucusQuality = {}));
456
+ var CategoryValueContraceptive;
457
+ (function (CategoryValueContraceptive) {
458
+ CategoryValueContraceptive[CategoryValueContraceptive["unspecified"] = 1] = "unspecified";
459
+ CategoryValueContraceptive[CategoryValueContraceptive["implant"] = 2] = "implant";
460
+ CategoryValueContraceptive[CategoryValueContraceptive["injection"] = 3] = "injection";
461
+ CategoryValueContraceptive[CategoryValueContraceptive["intrauterineDevice"] = 4] = "intrauterineDevice";
462
+ CategoryValueContraceptive[CategoryValueContraceptive["intravaginalRing"] = 5] = "intravaginalRing";
463
+ CategoryValueContraceptive[CategoryValueContraceptive["oral"] = 6] = "oral";
464
+ CategoryValueContraceptive[CategoryValueContraceptive["patch"] = 7] = "patch";
465
+ })(CategoryValueContraceptive || (exports.CategoryValueContraceptive = CategoryValueContraceptive = {}));
466
+ var CategoryValueEnvironmentalAudioExposureEvent;
467
+ (function (CategoryValueEnvironmentalAudioExposureEvent) {
468
+ CategoryValueEnvironmentalAudioExposureEvent[CategoryValueEnvironmentalAudioExposureEvent["momentaryLimit"] = 1] = "momentaryLimit";
469
+ })(CategoryValueEnvironmentalAudioExposureEvent || (exports.CategoryValueEnvironmentalAudioExposureEvent = CategoryValueEnvironmentalAudioExposureEvent = {}));
470
+ var CategoryValueHeadphoneAudioExposureEvent;
471
+ (function (CategoryValueHeadphoneAudioExposureEvent) {
472
+ CategoryValueHeadphoneAudioExposureEvent[CategoryValueHeadphoneAudioExposureEvent["sevenDayLimit"] = 1] = "sevenDayLimit";
473
+ })(CategoryValueHeadphoneAudioExposureEvent || (exports.CategoryValueHeadphoneAudioExposureEvent = CategoryValueHeadphoneAudioExposureEvent = {}));
474
+ var CategoryValueLowCardioFitnessEvent;
475
+ (function (CategoryValueLowCardioFitnessEvent) {
476
+ CategoryValueLowCardioFitnessEvent[CategoryValueLowCardioFitnessEvent["lowFitness"] = 1] = "lowFitness";
477
+ })(CategoryValueLowCardioFitnessEvent || (exports.CategoryValueLowCardioFitnessEvent = CategoryValueLowCardioFitnessEvent = {}));
478
+ var CategoryValueMenstrualFlow;
479
+ (function (CategoryValueMenstrualFlow) {
480
+ CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
481
+ CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["light"] = 2] = "light";
482
+ CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["medium"] = 3] = "medium";
483
+ CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["heavy"] = 4] = "heavy";
484
+ CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["none"] = 5] = "none";
485
+ })(CategoryValueMenstrualFlow || (exports.CategoryValueMenstrualFlow = CategoryValueMenstrualFlow = {}));
486
+ var CategoryValueOvulationTestResult;
487
+ (function (CategoryValueOvulationTestResult) {
488
+ CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["negative"] = 1] = "negative";
489
+ CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
490
+ CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["positive"] = 2] = "positive";
491
+ CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
492
+ CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["estrogenSurge"] = 4] = "estrogenSurge";
493
+ })(CategoryValueOvulationTestResult || (exports.CategoryValueOvulationTestResult = CategoryValueOvulationTestResult = {}));
494
+ var CategoryValuePregnancyTestResult;
495
+ (function (CategoryValuePregnancyTestResult) {
496
+ CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["negative"] = 1] = "negative";
497
+ CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["positive"] = 2] = "positive";
498
+ CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["indeterminate"] = 3] = "indeterminate";
499
+ })(CategoryValuePregnancyTestResult || (exports.CategoryValuePregnancyTestResult = CategoryValuePregnancyTestResult = {}));
500
+ var CategoryValuePresence;
501
+ (function (CategoryValuePresence) {
502
+ CategoryValuePresence[CategoryValuePresence["present"] = 0] = "present";
503
+ CategoryValuePresence[CategoryValuePresence["notPresent"] = 1] = "notPresent";
504
+ })(CategoryValuePresence || (exports.CategoryValuePresence = CategoryValuePresence = {}));
505
+ var CategoryValueProgesteroneTestResult;
506
+ (function (CategoryValueProgesteroneTestResult) {
507
+ CategoryValueProgesteroneTestResult[CategoryValueProgesteroneTestResult["negative"] = 1] = "negative";
508
+ CategoryValueProgesteroneTestResult[CategoryValueProgesteroneTestResult["positive"] = 2] = "positive";
509
+ CategoryValueProgesteroneTestResult[CategoryValueProgesteroneTestResult["indeterminate"] = 3] = "indeterminate";
510
+ })(CategoryValueProgesteroneTestResult || (exports.CategoryValueProgesteroneTestResult = CategoryValueProgesteroneTestResult = {}));
511
+ var CategoryValueSeverity;
512
+ (function (CategoryValueSeverity) {
513
+ CategoryValueSeverity[CategoryValueSeverity["unspecified"] = 0] = "unspecified";
514
+ CategoryValueSeverity[CategoryValueSeverity["notPresent"] = 1] = "notPresent";
515
+ CategoryValueSeverity[CategoryValueSeverity["mild"] = 2] = "mild";
516
+ CategoryValueSeverity[CategoryValueSeverity["moderate"] = 3] = "moderate";
517
+ CategoryValueSeverity[CategoryValueSeverity["severe"] = 4] = "severe";
518
+ })(CategoryValueSeverity || (exports.CategoryValueSeverity = CategoryValueSeverity = {}));
519
+ var CategoryValueSleepAnalysis;
520
+ (function (CategoryValueSleepAnalysis) {
521
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
522
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepUnspecified"] = 1] = "asleepUnspecified";
523
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleep"] = 1] = "asleep";
524
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["awake"] = 2] = "awake";
525
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepCore"] = 3] = "asleepCore";
526
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepDeep"] = 4] = "asleepDeep";
527
+ CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepREM"] = 5] = "asleepREM";
528
+ })(CategoryValueSleepAnalysis || (exports.CategoryValueSleepAnalysis = CategoryValueSleepAnalysis = {}));
529
+ var CategoryValueVaginalBleeding;
530
+ (function (CategoryValueVaginalBleeding) {
531
+ CategoryValueVaginalBleeding[CategoryValueVaginalBleeding["unspecified"] = 1] = "unspecified";
532
+ CategoryValueVaginalBleeding[CategoryValueVaginalBleeding["light"] = 2] = "light";
533
+ CategoryValueVaginalBleeding[CategoryValueVaginalBleeding["medium"] = 3] = "medium";
534
+ CategoryValueVaginalBleeding[CategoryValueVaginalBleeding["heavy"] = 4] = "heavy";
535
+ CategoryValueVaginalBleeding[CategoryValueVaginalBleeding["none"] = 5] = "none";
536
+ })(CategoryValueVaginalBleeding || (exports.CategoryValueVaginalBleeding = CategoryValueVaginalBleeding = {}));
537
+ var CyclingFunctionalThresholdPowerTestType;
538
+ (function (CyclingFunctionalThresholdPowerTestType) {
539
+ CyclingFunctionalThresholdPowerTestType[CyclingFunctionalThresholdPowerTestType["maxExercise60Minute"] = 1] = "maxExercise60Minute";
540
+ CyclingFunctionalThresholdPowerTestType[CyclingFunctionalThresholdPowerTestType["maxExercise20Minute"] = 2] = "maxExercise20Minute";
541
+ CyclingFunctionalThresholdPowerTestType[CyclingFunctionalThresholdPowerTestType["rampTest"] = 3] = "rampTest";
542
+ CyclingFunctionalThresholdPowerTestType[CyclingFunctionalThresholdPowerTestType["predictionExercise"] = 4] = "predictionExercise";
543
+ })(CyclingFunctionalThresholdPowerTestType || (exports.CyclingFunctionalThresholdPowerTestType = CyclingFunctionalThresholdPowerTestType = {}));
544
+ var DevicePlacementSide;
545
+ (function (DevicePlacementSide) {
546
+ DevicePlacementSide[DevicePlacementSide["unknown"] = 0] = "unknown";
547
+ DevicePlacementSide[DevicePlacementSide["left"] = 1] = "left";
548
+ DevicePlacementSide[DevicePlacementSide["right"] = 2] = "right";
549
+ DevicePlacementSide[DevicePlacementSide["central"] = 3] = "central";
550
+ })(DevicePlacementSide || (exports.DevicePlacementSide = DevicePlacementSide = {}));
551
+ var HeartRateMotionContext;
552
+ (function (HeartRateMotionContext) {
553
+ HeartRateMotionContext[HeartRateMotionContext["notSet"] = 0] = "notSet";
554
+ HeartRateMotionContext[HeartRateMotionContext["sedentary"] = 1] = "sedentary";
555
+ HeartRateMotionContext[HeartRateMotionContext["active"] = 2] = "active";
556
+ })(HeartRateMotionContext || (exports.HeartRateMotionContext = HeartRateMotionContext = {}));
557
+ var HeartRateRecoveryTestType;
558
+ (function (HeartRateRecoveryTestType) {
559
+ HeartRateRecoveryTestType[HeartRateRecoveryTestType["maxExercise"] = 1] = "maxExercise";
560
+ HeartRateRecoveryTestType[HeartRateRecoveryTestType["predictionSubMaxExercise"] = 2] = "predictionSubMaxExercise";
561
+ HeartRateRecoveryTestType[HeartRateRecoveryTestType["predictionNonExercise"] = 3] = "predictionNonExercise";
562
+ })(HeartRateRecoveryTestType || (exports.HeartRateRecoveryTestType = HeartRateRecoveryTestType = {}));
563
+ var HeartRateSensorLocation;
564
+ (function (HeartRateSensorLocation) {
565
+ HeartRateSensorLocation[HeartRateSensorLocation["other"] = 0] = "other";
566
+ HeartRateSensorLocation[HeartRateSensorLocation["chest"] = 1] = "chest";
567
+ HeartRateSensorLocation[HeartRateSensorLocation["wrist"] = 2] = "wrist";
568
+ HeartRateSensorLocation[HeartRateSensorLocation["finger"] = 3] = "finger";
569
+ HeartRateSensorLocation[HeartRateSensorLocation["hand"] = 4] = "hand";
570
+ HeartRateSensorLocation[HeartRateSensorLocation["earLobe"] = 5] = "earLobe";
571
+ HeartRateSensorLocation[HeartRateSensorLocation["foot"] = 6] = "foot";
572
+ })(HeartRateSensorLocation || (exports.HeartRateSensorLocation = HeartRateSensorLocation = {}));
573
+ var InsulinDeliveryReason;
574
+ (function (InsulinDeliveryReason) {
575
+ InsulinDeliveryReason[InsulinDeliveryReason["basal"] = 1] = "basal";
576
+ InsulinDeliveryReason[InsulinDeliveryReason["bolus"] = 2] = "bolus";
577
+ })(InsulinDeliveryReason || (exports.InsulinDeliveryReason = InsulinDeliveryReason = {}));
578
+ var PhysicalEffortEstimationType;
579
+ (function (PhysicalEffortEstimationType) {
580
+ PhysicalEffortEstimationType[PhysicalEffortEstimationType["activityLookup"] = 1] = "activityLookup";
581
+ PhysicalEffortEstimationType[PhysicalEffortEstimationType["deviceSensed"] = 2] = "deviceSensed";
582
+ })(PhysicalEffortEstimationType || (exports.PhysicalEffortEstimationType = PhysicalEffortEstimationType = {}));
583
+ var SwimmingStrokeStyle;
584
+ (function (SwimmingStrokeStyle) {
585
+ SwimmingStrokeStyle[SwimmingStrokeStyle["unknown"] = 0] = "unknown";
586
+ SwimmingStrokeStyle[SwimmingStrokeStyle["mixed"] = 1] = "mixed";
587
+ SwimmingStrokeStyle[SwimmingStrokeStyle["freestyle"] = 2] = "freestyle";
588
+ SwimmingStrokeStyle[SwimmingStrokeStyle["backstroke"] = 3] = "backstroke";
589
+ SwimmingStrokeStyle[SwimmingStrokeStyle["breaststroke"] = 4] = "breaststroke";
590
+ SwimmingStrokeStyle[SwimmingStrokeStyle["butterfly"] = 5] = "butterfly";
591
+ SwimmingStrokeStyle[SwimmingStrokeStyle["kickboard"] = 6] = "kickboard";
592
+ })(SwimmingStrokeStyle || (exports.SwimmingStrokeStyle = SwimmingStrokeStyle = {}));
593
+ var UserMotionContext;
594
+ (function (UserMotionContext) {
595
+ UserMotionContext[UserMotionContext["notSet"] = 0] = "notSet";
596
+ UserMotionContext[UserMotionContext["stationary"] = 1] = "stationary";
597
+ UserMotionContext[UserMotionContext["active"] = 2] = "active";
598
+ })(UserMotionContext || (exports.UserMotionContext = UserMotionContext = {}));
599
+ var VO2MaxTestType;
600
+ (function (VO2MaxTestType) {
601
+ VO2MaxTestType[VO2MaxTestType["maxExercise"] = 1] = "maxExercise";
602
+ VO2MaxTestType[VO2MaxTestType["predictionSubMaxExercise"] = 2] = "predictionSubMaxExercise";
603
+ VO2MaxTestType[VO2MaxTestType["predictionNonExercise"] = 3] = "predictionNonExercise";
604
+ VO2MaxTestType[VO2MaxTestType["predictionStepTest"] = 4] = "predictionStepTest";
605
+ })(VO2MaxTestType || (exports.VO2MaxTestType = VO2MaxTestType = {}));
606
+ var WaterSalinity;
607
+ (function (WaterSalinity) {
608
+ WaterSalinity[WaterSalinity["freshWater"] = 1] = "freshWater";
609
+ WaterSalinity[WaterSalinity["saltWater"] = 2] = "saltWater";
610
+ })(WaterSalinity || (exports.WaterSalinity = WaterSalinity = {}));
611
+ var WeatherCondition;
612
+ (function (WeatherCondition) {
613
+ WeatherCondition[WeatherCondition["none"] = 0] = "none";
614
+ WeatherCondition[WeatherCondition["clear"] = 1] = "clear";
615
+ WeatherCondition[WeatherCondition["fair"] = 2] = "fair";
616
+ WeatherCondition[WeatherCondition["partlyCloudy"] = 3] = "partlyCloudy";
617
+ WeatherCondition[WeatherCondition["mostlyCloudy"] = 4] = "mostlyCloudy";
618
+ WeatherCondition[WeatherCondition["cloudy"] = 5] = "cloudy";
619
+ WeatherCondition[WeatherCondition["foggy"] = 6] = "foggy";
620
+ WeatherCondition[WeatherCondition["haze"] = 7] = "haze";
621
+ WeatherCondition[WeatherCondition["windy"] = 8] = "windy";
622
+ WeatherCondition[WeatherCondition["blustery"] = 9] = "blustery";
623
+ WeatherCondition[WeatherCondition["smoky"] = 10] = "smoky";
624
+ WeatherCondition[WeatherCondition["dust"] = 11] = "dust";
625
+ WeatherCondition[WeatherCondition["snow"] = 12] = "snow";
626
+ WeatherCondition[WeatherCondition["hail"] = 13] = "hail";
627
+ WeatherCondition[WeatherCondition["sleet"] = 14] = "sleet";
628
+ WeatherCondition[WeatherCondition["freezingDrizzle"] = 15] = "freezingDrizzle";
629
+ WeatherCondition[WeatherCondition["freezingRain"] = 16] = "freezingRain";
630
+ WeatherCondition[WeatherCondition["mixedRainAndHail"] = 17] = "mixedRainAndHail";
631
+ WeatherCondition[WeatherCondition["mixedRainAndSnow"] = 18] = "mixedRainAndSnow";
632
+ WeatherCondition[WeatherCondition["mixedRainAndSleet"] = 19] = "mixedRainAndSleet";
633
+ WeatherCondition[WeatherCondition["mixedSnowAndSleet"] = 20] = "mixedSnowAndSleet";
634
+ WeatherCondition[WeatherCondition["drizzle"] = 21] = "drizzle";
635
+ WeatherCondition[WeatherCondition["scatteredShowers"] = 22] = "scatteredShowers";
636
+ WeatherCondition[WeatherCondition["showers"] = 23] = "showers";
637
+ WeatherCondition[WeatherCondition["thunderstorms"] = 24] = "thunderstorms";
638
+ WeatherCondition[WeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
639
+ WeatherCondition[WeatherCondition["hurricane"] = 26] = "hurricane";
640
+ WeatherCondition[WeatherCondition["tornado"] = 27] = "tornado";
641
+ })(WeatherCondition || (exports.WeatherCondition = WeatherCondition = {}));
642
+ var WorkoutActivityType;
643
+ (function (WorkoutActivityType) {
644
+ WorkoutActivityType[WorkoutActivityType["americanFootball"] = 1] = "americanFootball";
645
+ WorkoutActivityType[WorkoutActivityType["archery"] = 2] = "archery";
646
+ WorkoutActivityType[WorkoutActivityType["australianFootball"] = 3] = "australianFootball";
647
+ WorkoutActivityType[WorkoutActivityType["badminton"] = 4] = "badminton";
648
+ WorkoutActivityType[WorkoutActivityType["baseball"] = 5] = "baseball";
649
+ WorkoutActivityType[WorkoutActivityType["basketball"] = 6] = "basketball";
650
+ WorkoutActivityType[WorkoutActivityType["bowling"] = 7] = "bowling";
651
+ WorkoutActivityType[WorkoutActivityType["boxing"] = 8] = "boxing";
652
+ WorkoutActivityType[WorkoutActivityType["climbing"] = 9] = "climbing";
653
+ WorkoutActivityType[WorkoutActivityType["cricket"] = 10] = "cricket";
654
+ WorkoutActivityType[WorkoutActivityType["crossTraining"] = 11] = "crossTraining";
655
+ WorkoutActivityType[WorkoutActivityType["curling"] = 12] = "curling";
656
+ WorkoutActivityType[WorkoutActivityType["cycling"] = 13] = "cycling";
657
+ WorkoutActivityType[WorkoutActivityType["dance"] = 14] = "dance";
658
+ WorkoutActivityType[WorkoutActivityType["danceInspiredTraining"] = 15] = "danceInspiredTraining";
659
+ WorkoutActivityType[WorkoutActivityType["elliptical"] = 16] = "elliptical";
660
+ WorkoutActivityType[WorkoutActivityType["equestrianSports"] = 17] = "equestrianSports";
661
+ WorkoutActivityType[WorkoutActivityType["fencing"] = 18] = "fencing";
662
+ WorkoutActivityType[WorkoutActivityType["fishing"] = 19] = "fishing";
663
+ WorkoutActivityType[WorkoutActivityType["functionalStrengthTraining"] = 20] = "functionalStrengthTraining";
664
+ WorkoutActivityType[WorkoutActivityType["golf"] = 21] = "golf";
665
+ WorkoutActivityType[WorkoutActivityType["gymnastics"] = 22] = "gymnastics";
666
+ WorkoutActivityType[WorkoutActivityType["handball"] = 23] = "handball";
667
+ WorkoutActivityType[WorkoutActivityType["hiking"] = 24] = "hiking";
668
+ WorkoutActivityType[WorkoutActivityType["hockey"] = 25] = "hockey";
669
+ WorkoutActivityType[WorkoutActivityType["hunting"] = 26] = "hunting";
670
+ WorkoutActivityType[WorkoutActivityType["lacrosse"] = 27] = "lacrosse";
671
+ WorkoutActivityType[WorkoutActivityType["martialArts"] = 28] = "martialArts";
672
+ WorkoutActivityType[WorkoutActivityType["mindAndBody"] = 29] = "mindAndBody";
673
+ WorkoutActivityType[WorkoutActivityType["mixedMetabolicCardioTraining"] = 30] = "mixedMetabolicCardioTraining";
674
+ WorkoutActivityType[WorkoutActivityType["paddleSports"] = 31] = "paddleSports";
675
+ WorkoutActivityType[WorkoutActivityType["play"] = 32] = "play";
676
+ WorkoutActivityType[WorkoutActivityType["preparationAndRecovery"] = 33] = "preparationAndRecovery";
677
+ WorkoutActivityType[WorkoutActivityType["racquetball"] = 34] = "racquetball";
678
+ WorkoutActivityType[WorkoutActivityType["rowing"] = 35] = "rowing";
679
+ WorkoutActivityType[WorkoutActivityType["rugby"] = 36] = "rugby";
680
+ WorkoutActivityType[WorkoutActivityType["running"] = 37] = "running";
681
+ WorkoutActivityType[WorkoutActivityType["sailing"] = 38] = "sailing";
682
+ WorkoutActivityType[WorkoutActivityType["skatingSports"] = 39] = "skatingSports";
683
+ WorkoutActivityType[WorkoutActivityType["snowSports"] = 40] = "snowSports";
684
+ WorkoutActivityType[WorkoutActivityType["soccer"] = 41] = "soccer";
685
+ WorkoutActivityType[WorkoutActivityType["softball"] = 42] = "softball";
686
+ WorkoutActivityType[WorkoutActivityType["squash"] = 43] = "squash";
687
+ WorkoutActivityType[WorkoutActivityType["stairClimbing"] = 44] = "stairClimbing";
688
+ WorkoutActivityType[WorkoutActivityType["surfingSports"] = 45] = "surfingSports";
689
+ WorkoutActivityType[WorkoutActivityType["swimming"] = 46] = "swimming";
690
+ WorkoutActivityType[WorkoutActivityType["tableTennis"] = 47] = "tableTennis";
691
+ WorkoutActivityType[WorkoutActivityType["tennis"] = 48] = "tennis";
692
+ WorkoutActivityType[WorkoutActivityType["trackAndField"] = 49] = "trackAndField";
693
+ WorkoutActivityType[WorkoutActivityType["traditionalStrengthTraining"] = 50] = "traditionalStrengthTraining";
694
+ WorkoutActivityType[WorkoutActivityType["volleyball"] = 51] = "volleyball";
695
+ WorkoutActivityType[WorkoutActivityType["walking"] = 52] = "walking";
696
+ WorkoutActivityType[WorkoutActivityType["waterFitness"] = 53] = "waterFitness";
697
+ WorkoutActivityType[WorkoutActivityType["waterPolo"] = 54] = "waterPolo";
698
+ WorkoutActivityType[WorkoutActivityType["waterSports"] = 55] = "waterSports";
699
+ WorkoutActivityType[WorkoutActivityType["wrestling"] = 56] = "wrestling";
700
+ WorkoutActivityType[WorkoutActivityType["yoga"] = 57] = "yoga";
701
+ WorkoutActivityType[WorkoutActivityType["barre"] = 58] = "barre";
702
+ WorkoutActivityType[WorkoutActivityType["coreTraining"] = 59] = "coreTraining";
703
+ WorkoutActivityType[WorkoutActivityType["crossCountrySkiing"] = 60] = "crossCountrySkiing";
704
+ WorkoutActivityType[WorkoutActivityType["downhillSkiing"] = 61] = "downhillSkiing";
705
+ WorkoutActivityType[WorkoutActivityType["flexibility"] = 62] = "flexibility";
706
+ WorkoutActivityType[WorkoutActivityType["highIntensityIntervalTraining"] = 63] = "highIntensityIntervalTraining";
707
+ WorkoutActivityType[WorkoutActivityType["jumpRope"] = 64] = "jumpRope";
708
+ WorkoutActivityType[WorkoutActivityType["kickboxing"] = 65] = "kickboxing";
709
+ WorkoutActivityType[WorkoutActivityType["pilates"] = 66] = "pilates";
710
+ WorkoutActivityType[WorkoutActivityType["snowboarding"] = 67] = "snowboarding";
711
+ WorkoutActivityType[WorkoutActivityType["stairs"] = 68] = "stairs";
712
+ WorkoutActivityType[WorkoutActivityType["stepTraining"] = 69] = "stepTraining";
713
+ WorkoutActivityType[WorkoutActivityType["wheelchairWalkPace"] = 70] = "wheelchairWalkPace";
714
+ WorkoutActivityType[WorkoutActivityType["wheelchairRunPace"] = 71] = "wheelchairRunPace";
715
+ WorkoutActivityType[WorkoutActivityType["taiChi"] = 72] = "taiChi";
716
+ WorkoutActivityType[WorkoutActivityType["mixedCardio"] = 73] = "mixedCardio";
717
+ WorkoutActivityType[WorkoutActivityType["handCycling"] = 74] = "handCycling";
718
+ WorkoutActivityType[WorkoutActivityType["discSports"] = 75] = "discSports";
719
+ WorkoutActivityType[WorkoutActivityType["fitnessGaming"] = 76] = "fitnessGaming";
720
+ WorkoutActivityType[WorkoutActivityType["cardioDance"] = 77] = "cardioDance";
721
+ WorkoutActivityType[WorkoutActivityType["socialDance"] = 78] = "socialDance";
722
+ WorkoutActivityType[WorkoutActivityType["pickleball"] = 79] = "pickleball";
723
+ WorkoutActivityType[WorkoutActivityType["cooldown"] = 80] = "cooldown";
724
+ WorkoutActivityType[WorkoutActivityType["swimBikeRun"] = 82] = "swimBikeRun";
725
+ WorkoutActivityType[WorkoutActivityType["transition"] = 83] = "transition";
726
+ WorkoutActivityType[WorkoutActivityType["underwaterDiving"] = 84] = "underwaterDiving";
727
+ WorkoutActivityType[WorkoutActivityType["other"] = 3000] = "other";
728
+ })(WorkoutActivityType || (exports.WorkoutActivityType = WorkoutActivityType = {}));
729
+ var WorkoutEventType;
730
+ (function (WorkoutEventType) {
731
+ WorkoutEventType[WorkoutEventType["pause"] = 1] = "pause";
732
+ WorkoutEventType[WorkoutEventType["resume"] = 2] = "resume";
733
+ WorkoutEventType[WorkoutEventType["lap"] = 3] = "lap";
734
+ WorkoutEventType[WorkoutEventType["marker"] = 4] = "marker";
735
+ WorkoutEventType[WorkoutEventType["motionPaused"] = 5] = "motionPaused";
736
+ WorkoutEventType[WorkoutEventType["motionResumed"] = 6] = "motionResumed";
737
+ WorkoutEventType[WorkoutEventType["segment"] = 7] = "segment";
738
+ WorkoutEventType[WorkoutEventType["pauseOrResumeRequest"] = 8] = "pauseOrResumeRequest";
739
+ })(WorkoutEventType || (exports.WorkoutEventType = WorkoutEventType = {}));
740
+ var WorkoutSwimmingLocationType;
741
+ (function (WorkoutSwimmingLocationType) {
742
+ WorkoutSwimmingLocationType[WorkoutSwimmingLocationType["unknown"] = 0] = "unknown";
743
+ WorkoutSwimmingLocationType[WorkoutSwimmingLocationType["pool"] = 1] = "pool";
744
+ WorkoutSwimmingLocationType[WorkoutSwimmingLocationType["openWater"] = 2] = "openWater";
745
+ })(WorkoutSwimmingLocationType || (exports.WorkoutSwimmingLocationType = WorkoutSwimmingLocationType = {}));