@kingstinct/react-native-healthkit 6.1.0 → 7.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.
- package/README.md +7 -5
- package/app.plugin.js +69 -0
- package/ios/Constants.swift +28 -0
- package/ios/Helpers.swift +152 -0
- package/ios/ReactNativeHealthkit.m +24 -0
- package/ios/ReactNativeHealthkit.swift +534 -728
- package/ios/Serializers.swift +206 -0
- package/lib/commonjs/hooks/useHealthkitAuthorization.js +0 -6
- package/lib/commonjs/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js +2 -9
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js.map +1 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +0 -6
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js +1 -6
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentCategorySample.js +1 -7
- package/lib/commonjs/hooks/useMostRecentCategorySample.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js +0 -10
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentWorkout.js +0 -10
- package/lib/commonjs/hooks/useMostRecentWorkout.js.map +1 -1
- package/lib/commonjs/hooks/useSources.js +0 -5
- package/lib/commonjs/hooks/useSources.js.map +1 -1
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +1 -7
- package/lib/commonjs/hooks/useStatisticsForQuantity.js.map +1 -1
- package/lib/commonjs/hooks/useSubscribeToChanges.js +0 -8
- package/lib/commonjs/hooks/useSubscribeToChanges.js.map +1 -1
- package/lib/commonjs/index.ios.js +6 -33
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/commonjs/index.js +7 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/jest.setup.js +3 -1
- package/lib/commonjs/jest.setup.js.map +1 -1
- package/lib/commonjs/native-types.js +166 -250
- package/lib/commonjs/native-types.js.map +1 -1
- package/lib/commonjs/test-utils.js +1 -3
- package/lib/commonjs/test-utils.js.map +1 -1
- package/lib/commonjs/types.js +0 -2
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/deleteQuantitySample.js +0 -4
- package/lib/commonjs/utils/deleteQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/deleteSamples.js +0 -4
- package/lib/commonjs/utils/deleteSamples.js.map +1 -1
- package/lib/commonjs/utils/deserializeCategorySample.js +2 -3
- package/lib/commonjs/utils/deserializeCategorySample.js.map +1 -1
- package/lib/commonjs/utils/deserializeCategorySample.test.js +3 -5
- package/lib/commonjs/utils/deserializeCategorySample.test.js.map +1 -1
- package/lib/commonjs/utils/deserializeCorrelation.js +2 -7
- package/lib/commonjs/utils/deserializeCorrelation.js.map +1 -1
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js +2 -3
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js.map +1 -1
- package/lib/commonjs/utils/deserializeSample.js +2 -3
- package/lib/commonjs/utils/deserializeSample.js.map +1 -1
- package/lib/commonjs/utils/deserializeWorkout.js +2 -3
- package/lib/commonjs/utils/deserializeWorkout.js.map +1 -1
- package/lib/commonjs/utils/ensureMetadata.js +0 -2
- package/lib/commonjs/utils/ensureMetadata.js.map +1 -1
- package/lib/commonjs/utils/ensureUnit.js +0 -5
- package/lib/commonjs/utils/ensureUnit.js.map +1 -1
- package/lib/commonjs/utils/getDateOfBirth.js +0 -4
- package/lib/commonjs/utils/getDateOfBirth.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentCategorySample.js +1 -5
- package/lib/commonjs/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +1 -5
- package/lib/commonjs/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentWorkout.js +0 -4
- package/lib/commonjs/utils/getMostRecentWorkout.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnit.js +0 -4
- package/lib/commonjs/utils/getPreferredUnit.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnits.js +0 -4
- package/lib/commonjs/utils/getPreferredUnits.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnitsTyped.js +0 -11
- package/lib/commonjs/utils/getPreferredUnitsTyped.js.map +1 -1
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js +4 -6
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js.map +1 -1
- package/lib/commonjs/utils/prepareOptions.js +0 -4
- package/lib/commonjs/utils/prepareOptions.js.map +1 -1
- package/lib/commonjs/utils/queryCategorySamples.js +3 -14
- package/lib/commonjs/utils/queryCategorySamples.js.map +1 -1
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js +22 -0
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js.map +1 -0
- package/lib/commonjs/utils/queryCorrelationSamples.js +1 -7
- package/lib/commonjs/utils/queryCorrelationSamples.js.map +1 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js +3 -13
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js.map +1 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js +22 -0
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +1 -0
- package/lib/commonjs/utils/queryQuantitySamples.js +3 -15
- package/lib/commonjs/utils/queryQuantitySamples.js.map +1 -1
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js +24 -0
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js.map +1 -0
- package/lib/commonjs/utils/querySources.js +0 -4
- package/lib/commonjs/utils/querySources.js.map +1 -1
- package/lib/commonjs/utils/queryStatisticsForQuantity.js +3 -7
- package/lib/commonjs/utils/queryStatisticsForQuantity.js.map +1 -1
- package/lib/commonjs/utils/queryWorkouts.js +1 -8
- package/lib/commonjs/utils/queryWorkouts.js.map +1 -1
- package/lib/commonjs/utils/requestAuthorization.js +4 -6
- package/lib/commonjs/utils/requestAuthorization.js.map +1 -1
- package/lib/commonjs/utils/saveCategorySample.js +0 -4
- package/lib/commonjs/utils/saveCategorySample.js.map +1 -1
- package/lib/commonjs/utils/saveCorrelationSample.js +3 -7
- package/lib/commonjs/utils/saveCorrelationSample.js.map +1 -1
- package/lib/commonjs/utils/saveQuantitySample.js +0 -4
- package/lib/commonjs/utils/saveQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/saveWorkoutSample.js +3 -8
- package/lib/commonjs/utils/saveWorkoutSample.js.map +1 -1
- package/lib/commonjs/utils/serializeDate.js +0 -2
- package/lib/commonjs/utils/serializeDate.js.map +1 -1
- package/lib/commonjs/utils/serializeDate.test.js +0 -2
- package/lib/commonjs/utils/serializeDate.test.js.map +1 -1
- package/lib/commonjs/utils/subscribeToChanges.js +0 -7
- package/lib/commonjs/utils/subscribeToChanges.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.js +0 -2
- package/lib/module/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.test.js +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.test.js.map +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.js +0 -3
- package/lib/module/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.test.js +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/module/hooks/useMostRecentCategorySample.js +1 -3
- package/lib/module/hooks/useMostRecentCategorySample.js.map +1 -1
- package/lib/module/hooks/useMostRecentQuantitySample.js +0 -5
- package/lib/module/hooks/useMostRecentQuantitySample.js.map +1 -1
- package/lib/module/hooks/useMostRecentWorkout.js +0 -5
- package/lib/module/hooks/useMostRecentWorkout.js.map +1 -1
- package/lib/module/hooks/useSources.js +0 -2
- package/lib/module/hooks/useSources.js.map +1 -1
- package/lib/module/hooks/useStatisticsForQuantity.js +1 -3
- package/lib/module/hooks/useStatisticsForQuantity.js.map +1 -1
- package/lib/module/hooks/useSubscribeToChanges.js +0 -5
- package/lib/module/hooks/useSubscribeToChanges.js.map +1 -1
- package/lib/module/index.ios.js +6 -0
- package/lib/module/index.ios.js.map +1 -1
- package/lib/module/index.js +8 -8
- package/lib/module/index.js.map +1 -1
- package/lib/module/jest.setup.js +3 -0
- package/lib/module/jest.setup.js.map +1 -1
- package/lib/module/native-types.js +134 -201
- package/lib/module/native-types.js.map +1 -1
- package/lib/module/test-utils.js +0 -2
- package/lib/module/test-utils.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/deleteQuantitySample.js +0 -2
- package/lib/module/utils/deleteQuantitySample.js.map +1 -1
- package/lib/module/utils/deleteSamples.js +0 -2
- package/lib/module/utils/deleteSamples.js.map +1 -1
- package/lib/module/utils/deserializeCategorySample.js +2 -2
- package/lib/module/utils/deserializeCategorySample.js.map +1 -1
- package/lib/module/utils/deserializeCategorySample.test.js +3 -2
- package/lib/module/utils/deserializeCategorySample.test.js.map +1 -1
- package/lib/module/utils/deserializeCorrelation.js +2 -4
- package/lib/module/utils/deserializeCorrelation.js.map +1 -1
- package/lib/module/utils/deserializeHeartbeatSeriesSample.js +2 -2
- package/lib/module/utils/deserializeHeartbeatSeriesSample.js.map +1 -1
- package/lib/module/utils/deserializeSample.js +2 -2
- package/lib/module/utils/deserializeSample.js.map +1 -1
- package/lib/module/utils/deserializeWorkout.js +2 -2
- package/lib/module/utils/deserializeWorkout.js.map +1 -1
- package/lib/module/utils/ensureMetadata.js +0 -1
- package/lib/module/utils/ensureMetadata.js.map +1 -1
- package/lib/module/utils/ensureUnit.js +0 -3
- package/lib/module/utils/ensureUnit.js.map +1 -1
- package/lib/module/utils/getDateOfBirth.js +0 -2
- package/lib/module/utils/getDateOfBirth.js.map +1 -1
- package/lib/module/utils/getMostRecentCategorySample.js +1 -3
- package/lib/module/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/module/utils/getMostRecentQuantitySample.js +1 -3
- package/lib/module/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/module/utils/getMostRecentWorkout.js +0 -2
- package/lib/module/utils/getMostRecentWorkout.js.map +1 -1
- package/lib/module/utils/getPreferredUnit.js +0 -2
- package/lib/module/utils/getPreferredUnit.js.map +1 -1
- package/lib/module/utils/getPreferredUnits.js +0 -2
- package/lib/module/utils/getPreferredUnits.js.map +1 -1
- package/lib/module/utils/getPreferredUnitsTyped.js +0 -8
- package/lib/module/utils/getPreferredUnitsTyped.js.map +1 -1
- package/lib/module/utils/getRequestStatusForAuthorization.js +4 -4
- package/lib/module/utils/getRequestStatusForAuthorization.js.map +1 -1
- package/lib/module/utils/prepareOptions.js +0 -2
- package/lib/module/utils/prepareOptions.js.map +1 -1
- package/lib/module/utils/queryCategorySamples.js +3 -10
- package/lib/module/utils/queryCategorySamples.js.map +1 -1
- package/lib/module/utils/queryCategorySamplesWithAnchor.js +14 -0
- package/lib/module/utils/queryCategorySamplesWithAnchor.js.map +1 -0
- package/lib/module/utils/queryCorrelationSamples.js +1 -3
- package/lib/module/utils/queryCorrelationSamples.js.map +1 -1
- package/lib/module/utils/queryHeartbeatSeriesSamples.js +3 -9
- package/lib/module/utils/queryHeartbeatSeriesSamples.js.map +1 -1
- package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js +14 -0
- package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +1 -0
- package/lib/module/utils/queryQuantitySamples.js +3 -10
- package/lib/module/utils/queryQuantitySamples.js.map +1 -1
- package/lib/module/utils/queryQuantitySamplesWithAnchor.js +16 -0
- package/lib/module/utils/queryQuantitySamplesWithAnchor.js.map +1 -0
- package/lib/module/utils/querySources.js +0 -2
- package/lib/module/utils/querySources.js.map +1 -1
- package/lib/module/utils/queryStatisticsForQuantity.js +3 -4
- package/lib/module/utils/queryStatisticsForQuantity.js.map +1 -1
- package/lib/module/utils/queryWorkouts.js +1 -3
- package/lib/module/utils/queryWorkouts.js.map +1 -1
- package/lib/module/utils/requestAuthorization.js +4 -4
- package/lib/module/utils/requestAuthorization.js.map +1 -1
- package/lib/module/utils/saveCategorySample.js +0 -2
- package/lib/module/utils/saveCategorySample.js.map +1 -1
- package/lib/module/utils/saveCorrelationSample.js +3 -4
- package/lib/module/utils/saveCorrelationSample.js.map +1 -1
- package/lib/module/utils/saveQuantitySample.js +0 -2
- package/lib/module/utils/saveQuantitySample.js.map +1 -1
- package/lib/module/utils/saveWorkoutSample.js +3 -5
- package/lib/module/utils/saveWorkoutSample.js.map +1 -1
- package/lib/module/utils/serializeDate.js +0 -1
- package/lib/module/utils/serializeDate.js.map +1 -1
- package/lib/module/utils/serializeDate.test.js.map +1 -1
- package/lib/module/utils/subscribeToChanges.js +0 -3
- package/lib/module/utils/subscribeToChanges.js.map +1 -1
- package/lib/typescript/src/hooks/useMostRecentCategorySample.d.ts +2 -3
- package/lib/typescript/src/hooks/useMostRecentQuantitySample.d.ts +2 -3
- package/lib/typescript/src/index.ios.d.ts +4 -1
- package/lib/typescript/src/native-types.d.ts +66 -63
- package/lib/typescript/src/types.d.ts +3 -3
- package/lib/typescript/src/utils/deleteQuantitySample.d.ts +1 -1
- package/lib/typescript/src/utils/deleteSamples.d.ts +1 -1
- package/lib/typescript/src/utils/getMostRecentCategorySample.d.ts +1 -1
- package/lib/typescript/src/utils/getMostRecentQuantitySample.d.ts +1 -1
- package/lib/typescript/src/utils/getMostRecentWorkout.d.ts +1 -1
- package/lib/typescript/src/utils/getPreferredUnit.d.ts +1 -1
- package/lib/typescript/src/utils/getPreferredUnits.d.ts +1 -1
- package/lib/typescript/src/utils/queryCategorySamples.d.ts +3 -8
- package/lib/typescript/src/utils/queryCategorySamplesWithAnchor.d.ts +10 -0
- package/lib/typescript/src/utils/queryCorrelationSamples.d.ts +1 -1
- package/lib/typescript/src/utils/queryHeartbeatSeriesSamples.d.ts +2 -2
- package/lib/typescript/src/utils/queryHeartbeatSeriesSamplesWithAnchor.d.ts +10 -0
- package/lib/typescript/src/utils/queryQuantitySamples.d.ts +4 -9
- package/lib/typescript/src/utils/queryQuantitySamplesWithAnchor.d.ts +12 -0
- package/lib/typescript/src/utils/querySources.d.ts +1 -1
- package/package.json +20 -18
- package/src/hooks/useHealthkitAuthorization.test.ts +1 -1
- package/src/hooks/useIsHealthDataAvailable.test.ts +1 -1
- package/src/hooks/useMostRecentCategorySample.ts +3 -4
- package/src/hooks/useMostRecentQuantitySample.ts +2 -3
- package/src/hooks/useStatisticsForQuantity.ts +1 -1
- package/src/index.ios.tsx +6 -0
- package/src/index.tsx +10 -5
- package/src/jest.setup.ts +3 -0
- package/src/native-types.ts +28 -7
- package/src/utils/deserializeCategorySample.test.ts +1 -1
- package/src/utils/getMostRecentCategorySample.ts +1 -1
- package/src/utils/getMostRecentQuantitySample.ts +1 -1
- package/src/utils/queryCategorySamples.ts +6 -18
- package/src/utils/queryCategorySamplesWithAnchor.ts +39 -0
- package/src/utils/queryCorrelationSamples.ts +2 -2
- package/src/utils/queryHeartbeatSeriesSamples.ts +3 -8
- package/src/utils/queryHeartbeatSeriesSamplesWithAnchor.ts +33 -0
- package/src/utils/queryQuantitySamples.ts +8 -18
- package/src/utils/queryQuantitySamplesWithAnchor.ts +46 -0
- package/src/utils/queryStatisticsForQuantity.ts +1 -1
- package/src/utils/queryWorkouts.ts +1 -1
- package/src/utils/saveCorrelationSample.ts +1 -1
- package/src/utils/saveWorkoutSample.ts +1 -1
- package/android/.project +0 -34
- package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
- package/android/build.gradle +0 -130
- package/android/gradle.properties +0 -4
- package/android/src/main/AndroidManifest.xml +0 -4
- package/android/src/main/java/com/kingstinctreactnativehealthkit/ReactNativeHealthkitModule.kt +0 -24
- package/android/src/main/java/com/kingstinctreactnativehealthkit/ReactNativeHealthkitPackage.kt +0 -20
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.UnitOfVolume = exports.UnitOfTime = exports.UnitOfPressure = exports.UnitOfMass = exports.UnitOfLength = exports.UnitOfEnergy = exports.TemperatureUnit = exports.HKWorkoutTypeIdentifier = exports.HKWorkoutRouteTypeIdentifier = exports.HKWorkoutActivityType = exports.HKWheelchairUse = exports.HKWeatherCondition = exports.HKUpdateFrequency = exports.HKUnits = exports.HKUnitMetric = exports.HKStatisticsOptions = exports.HKQuantityTypeIdentifier = exports.HKMetricPrefix = exports.HKInsulinDeliveryReason = exports.HKHeartRateMotionContext = exports.HKFitzpatrickSkinType = exports.HKDataTypeIdentifierHeartbeatSeries = exports.HKCorrelationTypeIdentifier = exports.HKCharacteristicTypeIdentifier = exports.HKCategoryValueSleepAnalysis = exports.HKCategoryValueSeverity = exports.HKCategoryValuePresence = exports.HKCategoryValueOvulationTestResult = exports.HKCategoryValueNotApplicable = exports.HKCategoryValueMenstrualFlow = exports.HKCategoryValueLowCardioFitnessEvent = exports.HKCategoryValueCervicalMucusQuality = exports.HKCategoryValueAppleStandHour = exports.HKCategoryValueAppetiteChanges = exports.HKCategoryTypeIdentifier = exports.HKBloodType = exports.HKBiologicalSex = exports.HKAuthorizationStatus = exports.HKAuthorizationRequestStatus = exports.HKAudiogramTypeIdentifier = exports.EventEmitter = exports.BloodGlucoseUnit = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier';
|
|
11
9
|
exports.HKWorkoutTypeIdentifier = HKWorkoutTypeIdentifier;
|
|
12
10
|
const HKAudiogramTypeIdentifier = 'HKAudiogramTypeIdentifier';
|
|
13
11
|
exports.HKAudiogramTypeIdentifier = HKAudiogramTypeIdentifier;
|
|
14
12
|
const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier';
|
|
15
13
|
exports.HKWorkoutRouteTypeIdentifier = HKWorkoutRouteTypeIdentifier;
|
|
16
|
-
const HKDataTypeIdentifierHeartbeatSeries = 'HKDataTypeIdentifierHeartbeatSeries';
|
|
14
|
+
const HKDataTypeIdentifierHeartbeatSeries = 'HKDataTypeIdentifierHeartbeatSeries';
|
|
17
15
|
|
|
16
|
+
// Straight mapping to https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier
|
|
18
17
|
exports.HKDataTypeIdentifierHeartbeatSeries = HKDataTypeIdentifierHeartbeatSeries;
|
|
19
|
-
let HKQuantityTypeIdentifier
|
|
20
|
-
exports.HKQuantityTypeIdentifier = HKQuantityTypeIdentifier;
|
|
21
|
-
|
|
22
|
-
(function (HKQuantityTypeIdentifier) {
|
|
18
|
+
let HKQuantityTypeIdentifier = /*#__PURE__*/function (HKQuantityTypeIdentifier) {
|
|
23
19
|
HKQuantityTypeIdentifier["bodyMassIndex"] = "HKQuantityTypeIdentifierBodyMassIndex";
|
|
24
20
|
HKQuantityTypeIdentifier["bodyFatPercentage"] = "HKQuantityTypeIdentifierBodyFatPercentage";
|
|
25
21
|
HKQuantityTypeIdentifier["height"] = "HKQuantityTypeIdentifierHeight";
|
|
@@ -117,36 +113,28 @@ exports.HKQuantityTypeIdentifier = HKQuantityTypeIdentifier;
|
|
|
117
113
|
HKQuantityTypeIdentifier["underwaterDepth"] = "HKQuantityTypeIdentifierUnderwaterDepth";
|
|
118
114
|
HKQuantityTypeIdentifier["waterTemperature"] = "HKQuantityTypeIdentifierWaterTemperature";
|
|
119
115
|
HKQuantityTypeIdentifier["appleSleepingWristTemperature"] = "HKQuantityTypeIdentifierAppleSleepingWristTemperature";
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
(function (HKCategoryValueLowCardioFitnessEvent) {
|
|
116
|
+
return HKQuantityTypeIdentifier;
|
|
117
|
+
}({}); // Temperature, Discrete
|
|
118
|
+
exports.HKQuantityTypeIdentifier = HKQuantityTypeIdentifier;
|
|
119
|
+
let HKCategoryValueLowCardioFitnessEvent = /*#__PURE__*/function (HKCategoryValueLowCardioFitnessEvent) {
|
|
126
120
|
HKCategoryValueLowCardioFitnessEvent[HKCategoryValueLowCardioFitnessEvent["lowFitness"] = 1] = "lowFitness";
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
(function (HKHeartRateMotionContext) {
|
|
121
|
+
return HKCategoryValueLowCardioFitnessEvent;
|
|
122
|
+
}({});
|
|
123
|
+
exports.HKCategoryValueLowCardioFitnessEvent = HKCategoryValueLowCardioFitnessEvent;
|
|
124
|
+
let HKHeartRateMotionContext = /*#__PURE__*/function (HKHeartRateMotionContext) {
|
|
133
125
|
HKHeartRateMotionContext[HKHeartRateMotionContext["active"] = 2] = "active";
|
|
134
126
|
HKHeartRateMotionContext[HKHeartRateMotionContext["notSet"] = 0] = "notSet";
|
|
135
127
|
HKHeartRateMotionContext[HKHeartRateMotionContext["sedentary"] = 1] = "sedentary";
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
(function (HKCorrelationTypeIdentifier) {
|
|
128
|
+
return HKHeartRateMotionContext;
|
|
129
|
+
}({});
|
|
130
|
+
exports.HKHeartRateMotionContext = HKHeartRateMotionContext;
|
|
131
|
+
let HKCorrelationTypeIdentifier = /*#__PURE__*/function (HKCorrelationTypeIdentifier) {
|
|
142
132
|
HKCorrelationTypeIdentifier["bloodPressure"] = "HKCorrelationTypeIdentifierBloodPressure";
|
|
143
133
|
HKCorrelationTypeIdentifier["food"] = "HKCorrelationTypeIdentifierFood";
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
(function (HKCategoryTypeIdentifier) {
|
|
134
|
+
return HKCorrelationTypeIdentifier;
|
|
135
|
+
}({});
|
|
136
|
+
exports.HKCorrelationTypeIdentifier = HKCorrelationTypeIdentifier;
|
|
137
|
+
let HKCategoryTypeIdentifier = /*#__PURE__*/function (HKCategoryTypeIdentifier) {
|
|
150
138
|
HKCategoryTypeIdentifier["sleepAnalysis"] = "HKCategoryTypeIdentifierSleepAnalysis";
|
|
151
139
|
HKCategoryTypeIdentifier["appleStandHour"] = "HKCategoryTypeIdentifierAppleStandHour";
|
|
152
140
|
HKCategoryTypeIdentifier["cervicalMucusQuality"] = "HKCategoryTypeIdentifierCervicalMucusQuality";
|
|
@@ -209,20 +197,16 @@ exports.HKCategoryTypeIdentifier = HKCategoryTypeIdentifier;
|
|
|
209
197
|
HKCategoryTypeIdentifier["vaginalDryness"] = "HKCategoryTypeIdentifierVaginalDryness";
|
|
210
198
|
HKCategoryTypeIdentifier["vomiting"] = "HKCategoryTypeIdentifierVomiting";
|
|
211
199
|
HKCategoryTypeIdentifier["wheezing"] = "HKCategoryTypeIdentifierWheezing";
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
(function (HKCategoryValueAppleStandHour) {
|
|
200
|
+
return HKCategoryTypeIdentifier;
|
|
201
|
+
}({}); // HKCategoryValueSeverity
|
|
202
|
+
exports.HKCategoryTypeIdentifier = HKCategoryTypeIdentifier;
|
|
203
|
+
let HKCategoryValueAppleStandHour = /*#__PURE__*/function (HKCategoryValueAppleStandHour) {
|
|
218
204
|
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["stood"] = 0] = "stood";
|
|
219
205
|
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["idle"] = 1] = "idle";
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
(function (HKWorkoutActivityType) {
|
|
206
|
+
return HKCategoryValueAppleStandHour;
|
|
207
|
+
}({});
|
|
208
|
+
exports.HKCategoryValueAppleStandHour = HKCategoryValueAppleStandHour;
|
|
209
|
+
let HKWorkoutActivityType = /*#__PURE__*/function (HKWorkoutActivityType) {
|
|
226
210
|
HKWorkoutActivityType[HKWorkoutActivityType["americanFootball"] = 1] = "americanFootball";
|
|
227
211
|
HKWorkoutActivityType[HKWorkoutActivityType["archery"] = 2] = "archery";
|
|
228
212
|
HKWorkoutActivityType[HKWorkoutActivityType["australianFootball"] = 3] = "australianFootball";
|
|
@@ -300,13 +284,11 @@ exports.HKWorkoutActivityType = HKWorkoutActivityType;
|
|
|
300
284
|
HKWorkoutActivityType[HKWorkoutActivityType["discSports"] = 75] = "discSports";
|
|
301
285
|
HKWorkoutActivityType[HKWorkoutActivityType["fitnessGaming"] = 76] = "fitnessGaming";
|
|
302
286
|
HKWorkoutActivityType[HKWorkoutActivityType["other"] = 3000] = "other";
|
|
303
|
-
|
|
304
|
-
|
|
287
|
+
return HKWorkoutActivityType;
|
|
288
|
+
}({});
|
|
289
|
+
exports.HKWorkoutActivityType = HKWorkoutActivityType;
|
|
305
290
|
// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition
|
|
306
|
-
let HKWeatherCondition
|
|
307
|
-
exports.HKWeatherCondition = HKWeatherCondition;
|
|
308
|
-
|
|
309
|
-
(function (HKWeatherCondition) {
|
|
291
|
+
let HKWeatherCondition = /*#__PURE__*/function (HKWeatherCondition) {
|
|
310
292
|
HKWeatherCondition[HKWeatherCondition["none"] = 0] = "none";
|
|
311
293
|
HKWeatherCondition[HKWeatherCondition["clear"] = 1] = "clear";
|
|
312
294
|
HKWeatherCondition[HKWeatherCondition["fair"] = 2] = "fair";
|
|
@@ -335,37 +317,29 @@ exports.HKWeatherCondition = HKWeatherCondition;
|
|
|
335
317
|
HKWeatherCondition[HKWeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
|
|
336
318
|
HKWeatherCondition[HKWeatherCondition["hurricane"] = 26] = "hurricane";
|
|
337
319
|
HKWeatherCondition[HKWeatherCondition["tornado"] = 27] = "tornado";
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
(function (HKIndoorWorkout) {
|
|
320
|
+
return HKWeatherCondition;
|
|
321
|
+
}({});
|
|
322
|
+
exports.HKWeatherCondition = HKWeatherCondition;
|
|
323
|
+
var HKIndoorWorkout = /*#__PURE__*/function (HKIndoorWorkout) {
|
|
343
324
|
HKIndoorWorkout[HKIndoorWorkout["false"] = 0] = "false";
|
|
344
325
|
HKIndoorWorkout[HKIndoorWorkout["true"] = 1] = "true";
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
let HKAuthorizationRequestStatus
|
|
348
|
-
exports.HKAuthorizationRequestStatus = HKAuthorizationRequestStatus;
|
|
349
|
-
|
|
350
|
-
(function (HKAuthorizationRequestStatus) {
|
|
326
|
+
return HKIndoorWorkout;
|
|
327
|
+
}(HKIndoorWorkout || {});
|
|
328
|
+
let HKAuthorizationRequestStatus = /*#__PURE__*/function (HKAuthorizationRequestStatus) {
|
|
351
329
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unknown"] = 0] = "unknown";
|
|
352
330
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["shouldRequest"] = 1] = "shouldRequest";
|
|
353
331
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unnecessary"] = 2] = "unnecessary";
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
(function (HKAuthorizationStatus) {
|
|
332
|
+
return HKAuthorizationRequestStatus;
|
|
333
|
+
}({});
|
|
334
|
+
exports.HKAuthorizationRequestStatus = HKAuthorizationRequestStatus;
|
|
335
|
+
let HKAuthorizationStatus = /*#__PURE__*/function (HKAuthorizationStatus) {
|
|
360
336
|
HKAuthorizationStatus[HKAuthorizationStatus["notDetermined"] = 0] = "notDetermined";
|
|
361
337
|
HKAuthorizationStatus[HKAuthorizationStatus["sharingDenied"] = 1] = "sharingDenied";
|
|
362
338
|
HKAuthorizationStatus[HKAuthorizationStatus["sharingAuthorized"] = 2] = "sharingAuthorized";
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
(function (HKBloodType) {
|
|
339
|
+
return HKAuthorizationStatus;
|
|
340
|
+
}({});
|
|
341
|
+
exports.HKAuthorizationStatus = HKAuthorizationStatus;
|
|
342
|
+
let HKBloodType = /*#__PURE__*/function (HKBloodType) {
|
|
369
343
|
HKBloodType[HKBloodType["notSet"] = 0] = "notSet";
|
|
370
344
|
HKBloodType[HKBloodType["aPositive"] = 1] = "aPositive";
|
|
371
345
|
HKBloodType[HKBloodType["aNegative"] = 2] = "aNegative";
|
|
@@ -375,22 +349,18 @@ exports.HKBloodType = HKBloodType;
|
|
|
375
349
|
HKBloodType[HKBloodType["abNegative"] = 6] = "abNegative";
|
|
376
350
|
HKBloodType[HKBloodType["oPositive"] = 7] = "oPositive";
|
|
377
351
|
HKBloodType[HKBloodType["oNegative"] = 8] = "oNegative";
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
(function (HKBiologicalSex) {
|
|
352
|
+
return HKBloodType;
|
|
353
|
+
}({});
|
|
354
|
+
exports.HKBloodType = HKBloodType;
|
|
355
|
+
let HKBiologicalSex = /*#__PURE__*/function (HKBiologicalSex) {
|
|
384
356
|
HKBiologicalSex[HKBiologicalSex["notSet"] = 0] = "notSet";
|
|
385
357
|
HKBiologicalSex[HKBiologicalSex["female"] = 1] = "female";
|
|
386
358
|
HKBiologicalSex[HKBiologicalSex["male"] = 2] = "male";
|
|
387
359
|
HKBiologicalSex[HKBiologicalSex["other"] = 3] = "other";
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
(function (HKFitzpatrickSkinType) {
|
|
360
|
+
return HKBiologicalSex;
|
|
361
|
+
}({});
|
|
362
|
+
exports.HKBiologicalSex = HKBiologicalSex;
|
|
363
|
+
let HKFitzpatrickSkinType = /*#__PURE__*/function (HKFitzpatrickSkinType) {
|
|
394
364
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["notSet"] = 0] = "notSet";
|
|
395
365
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["I"] = 1] = "I";
|
|
396
366
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["II"] = 2] = "II";
|
|
@@ -398,12 +368,10 @@ exports.HKFitzpatrickSkinType = HKFitzpatrickSkinType;
|
|
|
398
368
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["IV"] = 4] = "IV";
|
|
399
369
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["V"] = 5] = "V";
|
|
400
370
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["VI"] = 6] = "VI";
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(function (HKStatisticsOptions) {
|
|
371
|
+
return HKFitzpatrickSkinType;
|
|
372
|
+
}({});
|
|
373
|
+
exports.HKFitzpatrickSkinType = HKFitzpatrickSkinType;
|
|
374
|
+
let HKStatisticsOptions = /*#__PURE__*/function (HKStatisticsOptions) {
|
|
407
375
|
HKStatisticsOptions["cumulativeSum"] = "cumulativeSum";
|
|
408
376
|
HKStatisticsOptions["discreteAverage"] = "discreteAverage";
|
|
409
377
|
HKStatisticsOptions["discreteMax"] = "discreteMax";
|
|
@@ -412,97 +380,85 @@ exports.HKStatisticsOptions = HKStatisticsOptions;
|
|
|
412
380
|
HKStatisticsOptions["duration"] = "duration";
|
|
413
381
|
HKStatisticsOptions["mostRecent"] = "mostRecent";
|
|
414
382
|
HKStatisticsOptions["separateBySource"] = "separateBySource";
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
(function (HKCategoryValueCervicalMucusQuality) {
|
|
383
|
+
return HKStatisticsOptions;
|
|
384
|
+
}({});
|
|
385
|
+
exports.HKStatisticsOptions = HKStatisticsOptions;
|
|
386
|
+
let HKCategoryValueCervicalMucusQuality = /*#__PURE__*/function (HKCategoryValueCervicalMucusQuality) {
|
|
421
387
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["dry"] = 1] = "dry";
|
|
422
388
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["sticky"] = 2] = "sticky";
|
|
423
389
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["creamy"] = 3] = "creamy";
|
|
424
390
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["watery"] = 4] = "watery";
|
|
425
391
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["eggWhite"] = 5] = "eggWhite";
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
(function (HKCategoryValueMenstrualFlow) {
|
|
392
|
+
return HKCategoryValueCervicalMucusQuality;
|
|
393
|
+
}({});
|
|
394
|
+
exports.HKCategoryValueCervicalMucusQuality = HKCategoryValueCervicalMucusQuality;
|
|
395
|
+
let HKCategoryValueMenstrualFlow = /*#__PURE__*/function (HKCategoryValueMenstrualFlow) {
|
|
432
396
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
|
|
433
397
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["none"] = 5] = "none";
|
|
434
398
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["light"] = 2] = "light";
|
|
435
399
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["medium"] = 3] = "medium";
|
|
436
400
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["heavy"] = 4] = "heavy";
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
(function (HKCategoryValueOvulationTestResult) {
|
|
401
|
+
return HKCategoryValueMenstrualFlow;
|
|
402
|
+
}({});
|
|
403
|
+
exports.HKCategoryValueMenstrualFlow = HKCategoryValueMenstrualFlow;
|
|
404
|
+
let HKCategoryValueOvulationTestResult = /*#__PURE__*/function (HKCategoryValueOvulationTestResult) {
|
|
443
405
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["negative"] = 1] = "negative";
|
|
444
406
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
|
|
445
407
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
|
|
446
408
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["estrogenSurge"] = 4] = "estrogenSurge";
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
(function (HKCategoryValueSleepAnalysis) {
|
|
409
|
+
return HKCategoryValueOvulationTestResult;
|
|
410
|
+
}({});
|
|
411
|
+
exports.HKCategoryValueOvulationTestResult = HKCategoryValueOvulationTestResult;
|
|
412
|
+
let HKCategoryValueSleepAnalysis = /*#__PURE__*/function (HKCategoryValueSleepAnalysis) {
|
|
453
413
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
|
|
454
414
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleepUnspecified"] = 1] = "asleepUnspecified";
|
|
455
415
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["awake"] = 2] = "awake";
|
|
456
416
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleepCore"] = 3] = "asleepCore";
|
|
457
417
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleepDeep"] = 4] = "asleepDeep";
|
|
458
418
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleepREM"] = 5] = "asleepREM";
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
(function (HKCategoryValueAppetiteChanges) {
|
|
419
|
+
return HKCategoryValueSleepAnalysis;
|
|
420
|
+
}({});
|
|
421
|
+
exports.HKCategoryValueSleepAnalysis = HKCategoryValueSleepAnalysis;
|
|
422
|
+
let HKCategoryValueAppetiteChanges = /*#__PURE__*/function (HKCategoryValueAppetiteChanges) {
|
|
465
423
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
|
|
466
424
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["increased"] = 3] = "increased";
|
|
467
425
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
|
|
468
426
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["unspecified"] = 0] = "unspecified";
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
(function (HKCategoryValuePresence) {
|
|
427
|
+
return HKCategoryValueAppetiteChanges;
|
|
428
|
+
}({});
|
|
429
|
+
exports.HKCategoryValueAppetiteChanges = HKCategoryValueAppetiteChanges;
|
|
430
|
+
let HKCategoryValuePresence = /*#__PURE__*/function (HKCategoryValuePresence) {
|
|
475
431
|
HKCategoryValuePresence[HKCategoryValuePresence["notPresent"] = 1] = "notPresent";
|
|
476
432
|
HKCategoryValuePresence[HKCategoryValuePresence["present"] = 0] = "present";
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
(function (HKCategoryValueSeverity) {
|
|
433
|
+
return HKCategoryValuePresence;
|
|
434
|
+
}({});
|
|
435
|
+
exports.HKCategoryValuePresence = HKCategoryValuePresence;
|
|
436
|
+
let HKCategoryValueSeverity = /*#__PURE__*/function (HKCategoryValueSeverity) {
|
|
483
437
|
HKCategoryValueSeverity[HKCategoryValueSeverity["notPresent"] = 1] = "notPresent";
|
|
484
438
|
HKCategoryValueSeverity[HKCategoryValueSeverity["mild"] = 2] = "mild";
|
|
485
439
|
HKCategoryValueSeverity[HKCategoryValueSeverity["moderate"] = 3] = "moderate";
|
|
486
440
|
HKCategoryValueSeverity[HKCategoryValueSeverity["severe"] = 4] = "severe";
|
|
487
441
|
HKCategoryValueSeverity[HKCategoryValueSeverity["unspecified"] = 0] = "unspecified";
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
(function (HKCategoryValueNotApplicable) {
|
|
442
|
+
return HKCategoryValueSeverity;
|
|
443
|
+
}({});
|
|
444
|
+
exports.HKCategoryValueSeverity = HKCategoryValueSeverity;
|
|
445
|
+
let HKCategoryValueNotApplicable = /*#__PURE__*/function (HKCategoryValueNotApplicable) {
|
|
494
446
|
HKCategoryValueNotApplicable[HKCategoryValueNotApplicable["notApplicable"] = 0] = "notApplicable";
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
(function (HKInsulinDeliveryReason) {
|
|
447
|
+
return HKCategoryValueNotApplicable;
|
|
448
|
+
}({});
|
|
449
|
+
exports.HKCategoryValueNotApplicable = HKCategoryValueNotApplicable;
|
|
450
|
+
let HKInsulinDeliveryReason = /*#__PURE__*/function (HKInsulinDeliveryReason) {
|
|
501
451
|
HKInsulinDeliveryReason[HKInsulinDeliveryReason["basal"] = 1] = "basal";
|
|
502
452
|
HKInsulinDeliveryReason[HKInsulinDeliveryReason["bolus"] = 2] = "bolus";
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
453
|
+
return HKInsulinDeliveryReason;
|
|
454
|
+
}({});
|
|
455
|
+
exports.HKInsulinDeliveryReason = HKInsulinDeliveryReason;
|
|
456
|
+
var HKCategoryValuePregnancyTestResult = /*#__PURE__*/function (HKCategoryValuePregnancyTestResult) {
|
|
457
|
+
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["positive"] = 2] = "positive";
|
|
458
|
+
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["negative"] = 1] = "negative";
|
|
459
|
+
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["indeterminate"] = 3] = "indeterminate";
|
|
460
|
+
return HKCategoryValuePregnancyTestResult;
|
|
461
|
+
}(HKCategoryValuePregnancyTestResult || {});
|
|
506
462
|
/* needs further mapping
|
|
507
463
|
|
|
508
464
|
contraceptive = 'HKCategoryTypeIdentifierContraceptive',
|
|
@@ -514,28 +470,15 @@ contraceptive = 'HKCategoryTypeIdentifierContraceptive',
|
|
|
514
470
|
headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',
|
|
515
471
|
appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',
|
|
516
472
|
handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */
|
|
517
|
-
|
|
518
|
-
(function (HKCategoryValuePregnancyTestResult) {
|
|
519
|
-
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["positive"] = 2] = "positive";
|
|
520
|
-
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["negative"] = 1] = "negative";
|
|
521
|
-
HKCategoryValuePregnancyTestResult[HKCategoryValuePregnancyTestResult["indeterminate"] = 3] = "indeterminate";
|
|
522
|
-
})(HKCategoryValuePregnancyTestResult || (HKCategoryValuePregnancyTestResult = {}));
|
|
523
|
-
|
|
524
473
|
// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse
|
|
525
|
-
let HKWheelchairUse
|
|
526
|
-
|
|
527
|
-
exports.HKWheelchairUse = HKWheelchairUse;
|
|
528
|
-
|
|
529
|
-
(function (HKWheelchairUse) {
|
|
474
|
+
let HKWheelchairUse = /*#__PURE__*/function (HKWheelchairUse) {
|
|
530
475
|
HKWheelchairUse[HKWheelchairUse["notSet"] = 0] = "notSet";
|
|
531
476
|
HKWheelchairUse[HKWheelchairUse["no"] = 1] = "no";
|
|
532
477
|
HKWheelchairUse[HKWheelchairUse["yes"] = 2] = "yes";
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
(function (HKMetricPrefix) {
|
|
478
|
+
return HKWheelchairUse;
|
|
479
|
+
}({}); // Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init
|
|
480
|
+
exports.HKWheelchairUse = HKWheelchairUse;
|
|
481
|
+
let HKMetricPrefix = /*#__PURE__*/function (HKMetricPrefix) {
|
|
539
482
|
HKMetricPrefix["None"] = "";
|
|
540
483
|
HKMetricPrefix["Pico"] = "p";
|
|
541
484
|
HKMetricPrefix["Nano"] = "n";
|
|
@@ -550,12 +493,10 @@ exports.HKMetricPrefix = HKMetricPrefix;
|
|
|
550
493
|
HKMetricPrefix["Giga"] = "G";
|
|
551
494
|
HKMetricPrefix["Tera"] = "T";
|
|
552
495
|
HKMetricPrefix["Femto"] = "f";
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
(function (HKUnitMetric) {
|
|
496
|
+
return HKMetricPrefix;
|
|
497
|
+
}({});
|
|
498
|
+
exports.HKMetricPrefix = HKMetricPrefix;
|
|
499
|
+
let HKUnitMetric = /*#__PURE__*/function (HKUnitMetric) {
|
|
559
500
|
HKUnitMetric["Gram"] = "g";
|
|
560
501
|
HKUnitMetric["Joule"] = "J";
|
|
561
502
|
HKUnitMetric["Kelvin"] = "K";
|
|
@@ -566,42 +507,36 @@ exports.HKUnitMetric = HKUnitMetric;
|
|
|
566
507
|
HKUnitMetric["Siemen"] = "S";
|
|
567
508
|
HKUnitMetric["Hertz"] = "Hz";
|
|
568
509
|
HKUnitMetric["Volt"] = "V";
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
(function (HKUnits) {
|
|
510
|
+
return HKUnitMetric;
|
|
511
|
+
}({});
|
|
512
|
+
exports.HKUnitMetric = HKUnitMetric;
|
|
513
|
+
let HKUnits = /*#__PURE__*/function (HKUnits) {
|
|
575
514
|
HKUnits["DecibelHearingLevel"] = "dBHL";
|
|
576
515
|
HKUnits["DecibelSoundPressureLevel"] = "dBASPL";
|
|
577
516
|
HKUnits["Percent"] = "%";
|
|
578
517
|
HKUnits["Count"] = "count";
|
|
579
518
|
HKUnits["InternationalUnit"] = "IU";
|
|
580
|
-
|
|
581
|
-
|
|
519
|
+
return HKUnits;
|
|
520
|
+
}({}); // not 100% sure about these
|
|
521
|
+
exports.HKUnits = HKUnits;
|
|
582
522
|
/**
|
|
583
523
|
* More SI prefixes also available as literals, just type the string
|
|
584
524
|
* @example 'cm', 'km'
|
|
585
525
|
*/
|
|
586
|
-
let UnitOfLength
|
|
587
|
-
exports.UnitOfLength = UnitOfLength;
|
|
588
|
-
|
|
589
|
-
(function (UnitOfLength) {
|
|
526
|
+
let UnitOfLength = /*#__PURE__*/function (UnitOfLength) {
|
|
590
527
|
UnitOfLength["Feet"] = "ft";
|
|
591
528
|
UnitOfLength["Meter"] = "m";
|
|
592
529
|
UnitOfLength["Inches"] = "in";
|
|
593
530
|
UnitOfLength["Yards"] = "yd";
|
|
594
531
|
UnitOfLength["Miles"] = "mi";
|
|
595
|
-
|
|
596
|
-
|
|
532
|
+
return UnitOfLength;
|
|
533
|
+
}({});
|
|
534
|
+
exports.UnitOfLength = UnitOfLength;
|
|
597
535
|
/**
|
|
598
536
|
* More SI prefixes also available as literals, just type the string
|
|
599
537
|
* @example 'ml', 'cl'
|
|
600
538
|
*/
|
|
601
|
-
let UnitOfVolume
|
|
602
|
-
exports.UnitOfVolume = UnitOfVolume;
|
|
603
|
-
|
|
604
|
-
(function (UnitOfVolume) {
|
|
539
|
+
let UnitOfVolume = /*#__PURE__*/function (UnitOfVolume) {
|
|
605
540
|
UnitOfVolume["ImperialCup"] = "cup_imp";
|
|
606
541
|
UnitOfVolume["ImperialFluidOunces"] = "fl_oz_imp";
|
|
607
542
|
UnitOfVolume["ImperialPint"] = "pt_imp";
|
|
@@ -609,122 +544,103 @@ exports.UnitOfVolume = UnitOfVolume;
|
|
|
609
544
|
UnitOfVolume["USFluidOunces"] = "fl_oz_us";
|
|
610
545
|
UnitOfVolume["USPint"] = "pt_us";
|
|
611
546
|
UnitOfVolume["Liter"] = "l";
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
* More SI prefixes also available as literals, just type the string
|
|
616
|
-
* @example 'mg', 'kg'
|
|
617
|
-
*/
|
|
618
|
-
let UnitOfMass;
|
|
547
|
+
return UnitOfVolume;
|
|
548
|
+
}({});
|
|
549
|
+
exports.UnitOfVolume = UnitOfVolume;
|
|
619
550
|
/**
|
|
620
551
|
* More SI prefixes also available as literals, just type the string
|
|
621
552
|
* @example 'mg', 'kg'
|
|
622
553
|
*/
|
|
623
|
-
|
|
624
|
-
exports.UnitOfMass = UnitOfMass;
|
|
625
|
-
|
|
626
|
-
(function (UnitOfMass) {
|
|
554
|
+
let UnitOfMass = /*#__PURE__*/function (UnitOfMass) {
|
|
627
555
|
UnitOfMass["Ounces"] = "oz";
|
|
628
556
|
UnitOfMass["Stones"] = "st";
|
|
629
557
|
UnitOfMass["Pounds"] = "lb";
|
|
630
558
|
UnitOfMass["Gram"] = "g";
|
|
631
|
-
|
|
632
|
-
|
|
559
|
+
return UnitOfMass;
|
|
560
|
+
}({});
|
|
633
561
|
/**
|
|
634
562
|
* More SI prefixes also available as literals, just type the string
|
|
635
|
-
* @example '
|
|
563
|
+
* @example 'mg', 'kg'
|
|
636
564
|
*/
|
|
637
|
-
|
|
565
|
+
exports.UnitOfMass = UnitOfMass;
|
|
638
566
|
/**
|
|
639
567
|
* More SI prefixes also available as literals, just type the string
|
|
640
568
|
* @example 'kPa', 'hPa'
|
|
641
569
|
*/
|
|
642
|
-
|
|
643
|
-
exports.UnitOfPressure = UnitOfPressure;
|
|
644
|
-
|
|
645
|
-
(function (UnitOfPressure) {
|
|
570
|
+
let UnitOfPressure = /*#__PURE__*/function (UnitOfPressure) {
|
|
646
571
|
UnitOfPressure["Atmospheres"] = "atm";
|
|
647
572
|
UnitOfPressure["CentimetersOfWater"] = "cmAq";
|
|
648
573
|
UnitOfPressure["MillimetersOfMercury"] = "mmHg";
|
|
649
574
|
UnitOfPressure["InchesOfMercury"] = "inHg";
|
|
650
575
|
UnitOfPressure["DecibelAWeightedSoundPressureLevel"] = "dBASPL";
|
|
651
576
|
UnitOfPressure["Pascals"] = "Pa";
|
|
652
|
-
|
|
653
|
-
|
|
577
|
+
return UnitOfPressure;
|
|
578
|
+
}({});
|
|
654
579
|
/**
|
|
655
580
|
* More SI prefixes also available as literals, just type the string
|
|
656
|
-
* @example '
|
|
581
|
+
* @example 'kPa', 'hPa'
|
|
657
582
|
*/
|
|
658
|
-
|
|
583
|
+
exports.UnitOfPressure = UnitOfPressure;
|
|
659
584
|
/**
|
|
660
585
|
* More SI prefixes also available as literals, just type the string
|
|
661
586
|
* @example 'ms'
|
|
662
587
|
*/
|
|
663
|
-
|
|
664
|
-
exports.UnitOfTime = UnitOfTime;
|
|
665
|
-
|
|
666
|
-
(function (UnitOfTime) {
|
|
588
|
+
let UnitOfTime = /*#__PURE__*/function (UnitOfTime) {
|
|
667
589
|
UnitOfTime["Days"] = "d";
|
|
668
590
|
UnitOfTime["Minutes"] = "min";
|
|
669
591
|
UnitOfTime["Hours"] = "hr";
|
|
670
592
|
UnitOfTime["Seconds"] = "s";
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
let TemperatureUnit;
|
|
593
|
+
return UnitOfTime;
|
|
594
|
+
}({});
|
|
674
595
|
/**
|
|
675
596
|
* More SI prefixes also available as literals, just type the string
|
|
676
|
-
* @example '
|
|
597
|
+
* @example 'ms'
|
|
677
598
|
*/
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
(function (TemperatureUnit) {
|
|
599
|
+
exports.UnitOfTime = UnitOfTime;
|
|
600
|
+
let TemperatureUnit = /*#__PURE__*/function (TemperatureUnit) {
|
|
682
601
|
TemperatureUnit["DegreesCelsius"] = "degC";
|
|
683
602
|
TemperatureUnit["DegreesFahrenheit"] = "degF";
|
|
684
603
|
TemperatureUnit["Kelvin"] = "K";
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
604
|
+
return TemperatureUnit;
|
|
605
|
+
}({});
|
|
606
|
+
/**
|
|
607
|
+
* More SI prefixes also available as literals, just type the string
|
|
608
|
+
* @example 'kJ'
|
|
609
|
+
*/
|
|
610
|
+
exports.TemperatureUnit = TemperatureUnit;
|
|
611
|
+
let UnitOfEnergy = /*#__PURE__*/function (UnitOfEnergy) {
|
|
691
612
|
UnitOfEnergy["Kilocalories"] = "kcal";
|
|
692
613
|
UnitOfEnergy["LargeCalories"] = "Cal";
|
|
693
614
|
UnitOfEnergy["SmallCalories"] = "cal";
|
|
694
615
|
UnitOfEnergy["Joules"] = "J";
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
(function (BloodGlucoseUnit) {
|
|
616
|
+
return UnitOfEnergy;
|
|
617
|
+
}({});
|
|
618
|
+
exports.UnitOfEnergy = UnitOfEnergy;
|
|
619
|
+
let BloodGlucoseUnit = /*#__PURE__*/function (BloodGlucoseUnit) {
|
|
701
620
|
BloodGlucoseUnit["GlucoseMmolPerL"] = "mmol<180.15588000005408>/l";
|
|
702
621
|
BloodGlucoseUnit["GlucoseMgPerDl"] = "mg/dL";
|
|
703
|
-
|
|
704
|
-
|
|
622
|
+
return BloodGlucoseUnit;
|
|
623
|
+
}({});
|
|
624
|
+
exports.BloodGlucoseUnit = BloodGlucoseUnit;
|
|
705
625
|
// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier
|
|
706
|
-
let HKCharacteristicTypeIdentifier
|
|
707
|
-
exports.HKCharacteristicTypeIdentifier = HKCharacteristicTypeIdentifier;
|
|
708
|
-
|
|
709
|
-
(function (HKCharacteristicTypeIdentifier) {
|
|
626
|
+
let HKCharacteristicTypeIdentifier = /*#__PURE__*/function (HKCharacteristicTypeIdentifier) {
|
|
710
627
|
HKCharacteristicTypeIdentifier["fitzpatrickSkinType"] = "HKCharacteristicTypeIdentifierFitzpatrickSkinType";
|
|
711
628
|
HKCharacteristicTypeIdentifier["biologicalSex"] = "HKCharacteristicTypeIdentifierBiologicalSex";
|
|
712
629
|
HKCharacteristicTypeIdentifier["bloodType"] = "HKCharacteristicTypeIdentifierBloodType";
|
|
713
630
|
HKCharacteristicTypeIdentifier["dateOfBirth"] = "HKCharacteristicTypeIdentifierDateOfBirth";
|
|
714
631
|
HKCharacteristicTypeIdentifier["wheelchairUse"] = "HKCharacteristicTypeIdentifierWheelchairUse";
|
|
715
632
|
HKCharacteristicTypeIdentifier["activityMoveMode"] = "HKCharacteristicTypeIdentifierActivityMoveMode";
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
(function (HKUpdateFrequency) {
|
|
633
|
+
return HKCharacteristicTypeIdentifier;
|
|
634
|
+
}({}); // HKActivityMoveModeObject
|
|
635
|
+
exports.HKCharacteristicTypeIdentifier = HKCharacteristicTypeIdentifier;
|
|
636
|
+
let HKUpdateFrequency = /*#__PURE__*/function (HKUpdateFrequency) {
|
|
722
637
|
HKUpdateFrequency[HKUpdateFrequency["immediate"] = 1] = "immediate";
|
|
723
638
|
HKUpdateFrequency[HKUpdateFrequency["hourly"] = 2] = "hourly";
|
|
724
639
|
HKUpdateFrequency[HKUpdateFrequency["daily"] = 3] = "daily";
|
|
725
640
|
HKUpdateFrequency[HKUpdateFrequency["weekly"] = 4] = "weekly";
|
|
726
|
-
|
|
727
|
-
|
|
641
|
+
return HKUpdateFrequency;
|
|
642
|
+
}({});
|
|
643
|
+
exports.HKUpdateFrequency = HKUpdateFrequency;
|
|
728
644
|
const Native = _reactNative.NativeModules.ReactNativeHealthkit;
|
|
729
645
|
const EventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.ReactNativeHealthkit);
|
|
730
646
|
exports.EventEmitter = EventEmitter;
|