@kingstinct/react-native-healthkit 13.4.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +1 -0
- package/app.plugin.ts +40 -2
- package/ios/BackgroundDeliveryManager.swift +196 -0
- package/ios/CategoryTypeModule.swift +1 -1
- package/ios/CoreModule.swift +24 -0
- package/ios/CorrelationTypeModule.swift +2 -35
- package/ios/ElectrocardiogramModule.swift +2 -34
- package/ios/HeartbeatSeriesModule.swift +2 -34
- package/ios/MedicationModule.swift +3 -35
- package/ios/PredicateHelpers.swift +2 -2
- package/ios/QuantityTypeModule.swift +11 -11
- package/ios/Serializers.swift +58 -90
- package/ios/StateOfMindModule.swift +2 -34
- package/ios/WorkoutProxy.swift +3 -149
- package/ios/generated/HealthkitGenerated.swift +52 -0
- package/lib/commonjs/generated/healthkit.generated.js +745 -0
- package/lib/commonjs/healthkit.ios.js +51 -17
- package/lib/commonjs/healthkit.js +120 -34
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/commonjs/type-tests/generated-typing.js +2 -0
- package/lib/commonjs/types/CategoryType.js +19 -99
- package/lib/commonjs/types/Medication.js +2 -0
- package/lib/commonjs/types/MetadataEnums.js +17 -0
- package/lib/commonjs/types/QuantityType.js +4 -15
- package/lib/commonjs/types/WeatherCondition.js +2 -32
- package/lib/commonjs/types/Workouts.js +3 -98
- package/lib/commonjs/types/index.js +2 -0
- package/lib/module/generated/healthkit.generated.js +742 -0
- package/lib/module/healthkit.ios.js +49 -15
- package/lib/module/healthkit.js +94 -20
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/type-tests/generated-typing.js +1 -0
- package/lib/module/types/CategoryType.js +2 -98
- package/lib/module/types/Medication.js +1 -0
- package/lib/module/types/MetadataEnums.js +1 -0
- package/lib/module/types/QuantityType.js +2 -14
- package/lib/module/types/WeatherCondition.js +1 -32
- package/lib/module/types/Workouts.js +2 -98
- package/lib/module/types/index.js +2 -0
- package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
- package/lib/typescript/healthkit.d.ts +39 -36
- package/lib/typescript/healthkit.ios.d.ts +64 -53
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
- package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
- package/lib/typescript/modules.d.ts +2 -2
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
- package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
- package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
- package/lib/typescript/types/CategoryType.d.ts +10 -104
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
- package/lib/typescript/types/CorrelationType.d.ts +8 -2
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
- package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
- package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
- package/lib/typescript/types/Medication.d.ts +10 -0
- package/lib/typescript/types/MetadataEnums.d.ts +1 -0
- package/lib/typescript/types/QuantitySample.d.ts +9 -1
- package/lib/typescript/types/QuantityType.d.ts +14 -18
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
- package/lib/typescript/types/QueryOptions.d.ts +8 -4
- package/lib/typescript/types/Shared.d.ts +12 -41
- package/lib/typescript/types/StateOfMind.d.ts +8 -1
- package/lib/typescript/types/Subscriptions.d.ts +11 -11
- package/lib/typescript/types/WeatherCondition.d.ts +1 -30
- package/lib/typescript/types/Workouts.d.ts +18 -104
- package/lib/typescript/types/index.d.ts +2 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
- package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
- package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
- package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +2 -115
- package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
- package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
- package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
- package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
- package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
- package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
- package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
- package/package.json +5 -2
- package/src/generated/healthkit-schema.json +3680 -0
- package/src/generated/healthkit.generated.ts +1307 -0
- package/src/healthkit.ios.ts +225 -19
- package/src/healthkit.ts +181 -55
- package/src/hooks/useMostRecentQuantitySample.ts +6 -5
- package/src/hooks/useMostRecentWorkout.ts +2 -2
- package/src/hooks/useQuantitySampleById.ts +6 -5
- package/src/hooks/useStatisticsForQuantity.ts +2 -1
- package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
- package/src/modules.ts +7 -2
- package/src/specs/CategoryTypeModule.nitro.ts +8 -5
- package/src/specs/CoreModule.nitro.ts +20 -0
- package/src/specs/QuantityTypeModule.nitro.ts +81 -7
- package/src/test-setup.ts +2 -0
- package/src/type-tests/generated-typing.ts +133 -0
- package/src/types/CategoryType.ts +52 -148
- package/src/types/CategoryTypeIdentifier.ts +5 -134
- package/src/types/CorrelationType.ts +13 -3
- package/src/types/ElectrocardiogramSample.ts +13 -1
- package/src/types/HeartbeatSeries.ts +13 -1
- package/src/types/InterfaceVerification.ts +38 -1
- package/src/types/Medication.ts +19 -0
- package/src/types/MetadataEnums.ts +15 -0
- package/src/types/QuantitySample.ts +14 -2
- package/src/types/QuantityType.ts +22 -122
- package/src/types/QuantityTypeIdentifier.ts +5 -772
- package/src/types/QueryOptions.ts +11 -4
- package/src/types/Shared.ts +22 -49
- package/src/types/StateOfMind.ts +13 -1
- package/src/types/Subscriptions.ts +19 -13
- package/src/types/WeatherCondition.ts +1 -31
- package/src/types/Workouts.ts +44 -108
- package/src/types/index.ts +2 -0
- package/src/utils/getMostRecentQuantitySample.ts +4 -3
- package/src/utils/getMostRecentWorkout.ts +5 -2
- package/src/utils/getPreferredUnit.ts +5 -4
- package/src/utils/getQuantitySampleById.ts +4 -3
- package/src/utils/subscribeToQuantitySamples.ts +5 -3
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
|
@@ -17,8 +17,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.
|
|
21
|
-
exports.getWheelchairUseAsync = exports.getFitzpatrickSkinTypeAsync = exports.getDateOfBirthAsync = exports.getBloodTypeAsync = exports.getBiologicalSexAsync = exports.currentAppSource = exports.queryMedicationEventsWithAnchor = exports.queryMedicationEvents = exports.queryMedications = exports.requestMedicationsAuthorization = exports.areObjectTypesAvailableAsync = exports.areObjectTypesAvailable = exports.isObjectTypeAvailableAsync = exports.isObjectTypeAvailable = exports.isQuantityCompatibleWithUnit = exports.saveStateOfMindSample = exports.queryStateOfMindSamplesWithAnchor = exports.queryStateOfMindSamples = exports.isProtectedDataAvailable = exports.startWatchApp = exports.saveWorkoutSample = exports.saveQuantitySample = exports.saveCorrelationSample = exports.saveCategorySample = void 0;
|
|
20
|
+
exports.querySources = exports.queryWorkoutSamplesWithAnchor = exports.queryWorkoutSamples = exports.queryStatisticsCollectionForQuantitySeparateBySource = exports.queryStatisticsForQuantitySeparateBySource = exports.queryStatisticsCollectionForQuantity = exports.queryStatisticsForQuantity = exports.queryQuantitySamplesWithAnchor = exports.queryQuantitySamples = exports.queryElectrocardiogramSamplesWithAnchor = exports.queryElectrocardiogramSamples = exports.queryHeartbeatSeriesSamplesWithAnchor = exports.queryHeartbeatSeriesSamples = exports.queryCorrelationSamplesWithAnchor = exports.queryCorrelationSamples = exports.queryCategorySamplesWithAnchor = exports.queryCategorySamples = exports.isHealthDataAvailableAsync = exports.isHealthDataAvailable = exports.getWheelchairUse = exports.getRequestStatusForAuthorization = exports.getPreferredUnits = exports.getFitzpatrickSkinType = exports.getDateOfBirth = exports.getBloodType = exports.getBiologicalSex = exports.clearBackgroundTypes = exports.configureBackgroundTypes = exports.enableBackgroundDelivery = exports.disableBackgroundDelivery = exports.disableAllBackgroundDelivery = exports.requestPerObjectReadAuthorization = exports.authorizationStatusFor = exports.useSubscribeToQuantitySamples = exports.useSubscribeToChanges = exports.useSubscribeToCategorySamples = exports.useStatisticsForQuantity = exports.useSources = exports.useMostRecentWorkout = exports.useMostRecentQuantitySample = exports.useMostRecentCategorySample = exports.useIsHealthDataAvailable = exports.useHealthkitAuthorization = exports.subscribeToQuantitySamples = exports.subscribeToChanges = exports.subscribeToCategorySamples = exports.getPreferredUnit = exports.getMostRecentWorkout = exports.getMostRecentQuantitySample = exports.getMostRecentCategorySample = void 0;
|
|
21
|
+
exports.getWheelchairUseAsync = exports.getFitzpatrickSkinTypeAsync = exports.getDateOfBirthAsync = exports.getBloodTypeAsync = exports.getBiologicalSexAsync = exports.currentAppSource = exports.queryMedicationEventsWithAnchor = exports.queryMedicationEvents = exports.queryMedications = exports.requestMedicationsAuthorization = exports.areObjectTypesAvailableAsync = exports.areObjectTypesAvailable = exports.isObjectTypeAvailableAsync = exports.isObjectTypeAvailable = exports.isQuantityCompatibleWithUnit = exports.saveStateOfMindSample = exports.queryStateOfMindSamplesWithAnchor = exports.queryStateOfMindSamples = exports.isProtectedDataAvailable = exports.startWatchApp = exports.saveWorkoutSample = exports.saveQuantitySample = exports.saveCorrelationSample = exports.saveCategorySample = exports.deleteObjects = exports.requestAuthorization = void 0;
|
|
22
22
|
const react_native_1 = require("react-native");
|
|
23
23
|
const useHealthkitAuthorization_1 = __importDefault(require("./hooks/useHealthkitAuthorization"));
|
|
24
24
|
exports.useHealthkitAuthorization = useHealthkitAuthorization_1.default;
|
|
@@ -57,12 +57,44 @@ const subscribeToQuantitySamples_1 = require("./utils/subscribeToQuantitySamples
|
|
|
57
57
|
Object.defineProperty(exports, "subscribeToQuantitySamples", { enumerable: true, get: function () { return subscribeToQuantitySamples_1.subscribeToQuantitySamples; } });
|
|
58
58
|
__exportStar(require("./types"), exports);
|
|
59
59
|
const currentMajorVersionIOS = react_native_1.Platform.OS === 'ios' ? Number.parseInt(react_native_1.Platform.Version, 10) : 0;
|
|
60
|
+
function bindRetypedMethod(module, method) {
|
|
61
|
+
return method.bind(module);
|
|
62
|
+
}
|
|
63
|
+
const CorrelationTypeBindings = {
|
|
64
|
+
queryCorrelationSamples: bindRetypedMethod(modules_1.CorrelationTypes, modules_1.CorrelationTypes.queryCorrelationSamples),
|
|
65
|
+
queryCorrelationSamplesWithAnchor: bindRetypedMethod(modules_1.CorrelationTypes, modules_1.CorrelationTypes.queryCorrelationSamplesWithAnchor),
|
|
66
|
+
saveCorrelationSample: bindRetypedMethod(modules_1.CorrelationTypes, modules_1.CorrelationTypes.saveCorrelationSample),
|
|
67
|
+
};
|
|
68
|
+
const HeartbeatSeriesBindings = {
|
|
69
|
+
queryHeartbeatSeriesSamples: bindRetypedMethod(modules_1.HeartbeatSeries, modules_1.HeartbeatSeries.queryHeartbeatSeriesSamples),
|
|
70
|
+
queryHeartbeatSeriesSamplesWithAnchor: bindRetypedMethod(modules_1.HeartbeatSeries, modules_1.HeartbeatSeries.queryHeartbeatSeriesSamplesWithAnchor),
|
|
71
|
+
};
|
|
72
|
+
const ElectrocardiogramBindings = {
|
|
73
|
+
queryElectrocardiogramSamples: bindRetypedMethod(modules_1.Electrocardiograms, modules_1.Electrocardiograms.queryElectrocardiogramSamples),
|
|
74
|
+
queryElectrocardiogramSamplesWithAnchor: bindRetypedMethod(modules_1.Electrocardiograms, modules_1.Electrocardiograms.queryElectrocardiogramSamplesWithAnchor),
|
|
75
|
+
};
|
|
76
|
+
const WorkoutBindings = {
|
|
77
|
+
queryWorkoutSamples: bindRetypedMethod(modules_1.Workouts, modules_1.Workouts.queryWorkoutSamples),
|
|
78
|
+
queryWorkoutSamplesWithAnchor: bindRetypedMethod(modules_1.Workouts, modules_1.Workouts.queryWorkoutSamplesWithAnchor),
|
|
79
|
+
saveWorkoutSample: bindRetypedMethod(modules_1.Workouts, modules_1.Workouts.saveWorkoutSample),
|
|
80
|
+
};
|
|
81
|
+
const StateOfMindBindings = {
|
|
82
|
+
queryStateOfMindSamples: bindRetypedMethod(modules_1.StateOfMind, modules_1.StateOfMind.queryStateOfMindSamples),
|
|
83
|
+
queryStateOfMindSamplesWithAnchor: bindRetypedMethod(modules_1.StateOfMind, modules_1.StateOfMind.queryStateOfMindSamplesWithAnchor),
|
|
84
|
+
saveStateOfMindSample: bindRetypedMethod(modules_1.StateOfMind, modules_1.StateOfMind.saveStateOfMindSample),
|
|
85
|
+
};
|
|
86
|
+
const MedicationBindings = {
|
|
87
|
+
queryMedicationEvents: bindRetypedMethod(modules_1.Medication, modules_1.Medication.queryMedicationEvents),
|
|
88
|
+
queryMedicationEventsWithAnchor: bindRetypedMethod(modules_1.Medication, modules_1.Medication.queryMedicationEventsWithAnchor),
|
|
89
|
+
};
|
|
60
90
|
// Named exports - all functions bound to their respective modules
|
|
61
91
|
exports.authorizationStatusFor = modules_1.Core.authorizationStatusFor.bind(modules_1.Core);
|
|
62
92
|
exports.requestPerObjectReadAuthorization = modules_1.Core.requestPerObjectReadAuthorization.bind(modules_1.Core);
|
|
63
93
|
exports.disableAllBackgroundDelivery = modules_1.Core.disableAllBackgroundDelivery.bind(modules_1.Core);
|
|
64
94
|
exports.disableBackgroundDelivery = modules_1.Core.disableBackgroundDelivery.bind(modules_1.Core);
|
|
65
95
|
exports.enableBackgroundDelivery = modules_1.Core.enableBackgroundDelivery.bind(modules_1.Core);
|
|
96
|
+
exports.configureBackgroundTypes = modules_1.Core.configureBackgroundTypes.bind(modules_1.Core);
|
|
97
|
+
exports.clearBackgroundTypes = modules_1.Core.clearBackgroundTypes.bind(modules_1.Core);
|
|
66
98
|
exports.getBiologicalSex = modules_1.Characteristics.getBiologicalSex.bind(modules_1.Characteristics);
|
|
67
99
|
exports.getBloodType = modules_1.Characteristics.getBloodType.bind(modules_1.Characteristics);
|
|
68
100
|
exports.getDateOfBirth = modules_1.Characteristics.getDateOfBirth.bind(modules_1.Characteristics);
|
|
@@ -74,32 +106,32 @@ exports.isHealthDataAvailable = modules_1.Core.isHealthDataAvailable.bind(module
|
|
|
74
106
|
exports.isHealthDataAvailableAsync = modules_1.Core.isHealthDataAvailableAsync.bind(modules_1.Core);
|
|
75
107
|
exports.queryCategorySamples = modules_1.CategoryTypes.queryCategorySamples.bind(modules_1.CategoryTypes);
|
|
76
108
|
exports.queryCategorySamplesWithAnchor = modules_1.CategoryTypes.queryCategorySamplesWithAnchor.bind(modules_1.CategoryTypes);
|
|
77
|
-
exports.queryCorrelationSamples =
|
|
78
|
-
exports.queryCorrelationSamplesWithAnchor =
|
|
79
|
-
exports.queryHeartbeatSeriesSamples =
|
|
80
|
-
exports.queryHeartbeatSeriesSamplesWithAnchor =
|
|
81
|
-
exports.queryElectrocardiogramSamples =
|
|
82
|
-
exports.queryElectrocardiogramSamplesWithAnchor =
|
|
109
|
+
exports.queryCorrelationSamples = CorrelationTypeBindings.queryCorrelationSamples;
|
|
110
|
+
exports.queryCorrelationSamplesWithAnchor = CorrelationTypeBindings.queryCorrelationSamplesWithAnchor;
|
|
111
|
+
exports.queryHeartbeatSeriesSamples = HeartbeatSeriesBindings.queryHeartbeatSeriesSamples;
|
|
112
|
+
exports.queryHeartbeatSeriesSamplesWithAnchor = HeartbeatSeriesBindings.queryHeartbeatSeriesSamplesWithAnchor;
|
|
113
|
+
exports.queryElectrocardiogramSamples = ElectrocardiogramBindings.queryElectrocardiogramSamples;
|
|
114
|
+
exports.queryElectrocardiogramSamplesWithAnchor = ElectrocardiogramBindings.queryElectrocardiogramSamplesWithAnchor;
|
|
83
115
|
exports.queryQuantitySamples = modules_1.QuantityTypes.queryQuantitySamples.bind(modules_1.QuantityTypes);
|
|
84
116
|
exports.queryQuantitySamplesWithAnchor = modules_1.QuantityTypes.queryQuantitySamplesWithAnchor.bind(modules_1.QuantityTypes);
|
|
85
117
|
exports.queryStatisticsForQuantity = modules_1.QuantityTypes.queryStatisticsForQuantity.bind(modules_1.QuantityTypes);
|
|
86
118
|
exports.queryStatisticsCollectionForQuantity = modules_1.QuantityTypes.queryStatisticsCollectionForQuantity.bind(modules_1.QuantityTypes);
|
|
87
119
|
exports.queryStatisticsForQuantitySeparateBySource = modules_1.QuantityTypes.queryStatisticsForQuantitySeparateBySource.bind(modules_1.QuantityTypes);
|
|
88
120
|
exports.queryStatisticsCollectionForQuantitySeparateBySource = modules_1.QuantityTypes.queryStatisticsCollectionForQuantitySeparateBySource.bind(modules_1.QuantityTypes);
|
|
89
|
-
exports.queryWorkoutSamples =
|
|
90
|
-
exports.queryWorkoutSamplesWithAnchor =
|
|
121
|
+
exports.queryWorkoutSamples = WorkoutBindings.queryWorkoutSamples;
|
|
122
|
+
exports.queryWorkoutSamplesWithAnchor = WorkoutBindings.queryWorkoutSamplesWithAnchor;
|
|
91
123
|
exports.querySources = modules_1.Core.querySources.bind(modules_1.Core);
|
|
92
124
|
exports.requestAuthorization = modules_1.Core.requestAuthorization.bind(modules_1.Core);
|
|
93
125
|
exports.deleteObjects = modules_1.Core.deleteObjects.bind(modules_1.Core);
|
|
94
126
|
exports.saveCategorySample = modules_1.CategoryTypes.saveCategorySample.bind(modules_1.CategoryTypes);
|
|
95
|
-
exports.saveCorrelationSample =
|
|
127
|
+
exports.saveCorrelationSample = CorrelationTypeBindings.saveCorrelationSample;
|
|
96
128
|
exports.saveQuantitySample = modules_1.QuantityTypes.saveQuantitySample.bind(modules_1.QuantityTypes);
|
|
97
|
-
exports.saveWorkoutSample =
|
|
129
|
+
exports.saveWorkoutSample = WorkoutBindings.saveWorkoutSample;
|
|
98
130
|
exports.startWatchApp = modules_1.Workouts.startWatchAppWithWorkoutConfiguration.bind(modules_1.Workouts);
|
|
99
131
|
exports.isProtectedDataAvailable = modules_1.Core.isProtectedDataAvailable.bind(modules_1.Core);
|
|
100
|
-
exports.queryStateOfMindSamples =
|
|
101
|
-
exports.queryStateOfMindSamplesWithAnchor =
|
|
102
|
-
exports.saveStateOfMindSample =
|
|
132
|
+
exports.queryStateOfMindSamples = StateOfMindBindings.queryStateOfMindSamples;
|
|
133
|
+
exports.queryStateOfMindSamplesWithAnchor = StateOfMindBindings.queryStateOfMindSamplesWithAnchor;
|
|
134
|
+
exports.saveStateOfMindSample = StateOfMindBindings.saveStateOfMindSample;
|
|
103
135
|
exports.isQuantityCompatibleWithUnit = modules_1.QuantityTypes.isQuantityCompatibleWithUnit.bind(modules_1.QuantityTypes);
|
|
104
136
|
exports.isObjectTypeAvailable = modules_1.Core.isObjectTypeAvailable.bind(modules_1.Core);
|
|
105
137
|
exports.isObjectTypeAvailableAsync = modules_1.Core.isObjectTypeAvailableAsync.bind(modules_1.Core);
|
|
@@ -107,8 +139,8 @@ exports.areObjectTypesAvailable = modules_1.Core.areObjectTypesAvailable.bind(mo
|
|
|
107
139
|
exports.areObjectTypesAvailableAsync = modules_1.Core.areObjectTypesAvailableAsync.bind(modules_1.Core);
|
|
108
140
|
exports.requestMedicationsAuthorization = modules_1.Medication.requestMedicationsAuthorization.bind(modules_1.Medication);
|
|
109
141
|
exports.queryMedications = modules_1.Medication.queryMedications.bind(modules_1.Medication);
|
|
110
|
-
exports.queryMedicationEvents =
|
|
111
|
-
exports.queryMedicationEventsWithAnchor =
|
|
142
|
+
exports.queryMedicationEvents = MedicationBindings.queryMedicationEvents;
|
|
143
|
+
exports.queryMedicationEventsWithAnchor = MedicationBindings.queryMedicationEventsWithAnchor;
|
|
112
144
|
exports.currentAppSource = modules_1.Core.currentAppSource.bind(modules_1.Core);
|
|
113
145
|
exports.getBiologicalSexAsync = modules_1.Characteristics.getBiologicalSexAsync.bind(modules_1.Characteristics);
|
|
114
146
|
exports.getBloodTypeAsync = modules_1.Characteristics.getBloodTypeAsync.bind(modules_1.Characteristics);
|
|
@@ -122,6 +154,8 @@ exports.default = {
|
|
|
122
154
|
areObjectTypesAvailable: exports.areObjectTypesAvailable,
|
|
123
155
|
areObjectTypesAvailableAsync: exports.areObjectTypesAvailableAsync,
|
|
124
156
|
isQuantityCompatibleWithUnit: exports.isQuantityCompatibleWithUnit,
|
|
157
|
+
configureBackgroundTypes: exports.configureBackgroundTypes,
|
|
158
|
+
clearBackgroundTypes: exports.clearBackgroundTypes,
|
|
125
159
|
disableAllBackgroundDelivery: exports.disableAllBackgroundDelivery,
|
|
126
160
|
disableBackgroundDelivery: exports.disableBackgroundDelivery,
|
|
127
161
|
enableBackgroundDelivery: exports.enableBackgroundDelivery,
|
|
@@ -14,12 +14,24 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
exports.requestMedicationsAuthorization = exports.subscribeToCategorySamples = exports.requestPerObjectReadAuthorization = exports.useSubscribeToCategorySamples = exports.useSubscribeToQuantitySamples = exports.queryMedicationEventsWithAnchor = exports.queryMedicationEvents = exports.queryMedications = exports.currentAppSource = exports.subscribeToQuantitySamples =
|
|
17
|
+
exports.getWheelchairUseAsync = exports.getFitzpatrickSkinTypeAsync = exports.getDateOfBirthAsync = exports.getBloodTypeAsync = exports.getBiologicalSexAsync = exports.useStatisticsForQuantity = exports.useSources = exports.useIsHealthDataAvailable = exports.useHealthkitAuthorization = exports.useSubscribeToChanges = exports.useMostRecentWorkout = exports.getMostRecentWorkout = exports.saveStateOfMindSample = exports.queryCorrelationSamplesWithAnchor = exports.queryStateOfMindSamplesWithAnchor = exports.queryStateOfMindSamples = exports.startWatchApp = exports.saveWorkoutSample = exports.queryWorkoutSamplesWithAnchor = exports.queryWorkoutSamples = exports.queryElectrocardiogramSamplesWithAnchor = exports.queryElectrocardiogramSamples = exports.queryHeartbeatSeriesSamplesWithAnchor = exports.queryHeartbeatSeriesSamples = exports.saveCorrelationSample = exports.queryCorrelationSamples = exports.getWheelchairUse = exports.getFitzpatrickSkinType = exports.getDateOfBirth = exports.getBloodType = exports.getBiologicalSex = exports.areObjectTypesAvailableAsync = exports.areObjectTypesAvailable = exports.isObjectTypeAvailableAsync = exports.isObjectTypeAvailable = exports.isProtectedDataAvailable = exports.subscribeToChanges = exports.deleteObjects = exports.requestAuthorization = exports.querySources = exports.isHealthDataAvailableAsync = exports.isHealthDataAvailable = exports.getRequestStatusForAuthorization = exports.getPreferredUnits = exports.clearBackgroundTypes = exports.configureBackgroundTypes = exports.enableBackgroundDelivery = exports.disableBackgroundDelivery = exports.disableAllBackgroundDelivery = exports.authorizationStatusFor = void 0;
|
|
18
|
+
exports.requestMedicationsAuthorization = exports.subscribeToCategorySamples = exports.requestPerObjectReadAuthorization = exports.useSubscribeToCategorySamples = exports.useSubscribeToQuantitySamples = exports.queryMedicationEventsWithAnchor = exports.queryMedicationEvents = exports.queryMedications = exports.currentAppSource = exports.subscribeToQuantitySamples = void 0;
|
|
19
|
+
exports.queryQuantitySamples = queryQuantitySamples;
|
|
20
|
+
exports.queryQuantitySamplesWithAnchor = queryQuantitySamplesWithAnchor;
|
|
21
|
+
exports.queryStatisticsForQuantity = queryStatisticsForQuantity;
|
|
22
|
+
exports.queryStatisticsCollectionForQuantity = queryStatisticsCollectionForQuantity;
|
|
23
|
+
exports.queryStatisticsForQuantitySeparateBySource = queryStatisticsForQuantitySeparateBySource;
|
|
24
|
+
exports.queryStatisticsCollectionForQuantitySeparateBySource = queryStatisticsCollectionForQuantitySeparateBySource;
|
|
25
|
+
exports.saveQuantitySample = saveQuantitySample;
|
|
26
|
+
exports.isQuantityCompatibleWithUnit = isQuantityCompatibleWithUnit;
|
|
19
27
|
exports.queryCategorySamples = queryCategorySamples;
|
|
20
28
|
exports.queryCategorySamplesWithAnchor = queryCategorySamplesWithAnchor;
|
|
29
|
+
exports.saveCategorySample = saveCategorySample;
|
|
21
30
|
exports.getMostRecentCategorySample = getMostRecentCategorySample;
|
|
31
|
+
exports.getMostRecentQuantitySample = getMostRecentQuantitySample;
|
|
32
|
+
exports.getPreferredUnit = getPreferredUnit;
|
|
22
33
|
exports.useMostRecentCategorySample = useMostRecentCategorySample;
|
|
34
|
+
exports.useMostRecentQuantitySample = useMostRecentQuantitySample;
|
|
23
35
|
const react_native_1 = require("react-native");
|
|
24
36
|
const Auth_1 = require("./types/Auth");
|
|
25
37
|
const Characteristics_1 = require("./types/Characteristics");
|
|
@@ -42,6 +54,8 @@ exports.authorizationStatusFor = UnavailableFnFromModule('authorizationStatusFor
|
|
|
42
54
|
exports.disableAllBackgroundDelivery = UnavailableFnFromModule('disableAllBackgroundDelivery', Promise.resolve(false));
|
|
43
55
|
exports.disableBackgroundDelivery = UnavailableFnFromModule('disableBackgroundDelivery', Promise.resolve(false));
|
|
44
56
|
exports.enableBackgroundDelivery = UnavailableFnFromModule('enableBackgroundDelivery', Promise.resolve(false));
|
|
57
|
+
exports.configureBackgroundTypes = UnavailableFnFromModule('configureBackgroundTypes', Promise.resolve(false));
|
|
58
|
+
exports.clearBackgroundTypes = UnavailableFnFromModule('clearBackgroundTypes', Promise.resolve(false));
|
|
45
59
|
exports.getPreferredUnits = UnavailableFnFromModule('getPreferredUnits', Promise.resolve([]));
|
|
46
60
|
exports.getRequestStatusForAuthorization = UnavailableFnFromModule('getRequestStatusForAuthorization', Promise.resolve(Auth_1.AuthorizationRequestStatus.unknown));
|
|
47
61
|
exports.isHealthDataAvailable = UnavailableFnFromModule('isHealthDataAvailable', false); // Original was synchronous
|
|
@@ -64,20 +78,68 @@ exports.getDateOfBirth = UnavailableFnFromModule('getDateOfBirth', new Date(0));
|
|
|
64
78
|
exports.getFitzpatrickSkinType = UnavailableFnFromModule('getFitzpatrickSkinType', Characteristics_1.FitzpatrickSkinType.notSet);
|
|
65
79
|
exports.getWheelchairUse = UnavailableFnFromModule('getWheelchairUse', Characteristics_1.WheelchairUse.notSet);
|
|
66
80
|
// QuantityTypeModule functions
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
function queryQuantitySamples(_identifier, _options) {
|
|
82
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
83
|
+
console.warn(notAvailableError);
|
|
84
|
+
hasWarned = true;
|
|
85
|
+
}
|
|
86
|
+
return Promise.resolve([]);
|
|
87
|
+
}
|
|
88
|
+
function queryQuantitySamplesWithAnchor(_identifier, _options) {
|
|
89
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
90
|
+
console.warn(notAvailableError);
|
|
91
|
+
hasWarned = true;
|
|
92
|
+
}
|
|
93
|
+
return Promise.resolve({
|
|
94
|
+
samples: [],
|
|
95
|
+
deletedSamples: [],
|
|
96
|
+
newAnchor: '',
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function queryStatisticsForQuantity(_identifier, _statistics, _options) {
|
|
100
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
101
|
+
console.warn(notAvailableError);
|
|
102
|
+
hasWarned = true;
|
|
103
|
+
}
|
|
104
|
+
return Promise.resolve({
|
|
105
|
+
sources: [],
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function queryStatisticsCollectionForQuantity(_identifier, _statistics, _anchorDate, _intervalComponents, _options) {
|
|
109
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
110
|
+
console.warn(notAvailableError);
|
|
111
|
+
hasWarned = true;
|
|
112
|
+
}
|
|
113
|
+
return Promise.resolve([]);
|
|
114
|
+
}
|
|
115
|
+
function queryStatisticsForQuantitySeparateBySource(_identifier, _statistics, _options) {
|
|
116
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
117
|
+
console.warn(notAvailableError);
|
|
118
|
+
hasWarned = true;
|
|
119
|
+
}
|
|
120
|
+
return Promise.resolve([]);
|
|
121
|
+
}
|
|
122
|
+
function queryStatisticsCollectionForQuantitySeparateBySource(_identifier, _statistics, _anchorDate, _intervalComponents, _options) {
|
|
123
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
124
|
+
console.warn(notAvailableError);
|
|
125
|
+
hasWarned = true;
|
|
126
|
+
}
|
|
127
|
+
return Promise.resolve([]);
|
|
128
|
+
}
|
|
129
|
+
function saveQuantitySample(_identifier, _unit, _value, _start, _end, _metadata) {
|
|
130
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
131
|
+
console.warn(notAvailableError);
|
|
132
|
+
hasWarned = true;
|
|
133
|
+
}
|
|
134
|
+
return Promise.resolve(undefined);
|
|
135
|
+
}
|
|
136
|
+
function isQuantityCompatibleWithUnit(_identifier, _unit) {
|
|
137
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
138
|
+
console.warn(notAvailableError);
|
|
139
|
+
hasWarned = true;
|
|
140
|
+
}
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
81
143
|
// CategoryTypeModule functions
|
|
82
144
|
function queryCategorySamples(_categoryTypeIdentifier, _options) {
|
|
83
145
|
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
@@ -97,7 +159,13 @@ function queryCategorySamplesWithAnchor(_categoryTypeIdentifier, _options) {
|
|
|
97
159
|
newAnchor: '',
|
|
98
160
|
});
|
|
99
161
|
}
|
|
100
|
-
|
|
162
|
+
function saveCategorySample(_identifier, _value, _startDate, _endDate, _metadata) {
|
|
163
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
164
|
+
console.warn(notAvailableError);
|
|
165
|
+
hasWarned = true;
|
|
166
|
+
}
|
|
167
|
+
return Promise.resolve(undefined);
|
|
168
|
+
}
|
|
101
169
|
// CorrelationTypeModule functions
|
|
102
170
|
exports.queryCorrelationSamples = UnavailableFnFromModule('queryCorrelationSamples', Promise.resolve([]));
|
|
103
171
|
exports.saveCorrelationSample = UnavailableFnFromModule('saveCorrelationSample', Promise.resolve(undefined));
|
|
@@ -146,13 +214,23 @@ function getMostRecentCategorySample(_identifier) {
|
|
|
146
214
|
}
|
|
147
215
|
return Promise.resolve(undefined);
|
|
148
216
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
217
|
+
function getMostRecentQuantitySample(_identifier, _unit) {
|
|
218
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
219
|
+
console.warn(notAvailableError);
|
|
220
|
+
hasWarned = true;
|
|
221
|
+
}
|
|
222
|
+
return Promise.resolve(undefined);
|
|
223
|
+
}
|
|
152
224
|
exports.getMostRecentWorkout = UnavailableFnFromModule('getMostRecentWorkout',
|
|
153
225
|
// biome-ignore lint/suspicious/noExplicitAny: it works
|
|
154
226
|
Promise.resolve(undefined));
|
|
155
|
-
|
|
227
|
+
function getPreferredUnit(_quantityType) {
|
|
228
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
229
|
+
console.warn(notAvailableError);
|
|
230
|
+
hasWarned = true;
|
|
231
|
+
}
|
|
232
|
+
return Promise.resolve('count');
|
|
233
|
+
}
|
|
156
234
|
// Hooks (from original export list)
|
|
157
235
|
function useMostRecentCategorySample(_categoryTypeIdentifier) {
|
|
158
236
|
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
@@ -161,7 +239,13 @@ function useMostRecentCategorySample(_categoryTypeIdentifier) {
|
|
|
161
239
|
}
|
|
162
240
|
return undefined;
|
|
163
241
|
}
|
|
164
|
-
|
|
242
|
+
function useMostRecentQuantitySample(_identifier, _unit) {
|
|
243
|
+
if (react_native_1.Platform.OS !== 'ios' && !hasWarned) {
|
|
244
|
+
console.warn(notAvailableError);
|
|
245
|
+
hasWarned = true;
|
|
246
|
+
}
|
|
247
|
+
return undefined;
|
|
248
|
+
}
|
|
165
249
|
exports.useMostRecentWorkout = UnavailableFnFromModule('useMostRecentWorkout', undefined);
|
|
166
250
|
exports.useSubscribeToChanges = UnavailableFnFromModule('useSubscribeToChanges', undefined); // Mocking callback structure
|
|
167
251
|
exports.useHealthkitAuthorization = UnavailableFnFromModule('useHealthkitAuthorization', [
|
|
@@ -203,7 +287,9 @@ const HealthkitModule = {
|
|
|
203
287
|
isObjectTypeAvailableAsync: exports.isObjectTypeAvailableAsync,
|
|
204
288
|
areObjectTypesAvailable: exports.areObjectTypesAvailable,
|
|
205
289
|
areObjectTypesAvailableAsync: exports.areObjectTypesAvailableAsync,
|
|
206
|
-
isQuantityCompatibleWithUnit
|
|
290
|
+
isQuantityCompatibleWithUnit,
|
|
291
|
+
configureBackgroundTypes: exports.configureBackgroundTypes,
|
|
292
|
+
clearBackgroundTypes: exports.clearBackgroundTypes,
|
|
207
293
|
disableAllBackgroundDelivery: exports.disableAllBackgroundDelivery,
|
|
208
294
|
disableBackgroundDelivery: exports.disableBackgroundDelivery,
|
|
209
295
|
enableBackgroundDelivery: exports.enableBackgroundDelivery,
|
|
@@ -212,10 +298,10 @@ const HealthkitModule = {
|
|
|
212
298
|
getDateOfBirth: exports.getDateOfBirth,
|
|
213
299
|
getFitzpatrickSkinType: exports.getFitzpatrickSkinType,
|
|
214
300
|
getMostRecentCategorySample,
|
|
215
|
-
getMostRecentQuantitySample
|
|
301
|
+
getMostRecentQuantitySample,
|
|
216
302
|
getMostRecentWorkout: exports.getMostRecentWorkout,
|
|
217
303
|
getPreferredUnits: exports.getPreferredUnits,
|
|
218
|
-
getPreferredUnit
|
|
304
|
+
getPreferredUnit,
|
|
219
305
|
getRequestStatusForAuthorization: exports.getRequestStatusForAuthorization,
|
|
220
306
|
getWheelchairUse: exports.getWheelchairUse,
|
|
221
307
|
isHealthDataAvailable: exports.isHealthDataAvailable,
|
|
@@ -227,20 +313,20 @@ const HealthkitModule = {
|
|
|
227
313
|
queryHeartbeatSeriesSamplesWithAnchor: exports.queryHeartbeatSeriesSamplesWithAnchor,
|
|
228
314
|
queryElectrocardiogramSamples: exports.queryElectrocardiogramSamples,
|
|
229
315
|
queryElectrocardiogramSamplesWithAnchor: exports.queryElectrocardiogramSamplesWithAnchor,
|
|
230
|
-
queryQuantitySamples
|
|
231
|
-
queryQuantitySamplesWithAnchor
|
|
232
|
-
queryStatisticsForQuantity
|
|
233
|
-
queryStatisticsCollectionForQuantity
|
|
234
|
-
queryStatisticsForQuantitySeparateBySource
|
|
235
|
-
queryStatisticsCollectionForQuantitySeparateBySource
|
|
316
|
+
queryQuantitySamples,
|
|
317
|
+
queryQuantitySamplesWithAnchor,
|
|
318
|
+
queryStatisticsForQuantity,
|
|
319
|
+
queryStatisticsCollectionForQuantity,
|
|
320
|
+
queryStatisticsForQuantitySeparateBySource,
|
|
321
|
+
queryStatisticsCollectionForQuantitySeparateBySource,
|
|
236
322
|
queryWorkoutSamples: exports.queryWorkoutSamples,
|
|
237
323
|
queryWorkoutSamplesWithAnchor: exports.queryWorkoutSamplesWithAnchor,
|
|
238
324
|
querySources: exports.querySources,
|
|
239
325
|
requestAuthorization: exports.requestAuthorization,
|
|
240
326
|
deleteObjects: exports.deleteObjects,
|
|
241
|
-
saveCategorySample
|
|
327
|
+
saveCategorySample,
|
|
242
328
|
saveCorrelationSample: exports.saveCorrelationSample,
|
|
243
|
-
saveQuantitySample
|
|
329
|
+
saveQuantitySample,
|
|
244
330
|
saveWorkoutSample: exports.saveWorkoutSample,
|
|
245
331
|
subscribeToChanges: exports.subscribeToChanges,
|
|
246
332
|
startWatchApp: exports.startWatchApp,
|
|
@@ -260,7 +346,7 @@ const HealthkitModule = {
|
|
|
260
346
|
currentAppSource: exports.currentAppSource,
|
|
261
347
|
// Hooks
|
|
262
348
|
useMostRecentCategorySample,
|
|
263
|
-
useMostRecentQuantitySample
|
|
349
|
+
useMostRecentQuantitySample,
|
|
264
350
|
useMostRecentWorkout: exports.useMostRecentWorkout,
|
|
265
351
|
useSubscribeToChanges: exports.useSubscribeToChanges,
|
|
266
352
|
useHealthkitAuthorization: exports.useHealthkitAuthorization,
|
|
@@ -1,101 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
(function (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["eggWhite"] = 5] = "eggWhite";
|
|
23
|
-
})(CategoryValueCervicalMucusQuality || (exports.CategoryValueCervicalMucusQuality = CategoryValueCervicalMucusQuality = {}));
|
|
24
|
-
/**
|
|
25
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }
|
|
26
|
-
*/
|
|
27
|
-
var CategoryValueMenstrualFlow;
|
|
28
|
-
(function (CategoryValueMenstrualFlow) {
|
|
29
|
-
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
|
|
30
|
-
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["none"] = 5] = "none";
|
|
31
|
-
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["light"] = 2] = "light";
|
|
32
|
-
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["medium"] = 3] = "medium";
|
|
33
|
-
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["heavy"] = 4] = "heavy";
|
|
34
|
-
})(CategoryValueMenstrualFlow || (exports.CategoryValueMenstrualFlow = CategoryValueMenstrualFlow = {}));
|
|
35
|
-
/**
|
|
36
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }
|
|
37
|
-
*/
|
|
38
|
-
var CategoryValueOvulationTestResult;
|
|
39
|
-
(function (CategoryValueOvulationTestResult) {
|
|
40
|
-
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["negative"] = 1] = "negative";
|
|
41
|
-
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
|
|
42
|
-
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
|
|
43
|
-
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["estrogenSurge"] = 4] = "estrogenSurge";
|
|
44
|
-
})(CategoryValueOvulationTestResult || (exports.CategoryValueOvulationTestResult = CategoryValueOvulationTestResult = {}));
|
|
45
|
-
/**
|
|
46
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }
|
|
47
|
-
*/
|
|
48
|
-
var CategoryValueSleepAnalysis;
|
|
49
|
-
(function (CategoryValueSleepAnalysis) {
|
|
50
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
|
|
51
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepUnspecified"] = 1] = "asleepUnspecified";
|
|
52
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["awake"] = 2] = "awake";
|
|
53
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepCore"] = 3] = "asleepCore";
|
|
54
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepDeep"] = 4] = "asleepDeep";
|
|
55
|
-
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepREM"] = 5] = "asleepREM";
|
|
56
|
-
})(CategoryValueSleepAnalysis || (exports.CategoryValueSleepAnalysis = CategoryValueSleepAnalysis = {}));
|
|
57
|
-
/**
|
|
58
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges Apple Docs}
|
|
59
|
-
*/
|
|
60
|
-
var CategoryValueAppetiteChanges;
|
|
61
|
-
(function (CategoryValueAppetiteChanges) {
|
|
62
|
-
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
|
|
63
|
-
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["increased"] = 3] = "increased";
|
|
64
|
-
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
|
|
65
|
-
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["unspecified"] = 0] = "unspecified";
|
|
66
|
-
})(CategoryValueAppetiteChanges || (exports.CategoryValueAppetiteChanges = CategoryValueAppetiteChanges = {}));
|
|
67
|
-
/**
|
|
68
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence Apple Docs}
|
|
69
|
-
*/
|
|
70
|
-
var CategoryValuePresence;
|
|
71
|
-
(function (CategoryValuePresence) {
|
|
72
|
-
CategoryValuePresence[CategoryValuePresence["notPresent"] = 1] = "notPresent";
|
|
73
|
-
CategoryValuePresence[CategoryValuePresence["present"] = 0] = "present";
|
|
74
|
-
})(CategoryValuePresence || (exports.CategoryValuePresence = CategoryValuePresence = {}));
|
|
75
|
-
/**
|
|
76
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }
|
|
77
|
-
*/
|
|
78
|
-
var CategoryValueSeverity;
|
|
79
|
-
(function (CategoryValueSeverity) {
|
|
80
|
-
CategoryValueSeverity[CategoryValueSeverity["notPresent"] = 1] = "notPresent";
|
|
81
|
-
CategoryValueSeverity[CategoryValueSeverity["mild"] = 2] = "mild";
|
|
82
|
-
CategoryValueSeverity[CategoryValueSeverity["moderate"] = 3] = "moderate";
|
|
83
|
-
CategoryValueSeverity[CategoryValueSeverity["severe"] = 4] = "severe";
|
|
84
|
-
CategoryValueSeverity[CategoryValueSeverity["unspecified"] = 0] = "unspecified";
|
|
85
|
-
})(CategoryValueSeverity || (exports.CategoryValueSeverity = CategoryValueSeverity = {}));
|
|
86
|
-
/**
|
|
87
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }
|
|
88
|
-
*/
|
|
89
|
-
var CategoryValueNotApplicable;
|
|
90
|
-
(function (CategoryValueNotApplicable) {
|
|
91
|
-
CategoryValueNotApplicable[CategoryValueNotApplicable["notApplicable"] = 0] = "notApplicable";
|
|
92
|
-
})(CategoryValueNotApplicable || (exports.CategoryValueNotApplicable = CategoryValueNotApplicable = {}));
|
|
93
|
-
var CategoryValueLowCardioFitnessEvent;
|
|
94
|
-
(function (CategoryValueLowCardioFitnessEvent) {
|
|
95
|
-
CategoryValueLowCardioFitnessEvent[CategoryValueLowCardioFitnessEvent["lowFitness"] = 1] = "lowFitness";
|
|
96
|
-
})(CategoryValueLowCardioFitnessEvent || (exports.CategoryValueLowCardioFitnessEvent = CategoryValueLowCardioFitnessEvent = {}));
|
|
97
|
-
var CategoryValueAppleStandHour;
|
|
98
|
-
(function (CategoryValueAppleStandHour) {
|
|
99
|
-
CategoryValueAppleStandHour[CategoryValueAppleStandHour["stood"] = 0] = "stood";
|
|
100
|
-
CategoryValueAppleStandHour[CategoryValueAppleStandHour["idle"] = 1] = "idle";
|
|
101
|
-
})(CategoryValueAppleStandHour || (exports.CategoryValueAppleStandHour = CategoryValueAppleStandHour = {}));
|
|
3
|
+
exports.CategoryValueVaginalBleeding = exports.CategoryValueSleepAnalysis = exports.CategoryValueSeverity = exports.CategoryValueProgesteroneTestResult = exports.CategoryValuePresence = exports.CategoryValuePregnancyTestResult = exports.CategoryValueOvulationTestResult = exports.CategoryValueNotApplicable = exports.CategoryValueMenstrualFlow = exports.CategoryValueLowCardioFitnessEvent = exports.CategoryValueHeadphoneAudioExposureEvent = exports.CategoryValueEnvironmentalAudioExposureEvent = exports.CategoryValueContraceptive = exports.CategoryValueCervicalMucusQuality = exports.CategoryValueAppleWalkingSteadinessEvent = exports.CategoryValueAppleStandHour = exports.CategoryValueAppetiteChanges = void 0;
|
|
4
|
+
const healthkit_generated_1 = require("../generated/healthkit.generated");
|
|
5
|
+
Object.defineProperty(exports, "CategoryValueAppetiteChanges", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueAppetiteChanges; } });
|
|
6
|
+
Object.defineProperty(exports, "CategoryValueAppleStandHour", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueAppleStandHour; } });
|
|
7
|
+
Object.defineProperty(exports, "CategoryValueAppleWalkingSteadinessEvent", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueAppleWalkingSteadinessEvent; } });
|
|
8
|
+
Object.defineProperty(exports, "CategoryValueCervicalMucusQuality", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueCervicalMucusQuality; } });
|
|
9
|
+
Object.defineProperty(exports, "CategoryValueContraceptive", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueContraceptive; } });
|
|
10
|
+
Object.defineProperty(exports, "CategoryValueEnvironmentalAudioExposureEvent", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueEnvironmentalAudioExposureEvent; } });
|
|
11
|
+
Object.defineProperty(exports, "CategoryValueHeadphoneAudioExposureEvent", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueHeadphoneAudioExposureEvent; } });
|
|
12
|
+
Object.defineProperty(exports, "CategoryValueLowCardioFitnessEvent", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueLowCardioFitnessEvent; } });
|
|
13
|
+
Object.defineProperty(exports, "CategoryValueMenstrualFlow", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueMenstrualFlow; } });
|
|
14
|
+
Object.defineProperty(exports, "CategoryValueNotApplicable", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValue; } });
|
|
15
|
+
Object.defineProperty(exports, "CategoryValueOvulationTestResult", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueOvulationTestResult; } });
|
|
16
|
+
Object.defineProperty(exports, "CategoryValuePregnancyTestResult", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValuePregnancyTestResult; } });
|
|
17
|
+
Object.defineProperty(exports, "CategoryValuePresence", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValuePresence; } });
|
|
18
|
+
Object.defineProperty(exports, "CategoryValueProgesteroneTestResult", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueProgesteroneTestResult; } });
|
|
19
|
+
Object.defineProperty(exports, "CategoryValueSeverity", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueSeverity; } });
|
|
20
|
+
Object.defineProperty(exports, "CategoryValueSleepAnalysis", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueSleepAnalysis; } });
|
|
21
|
+
Object.defineProperty(exports, "CategoryValueVaginalBleeding", { enumerable: true, get: function () { return healthkit_generated_1.CategoryValueVaginalBleeding; } });
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkoutSwimmingLocationType = exports.WaterSalinity = exports.VO2MaxTestType = exports.UserMotionContext = exports.SwimmingStrokeStyle = exports.PhysicalEffortEstimationType = exports.HeartRateSensorLocation = exports.HeartRateRecoveryTestType = exports.DevicePlacementSide = exports.CyclingFunctionalThresholdPowerTestType = exports.BodyTemperatureSensorLocation = exports.BloodGlucoseMealTime = exports.AppleECGAlgorithmVersion = void 0;
|
|
4
|
+
var healthkit_generated_1 = require("../generated/healthkit.generated");
|
|
5
|
+
Object.defineProperty(exports, "AppleECGAlgorithmVersion", { enumerable: true, get: function () { return healthkit_generated_1.AppleECGAlgorithmVersion; } });
|
|
6
|
+
Object.defineProperty(exports, "BloodGlucoseMealTime", { enumerable: true, get: function () { return healthkit_generated_1.BloodGlucoseMealTime; } });
|
|
7
|
+
Object.defineProperty(exports, "BodyTemperatureSensorLocation", { enumerable: true, get: function () { return healthkit_generated_1.BodyTemperatureSensorLocation; } });
|
|
8
|
+
Object.defineProperty(exports, "CyclingFunctionalThresholdPowerTestType", { enumerable: true, get: function () { return healthkit_generated_1.CyclingFunctionalThresholdPowerTestType; } });
|
|
9
|
+
Object.defineProperty(exports, "DevicePlacementSide", { enumerable: true, get: function () { return healthkit_generated_1.DevicePlacementSide; } });
|
|
10
|
+
Object.defineProperty(exports, "HeartRateRecoveryTestType", { enumerable: true, get: function () { return healthkit_generated_1.HeartRateRecoveryTestType; } });
|
|
11
|
+
Object.defineProperty(exports, "HeartRateSensorLocation", { enumerable: true, get: function () { return healthkit_generated_1.HeartRateSensorLocation; } });
|
|
12
|
+
Object.defineProperty(exports, "PhysicalEffortEstimationType", { enumerable: true, get: function () { return healthkit_generated_1.PhysicalEffortEstimationType; } });
|
|
13
|
+
Object.defineProperty(exports, "SwimmingStrokeStyle", { enumerable: true, get: function () { return healthkit_generated_1.SwimmingStrokeStyle; } });
|
|
14
|
+
Object.defineProperty(exports, "UserMotionContext", { enumerable: true, get: function () { return healthkit_generated_1.UserMotionContext; } });
|
|
15
|
+
Object.defineProperty(exports, "VO2MaxTestType", { enumerable: true, get: function () { return healthkit_generated_1.VO2MaxTestType; } });
|
|
16
|
+
Object.defineProperty(exports, "WaterSalinity", { enumerable: true, get: function () { return healthkit_generated_1.WaterSalinity; } });
|
|
17
|
+
Object.defineProperty(exports, "WorkoutSwimmingLocationType", { enumerable: true, get: function () { return healthkit_generated_1.WorkoutSwimmingLocationType; } });
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AggregationStyle = exports.InsulinDeliveryReason = exports.HeartRateMotionContext = void 0;
|
|
4
|
+
const healthkit_generated_1 = require("../generated/healthkit.generated");
|
|
5
|
+
Object.defineProperty(exports, "HeartRateMotionContext", { enumerable: true, get: function () { return healthkit_generated_1.HeartRateMotionContext; } });
|
|
6
|
+
Object.defineProperty(exports, "InsulinDeliveryReason", { enumerable: true, get: function () { return healthkit_generated_1.InsulinDeliveryReason; } });
|
|
4
7
|
var AggregationStyle;
|
|
5
8
|
(function (AggregationStyle) {
|
|
6
9
|
AggregationStyle[AggregationStyle["cumulative"] = 0] = "cumulative";
|
|
@@ -8,17 +11,3 @@ var AggregationStyle;
|
|
|
8
11
|
AggregationStyle[AggregationStyle["discreteTemporallyWeighted"] = 2] = "discreteTemporallyWeighted";
|
|
9
12
|
AggregationStyle[AggregationStyle["discreteEquivalentContinuousLevel"] = 3] = "discreteEquivalentContinuousLevel";
|
|
10
13
|
})(AggregationStyle || (exports.AggregationStyle = AggregationStyle = {}));
|
|
11
|
-
/**
|
|
12
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }
|
|
13
|
-
*/
|
|
14
|
-
var InsulinDeliveryReason;
|
|
15
|
-
(function (InsulinDeliveryReason) {
|
|
16
|
-
InsulinDeliveryReason[InsulinDeliveryReason["basal"] = 1] = "basal";
|
|
17
|
-
InsulinDeliveryReason[InsulinDeliveryReason["bolus"] = 2] = "bolus";
|
|
18
|
-
})(InsulinDeliveryReason || (exports.InsulinDeliveryReason = InsulinDeliveryReason = {}));
|
|
19
|
-
var HeartRateMotionContext;
|
|
20
|
-
(function (HeartRateMotionContext) {
|
|
21
|
-
HeartRateMotionContext[HeartRateMotionContext["active"] = 2] = "active";
|
|
22
|
-
HeartRateMotionContext[HeartRateMotionContext["notSet"] = 0] = "notSet";
|
|
23
|
-
HeartRateMotionContext[HeartRateMotionContext["sedentary"] = 1] = "sedentary";
|
|
24
|
-
})(HeartRateMotionContext || (exports.HeartRateMotionContext = HeartRateMotionContext = {}));
|
|
@@ -1,35 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WeatherCondition = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(function (WeatherCondition) {
|
|
7
|
-
WeatherCondition[WeatherCondition["none"] = 0] = "none";
|
|
8
|
-
WeatherCondition[WeatherCondition["clear"] = 1] = "clear";
|
|
9
|
-
WeatherCondition[WeatherCondition["fair"] = 2] = "fair";
|
|
10
|
-
WeatherCondition[WeatherCondition["partlyCloudy"] = 3] = "partlyCloudy";
|
|
11
|
-
WeatherCondition[WeatherCondition["mostlyCloudy"] = 4] = "mostlyCloudy";
|
|
12
|
-
WeatherCondition[WeatherCondition["cloudy"] = 5] = "cloudy";
|
|
13
|
-
WeatherCondition[WeatherCondition["foggy"] = 6] = "foggy";
|
|
14
|
-
WeatherCondition[WeatherCondition["haze"] = 7] = "haze";
|
|
15
|
-
WeatherCondition[WeatherCondition["windy"] = 8] = "windy";
|
|
16
|
-
WeatherCondition[WeatherCondition["blustery"] = 9] = "blustery";
|
|
17
|
-
WeatherCondition[WeatherCondition["smoky"] = 10] = "smoky";
|
|
18
|
-
WeatherCondition[WeatherCondition["dust"] = 11] = "dust";
|
|
19
|
-
WeatherCondition[WeatherCondition["snow"] = 12] = "snow";
|
|
20
|
-
WeatherCondition[WeatherCondition["hail"] = 13] = "hail";
|
|
21
|
-
WeatherCondition[WeatherCondition["sleet"] = 14] = "sleet";
|
|
22
|
-
WeatherCondition[WeatherCondition["freezingDrizzle"] = 15] = "freezingDrizzle";
|
|
23
|
-
WeatherCondition[WeatherCondition["freezingRain"] = 16] = "freezingRain";
|
|
24
|
-
WeatherCondition[WeatherCondition["mixedRainAndHail"] = 17] = "mixedRainAndHail";
|
|
25
|
-
WeatherCondition[WeatherCondition["mixedRainAndSnow"] = 18] = "mixedRainAndSnow";
|
|
26
|
-
WeatherCondition[WeatherCondition["mixedRainAndSleet"] = 19] = "mixedRainAndSleet";
|
|
27
|
-
WeatherCondition[WeatherCondition["mixedSnowAndSleet"] = 20] = "mixedSnowAndSleet";
|
|
28
|
-
WeatherCondition[WeatherCondition["drizzle"] = 21] = "drizzle";
|
|
29
|
-
WeatherCondition[WeatherCondition["scatteredShowers"] = 22] = "scatteredShowers";
|
|
30
|
-
WeatherCondition[WeatherCondition["showers"] = 23] = "showers";
|
|
31
|
-
WeatherCondition[WeatherCondition["thunderstorms"] = 24] = "thunderstorms";
|
|
32
|
-
WeatherCondition[WeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
|
|
33
|
-
WeatherCondition[WeatherCondition["hurricane"] = 26] = "hurricane";
|
|
34
|
-
WeatherCondition[WeatherCondition["tornado"] = 27] = "tornado";
|
|
35
|
-
})(WeatherCondition || (exports.WeatherCondition = WeatherCondition = {}));
|
|
4
|
+
var healthkit_generated_1 = require("../generated/healthkit.generated");
|
|
5
|
+
Object.defineProperty(exports, "WeatherCondition", { enumerable: true, get: function () { return healthkit_generated_1.WeatherCondition; } });
|