@kingstinct/react-native-healthkit 7.3.1 → 7.3.2

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.
@@ -0,0 +1,496 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _exportNames = {
7
+ authorizationStatusFor: true,
8
+ availableQuantityTypes: true,
9
+ disableAllBackgroundDelivery: true,
10
+ disableBackgroundDelivery: true,
11
+ enableBackgroundDelivery: true,
12
+ getBiologicalSex: true,
13
+ getBloodType: true,
14
+ getFitzpatrickSkinType: true,
15
+ getWheelchairUse: true,
16
+ getWorkoutRoutes: true,
17
+ isHealthDataAvailable: true,
18
+ canAccessProtectedData: true,
19
+ isProtectedDataAvailable: true,
20
+ useHealthkitAuthorization: true,
21
+ useIsHealthDataAvailable: true,
22
+ useMostRecentCategorySample: true,
23
+ useMostRecentQuantitySample: true,
24
+ useMostRecentWorkout: true,
25
+ useSources: true,
26
+ useStatisticsForQuantity: true,
27
+ useSubscribeToChanges: true,
28
+ deleteQuantitySample: true,
29
+ deleteSamples: true,
30
+ getDateOfBirth: true,
31
+ getMostRecentCategorySample: true,
32
+ getMostRecentQuantitySample: true,
33
+ getMostRecentWorkout: true,
34
+ getPreferredUnit: true,
35
+ getPreferredUnits: true,
36
+ getRequestStatusForAuthorization: true,
37
+ getWorkoutPlanById: true,
38
+ queryCategorySamples: true,
39
+ queryCategorySamplesWithAnchor: true,
40
+ queryCorrelationSamples: true,
41
+ queryHeartbeatSeriesSamples: true,
42
+ queryHeartbeatSeriesSamplesWithAnchor: true,
43
+ queryQuantitySamples: true,
44
+ queryQuantitySamplesWithAnchor: true,
45
+ querySources: true,
46
+ queryStatisticsForQuantity: true,
47
+ queryWorkouts: true,
48
+ requestAuthorization: true,
49
+ saveCategorySample: true,
50
+ saveCorrelationSample: true,
51
+ saveQuantitySample: true,
52
+ saveWorkoutRoute: true,
53
+ saveWorkoutSample: true,
54
+ subscribeToChanges: true
55
+ };
56
+ exports.default = exports.canAccessProtectedData = exports.availableQuantityTypes = exports.authorizationStatusFor = void 0;
57
+ Object.defineProperty(exports, "deleteQuantitySample", {
58
+ enumerable: true,
59
+ get: function () {
60
+ return _deleteQuantitySample.default;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, "deleteSamples", {
64
+ enumerable: true,
65
+ get: function () {
66
+ return _deleteSamples.default;
67
+ }
68
+ });
69
+ exports.getBloodType = exports.getBiologicalSex = exports.enableBackgroundDelivery = exports.disableBackgroundDelivery = exports.disableAllBackgroundDelivery = void 0;
70
+ Object.defineProperty(exports, "getDateOfBirth", {
71
+ enumerable: true,
72
+ get: function () {
73
+ return _getDateOfBirth.default;
74
+ }
75
+ });
76
+ exports.getFitzpatrickSkinType = void 0;
77
+ Object.defineProperty(exports, "getMostRecentCategorySample", {
78
+ enumerable: true,
79
+ get: function () {
80
+ return _getMostRecentCategorySample.default;
81
+ }
82
+ });
83
+ Object.defineProperty(exports, "getMostRecentQuantitySample", {
84
+ enumerable: true,
85
+ get: function () {
86
+ return _getMostRecentQuantitySample.default;
87
+ }
88
+ });
89
+ Object.defineProperty(exports, "getMostRecentWorkout", {
90
+ enumerable: true,
91
+ get: function () {
92
+ return _getMostRecentWorkout.default;
93
+ }
94
+ });
95
+ Object.defineProperty(exports, "getPreferredUnit", {
96
+ enumerable: true,
97
+ get: function () {
98
+ return _getPreferredUnit.default;
99
+ }
100
+ });
101
+ Object.defineProperty(exports, "getPreferredUnits", {
102
+ enumerable: true,
103
+ get: function () {
104
+ return _getPreferredUnits.default;
105
+ }
106
+ });
107
+ Object.defineProperty(exports, "getRequestStatusForAuthorization", {
108
+ enumerable: true,
109
+ get: function () {
110
+ return _getRequestStatusForAuthorization.default;
111
+ }
112
+ });
113
+ exports.getWheelchairUse = void 0;
114
+ Object.defineProperty(exports, "getWorkoutPlanById", {
115
+ enumerable: true,
116
+ get: function () {
117
+ return _getWorkoutPlanById.default;
118
+ }
119
+ });
120
+ exports.isProtectedDataAvailable = exports.isHealthDataAvailable = exports.getWorkoutRoutes = void 0;
121
+ Object.defineProperty(exports, "queryCategorySamples", {
122
+ enumerable: true,
123
+ get: function () {
124
+ return _queryCategorySamples.default;
125
+ }
126
+ });
127
+ Object.defineProperty(exports, "queryCategorySamplesWithAnchor", {
128
+ enumerable: true,
129
+ get: function () {
130
+ return _queryCategorySamplesWithAnchor.default;
131
+ }
132
+ });
133
+ Object.defineProperty(exports, "queryCorrelationSamples", {
134
+ enumerable: true,
135
+ get: function () {
136
+ return _queryCorrelationSamples.default;
137
+ }
138
+ });
139
+ Object.defineProperty(exports, "queryHeartbeatSeriesSamples", {
140
+ enumerable: true,
141
+ get: function () {
142
+ return _queryHeartbeatSeriesSamples.default;
143
+ }
144
+ });
145
+ Object.defineProperty(exports, "queryHeartbeatSeriesSamplesWithAnchor", {
146
+ enumerable: true,
147
+ get: function () {
148
+ return _queryHeartbeatSeriesSamplesWithAnchor.default;
149
+ }
150
+ });
151
+ Object.defineProperty(exports, "queryQuantitySamples", {
152
+ enumerable: true,
153
+ get: function () {
154
+ return _queryQuantitySamples.default;
155
+ }
156
+ });
157
+ Object.defineProperty(exports, "queryQuantitySamplesWithAnchor", {
158
+ enumerable: true,
159
+ get: function () {
160
+ return _queryQuantitySamplesWithAnchor.default;
161
+ }
162
+ });
163
+ Object.defineProperty(exports, "querySources", {
164
+ enumerable: true,
165
+ get: function () {
166
+ return _querySources.default;
167
+ }
168
+ });
169
+ Object.defineProperty(exports, "queryStatisticsForQuantity", {
170
+ enumerable: true,
171
+ get: function () {
172
+ return _queryStatisticsForQuantity.default;
173
+ }
174
+ });
175
+ Object.defineProperty(exports, "queryWorkouts", {
176
+ enumerable: true,
177
+ get: function () {
178
+ return _queryWorkouts.default;
179
+ }
180
+ });
181
+ Object.defineProperty(exports, "requestAuthorization", {
182
+ enumerable: true,
183
+ get: function () {
184
+ return _requestAuthorization.default;
185
+ }
186
+ });
187
+ Object.defineProperty(exports, "saveCategorySample", {
188
+ enumerable: true,
189
+ get: function () {
190
+ return _saveCategorySample.default;
191
+ }
192
+ });
193
+ Object.defineProperty(exports, "saveCorrelationSample", {
194
+ enumerable: true,
195
+ get: function () {
196
+ return _saveCorrelationSample.default;
197
+ }
198
+ });
199
+ Object.defineProperty(exports, "saveQuantitySample", {
200
+ enumerable: true,
201
+ get: function () {
202
+ return _saveQuantitySample.default;
203
+ }
204
+ });
205
+ Object.defineProperty(exports, "saveWorkoutRoute", {
206
+ enumerable: true,
207
+ get: function () {
208
+ return _saveWorkoutRoute.default;
209
+ }
210
+ });
211
+ Object.defineProperty(exports, "saveWorkoutSample", {
212
+ enumerable: true,
213
+ get: function () {
214
+ return _saveWorkoutSample.default;
215
+ }
216
+ });
217
+ Object.defineProperty(exports, "subscribeToChanges", {
218
+ enumerable: true,
219
+ get: function () {
220
+ return _subscribeToChanges.default;
221
+ }
222
+ });
223
+ Object.defineProperty(exports, "useHealthkitAuthorization", {
224
+ enumerable: true,
225
+ get: function () {
226
+ return _useHealthkitAuthorization.default;
227
+ }
228
+ });
229
+ Object.defineProperty(exports, "useIsHealthDataAvailable", {
230
+ enumerable: true,
231
+ get: function () {
232
+ return _useIsHealthDataAvailable.default;
233
+ }
234
+ });
235
+ Object.defineProperty(exports, "useMostRecentCategorySample", {
236
+ enumerable: true,
237
+ get: function () {
238
+ return _useMostRecentCategorySample.default;
239
+ }
240
+ });
241
+ Object.defineProperty(exports, "useMostRecentQuantitySample", {
242
+ enumerable: true,
243
+ get: function () {
244
+ return _useMostRecentQuantitySample.default;
245
+ }
246
+ });
247
+ Object.defineProperty(exports, "useMostRecentWorkout", {
248
+ enumerable: true,
249
+ get: function () {
250
+ return _useMostRecentWorkout.default;
251
+ }
252
+ });
253
+ Object.defineProperty(exports, "useSources", {
254
+ enumerable: true,
255
+ get: function () {
256
+ return _useSources.default;
257
+ }
258
+ });
259
+ Object.defineProperty(exports, "useStatisticsForQuantity", {
260
+ enumerable: true,
261
+ get: function () {
262
+ return _useStatisticsForQuantity.default;
263
+ }
264
+ });
265
+ Object.defineProperty(exports, "useSubscribeToChanges", {
266
+ enumerable: true,
267
+ get: function () {
268
+ return _useSubscribeToChanges.default;
269
+ }
270
+ });
271
+ var _reactNative = require("react-native");
272
+ var _useHealthkitAuthorization = _interopRequireDefault(require("./hooks/useHealthkitAuthorization"));
273
+ var _useIsHealthDataAvailable = _interopRequireDefault(require("./hooks/useIsHealthDataAvailable"));
274
+ var _useMostRecentCategorySample = _interopRequireDefault(require("./hooks/useMostRecentCategorySample"));
275
+ var _useMostRecentQuantitySample = _interopRequireDefault(require("./hooks/useMostRecentQuantitySample"));
276
+ var _useMostRecentWorkout = _interopRequireDefault(require("./hooks/useMostRecentWorkout"));
277
+ var _useSources = _interopRequireDefault(require("./hooks/useSources"));
278
+ var _useStatisticsForQuantity = _interopRequireDefault(require("./hooks/useStatisticsForQuantity"));
279
+ var _useSubscribeToChanges = _interopRequireDefault(require("./hooks/useSubscribeToChanges"));
280
+ var _nativeTypes = _interopRequireWildcard(require("./native-types"));
281
+ var _deleteQuantitySample = _interopRequireDefault(require("./utils/deleteQuantitySample"));
282
+ var _deleteSamples = _interopRequireDefault(require("./utils/deleteSamples"));
283
+ var _getDateOfBirth = _interopRequireDefault(require("./utils/getDateOfBirth"));
284
+ var _getMostRecentCategorySample = _interopRequireDefault(require("./utils/getMostRecentCategorySample"));
285
+ var _getMostRecentQuantitySample = _interopRequireDefault(require("./utils/getMostRecentQuantitySample"));
286
+ var _getMostRecentWorkout = _interopRequireDefault(require("./utils/getMostRecentWorkout"));
287
+ var _getPreferredUnit = _interopRequireDefault(require("./utils/getPreferredUnit"));
288
+ var _getPreferredUnits = _interopRequireDefault(require("./utils/getPreferredUnits"));
289
+ var _getRequestStatusForAuthorization = _interopRequireDefault(require("./utils/getRequestStatusForAuthorization"));
290
+ var _getWorkoutPlanById = _interopRequireDefault(require("./utils/getWorkoutPlanById"));
291
+ var _queryCategorySamples = _interopRequireDefault(require("./utils/queryCategorySamples"));
292
+ var _queryCategorySamplesWithAnchor = _interopRequireDefault(require("./utils/queryCategorySamplesWithAnchor"));
293
+ var _queryCorrelationSamples = _interopRequireDefault(require("./utils/queryCorrelationSamples"));
294
+ var _queryHeartbeatSeriesSamples = _interopRequireDefault(require("./utils/queryHeartbeatSeriesSamples"));
295
+ var _queryHeartbeatSeriesSamplesWithAnchor = _interopRequireDefault(require("./utils/queryHeartbeatSeriesSamplesWithAnchor"));
296
+ var _queryQuantitySamples = _interopRequireDefault(require("./utils/queryQuantitySamples"));
297
+ var _queryQuantitySamplesWithAnchor = _interopRequireDefault(require("./utils/queryQuantitySamplesWithAnchor"));
298
+ var _querySources = _interopRequireDefault(require("./utils/querySources"));
299
+ var _queryStatisticsForQuantity = _interopRequireDefault(require("./utils/queryStatisticsForQuantity"));
300
+ var _queryWorkouts = _interopRequireDefault(require("./utils/queryWorkouts"));
301
+ var _requestAuthorization = _interopRequireDefault(require("./utils/requestAuthorization"));
302
+ var _saveCategorySample = _interopRequireDefault(require("./utils/saveCategorySample"));
303
+ var _saveCorrelationSample = _interopRequireDefault(require("./utils/saveCorrelationSample"));
304
+ var _saveQuantitySample = _interopRequireDefault(require("./utils/saveQuantitySample"));
305
+ var _saveWorkoutRoute = _interopRequireDefault(require("./utils/saveWorkoutRoute"));
306
+ var _saveWorkoutSample = _interopRequireDefault(require("./utils/saveWorkoutSample"));
307
+ var _subscribeToChanges = _interopRequireDefault(require("./utils/subscribeToChanges"));
308
+ var _types = require("./types");
309
+ Object.keys(_types).forEach(function (key) {
310
+ if (key === "default" || key === "__esModule") return;
311
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
312
+ if (key in exports && exports[key] === _types[key]) return;
313
+ Object.defineProperty(exports, key, {
314
+ enumerable: true,
315
+ get: function () {
316
+ return _types[key];
317
+ }
318
+ });
319
+ });
320
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
321
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
322
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
323
+ const currentMajorVersionIOS = _reactNative.Platform.OS === 'ios' ? parseInt(_reactNative.Platform.Version, 10) : 0;
324
+ const allQuantityTypesList = [...Object.values(_nativeTypes.HKQuantityTypeIdentifier)];
325
+ const availableQuantityTypes = function () {
326
+ let majorVersionIOS = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : currentMajorVersionIOS;
327
+ if (majorVersionIOS >= 17) {
328
+ return allQuantityTypesList;
329
+ }
330
+
331
+ // remove types that are not available before iOS 17
332
+ return allQuantityTypesList.filter(type => ![_nativeTypes.HKQuantityTypeIdentifier.cyclingCadence, _nativeTypes.HKQuantityTypeIdentifier.cyclingFunctionalThresholdPower, _nativeTypes.HKQuantityTypeIdentifier.cyclingPower, _nativeTypes.HKQuantityTypeIdentifier.cyclingSpeed, _nativeTypes.HKQuantityTypeIdentifier.physicalEffort, _nativeTypes.HKQuantityTypeIdentifier.timeInDaylight].includes(type));
333
+ };
334
+ exports.availableQuantityTypes = availableQuantityTypes;
335
+ const authorizationStatusFor = _nativeTypes.default.authorizationStatusFor.bind(_nativeTypes.default);
336
+ exports.authorizationStatusFor = authorizationStatusFor;
337
+ const isHealthDataAvailable = _nativeTypes.default.isHealthDataAvailable.bind(_nativeTypes.default);
338
+ // Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable)
339
+ exports.isHealthDataAvailable = isHealthDataAvailable;
340
+ const canAccessProtectedData = _nativeTypes.default.canAccessProtectedData.bind(_nativeTypes.default);
341
+ exports.canAccessProtectedData = canAccessProtectedData;
342
+ const disableBackgroundDelivery = _nativeTypes.default.disableBackgroundDelivery.bind(_nativeTypes.default);
343
+ exports.disableBackgroundDelivery = disableBackgroundDelivery;
344
+ const disableAllBackgroundDelivery = _nativeTypes.default.disableAllBackgroundDelivery.bind(_nativeTypes.default);
345
+ exports.disableAllBackgroundDelivery = disableAllBackgroundDelivery;
346
+ const enableBackgroundDelivery = _nativeTypes.default.enableBackgroundDelivery.bind(_nativeTypes.default);
347
+ exports.enableBackgroundDelivery = enableBackgroundDelivery;
348
+ const getBiologicalSex = _nativeTypes.default.getBiologicalSex.bind(_nativeTypes.default);
349
+ exports.getBiologicalSex = getBiologicalSex;
350
+ const getFitzpatrickSkinType = _nativeTypes.default.getFitzpatrickSkinType.bind(_nativeTypes.default);
351
+ exports.getFitzpatrickSkinType = getFitzpatrickSkinType;
352
+ const getWheelchairUse = _nativeTypes.default.getWheelchairUse.bind(_nativeTypes.default);
353
+ exports.getWheelchairUse = getWheelchairUse;
354
+ const getBloodType = _nativeTypes.default.getBloodType.bind(_nativeTypes.default);
355
+ exports.getBloodType = getBloodType;
356
+ const getWorkoutRoutes = _nativeTypes.default.getWorkoutRoutes.bind(_nativeTypes.default);
357
+
358
+ /**
359
+ * @see {@link https://developer.apple.com/documentation/healthkit/about_the_healthkit_framework About the HealthKit Framework (Apple Docs)}
360
+ */
361
+ exports.getWorkoutRoutes = getWorkoutRoutes;
362
+ var _default = {
363
+ /**
364
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus authorizationStatus(for:) (Apple Docs) }
365
+ * @see {@link https://developer.apple.com/documentation/healthkit/authorizing_access_to_health_data Authorizing access to health data (Apple Docs) }
366
+ */
367
+ authorizationStatusFor,
368
+ /**
369
+ *
370
+ * @returns All available quantity types for the current iOS version (currently excluding types that are not available before iOS 17)
371
+ */
372
+ availableQuantityTypes,
373
+ /**
374
+ * @description By default, HealthKit data is available on iOS and watchOS. HealthKit data is also available on iPadOS 17 or later. However, devices running in an enterprise environment may restrict access to HealthKit data.
375
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable isHealthDataAvailable() (Apple Docs)}
376
+ * @returns {boolean} true if HealthKit is available; otherwise, false.
377
+ */
378
+ isHealthDataAvailable,
379
+ /**
380
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614181-isprotecteddataavailable isProtectedDataAvailable() (Apple Docs)}
381
+ * @see {@link https://developer.apple.com/documentation/healthkit/protecting_user_privacy#3705074 Protecting User Privacy - Access encrypted data (Apple Docs)}
382
+ * @returns {boolean} A Boolean value that indicates whether content protection is active.
383
+ */
384
+ isProtectedDataAvailable: canAccessProtectedData,
385
+ // Todo [>8]: Remove to align with Apple function name (isProtectedDataAvailable)
386
+ /**
387
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614181-isprotecteddataavailable isProtectedDataAvailable() (Apple Docs)}
388
+ * @see {@link https://developer.apple.com/documentation/healthkit/protecting_user_privacy#3705074 Protecting User Privacy - Access encrypted data (Apple Docs)}
389
+ * @deprecated Use {@link isProtectedDataAvailable} instead. Will be removed in next major version.
390
+ * @returns {boolean} A Boolean value that indicates whether content protection is active.
391
+ */
392
+ canAccessProtectedData,
393
+ /**
394
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery disableAllBackgroundDelivery(completion:) (Apple Docs)}
395
+ */
396
+ disableAllBackgroundDelivery,
397
+ /**
398
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery disableBackgroundDelivery(for:withCompletion:) (Apple Docs)}
399
+ */
400
+ disableBackgroundDelivery,
401
+ /**
402
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery enableBackgroundDelivery(for:frequency:withCompletion:) (Apple Docs)}
403
+ */
404
+ enableBackgroundDelivery,
405
+ // simple convenience getters
406
+ /**
407
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614171-biologicalsex biologicalSex() (Apple Docs)}
408
+ */
409
+ getBiologicalSex,
410
+ /**
411
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614161-fitzpatrickskintype fitzpatrickSkinType() (Apple Docs)}
412
+ */
413
+ getFitzpatrickSkinType,
414
+ /**
415
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1648356-wheelchairuse wheelchairUse() (Apple Docs)}
416
+ */
417
+ getWheelchairUse,
418
+ /**
419
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614164-bloodtype bloodType() (Apple Docs)}
420
+ */
421
+ getBloodType,
422
+ /**
423
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1648357-dateofbirthcomponents dateOfBirthComponents() (Apple Docs)}
424
+ */
425
+ getDateOfBirth: _getDateOfBirth.default,
426
+ getMostRecentQuantitySample: _getMostRecentQuantitySample.default,
427
+ getMostRecentCategorySample: _getMostRecentCategorySample.default,
428
+ getMostRecentWorkout: _getMostRecentWorkout.default,
429
+ /**
430
+ * @see {@link https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/reading_route_data Reading route data (Apple Docs)}
431
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutequery HKWorkoutRouteQuery (Apple Docs)}
432
+ */
433
+ getWorkoutRoutes,
434
+ getWorkoutPlanById: _getWorkoutPlanById.default,
435
+ getPreferredUnit: _getPreferredUnit.default,
436
+ getPreferredUnits: _getPreferredUnits.default,
437
+ getRequestStatusForAuthorization: _getRequestStatusForAuthorization.default,
438
+ // query methods
439
+ queryCategorySamples: _queryCategorySamples.default,
440
+ queryCategorySamplesWithAnchor: _queryCategorySamplesWithAnchor.default,
441
+ queryCorrelationSamples: _queryCorrelationSamples.default,
442
+ queryHeartbeatSeriesSamples: _queryHeartbeatSeriesSamples.default,
443
+ queryHeartbeatSeriesSamplesWithAnchor: _queryHeartbeatSeriesSamplesWithAnchor.default,
444
+ queryQuantitySamples: _queryQuantitySamples.default,
445
+ queryQuantitySamplesWithAnchor: _queryQuantitySamplesWithAnchor.default,
446
+ queryStatisticsForQuantity: _queryStatisticsForQuantity.default,
447
+ queryWorkouts: _queryWorkouts.default,
448
+ querySources: _querySources.default,
449
+ requestAuthorization: _requestAuthorization.default,
450
+ // delete methods
451
+ deleteQuantitySample: _deleteQuantitySample.default,
452
+ deleteSamples: _deleteSamples.default,
453
+ // save methods
454
+ /**
455
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614168-savecategorysample save(_:withCompletion:) (Apple Docs)}
456
+ * @see {@link https://developer.apple.com/documentation/healthkit/saving_data_to_healthkit Saving data to HealthKit (Apple Docs)}
457
+ */
458
+ saveCategorySample: _saveCategorySample.default,
459
+ saveCorrelationSample: _saveCorrelationSample.default,
460
+ saveQuantitySample: _saveQuantitySample.default,
461
+ saveWorkoutSample: _saveWorkoutSample.default,
462
+ saveWorkoutRoute: _saveWorkoutRoute.default,
463
+ // subscriptions
464
+ subscribeToChanges: _subscribeToChanges.default,
465
+ /**
466
+ * @returns the most recent sample for the given category type.
467
+ */
468
+ useMostRecentCategorySample: _useMostRecentCategorySample.default,
469
+ /**
470
+ * @returns the most recent sample for the given quantity type.
471
+ */
472
+ useMostRecentQuantitySample: _useMostRecentQuantitySample.default,
473
+ /**
474
+ * @returns the most recent workout sample.
475
+ */
476
+ useMostRecentWorkout: _useMostRecentWorkout.default,
477
+ useSubscribeToChanges: _useSubscribeToChanges.default,
478
+ /**
479
+ * @description By default, HealthKit data is available on iOS and watchOS. HealthKit data is also available on iPadOS 17 or later. However, devices running in an enterprise environment may restrict access to HealthKit data.
480
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs}
481
+ * @returns {boolean | null} true if HealthKit is available; otherwise, false. null while initializing.
482
+ */
483
+ useIsHealthDataAvailable: _useIsHealthDataAvailable.default,
484
+ /**
485
+ * @description Hook to retrieve the current authorization status for the given types, and request authorization if needed.
486
+ * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs - requestAuthorization}
487
+ * @see {@link https://developer.apple.com/documentation/healthkit/authorizing_access_to_health_data Apple Docs - Authorizing access to health data}
488
+ */
489
+ useHealthkitAuthorization: _useHealthkitAuthorization.default,
490
+ useSources: _useSources.default,
491
+ useStatisticsForQuantity: _useStatisticsForQuantity.default
492
+ };
493
+ exports.default = _default;
494
+ const isProtectedDataAvailable = canAccessProtectedData;
495
+ exports.isProtectedDataAvailable = isProtectedDataAvailable;
496
+ //# sourceMappingURL=index.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_useHealthkitAuthorization","_interopRequireDefault","_useIsHealthDataAvailable","_useMostRecentCategorySample","_useMostRecentQuantitySample","_useMostRecentWorkout","_useSources","_useStatisticsForQuantity","_useSubscribeToChanges","_nativeTypes","_interopRequireWildcard","_deleteQuantitySample","_deleteSamples","_getDateOfBirth","_getMostRecentCategorySample","_getMostRecentQuantitySample","_getMostRecentWorkout","_getPreferredUnit","_getPreferredUnits","_getRequestStatusForAuthorization","_getWorkoutPlanById","_queryCategorySamples","_queryCategorySamplesWithAnchor","_queryCorrelationSamples","_queryHeartbeatSeriesSamples","_queryHeartbeatSeriesSamplesWithAnchor","_queryQuantitySamples","_queryQuantitySamplesWithAnchor","_querySources","_queryStatisticsForQuantity","_queryWorkouts","_requestAuthorization","_saveCategorySample","_saveCorrelationSample","_saveQuantitySample","_saveWorkoutRoute","_saveWorkoutSample","_subscribeToChanges","_types","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","currentMajorVersionIOS","Platform","OS","parseInt","Version","allQuantityTypesList","values","HKQuantityTypeIdentifier","availableQuantityTypes","majorVersionIOS","arguments","length","undefined","filter","type","cyclingCadence","cyclingFunctionalThresholdPower","cyclingPower","cyclingSpeed","physicalEffort","timeInDaylight","includes","authorizationStatusFor","Native","bind","isHealthDataAvailable","canAccessProtectedData","disableBackgroundDelivery","disableAllBackgroundDelivery","enableBackgroundDelivery","getBiologicalSex","getFitzpatrickSkinType","getWheelchairUse","getBloodType","getWorkoutRoutes","_default","isProtectedDataAvailable","getDateOfBirth","getMostRecentQuantitySample","getMostRecentCategorySample","getMostRecentWorkout","getWorkoutPlanById","getPreferredUnit","getPreferredUnits","getRequestStatusForAuthorization","queryCategorySamples","queryCategorySamplesWithAnchor","queryCorrelationSamples","queryHeartbeatSeriesSamples","queryHeartbeatSeriesSamplesWithAnchor","queryQuantitySamples","queryQuantitySamplesWithAnchor","queryStatisticsForQuantity","queryWorkouts","querySources","requestAuthorization","deleteQuantitySample","deleteSamples","saveCategorySample","saveCorrelationSample","saveQuantitySample","saveWorkoutSample","saveWorkoutRoute","subscribeToChanges","useMostRecentCategorySample","useMostRecentQuantitySample","useMostRecentWorkout","useSubscribeToChanges","useIsHealthDataAvailable","useHealthkitAuthorization","useSources","useStatisticsForQuantity"],"sources":["index.ios.tsx"],"sourcesContent":["import { Platform } from 'react-native'\n\nimport useHealthkitAuthorization from './hooks/useHealthkitAuthorization'\nimport useIsHealthDataAvailable from './hooks/useIsHealthDataAvailable'\nimport useMostRecentCategorySample from './hooks/useMostRecentCategorySample'\nimport useMostRecentQuantitySample from './hooks/useMostRecentQuantitySample'\nimport useMostRecentWorkout from './hooks/useMostRecentWorkout'\nimport useSources from './hooks/useSources'\nimport useStatisticsForQuantity from './hooks/useStatisticsForQuantity'\nimport useSubscribeToChanges from './hooks/useSubscribeToChanges'\nimport Native, { HKQuantityTypeIdentifier } from './native-types'\nimport deleteQuantitySample from './utils/deleteQuantitySample'\nimport deleteSamples from './utils/deleteSamples'\nimport getDateOfBirth from './utils/getDateOfBirth'\nimport getMostRecentCategorySample from './utils/getMostRecentCategorySample'\nimport getMostRecentQuantitySample from './utils/getMostRecentQuantitySample'\nimport getMostRecentWorkout from './utils/getMostRecentWorkout'\nimport getPreferredUnit from './utils/getPreferredUnit'\nimport getPreferredUnits from './utils/getPreferredUnits'\nimport getRequestStatusForAuthorization from './utils/getRequestStatusForAuthorization'\nimport getWorkoutPlanById from './utils/getWorkoutPlanById'\nimport queryCategorySamples from './utils/queryCategorySamples'\nimport queryCategorySamplesWithAnchor from './utils/queryCategorySamplesWithAnchor'\nimport queryCorrelationSamples from './utils/queryCorrelationSamples'\nimport queryHeartbeatSeriesSamples from './utils/queryHeartbeatSeriesSamples'\nimport queryHeartbeatSeriesSamplesWithAnchor from './utils/queryHeartbeatSeriesSamplesWithAnchor'\nimport queryQuantitySamples from './utils/queryQuantitySamples'\nimport queryQuantitySamplesWithAnchor from './utils/queryQuantitySamplesWithAnchor'\nimport querySources from './utils/querySources'\nimport queryStatisticsForQuantity from './utils/queryStatisticsForQuantity'\nimport queryWorkouts from './utils/queryWorkouts'\nimport requestAuthorization from './utils/requestAuthorization'\nimport saveCategorySample from './utils/saveCategorySample'\nimport saveCorrelationSample from './utils/saveCorrelationSample'\nimport saveQuantitySample from './utils/saveQuantitySample'\nimport saveWorkoutRoute from './utils/saveWorkoutRoute'\nimport saveWorkoutSample from './utils/saveWorkoutSample'\nimport subscribeToChanges from './utils/subscribeToChanges'\n\nconst currentMajorVersionIOS = Platform.OS === 'ios' ? parseInt(Platform.Version, 10) : 0\n\nconst allQuantityTypesList = [...Object.values(HKQuantityTypeIdentifier)]\n\nconst availableQuantityTypes = (majorVersionIOS = currentMajorVersionIOS) => {\n if (majorVersionIOS >= 17) {\n return allQuantityTypesList\n }\n\n // remove types that are not available before iOS 17\n return allQuantityTypesList.filter((type) => ![\n HKQuantityTypeIdentifier.cyclingCadence,\n HKQuantityTypeIdentifier.cyclingFunctionalThresholdPower,\n HKQuantityTypeIdentifier.cyclingPower,\n HKQuantityTypeIdentifier.cyclingSpeed,\n HKQuantityTypeIdentifier.physicalEffort,\n HKQuantityTypeIdentifier.timeInDaylight,\n ].includes(type))\n}\n\nconst authorizationStatusFor = Native.authorizationStatusFor.bind(Native)\nconst isHealthDataAvailable = Native.isHealthDataAvailable.bind(Native)\n// Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable)\nconst canAccessProtectedData = Native.canAccessProtectedData.bind(Native)\nconst disableBackgroundDelivery = Native.disableBackgroundDelivery.bind(Native)\nconst disableAllBackgroundDelivery = Native.disableAllBackgroundDelivery.bind(Native)\nconst enableBackgroundDelivery = Native.enableBackgroundDelivery.bind(Native)\nconst getBiologicalSex = Native.getBiologicalSex.bind(Native)\nconst getFitzpatrickSkinType = Native.getFitzpatrickSkinType.bind(Native)\nconst getWheelchairUse = Native.getWheelchairUse.bind(Native)\nconst getBloodType = Native.getBloodType.bind(Native)\nconst getWorkoutRoutes = Native.getWorkoutRoutes.bind(Native)\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/about_the_healthkit_framework About the HealthKit Framework (Apple Docs)}\n */\nexport default {\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus authorizationStatus(for:) (Apple Docs) }\n * @see {@link https://developer.apple.com/documentation/healthkit/authorizing_access_to_health_data Authorizing access to health data (Apple Docs) }\n */\n authorizationStatusFor,\n\n /**\n *\n * @returns All available quantity types for the current iOS version (currently excluding types that are not available before iOS 17)\n */\n availableQuantityTypes,\n\n /**\n * @description By default, HealthKit data is available on iOS and watchOS. HealthKit data is also available on iPadOS 17 or later. However, devices running in an enterprise environment may restrict access to HealthKit data.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable isHealthDataAvailable() (Apple Docs)}\n * @returns {boolean} true if HealthKit is available; otherwise, false.\n */\n isHealthDataAvailable,\n\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614181-isprotecteddataavailable isProtectedDataAvailable() (Apple Docs)}\n * @see {@link https://developer.apple.com/documentation/healthkit/protecting_user_privacy#3705074 Protecting User Privacy - Access encrypted data (Apple Docs)}\n * @returns {boolean} A Boolean value that indicates whether content protection is active.\n */\n isProtectedDataAvailable: canAccessProtectedData,\n\n // Todo [>8]: Remove to align with Apple function name (isProtectedDataAvailable)\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614181-isprotecteddataavailable isProtectedDataAvailable() (Apple Docs)}\n * @see {@link https://developer.apple.com/documentation/healthkit/protecting_user_privacy#3705074 Protecting User Privacy - Access encrypted data (Apple Docs)}\n * @deprecated Use {@link isProtectedDataAvailable} instead. Will be removed in next major version.\n * @returns {boolean} A Boolean value that indicates whether content protection is active.\n */\n canAccessProtectedData,\n\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery disableAllBackgroundDelivery(completion:) (Apple Docs)}\n */\n disableAllBackgroundDelivery,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery disableBackgroundDelivery(for:withCompletion:) (Apple Docs)}\n */\n disableBackgroundDelivery,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery enableBackgroundDelivery(for:frequency:withCompletion:) (Apple Docs)}\n */\n enableBackgroundDelivery,\n\n // simple convenience getters\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614171-biologicalsex biologicalSex() (Apple Docs)}\n */\n getBiologicalSex,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614161-fitzpatrickskintype fitzpatrickSkinType() (Apple Docs)}\n */\n getFitzpatrickSkinType,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1648356-wheelchairuse wheelchairUse() (Apple Docs)}\n */\n getWheelchairUse,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614164-bloodtype bloodType() (Apple Docs)}\n */\n getBloodType,\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1648357-dateofbirthcomponents dateOfBirthComponents() (Apple Docs)}\n */\n getDateOfBirth,\n\n getMostRecentQuantitySample,\n getMostRecentCategorySample,\n getMostRecentWorkout,\n\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/workouts_and_activity_rings/reading_route_data Reading route data (Apple Docs)}\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutequery HKWorkoutRouteQuery (Apple Docs)}\n */\n getWorkoutRoutes,\n getWorkoutPlanById,\n\n getPreferredUnit,\n getPreferredUnits,\n getRequestStatusForAuthorization,\n\n // query methods\n queryCategorySamples,\n queryCategorySamplesWithAnchor,\n queryCorrelationSamples,\n queryHeartbeatSeriesSamples,\n queryHeartbeatSeriesSamplesWithAnchor,\n queryQuantitySamples,\n queryQuantitySamplesWithAnchor,\n queryStatisticsForQuantity,\n queryWorkouts,\n querySources,\n\n requestAuthorization,\n\n // delete methods\n deleteQuantitySample,\n deleteSamples,\n\n // save methods\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614168-savecategorysample save(_:withCompletion:) (Apple Docs)}\n * @see {@link https://developer.apple.com/documentation/healthkit/saving_data_to_healthkit Saving data to HealthKit (Apple Docs)}\n */\n saveCategorySample,\n saveCorrelationSample,\n saveQuantitySample,\n saveWorkoutSample,\n saveWorkoutRoute,\n\n // subscriptions\n subscribeToChanges,\n\n /**\n * @returns the most recent sample for the given category type.\n */\n useMostRecentCategorySample,\n /**\n * @returns the most recent sample for the given quantity type.\n */\n useMostRecentQuantitySample,\n /**\n * @returns the most recent workout sample.\n */\n useMostRecentWorkout,\n useSubscribeToChanges,\n /**\n * @description By default, HealthKit data is available on iOS and watchOS. HealthKit data is also available on iPadOS 17 or later. However, devices running in an enterprise environment may restrict access to HealthKit data.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs}\n * @returns {boolean | null} true if HealthKit is available; otherwise, false. null while initializing.\n */\n useIsHealthDataAvailable,\n /**\n * @description Hook to retrieve the current authorization status for the given types, and request authorization if needed.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs - requestAuthorization}\n * @see {@link https://developer.apple.com/documentation/healthkit/authorizing_access_to_health_data Apple Docs - Authorizing access to health data}\n */\n useHealthkitAuthorization,\n useSources,\n useStatisticsForQuantity,\n}\n\nconst isProtectedDataAvailable = canAccessProtectedData\n\nexport {\n authorizationStatusFor,\n availableQuantityTypes,\n disableAllBackgroundDelivery,\n disableBackgroundDelivery,\n enableBackgroundDelivery,\n getBiologicalSex,\n getBloodType,\n getDateOfBirth,\n getFitzpatrickSkinType,\n getMostRecentCategorySample,\n getMostRecentQuantitySample,\n getMostRecentWorkout,\n getPreferredUnit,\n getPreferredUnits,\n getRequestStatusForAuthorization,\n getWheelchairUse,\n getWorkoutRoutes,\n isHealthDataAvailable,\n queryCategorySamples,\n queryCategorySamplesWithAnchor,\n queryCorrelationSamples,\n queryHeartbeatSeriesSamples,\n queryHeartbeatSeriesSamplesWithAnchor,\n queryQuantitySamples,\n queryQuantitySamplesWithAnchor,\n queryStatisticsForQuantity,\n queryWorkouts,\n querySources,\n requestAuthorization,\n deleteQuantitySample,\n deleteSamples,\n getWorkoutPlanById,\n saveCategorySample,\n saveCorrelationSample,\n saveQuantitySample,\n saveWorkoutSample,\n saveWorkoutRoute,\n subscribeToChanges,\n useMostRecentCategorySample,\n useMostRecentQuantitySample,\n useMostRecentWorkout,\n useSubscribeToChanges,\n useHealthkitAuthorization,\n useIsHealthDataAvailable,\n useSources,\n useStatisticsForQuantity,\n canAccessProtectedData,\n isProtectedDataAvailable,\n}\n\nexport * from './types'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,0BAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,4BAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,4BAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,qBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,WAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,yBAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,sBAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,YAAA,GAAAC,uBAAA,CAAAX,OAAA;AACA,IAAAY,qBAAA,GAAAV,sBAAA,CAAAF,OAAA;AACA,IAAAa,cAAA,GAAAX,sBAAA,CAAAF,OAAA;AACA,IAAAc,eAAA,GAAAZ,sBAAA,CAAAF,OAAA;AACA,IAAAe,4BAAA,GAAAb,sBAAA,CAAAF,OAAA;AACA,IAAAgB,4BAAA,GAAAd,sBAAA,CAAAF,OAAA;AACA,IAAAiB,qBAAA,GAAAf,sBAAA,CAAAF,OAAA;AACA,IAAAkB,iBAAA,GAAAhB,sBAAA,CAAAF,OAAA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