@kingstinct/react-native-healthkit 7.3.2 → 8.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 +1 -1
- package/ios/Constants.swift +1 -1
- package/ios/ReactNativeHealthkit.m +1 -1
- package/ios/ReactNativeHealthkit.swift +2 -2
- package/ios/Serializers.swift +12 -0
- package/lib/commonjs/hooks/useHealthkitAuthorization.js +2 -3
- package/lib/commonjs/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js +42 -19
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js.map +1 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +2 -3
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js +17 -8
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentCategorySample.js +2 -3
- package/lib/commonjs/hooks/useMostRecentCategorySample.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js +4 -3
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js.map +1 -1
- package/lib/commonjs/hooks/useMostRecentWorkout.js +2 -3
- package/lib/commonjs/hooks/useMostRecentWorkout.js.map +1 -1
- package/lib/commonjs/hooks/useSources.js +2 -3
- package/lib/commonjs/hooks/useSources.js.map +1 -1
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +2 -3
- package/lib/commonjs/hooks/useStatisticsForQuantity.js.map +1 -1
- package/lib/commonjs/hooks/useSubscribeToChanges.js +2 -3
- package/lib/commonjs/hooks/useSubscribeToChanges.js.map +1 -1
- package/lib/commonjs/index.ios.js +18 -43
- package/lib/commonjs/index.ios.js.map +1 -1
- package/lib/commonjs/index.js +3 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.native.js +46 -95
- package/lib/commonjs/index.native.js.map +1 -1
- package/lib/commonjs/index.web.js +3 -4
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/native-types.js +65 -90
- package/lib/commonjs/native-types.js.map +1 -1
- package/lib/commonjs/test-setup.js +51 -0
- package/lib/commonjs/test-setup.js.map +1 -0
- package/lib/commonjs/test-utils.js +1 -2
- package/lib/commonjs/test-utils.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/deleteQuantitySample.js +2 -3
- package/lib/commonjs/utils/deleteQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/deleteSamples.js +2 -3
- package/lib/commonjs/utils/deleteSamples.js.map +1 -1
- package/lib/commonjs/utils/deserializeCategorySample.js +1 -2
- package/lib/commonjs/utils/deserializeCategorySample.js.map +1 -1
- package/lib/commonjs/utils/deserializeCategorySample.test.js +8 -4
- package/lib/commonjs/utils/deserializeCategorySample.test.js.map +1 -1
- package/lib/commonjs/utils/deserializeCorrelation.js +2 -3
- package/lib/commonjs/utils/deserializeCorrelation.js.map +1 -1
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js +1 -2
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js.map +1 -1
- package/lib/commonjs/utils/deserializeSample.js +1 -2
- package/lib/commonjs/utils/deserializeSample.js.map +1 -1
- package/lib/commonjs/utils/deserializeWorkout.js +1 -2
- package/lib/commonjs/utils/deserializeWorkout.js.map +1 -1
- package/lib/commonjs/utils/ensureMetadata.js +1 -2
- package/lib/commonjs/utils/ensureMetadata.js.map +1 -1
- package/lib/commonjs/utils/ensureTotals.js +1 -2
- package/lib/commonjs/utils/ensureTotals.js.map +1 -1
- package/lib/commonjs/utils/ensureUnit.js +2 -3
- package/lib/commonjs/utils/ensureUnit.js.map +1 -1
- package/lib/commonjs/utils/getDateOfBirth.js +2 -3
- package/lib/commonjs/utils/getDateOfBirth.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentCategorySample.js +2 -3
- package/lib/commonjs/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +2 -3
- package/lib/commonjs/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/getMostRecentWorkout.js +2 -3
- package/lib/commonjs/utils/getMostRecentWorkout.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnit.js +2 -3
- package/lib/commonjs/utils/getPreferredUnit.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnits.js +2 -3
- package/lib/commonjs/utils/getPreferredUnits.js.map +1 -1
- package/lib/commonjs/utils/getPreferredUnitsTyped.js +3 -4
- package/lib/commonjs/utils/getPreferredUnitsTyped.js.map +1 -1
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js +3 -5
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js.map +1 -1
- package/lib/commonjs/utils/getWorkoutPlanById.js +2 -3
- package/lib/commonjs/utils/getWorkoutPlanById.js.map +1 -1
- package/lib/commonjs/utils/prepareOptions.js +3 -3
- package/lib/commonjs/utils/prepareOptions.js.map +1 -1
- package/lib/commonjs/utils/queryCategorySamples.js +2 -3
- package/lib/commonjs/utils/queryCategorySamples.js.map +1 -1
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js +2 -3
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js.map +1 -1
- package/lib/commonjs/utils/queryCorrelationSamples.js +2 -3
- package/lib/commonjs/utils/queryCorrelationSamples.js.map +1 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js +2 -3
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js.map +1 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js +2 -3
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +1 -1
- package/lib/commonjs/utils/queryQuantitySamples.js +2 -3
- package/lib/commonjs/utils/queryQuantitySamples.js.map +1 -1
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js +2 -3
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js.map +1 -1
- package/lib/commonjs/utils/querySources.js +2 -3
- package/lib/commonjs/utils/querySources.js.map +1 -1
- package/lib/commonjs/utils/queryStatisticsForQuantity.js +2 -3
- package/lib/commonjs/utils/queryStatisticsForQuantity.js.map +1 -1
- package/lib/commonjs/utils/queryWorkouts.js +2 -3
- package/lib/commonjs/utils/queryWorkouts.js.map +1 -1
- package/lib/commonjs/utils/requestAuthorization.js +3 -5
- package/lib/commonjs/utils/requestAuthorization.js.map +1 -1
- package/lib/commonjs/utils/saveCategorySample.js +2 -3
- package/lib/commonjs/utils/saveCategorySample.js.map +1 -1
- package/lib/commonjs/utils/saveCorrelationSample.js +2 -3
- package/lib/commonjs/utils/saveCorrelationSample.js.map +1 -1
- package/lib/commonjs/utils/saveQuantitySample.js +2 -3
- package/lib/commonjs/utils/saveQuantitySample.js.map +1 -1
- package/lib/commonjs/utils/saveWorkoutRoute.js +2 -3
- package/lib/commonjs/utils/saveWorkoutRoute.js.map +1 -1
- package/lib/commonjs/utils/saveWorkoutSample.js +2 -3
- package/lib/commonjs/utils/saveWorkoutSample.js.map +1 -1
- package/lib/commonjs/utils/serializeDate.js +1 -2
- package/lib/commonjs/utils/serializeDate.js.map +1 -1
- package/lib/commonjs/utils/serializeDate.test.js +1 -1
- package/lib/commonjs/utils/serializeDate.test.js.map +1 -1
- package/lib/commonjs/utils/subscribeToChanges.js +6 -8
- package/lib/commonjs/utils/subscribeToChanges.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.js.map +1 -1
- package/lib/module/hooks/useHealthkitAuthorization.test.js +26 -3
- package/lib/module/hooks/useHealthkitAuthorization.test.js.map +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.js.map +1 -1
- package/lib/module/hooks/useIsHealthDataAvailable.test.js +9 -2
- package/lib/module/hooks/useIsHealthDataAvailable.test.js.map +1 -1
- package/lib/module/hooks/useMostRecentCategorySample.js.map +1 -1
- package/lib/module/hooks/useMostRecentQuantitySample.js +2 -0
- package/lib/module/hooks/useMostRecentQuantitySample.js.map +1 -1
- package/lib/module/hooks/useMostRecentWorkout.js.map +1 -1
- package/lib/module/hooks/useSources.js.map +1 -1
- package/lib/module/hooks/useStatisticsForQuantity.js.map +1 -1
- package/lib/module/hooks/useSubscribeToChanges.js.map +1 -1
- package/lib/module/index.ios.js +4 -15
- package/lib/module/index.ios.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.native.js +1 -3
- package/lib/module/index.native.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/native-types.js +21 -2
- package/lib/module/native-types.js.map +1 -1
- package/lib/module/test-setup.js +48 -0
- package/lib/module/test-setup.js.map +1 -0
- package/lib/module/test-utils.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/deleteQuantitySample.js.map +1 -1
- package/lib/module/utils/deleteSamples.js.map +1 -1
- package/lib/module/utils/deserializeCategorySample.js.map +1 -1
- package/lib/module/utils/deserializeCategorySample.test.js +4 -2
- package/lib/module/utils/deserializeCategorySample.test.js.map +1 -1
- package/lib/module/utils/deserializeCorrelation.js.map +1 -1
- package/lib/module/utils/deserializeHeartbeatSeriesSample.js.map +1 -1
- package/lib/module/utils/deserializeSample.js.map +1 -1
- package/lib/module/utils/deserializeWorkout.js.map +1 -1
- package/lib/module/utils/ensureMetadata.js.map +1 -1
- package/lib/module/utils/ensureTotals.js.map +1 -1
- package/lib/module/utils/ensureUnit.js.map +1 -1
- package/lib/module/utils/getDateOfBirth.js.map +1 -1
- package/lib/module/utils/getMostRecentCategorySample.js.map +1 -1
- package/lib/module/utils/getMostRecentQuantitySample.js.map +1 -1
- package/lib/module/utils/getMostRecentWorkout.js.map +1 -1
- package/lib/module/utils/getPreferredUnit.js.map +1 -1
- package/lib/module/utils/getPreferredUnits.js.map +1 -1
- package/lib/module/utils/getPreferredUnitsTyped.js.map +1 -1
- package/lib/module/utils/getRequestStatusForAuthorization.js +1 -2
- package/lib/module/utils/getRequestStatusForAuthorization.js.map +1 -1
- package/lib/module/utils/getWorkoutPlanById.js.map +1 -1
- package/lib/module/utils/prepareOptions.js +1 -0
- package/lib/module/utils/prepareOptions.js.map +1 -1
- package/lib/module/utils/queryCategorySamples.js.map +1 -1
- package/lib/module/utils/queryCategorySamplesWithAnchor.js.map +1 -1
- package/lib/module/utils/queryCorrelationSamples.js.map +1 -1
- package/lib/module/utils/queryHeartbeatSeriesSamples.js.map +1 -1
- package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +1 -1
- package/lib/module/utils/queryQuantitySamples.js.map +1 -1
- package/lib/module/utils/queryQuantitySamplesWithAnchor.js.map +1 -1
- package/lib/module/utils/querySources.js.map +1 -1
- package/lib/module/utils/queryStatisticsForQuantity.js.map +1 -1
- package/lib/module/utils/queryWorkouts.js.map +1 -1
- package/lib/module/utils/requestAuthorization.js +1 -2
- package/lib/module/utils/requestAuthorization.js.map +1 -1
- package/lib/module/utils/saveCategorySample.js.map +1 -1
- package/lib/module/utils/saveCorrelationSample.js.map +1 -1
- package/lib/module/utils/saveQuantitySample.js.map +1 -1
- package/lib/module/utils/saveWorkoutRoute.js.map +1 -1
- package/lib/module/utils/saveWorkoutSample.js.map +1 -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 +3 -4
- package/lib/module/utils/subscribeToChanges.js.map +1 -1
- package/lib/typescript/src/index.ios.d.ts +2 -10
- package/lib/typescript/src/index.native.d.ts +2 -2
- package/lib/typescript/src/native-types.d.ts +86 -8
- package/package.json +16 -11
- package/src/hooks/useHealthkitAuthorization.test.ts +18 -4
- package/src/hooks/useIsHealthDataAvailable.test.ts +5 -2
- package/src/hooks/useIsHealthDataAvailable.ts +1 -1
- package/src/hooks/useMostRecentQuantitySample.ts +3 -0
- package/src/index.ios.tsx +2 -15
- package/src/index.native.tsx +0 -3
- package/src/native-types.ts +97 -9
- package/src/test-setup.ts +51 -0
- package/src/utils/deserializeCategorySample.test.ts +5 -2
- package/src/utils/prepareOptions.ts +1 -0
- package/lib/commonjs/jest.setup.js +0 -45
- package/lib/commonjs/jest.setup.js.map +0 -1
- package/lib/module/jest.setup.js +0 -43
- package/lib/module/jest.setup.js.map +0 -1
- package/src/jest.setup.ts +0 -46
- /package/lib/typescript/src/{jest.setup.d.ts → test-setup.d.ts} +0 -0
|
@@ -9,39 +9,35 @@ var _reactNative = require("react-native");
|
|
|
9
9
|
* Represents a workout type identifier.
|
|
10
10
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}
|
|
11
11
|
*/
|
|
12
|
-
const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier';
|
|
12
|
+
const HKWorkoutTypeIdentifier = exports.HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Represents a type that identifies activity summary objects.
|
|
16
16
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
|
|
17
17
|
*/
|
|
18
|
-
exports.
|
|
19
|
-
const HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier';
|
|
18
|
+
const HKActivitySummaryTypeIdentifier = exports.HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier';
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Represents an audiogram type identifier.
|
|
23
22
|
* @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
|
|
24
23
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
const HKAudiogramTypeIdentifier = 'HKAudiogramSampleType';
|
|
24
|
+
const HKAudiogramTypeIdentifier = exports.HKAudiogramTypeIdentifier = 'HKAudiogramSampleType';
|
|
27
25
|
|
|
28
26
|
/**
|
|
29
27
|
* Represents a workout route type identifier.
|
|
30
28
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}
|
|
31
29
|
*/
|
|
32
|
-
exports.
|
|
33
|
-
const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier';
|
|
30
|
+
const HKWorkoutRouteTypeIdentifier = exports.HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier';
|
|
34
31
|
|
|
35
32
|
/**
|
|
36
33
|
* Represents a series sample containing heartbeat data..
|
|
37
34
|
* @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}
|
|
38
35
|
*/
|
|
39
|
-
exports.HKWorkoutRouteTypeIdentifier = HKWorkoutRouteTypeIdentifier;
|
|
40
36
|
/**
|
|
41
37
|
* Represents a quantity type identifier.
|
|
42
38
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}
|
|
43
39
|
*/
|
|
44
|
-
let HKQuantityTypeIdentifier = /*#__PURE__*/function (HKQuantityTypeIdentifier) {
|
|
40
|
+
let HKQuantityTypeIdentifier = exports.HKQuantityTypeIdentifier = /*#__PURE__*/function (HKQuantityTypeIdentifier) {
|
|
45
41
|
HKQuantityTypeIdentifier["bodyMassIndex"] = "HKQuantityTypeIdentifierBodyMassIndex";
|
|
46
42
|
HKQuantityTypeIdentifier["bodyFatPercentage"] = "HKQuantityTypeIdentifierBodyFatPercentage";
|
|
47
43
|
HKQuantityTypeIdentifier["height"] = "HKQuantityTypeIdentifierHeight";
|
|
@@ -152,15 +148,22 @@ let HKQuantityTypeIdentifier = /*#__PURE__*/function (HKQuantityTypeIdentifier)
|
|
|
152
148
|
HKQuantityTypeIdentifier["runningPower"] = "HKQuantityTypeIdentifierRunningPower";
|
|
153
149
|
HKQuantityTypeIdentifier["runningVerticalOscillation"] = "HKQuantityTypeIdentifierRunningVerticalOscillation";
|
|
154
150
|
HKQuantityTypeIdentifier["runningSpeed"] = "HKQuantityTypeIdentifierRunningSpeed";
|
|
151
|
+
HKQuantityTypeIdentifier["crossCountrySkiingSpeed"] = "HKQuantityTypeIdentifierCrossCountrySkiingSpeed";
|
|
152
|
+
HKQuantityTypeIdentifier["distanceCrossCountrySkiing"] = "HKQuantityTypeIdentifierDistanceCrossCountrySkiing";
|
|
153
|
+
HKQuantityTypeIdentifier["distancePaddleSports"] = "HKQuantityTypeIdentifierDistancePaddleSports";
|
|
154
|
+
HKQuantityTypeIdentifier["distanceRowing"] = "HKQuantityTypeIdentifierDistanceRowing";
|
|
155
|
+
HKQuantityTypeIdentifier["distanceSkatingSports"] = "HKQuantityTypeIdentifierDistanceSkatingSports";
|
|
156
|
+
HKQuantityTypeIdentifier["estimatedWorkoutEffortScore"] = "HKQuantityTypeIdentifierEstimatedWorkoutEffortScore";
|
|
157
|
+
HKQuantityTypeIdentifier["paddleSportsSpeed"] = "HKQuantityTypeIdentifierPaddleSportsSpeed";
|
|
158
|
+
HKQuantityTypeIdentifier["rowingSpeed"] = "HKQuantityTypeIdentifierRowingSpeed";
|
|
159
|
+
HKQuantityTypeIdentifier["workoutEffortScore"] = "HKQuantityTypeIdentifierWorkoutEffortScore";
|
|
155
160
|
return HKQuantityTypeIdentifier;
|
|
156
161
|
}({});
|
|
157
|
-
exports.
|
|
158
|
-
let HKCategoryValueLowCardioFitnessEvent = /*#__PURE__*/function (HKCategoryValueLowCardioFitnessEvent) {
|
|
162
|
+
let HKCategoryValueLowCardioFitnessEvent = exports.HKCategoryValueLowCardioFitnessEvent = /*#__PURE__*/function (HKCategoryValueLowCardioFitnessEvent) {
|
|
159
163
|
HKCategoryValueLowCardioFitnessEvent[HKCategoryValueLowCardioFitnessEvent["lowFitness"] = 1] = "lowFitness";
|
|
160
164
|
return HKCategoryValueLowCardioFitnessEvent;
|
|
161
165
|
}({});
|
|
162
|
-
exports.
|
|
163
|
-
let HKHeartRateMotionContext = /*#__PURE__*/function (HKHeartRateMotionContext) {
|
|
166
|
+
let HKHeartRateMotionContext = exports.HKHeartRateMotionContext = /*#__PURE__*/function (HKHeartRateMotionContext) {
|
|
164
167
|
HKHeartRateMotionContext[HKHeartRateMotionContext["active"] = 2] = "active";
|
|
165
168
|
HKHeartRateMotionContext[HKHeartRateMotionContext["notSet"] = 0] = "notSet";
|
|
166
169
|
HKHeartRateMotionContext[HKHeartRateMotionContext["sedentary"] = 1] = "sedentary";
|
|
@@ -169,8 +172,7 @@ let HKHeartRateMotionContext = /*#__PURE__*/function (HKHeartRateMotionContext)
|
|
|
169
172
|
/**
|
|
170
173
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }
|
|
171
174
|
*/
|
|
172
|
-
exports.
|
|
173
|
-
let HKCorrelationTypeIdentifier = /*#__PURE__*/function (HKCorrelationTypeIdentifier) {
|
|
175
|
+
let HKCorrelationTypeIdentifier = exports.HKCorrelationTypeIdentifier = /*#__PURE__*/function (HKCorrelationTypeIdentifier) {
|
|
174
176
|
HKCorrelationTypeIdentifier["bloodPressure"] = "HKCorrelationTypeIdentifierBloodPressure";
|
|
175
177
|
HKCorrelationTypeIdentifier["food"] = "HKCorrelationTypeIdentifierFood";
|
|
176
178
|
return HKCorrelationTypeIdentifier;
|
|
@@ -178,8 +180,7 @@ let HKCorrelationTypeIdentifier = /*#__PURE__*/function (HKCorrelationTypeIdenti
|
|
|
178
180
|
/**
|
|
179
181
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }
|
|
180
182
|
*/
|
|
181
|
-
exports.
|
|
182
|
-
let HKCategoryTypeIdentifier = /*#__PURE__*/function (HKCategoryTypeIdentifier) {
|
|
183
|
+
let HKCategoryTypeIdentifier = exports.HKCategoryTypeIdentifier = /*#__PURE__*/function (HKCategoryTypeIdentifier) {
|
|
183
184
|
HKCategoryTypeIdentifier["sleepAnalysis"] = "HKCategoryTypeIdentifierSleepAnalysis";
|
|
184
185
|
HKCategoryTypeIdentifier["appleStandHour"] = "HKCategoryTypeIdentifierAppleStandHour";
|
|
185
186
|
HKCategoryTypeIdentifier["cervicalMucusQuality"] = "HKCategoryTypeIdentifierCervicalMucusQuality";
|
|
@@ -242,16 +243,16 @@ let HKCategoryTypeIdentifier = /*#__PURE__*/function (HKCategoryTypeIdentifier)
|
|
|
242
243
|
HKCategoryTypeIdentifier["vaginalDryness"] = "HKCategoryTypeIdentifierVaginalDryness";
|
|
243
244
|
HKCategoryTypeIdentifier["vomiting"] = "HKCategoryTypeIdentifierVomiting";
|
|
244
245
|
HKCategoryTypeIdentifier["wheezing"] = "HKCategoryTypeIdentifierWheezing";
|
|
246
|
+
HKCategoryTypeIdentifier["bleedingAfterPregnancy"] = "HKCategoryTypeIdentifierBleedingAfterPregnancy";
|
|
247
|
+
HKCategoryTypeIdentifier["bleedingDuringPregnancy"] = "HKCategoryTypeIdentifierBleedingDuringPregnancy";
|
|
245
248
|
return HKCategoryTypeIdentifier;
|
|
246
249
|
}({}); // HKCategoryValueSeverity
|
|
247
|
-
exports.
|
|
248
|
-
let HKCategoryValueAppleStandHour = /*#__PURE__*/function (HKCategoryValueAppleStandHour) {
|
|
250
|
+
let HKCategoryValueAppleStandHour = exports.HKCategoryValueAppleStandHour = /*#__PURE__*/function (HKCategoryValueAppleStandHour) {
|
|
249
251
|
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["stood"] = 0] = "stood";
|
|
250
252
|
HKCategoryValueAppleStandHour[HKCategoryValueAppleStandHour["idle"] = 1] = "idle";
|
|
251
253
|
return HKCategoryValueAppleStandHour;
|
|
252
254
|
}({});
|
|
253
|
-
exports.
|
|
254
|
-
let HKWorkoutActivityType = /*#__PURE__*/function (HKWorkoutActivityType) {
|
|
255
|
+
let HKWorkoutActivityType = exports.HKWorkoutActivityType = /*#__PURE__*/function (HKWorkoutActivityType) {
|
|
255
256
|
HKWorkoutActivityType[HKWorkoutActivityType["americanFootball"] = 1] = "americanFootball";
|
|
256
257
|
HKWorkoutActivityType[HKWorkoutActivityType["archery"] = 2] = "archery";
|
|
257
258
|
HKWorkoutActivityType[HKWorkoutActivityType["australianFootball"] = 3] = "australianFootball";
|
|
@@ -328,12 +329,18 @@ let HKWorkoutActivityType = /*#__PURE__*/function (HKWorkoutActivityType) {
|
|
|
328
329
|
HKWorkoutActivityType[HKWorkoutActivityType["handCycling"] = 74] = "handCycling";
|
|
329
330
|
HKWorkoutActivityType[HKWorkoutActivityType["discSports"] = 75] = "discSports";
|
|
330
331
|
HKWorkoutActivityType[HKWorkoutActivityType["fitnessGaming"] = 76] = "fitnessGaming";
|
|
332
|
+
HKWorkoutActivityType[HKWorkoutActivityType["cardioDance"] = 77] = "cardioDance";
|
|
333
|
+
HKWorkoutActivityType[HKWorkoutActivityType["socialDance"] = 78] = "socialDance";
|
|
334
|
+
HKWorkoutActivityType[HKWorkoutActivityType["pickleball"] = 79] = "pickleball";
|
|
335
|
+
HKWorkoutActivityType[HKWorkoutActivityType["cooldown"] = 80] = "cooldown";
|
|
336
|
+
HKWorkoutActivityType[HKWorkoutActivityType["swimBikeRun"] = 82] = "swimBikeRun";
|
|
337
|
+
HKWorkoutActivityType[HKWorkoutActivityType["transition"] = 83] = "transition";
|
|
338
|
+
HKWorkoutActivityType[HKWorkoutActivityType["underwaterDiving"] = 84] = "underwaterDiving";
|
|
331
339
|
HKWorkoutActivityType[HKWorkoutActivityType["other"] = 3000] = "other";
|
|
332
340
|
return HKWorkoutActivityType;
|
|
333
341
|
}({});
|
|
334
|
-
exports.HKWorkoutActivityType = HKWorkoutActivityType;
|
|
335
342
|
// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition
|
|
336
|
-
let HKWeatherCondition = /*#__PURE__*/function (HKWeatherCondition) {
|
|
343
|
+
let HKWeatherCondition = exports.HKWeatherCondition = /*#__PURE__*/function (HKWeatherCondition) {
|
|
337
344
|
HKWeatherCondition[HKWeatherCondition["none"] = 0] = "none";
|
|
338
345
|
HKWeatherCondition[HKWeatherCondition["clear"] = 1] = "clear";
|
|
339
346
|
HKWeatherCondition[HKWeatherCondition["fair"] = 2] = "fair";
|
|
@@ -364,7 +371,6 @@ let HKWeatherCondition = /*#__PURE__*/function (HKWeatherCondition) {
|
|
|
364
371
|
HKWeatherCondition[HKWeatherCondition["tornado"] = 27] = "tornado";
|
|
365
372
|
return HKWeatherCondition;
|
|
366
373
|
}({});
|
|
367
|
-
exports.HKWeatherCondition = HKWeatherCondition;
|
|
368
374
|
var HKIndoorWorkout = /*#__PURE__*/function (HKIndoorWorkout) {
|
|
369
375
|
HKIndoorWorkout[HKIndoorWorkout["false"] = 0] = "false";
|
|
370
376
|
HKIndoorWorkout[HKIndoorWorkout["true"] = 1] = "true";
|
|
@@ -373,7 +379,7 @@ var HKIndoorWorkout = /*#__PURE__*/function (HKIndoorWorkout) {
|
|
|
373
379
|
/**
|
|
374
380
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }
|
|
375
381
|
*/
|
|
376
|
-
let HKAuthorizationRequestStatus = /*#__PURE__*/function (HKAuthorizationRequestStatus) {
|
|
382
|
+
let HKAuthorizationRequestStatus = exports.HKAuthorizationRequestStatus = /*#__PURE__*/function (HKAuthorizationRequestStatus) {
|
|
377
383
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unknown"] = 0] = "unknown";
|
|
378
384
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["shouldRequest"] = 1] = "shouldRequest";
|
|
379
385
|
HKAuthorizationRequestStatus[HKAuthorizationRequestStatus["unnecessary"] = 2] = "unnecessary";
|
|
@@ -382,18 +388,16 @@ let HKAuthorizationRequestStatus = /*#__PURE__*/function (HKAuthorizationRequest
|
|
|
382
388
|
/**
|
|
383
389
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }
|
|
384
390
|
*/
|
|
385
|
-
exports.
|
|
386
|
-
let HKAuthorizationStatus = /*#__PURE__*/function (HKAuthorizationStatus) {
|
|
391
|
+
let HKAuthorizationStatus = exports.HKAuthorizationStatus = /*#__PURE__*/function (HKAuthorizationStatus) {
|
|
387
392
|
HKAuthorizationStatus[HKAuthorizationStatus["notDetermined"] = 0] = "notDetermined";
|
|
388
393
|
HKAuthorizationStatus[HKAuthorizationStatus["sharingDenied"] = 1] = "sharingDenied";
|
|
389
394
|
HKAuthorizationStatus[HKAuthorizationStatus["sharingAuthorized"] = 2] = "sharingAuthorized";
|
|
390
395
|
return HKAuthorizationStatus;
|
|
391
396
|
}({});
|
|
392
|
-
exports.HKAuthorizationStatus = HKAuthorizationStatus;
|
|
393
397
|
/**
|
|
394
398
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }
|
|
395
399
|
*/
|
|
396
|
-
let HKBloodType = /*#__PURE__*/function (HKBloodType) {
|
|
400
|
+
let HKBloodType = exports.HKBloodType = /*#__PURE__*/function (HKBloodType) {
|
|
397
401
|
HKBloodType[HKBloodType["notSet"] = 0] = "notSet";
|
|
398
402
|
HKBloodType[HKBloodType["aPositive"] = 1] = "aPositive";
|
|
399
403
|
HKBloodType[HKBloodType["aNegative"] = 2] = "aNegative";
|
|
@@ -408,8 +412,7 @@ let HKBloodType = /*#__PURE__*/function (HKBloodType) {
|
|
|
408
412
|
/**
|
|
409
413
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }
|
|
410
414
|
*/
|
|
411
|
-
exports.
|
|
412
|
-
let HKBiologicalSex = /*#__PURE__*/function (HKBiologicalSex) {
|
|
415
|
+
let HKBiologicalSex = exports.HKBiologicalSex = /*#__PURE__*/function (HKBiologicalSex) {
|
|
413
416
|
HKBiologicalSex[HKBiologicalSex["notSet"] = 0] = "notSet";
|
|
414
417
|
HKBiologicalSex[HKBiologicalSex["female"] = 1] = "female";
|
|
415
418
|
HKBiologicalSex[HKBiologicalSex["male"] = 2] = "male";
|
|
@@ -419,8 +422,7 @@ let HKBiologicalSex = /*#__PURE__*/function (HKBiologicalSex) {
|
|
|
419
422
|
/**
|
|
420
423
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }
|
|
421
424
|
*/
|
|
422
|
-
exports.
|
|
423
|
-
let HKFitzpatrickSkinType = /*#__PURE__*/function (HKFitzpatrickSkinType) {
|
|
425
|
+
let HKFitzpatrickSkinType = exports.HKFitzpatrickSkinType = /*#__PURE__*/function (HKFitzpatrickSkinType) {
|
|
424
426
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["notSet"] = 0] = "notSet";
|
|
425
427
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["I"] = 1] = "I";
|
|
426
428
|
HKFitzpatrickSkinType[HKFitzpatrickSkinType["II"] = 2] = "II";
|
|
@@ -433,8 +435,7 @@ let HKFitzpatrickSkinType = /*#__PURE__*/function (HKFitzpatrickSkinType) {
|
|
|
433
435
|
/**
|
|
434
436
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }
|
|
435
437
|
*/
|
|
436
|
-
exports.
|
|
437
|
-
let HKStatisticsOptions = /*#__PURE__*/function (HKStatisticsOptions) {
|
|
438
|
+
let HKStatisticsOptions = exports.HKStatisticsOptions = /*#__PURE__*/function (HKStatisticsOptions) {
|
|
438
439
|
HKStatisticsOptions["cumulativeSum"] = "cumulativeSum";
|
|
439
440
|
HKStatisticsOptions["discreteAverage"] = "discreteAverage";
|
|
440
441
|
HKStatisticsOptions["discreteMax"] = "discreteMax";
|
|
@@ -445,11 +446,10 @@ let HKStatisticsOptions = /*#__PURE__*/function (HKStatisticsOptions) {
|
|
|
445
446
|
HKStatisticsOptions["separateBySource"] = "separateBySource";
|
|
446
447
|
return HKStatisticsOptions;
|
|
447
448
|
}({});
|
|
448
|
-
exports.HKStatisticsOptions = HKStatisticsOptions;
|
|
449
449
|
/**
|
|
450
450
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }
|
|
451
451
|
*/
|
|
452
|
-
let HKCategoryValueCervicalMucusQuality = /*#__PURE__*/function (HKCategoryValueCervicalMucusQuality) {
|
|
452
|
+
let HKCategoryValueCervicalMucusQuality = exports.HKCategoryValueCervicalMucusQuality = /*#__PURE__*/function (HKCategoryValueCervicalMucusQuality) {
|
|
453
453
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["dry"] = 1] = "dry";
|
|
454
454
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["sticky"] = 2] = "sticky";
|
|
455
455
|
HKCategoryValueCervicalMucusQuality[HKCategoryValueCervicalMucusQuality["creamy"] = 3] = "creamy";
|
|
@@ -459,9 +459,9 @@ let HKCategoryValueCervicalMucusQuality = /*#__PURE__*/function (HKCategoryValue
|
|
|
459
459
|
}({});
|
|
460
460
|
/**
|
|
461
461
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }
|
|
462
|
+
* @deprecated In iOS 18 beta
|
|
462
463
|
*/
|
|
463
|
-
exports.
|
|
464
|
-
let HKCategoryValueMenstrualFlow = /*#__PURE__*/function (HKCategoryValueMenstrualFlow) {
|
|
464
|
+
let HKCategoryValueMenstrualFlow = exports.HKCategoryValueMenstrualFlow = /*#__PURE__*/function (HKCategoryValueMenstrualFlow) {
|
|
465
465
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
|
|
466
466
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["none"] = 5] = "none";
|
|
467
467
|
HKCategoryValueMenstrualFlow[HKCategoryValueMenstrualFlow["light"] = 2] = "light";
|
|
@@ -472,8 +472,7 @@ let HKCategoryValueMenstrualFlow = /*#__PURE__*/function (HKCategoryValueMenstru
|
|
|
472
472
|
/**
|
|
473
473
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }
|
|
474
474
|
*/
|
|
475
|
-
exports.
|
|
476
|
-
let HKCategoryValueOvulationTestResult = /*#__PURE__*/function (HKCategoryValueOvulationTestResult) {
|
|
475
|
+
let HKCategoryValueOvulationTestResult = exports.HKCategoryValueOvulationTestResult = /*#__PURE__*/function (HKCategoryValueOvulationTestResult) {
|
|
477
476
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["negative"] = 1] = "negative";
|
|
478
477
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
|
|
479
478
|
HKCategoryValueOvulationTestResult[HKCategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
|
|
@@ -483,8 +482,7 @@ let HKCategoryValueOvulationTestResult = /*#__PURE__*/function (HKCategoryValueO
|
|
|
483
482
|
/**
|
|
484
483
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }
|
|
485
484
|
*/
|
|
486
|
-
exports.
|
|
487
|
-
let HKCategoryValueSleepAnalysis = /*#__PURE__*/function (HKCategoryValueSleepAnalysis) {
|
|
485
|
+
let HKCategoryValueSleepAnalysis = exports.HKCategoryValueSleepAnalysis = /*#__PURE__*/function (HKCategoryValueSleepAnalysis) {
|
|
488
486
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
|
|
489
487
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["asleepUnspecified"] = 1] = "asleepUnspecified";
|
|
490
488
|
HKCategoryValueSleepAnalysis[HKCategoryValueSleepAnalysis["awake"] = 2] = "awake";
|
|
@@ -494,10 +492,9 @@ let HKCategoryValueSleepAnalysis = /*#__PURE__*/function (HKCategoryValueSleepAn
|
|
|
494
492
|
return HKCategoryValueSleepAnalysis;
|
|
495
493
|
}({});
|
|
496
494
|
/**
|
|
497
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges
|
|
495
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges Apple Docs}
|
|
498
496
|
*/
|
|
499
|
-
exports.
|
|
500
|
-
let HKCategoryValueAppetiteChanges = /*#__PURE__*/function (HKCategoryValueAppetiteChanges) {
|
|
497
|
+
let HKCategoryValueAppetiteChanges = exports.HKCategoryValueAppetiteChanges = /*#__PURE__*/function (HKCategoryValueAppetiteChanges) {
|
|
501
498
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
|
|
502
499
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["increased"] = 3] = "increased";
|
|
503
500
|
HKCategoryValueAppetiteChanges[HKCategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
|
|
@@ -505,10 +502,9 @@ let HKCategoryValueAppetiteChanges = /*#__PURE__*/function (HKCategoryValueAppet
|
|
|
505
502
|
return HKCategoryValueAppetiteChanges;
|
|
506
503
|
}({});
|
|
507
504
|
/**
|
|
508
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence
|
|
505
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence Apple Docs}
|
|
509
506
|
*/
|
|
510
|
-
exports.
|
|
511
|
-
let HKCategoryValuePresence = /*#__PURE__*/function (HKCategoryValuePresence) {
|
|
507
|
+
let HKCategoryValuePresence = exports.HKCategoryValuePresence = /*#__PURE__*/function (HKCategoryValuePresence) {
|
|
512
508
|
HKCategoryValuePresence[HKCategoryValuePresence["notPresent"] = 1] = "notPresent";
|
|
513
509
|
HKCategoryValuePresence[HKCategoryValuePresence["present"] = 0] = "present";
|
|
514
510
|
return HKCategoryValuePresence;
|
|
@@ -516,8 +512,7 @@ let HKCategoryValuePresence = /*#__PURE__*/function (HKCategoryValuePresence) {
|
|
|
516
512
|
/**
|
|
517
513
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }
|
|
518
514
|
*/
|
|
519
|
-
exports.
|
|
520
|
-
let HKCategoryValueSeverity = /*#__PURE__*/function (HKCategoryValueSeverity) {
|
|
515
|
+
let HKCategoryValueSeverity = exports.HKCategoryValueSeverity = /*#__PURE__*/function (HKCategoryValueSeverity) {
|
|
521
516
|
HKCategoryValueSeverity[HKCategoryValueSeverity["notPresent"] = 1] = "notPresent";
|
|
522
517
|
HKCategoryValueSeverity[HKCategoryValueSeverity["mild"] = 2] = "mild";
|
|
523
518
|
HKCategoryValueSeverity[HKCategoryValueSeverity["moderate"] = 3] = "moderate";
|
|
@@ -528,24 +523,21 @@ let HKCategoryValueSeverity = /*#__PURE__*/function (HKCategoryValueSeverity) {
|
|
|
528
523
|
/**
|
|
529
524
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }
|
|
530
525
|
*/
|
|
531
|
-
exports.
|
|
532
|
-
let HKCategoryValueNotApplicable = /*#__PURE__*/function (HKCategoryValueNotApplicable) {
|
|
526
|
+
let HKCategoryValueNotApplicable = exports.HKCategoryValueNotApplicable = /*#__PURE__*/function (HKCategoryValueNotApplicable) {
|
|
533
527
|
HKCategoryValueNotApplicable[HKCategoryValueNotApplicable["notApplicable"] = 0] = "notApplicable";
|
|
534
528
|
return HKCategoryValueNotApplicable;
|
|
535
529
|
}({});
|
|
536
530
|
/**
|
|
537
531
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }
|
|
538
532
|
*/
|
|
539
|
-
exports.HKCategoryValueNotApplicable = HKCategoryValueNotApplicable;
|
|
540
533
|
/**
|
|
541
534
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }
|
|
542
535
|
*/
|
|
543
|
-
let HKInsulinDeliveryReason = /*#__PURE__*/function (HKInsulinDeliveryReason) {
|
|
536
|
+
let HKInsulinDeliveryReason = exports.HKInsulinDeliveryReason = /*#__PURE__*/function (HKInsulinDeliveryReason) {
|
|
544
537
|
HKInsulinDeliveryReason[HKInsulinDeliveryReason["basal"] = 1] = "basal";
|
|
545
538
|
HKInsulinDeliveryReason[HKInsulinDeliveryReason["bolus"] = 2] = "bolus";
|
|
546
539
|
return HKInsulinDeliveryReason;
|
|
547
540
|
}({});
|
|
548
|
-
exports.HKInsulinDeliveryReason = HKInsulinDeliveryReason;
|
|
549
541
|
/**
|
|
550
542
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }
|
|
551
543
|
*/
|
|
@@ -567,14 +559,13 @@ contraceptive = 'HKCategoryTypeIdentifierContraceptive',
|
|
|
567
559
|
appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',
|
|
568
560
|
handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */
|
|
569
561
|
// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse
|
|
570
|
-
let HKWheelchairUse = /*#__PURE__*/function (HKWheelchairUse) {
|
|
562
|
+
let HKWheelchairUse = exports.HKWheelchairUse = /*#__PURE__*/function (HKWheelchairUse) {
|
|
571
563
|
HKWheelchairUse[HKWheelchairUse["notSet"] = 0] = "notSet";
|
|
572
564
|
HKWheelchairUse[HKWheelchairUse["no"] = 1] = "no";
|
|
573
565
|
HKWheelchairUse[HKWheelchairUse["yes"] = 2] = "yes";
|
|
574
566
|
return HKWheelchairUse;
|
|
575
567
|
}({}); // Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init
|
|
576
|
-
exports.
|
|
577
|
-
let HKMetricPrefix = /*#__PURE__*/function (HKMetricPrefix) {
|
|
568
|
+
let HKMetricPrefix = exports.HKMetricPrefix = /*#__PURE__*/function (HKMetricPrefix) {
|
|
578
569
|
HKMetricPrefix["None"] = "";
|
|
579
570
|
HKMetricPrefix["Pico"] = "p";
|
|
580
571
|
HKMetricPrefix["Nano"] = "n";
|
|
@@ -591,8 +582,7 @@ let HKMetricPrefix = /*#__PURE__*/function (HKMetricPrefix) {
|
|
|
591
582
|
HKMetricPrefix["Femto"] = "f";
|
|
592
583
|
return HKMetricPrefix;
|
|
593
584
|
}({});
|
|
594
|
-
exports.
|
|
595
|
-
let HKUnitMetric = /*#__PURE__*/function (HKUnitMetric) {
|
|
585
|
+
let HKUnitMetric = exports.HKUnitMetric = /*#__PURE__*/function (HKUnitMetric) {
|
|
596
586
|
HKUnitMetric["Gram"] = "g";
|
|
597
587
|
HKUnitMetric["Joule"] = "J";
|
|
598
588
|
HKUnitMetric["Kelvin"] = "K";
|
|
@@ -605,8 +595,7 @@ let HKUnitMetric = /*#__PURE__*/function (HKUnitMetric) {
|
|
|
605
595
|
HKUnitMetric["Volt"] = "V";
|
|
606
596
|
return HKUnitMetric;
|
|
607
597
|
}({});
|
|
608
|
-
exports.
|
|
609
|
-
let HKUnits = /*#__PURE__*/function (HKUnits) {
|
|
598
|
+
let HKUnits = exports.HKUnits = /*#__PURE__*/function (HKUnits) {
|
|
610
599
|
HKUnits["DecibelHearingLevel"] = "dBHL";
|
|
611
600
|
HKUnits["DecibelSoundPressureLevel"] = "dBASPL";
|
|
612
601
|
HKUnits["Percent"] = "%";
|
|
@@ -614,12 +603,11 @@ let HKUnits = /*#__PURE__*/function (HKUnits) {
|
|
|
614
603
|
HKUnits["InternationalUnit"] = "IU";
|
|
615
604
|
return HKUnits;
|
|
616
605
|
}({}); // not 100% sure about these
|
|
617
|
-
exports.HKUnits = HKUnits;
|
|
618
606
|
/**
|
|
619
607
|
* More SI prefixes also available as literals, just type the string
|
|
620
608
|
* @example 'cm', 'km'
|
|
621
609
|
*/
|
|
622
|
-
let UnitOfLength = /*#__PURE__*/function (UnitOfLength) {
|
|
610
|
+
let UnitOfLength = exports.UnitOfLength = /*#__PURE__*/function (UnitOfLength) {
|
|
623
611
|
UnitOfLength["Feet"] = "ft";
|
|
624
612
|
UnitOfLength["Meter"] = "m";
|
|
625
613
|
UnitOfLength["Inches"] = "in";
|
|
@@ -627,12 +615,11 @@ let UnitOfLength = /*#__PURE__*/function (UnitOfLength) {
|
|
|
627
615
|
UnitOfLength["Miles"] = "mi";
|
|
628
616
|
return UnitOfLength;
|
|
629
617
|
}({});
|
|
630
|
-
exports.UnitOfLength = UnitOfLength;
|
|
631
618
|
/**
|
|
632
619
|
* More SI prefixes also available as literals, just type the string
|
|
633
620
|
* @example 'ml', 'cl'
|
|
634
621
|
*/
|
|
635
|
-
let UnitOfVolume = /*#__PURE__*/function (UnitOfVolume) {
|
|
622
|
+
let UnitOfVolume = exports.UnitOfVolume = /*#__PURE__*/function (UnitOfVolume) {
|
|
636
623
|
UnitOfVolume["ImperialCup"] = "cup_imp";
|
|
637
624
|
UnitOfVolume["ImperialFluidOunces"] = "fl_oz_imp";
|
|
638
625
|
UnitOfVolume["ImperialPint"] = "pt_imp";
|
|
@@ -642,12 +629,11 @@ let UnitOfVolume = /*#__PURE__*/function (UnitOfVolume) {
|
|
|
642
629
|
UnitOfVolume["Liter"] = "l";
|
|
643
630
|
return UnitOfVolume;
|
|
644
631
|
}({});
|
|
645
|
-
exports.UnitOfVolume = UnitOfVolume;
|
|
646
632
|
/**
|
|
647
633
|
* More SI prefixes also available as literals, just type the string
|
|
648
634
|
* @example 'mg', 'kg'
|
|
649
635
|
*/
|
|
650
|
-
let UnitOfMass = /*#__PURE__*/function (UnitOfMass) {
|
|
636
|
+
let UnitOfMass = exports.UnitOfMass = /*#__PURE__*/function (UnitOfMass) {
|
|
651
637
|
UnitOfMass["Ounces"] = "oz";
|
|
652
638
|
UnitOfMass["Stones"] = "st";
|
|
653
639
|
UnitOfMass["Pounds"] = "lb";
|
|
@@ -658,12 +644,11 @@ let UnitOfMass = /*#__PURE__*/function (UnitOfMass) {
|
|
|
658
644
|
* More SI prefixes also available as literals, just type the string
|
|
659
645
|
* @example 'mg', 'kg'
|
|
660
646
|
*/
|
|
661
|
-
exports.UnitOfMass = UnitOfMass;
|
|
662
647
|
/**
|
|
663
648
|
* More SI prefixes also available as literals, just type the string
|
|
664
649
|
* @example 'kPa', 'hPa'
|
|
665
650
|
*/
|
|
666
|
-
let UnitOfPressure = /*#__PURE__*/function (UnitOfPressure) {
|
|
651
|
+
let UnitOfPressure = exports.UnitOfPressure = /*#__PURE__*/function (UnitOfPressure) {
|
|
667
652
|
UnitOfPressure["Atmospheres"] = "atm";
|
|
668
653
|
UnitOfPressure["CentimetersOfWater"] = "cmAq";
|
|
669
654
|
UnitOfPressure["MillimetersOfMercury"] = "mmHg";
|
|
@@ -676,12 +661,11 @@ let UnitOfPressure = /*#__PURE__*/function (UnitOfPressure) {
|
|
|
676
661
|
* More SI prefixes also available as literals, just type the string
|
|
677
662
|
* @example 'kPa', 'hPa'
|
|
678
663
|
*/
|
|
679
|
-
exports.UnitOfPressure = UnitOfPressure;
|
|
680
664
|
/**
|
|
681
665
|
* More SI prefixes also available as literals, just type the string
|
|
682
666
|
* @example 'ms'
|
|
683
667
|
*/
|
|
684
|
-
let UnitOfTime = /*#__PURE__*/function (UnitOfTime) {
|
|
668
|
+
let UnitOfTime = exports.UnitOfTime = /*#__PURE__*/function (UnitOfTime) {
|
|
685
669
|
UnitOfTime["Days"] = "d";
|
|
686
670
|
UnitOfTime["Minutes"] = "min";
|
|
687
671
|
UnitOfTime["Hours"] = "hr";
|
|
@@ -692,8 +676,7 @@ let UnitOfTime = /*#__PURE__*/function (UnitOfTime) {
|
|
|
692
676
|
* More SI prefixes also available as literals, just type the string
|
|
693
677
|
* @example 'ms'
|
|
694
678
|
*/
|
|
695
|
-
exports.
|
|
696
|
-
let TemperatureUnit = /*#__PURE__*/function (TemperatureUnit) {
|
|
679
|
+
let TemperatureUnit = exports.TemperatureUnit = /*#__PURE__*/function (TemperatureUnit) {
|
|
697
680
|
TemperatureUnit["DegreesCelsius"] = "degC";
|
|
698
681
|
TemperatureUnit["DegreesFahrenheit"] = "degF";
|
|
699
682
|
TemperatureUnit["Kelvin"] = "K";
|
|
@@ -703,16 +686,14 @@ let TemperatureUnit = /*#__PURE__*/function (TemperatureUnit) {
|
|
|
703
686
|
* More SI prefixes also available as literals, just type the string
|
|
704
687
|
* @example 'kJ'
|
|
705
688
|
*/
|
|
706
|
-
exports.
|
|
707
|
-
let UnitOfEnergy = /*#__PURE__*/function (UnitOfEnergy) {
|
|
689
|
+
let UnitOfEnergy = exports.UnitOfEnergy = /*#__PURE__*/function (UnitOfEnergy) {
|
|
708
690
|
UnitOfEnergy["Kilocalories"] = "kcal";
|
|
709
691
|
UnitOfEnergy["LargeCalories"] = "Cal";
|
|
710
692
|
UnitOfEnergy["SmallCalories"] = "cal";
|
|
711
693
|
UnitOfEnergy["Joules"] = "J";
|
|
712
694
|
return UnitOfEnergy;
|
|
713
695
|
}({});
|
|
714
|
-
exports.
|
|
715
|
-
let BloodGlucoseUnit = /*#__PURE__*/function (BloodGlucoseUnit) {
|
|
696
|
+
let BloodGlucoseUnit = exports.BloodGlucoseUnit = /*#__PURE__*/function (BloodGlucoseUnit) {
|
|
716
697
|
BloodGlucoseUnit["GlucoseMmolPerL"] = "mmol<180.15588000005408>/l";
|
|
717
698
|
BloodGlucoseUnit["GlucoseMgPerDl"] = "mg/dL";
|
|
718
699
|
return BloodGlucoseUnit;
|
|
@@ -729,8 +710,7 @@ let BloodGlucoseUnit = /*#__PURE__*/function (BloodGlucoseUnit) {
|
|
|
729
710
|
/**
|
|
730
711
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }
|
|
731
712
|
*/
|
|
732
|
-
exports.
|
|
733
|
-
let HKWorkoutEventType = /*#__PURE__*/function (HKWorkoutEventType) {
|
|
713
|
+
let HKWorkoutEventType = exports.HKWorkoutEventType = /*#__PURE__*/function (HKWorkoutEventType) {
|
|
734
714
|
HKWorkoutEventType[HKWorkoutEventType["pause"] = 1] = "pause";
|
|
735
715
|
HKWorkoutEventType[HKWorkoutEventType["resume"] = 2] = "resume";
|
|
736
716
|
HKWorkoutEventType[HKWorkoutEventType["lap"] = 3] = "lap";
|
|
@@ -741,9 +721,8 @@ let HKWorkoutEventType = /*#__PURE__*/function (HKWorkoutEventType) {
|
|
|
741
721
|
HKWorkoutEventType[HKWorkoutEventType["pauseOrResumeRequest"] = 8] = "pauseOrResumeRequest";
|
|
742
722
|
return HKWorkoutEventType;
|
|
743
723
|
}({});
|
|
744
|
-
exports.HKWorkoutEventType = HKWorkoutEventType;
|
|
745
724
|
// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier
|
|
746
|
-
let HKCharacteristicTypeIdentifier = /*#__PURE__*/function (HKCharacteristicTypeIdentifier) {
|
|
725
|
+
let HKCharacteristicTypeIdentifier = exports.HKCharacteristicTypeIdentifier = /*#__PURE__*/function (HKCharacteristicTypeIdentifier) {
|
|
747
726
|
HKCharacteristicTypeIdentifier["fitzpatrickSkinType"] = "HKCharacteristicTypeIdentifierFitzpatrickSkinType";
|
|
748
727
|
HKCharacteristicTypeIdentifier["biologicalSex"] = "HKCharacteristicTypeIdentifierBiologicalSex";
|
|
749
728
|
HKCharacteristicTypeIdentifier["bloodType"] = "HKCharacteristicTypeIdentifierBloodType";
|
|
@@ -752,21 +731,17 @@ let HKCharacteristicTypeIdentifier = /*#__PURE__*/function (HKCharacteristicType
|
|
|
752
731
|
HKCharacteristicTypeIdentifier["activityMoveMode"] = "HKCharacteristicTypeIdentifierActivityMoveMode";
|
|
753
732
|
return HKCharacteristicTypeIdentifier;
|
|
754
733
|
}({}); // HKActivityMoveModeObject
|
|
755
|
-
exports.HKCharacteristicTypeIdentifier = HKCharacteristicTypeIdentifier;
|
|
756
734
|
/**
|
|
757
735
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }
|
|
758
736
|
*/
|
|
759
|
-
let HKUpdateFrequency = /*#__PURE__*/function (HKUpdateFrequency) {
|
|
737
|
+
let HKUpdateFrequency = exports.HKUpdateFrequency = /*#__PURE__*/function (HKUpdateFrequency) {
|
|
760
738
|
HKUpdateFrequency[HKUpdateFrequency["immediate"] = 1] = "immediate";
|
|
761
739
|
HKUpdateFrequency[HKUpdateFrequency["hourly"] = 2] = "hourly";
|
|
762
740
|
HKUpdateFrequency[HKUpdateFrequency["daily"] = 3] = "daily";
|
|
763
741
|
HKUpdateFrequency[HKUpdateFrequency["weekly"] = 4] = "weekly";
|
|
764
742
|
return HKUpdateFrequency;
|
|
765
743
|
}({});
|
|
766
|
-
exports.HKUpdateFrequency = HKUpdateFrequency;
|
|
767
744
|
const Native = _reactNative.NativeModules.ReactNativeHealthkit;
|
|
768
|
-
const EventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.ReactNativeHealthkit);
|
|
769
|
-
exports.
|
|
770
|
-
var _default = Native;
|
|
771
|
-
exports.default = _default;
|
|
745
|
+
const EventEmitter = exports.EventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.ReactNativeHealthkit);
|
|
746
|
+
var _default = exports.default = Native;
|
|
772
747
|
//# sourceMappingURL=native-types.js.map
|