@solutionforest/android-health-connect 0.0.0-stage → 0.3.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/AndroidHealthConnect.podspec +20 -0
  2. package/CHANGELOG.md +202 -0
  3. package/LICENSE +20 -0
  4. package/README.md +847 -2
  5. package/SECURITY.md +99 -0
  6. package/android/build.gradle +104 -0
  7. package/android/src/main/AndroidManifest.xml +4 -0
  8. package/android/src/main/java/com/androidhealthconnect/AggregateMapper.kt +521 -0
  9. package/android/src/main/java/com/androidhealthconnect/AndroidHealthConnectModule.kt +637 -0
  10. package/android/src/main/java/com/androidhealthconnect/AndroidHealthConnectPackage.kt +31 -0
  11. package/android/src/main/java/com/androidhealthconnect/AvailabilitySupport.kt +149 -0
  12. package/android/src/main/java/com/androidhealthconnect/ChangesMapper.kt +105 -0
  13. package/android/src/main/java/com/androidhealthconnect/ExtendedRecordMapper.kt +665 -0
  14. package/android/src/main/java/com/androidhealthconnect/FeatureSupport.kt +88 -0
  15. package/android/src/main/java/com/androidhealthconnect/PhrMapper.kt +187 -0
  16. package/android/src/main/java/com/androidhealthconnect/PlannedExerciseMapper.kt +242 -0
  17. package/android/src/main/java/com/androidhealthconnect/RecordMapper.kt +1222 -0
  18. package/app.plugin.js +1 -0
  19. package/docs/assets/logo.jpg +0 -0
  20. package/ios/AndroidHealthConnect.h +5 -0
  21. package/ios/AndroidHealthConnect.mm +21 -0
  22. package/lib/module/NativeAndroidHealthConnect.js +5 -0
  23. package/lib/module/NativeAndroidHealthConnect.js.map +1 -0
  24. package/lib/module/foreground.js +117 -0
  25. package/lib/module/foreground.js.map +1 -0
  26. package/lib/module/helpers.js +280 -0
  27. package/lib/module/helpers.js.map +1 -0
  28. package/lib/module/index.js +354 -0
  29. package/lib/module/index.js.map +1 -0
  30. package/lib/module/package.json +1 -0
  31. package/lib/module/types.js +392 -0
  32. package/lib/module/types.js.map +1 -0
  33. package/lib/module/upgrade.js +101 -0
  34. package/lib/module/upgrade.js.map +1 -0
  35. package/lib/typescript/package.json +1 -0
  36. package/lib/typescript/plugin/src/index.d.ts +14 -0
  37. package/lib/typescript/plugin/src/index.d.ts.map +1 -0
  38. package/lib/typescript/src/NativeAndroidHealthConnect.d.ts +95 -0
  39. package/lib/typescript/src/NativeAndroidHealthConnect.d.ts.map +1 -0
  40. package/lib/typescript/src/foreground.d.ts +43 -0
  41. package/lib/typescript/src/foreground.d.ts.map +1 -0
  42. package/lib/typescript/src/helpers.d.ts +108 -0
  43. package/lib/typescript/src/helpers.d.ts.map +1 -0
  44. package/lib/typescript/src/index.d.ts +208 -0
  45. package/lib/typescript/src/index.d.ts.map +1 -0
  46. package/lib/typescript/src/types.d.ts +1209 -0
  47. package/lib/typescript/src/types.d.ts.map +1 -0
  48. package/lib/typescript/src/upgrade.d.ts +26 -0
  49. package/lib/typescript/src/upgrade.d.ts.map +1 -0
  50. package/package.json +255 -4
  51. package/plugin/build/index.d.ts +13 -0
  52. package/plugin/build/index.js +57 -0
  53. package/plugin/src/index.ts +105 -0
  54. package/src/NativeAndroidHealthConnect.ts +133 -0
  55. package/src/foreground.ts +167 -0
  56. package/src/helpers.ts +373 -0
  57. package/src/index.tsx +623 -0
  58. package/src/types.ts +1525 -0
  59. package/src/upgrade.ts +155 -0
@@ -0,0 +1,43 @@
1
+ import type { PollUntilOptions, PollUntilResult } from './helpers';
2
+ export type PollOnForegroundOptions<T> = Omit<PollUntilOptions<T>, 'signal' | 'throwOnTimeout'> & {
3
+ /** Called with the final value of each poll (satisfied or soft timeout). */
4
+ onResult: (result: PollUntilResult<T>) => void;
5
+ /** Called when `fetch` rejects. Aborted polls are never reported. */
6
+ onError?: (error: unknown) => void;
7
+ /** Called each time a new poll starts (e.g. to show a spinner). */
8
+ onStart?: () => void;
9
+ /** Poll once right away, not only on the next resume. Default: true. */
10
+ runImmediately?: boolean;
11
+ };
12
+ export type ForegroundPoller = {
13
+ /** Abort any in-flight poll and start a new one. */
14
+ refresh: () => void;
15
+ /** Abort any in-flight poll and stop listening to AppState. */
16
+ stop: () => void;
17
+ };
18
+ /**
19
+ * Polls whenever the app becomes `active` (and once immediately), aborting the
20
+ * previous poll on background or re-entry so a stale result never overwrites
21
+ * a newer one. Timeouts are soft: `onResult` gets the last value.
22
+ */
23
+ export declare function pollOnForeground<T>(fetch: () => Promise<T>, options: PollOnForegroundOptions<T>): ForegroundPoller;
24
+ export type UseForegroundPollOptions<T> = Omit<PollOnForegroundOptions<T>, 'onResult' | 'onError' | 'onStart'> & {
25
+ /** Set false to pause (e.g. until permissions are granted). Default: true. */
26
+ enabled?: boolean;
27
+ };
28
+ export type UseForegroundPollState<T> = {
29
+ /** Latest value, kept while a new poll is running. */
30
+ value: T | undefined;
31
+ /** False when the last poll timed out before `ready` — may be a real zero. */
32
+ satisfied: boolean;
33
+ /** True while a poll is in flight. */
34
+ loading: boolean;
35
+ error: unknown;
36
+ refresh: () => void;
37
+ };
38
+ /**
39
+ * React hook around {@link pollOnForeground}. `fetch` and `ready` may be
40
+ * inline lambdas; only `enabled`, `timeoutMs` and `intervalMs` restart polling.
41
+ */
42
+ export declare function useForegroundPoll<T>(fetch: () => Promise<T>, options: UseForegroundPollOptions<T>): UseForegroundPollState<T>;
43
+ //# sourceMappingURL=foreground.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"foreground.d.ts","sourceRoot":"","sources":["../../../src/foreground.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEnE,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,IAAI,CAC3C,gBAAgB,CAAC,CAAC,CAAC,EACnB,QAAQ,GAAG,gBAAgB,CAC5B,GAAG;IACF,4EAA4E;IAC5E,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/C,qEAAqE;IACrE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,oDAAoD;IACpD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,+DAA+D;IAC/D,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACvB,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAClC,gBAAgB,CAsDlB;AAED,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAC5C,uBAAuB,CAAC,CAAC,CAAC,EAC1B,UAAU,GAAG,SAAS,GAAG,SAAS,CACnC,GAAG;IACF,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACtC,sDAAsD;IACtD,KAAK,EAAE,CAAC,GAAG,SAAS,CAAC;IACrB,8EAA8E;IAC9E,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACvB,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,sBAAsB,CAAC,CAAC,CAAC,CAiD3B"}
@@ -0,0 +1,108 @@
1
+ import type { DeletionChange, GetChangesOptions, HealthPermission, HealthRecord, ReadRecordsOptions, ReadRecordsResponse, RecordType, TimeRangeFilter, UpsertionChange } from './types';
2
+ export type EnsurePermissionsResult = {
3
+ granted: HealthPermission[];
4
+ missing: HealthPermission[];
5
+ allGranted: boolean;
6
+ };
7
+ /**
8
+ * Ensures the listed permissions are granted. By default requests any that are
9
+ * missing (shows the HC dialog). Pass `{ requestIfMissing: false }` to only check.
10
+ */
11
+ export declare function ensurePermissions(permissions: HealthPermission[], options?: {
12
+ requestIfMissing?: boolean;
13
+ }): Promise<EnsurePermissionsResult>;
14
+ /** Inclusive start / exclusive end Instant window ending at `end` (default now). */
15
+ export declare function timeRangeLastHours(hours: number, end?: Date): TimeRangeFilter;
16
+ /** Inclusive start / exclusive end Instant window ending at `end` (default now). */
17
+ export declare function timeRangeLastDays(days: number, end?: Date): TimeRangeFilter;
18
+ /**
19
+ * Local-calendar "today" from midnight to `now` (device local zone via Date).
20
+ * Useful for steps / calories dashboards.
21
+ */
22
+ export declare function timeRangeToday(now?: Date): TimeRangeFilter;
23
+ export type WaitForRecordsOptions<T extends HealthRecord> = {
24
+ recordType: RecordType;
25
+ timeRangeFilter: TimeRangeFilter;
26
+ dataOriginFilter?: string[];
27
+ /** Stop when at least this many records exist. Default: 1. Ignored if `predicate` is set. */
28
+ minCount?: number;
29
+ /** Custom stop condition (receives the latest page of records). */
30
+ predicate?: (records: T[]) => boolean;
31
+ /** Give up after this many ms. Default: 15000. */
32
+ timeoutMs?: number;
33
+ /** Poll interval. Default: 500. */
34
+ intervalMs?: number;
35
+ signal?: AbortSignal;
36
+ };
37
+ export declare class WaitTimeoutError extends Error {
38
+ constructor(message: string);
39
+ }
40
+ /** @deprecated Use {@link WaitTimeoutError}. */
41
+ export declare class WaitForRecordsTimeoutError extends WaitTimeoutError {
42
+ constructor(message: string);
43
+ }
44
+ export type PollUntilOptions<T> = {
45
+ /** Stop when this returns true. */
46
+ ready: (value: T) => boolean;
47
+ /** Give up after this many ms. Default: 15000. */
48
+ timeoutMs?: number;
49
+ /** Poll interval. Default: 500. */
50
+ intervalMs?: number;
51
+ signal?: AbortSignal;
52
+ /**
53
+ * When true (default for {@link waitUntil}), throw {@link WaitTimeoutError}.
54
+ * When false (recommended on AppState resume), return the last value with
55
+ * `satisfied: false` so the UI can keep showing 0 / stale until the next open.
56
+ */
57
+ throwOnTimeout?: boolean;
58
+ };
59
+ export type PollUntilResult<T> = {
60
+ value: T;
61
+ /** True when `ready(value)` succeeded before timeout. */
62
+ satisfied: boolean;
63
+ attempts: number;
64
+ };
65
+ /**
66
+ * Generic poller for Health Connect reads/aggregates.
67
+ *
68
+ * HC has **no push**. On real devices, the first read after resume is often
69
+ * empty / `0` until Samsung Health / Fitbit / etc. finish writing into HC —
70
+ * call this (or {@link waitForRecords}) when `AppState` becomes `active`.
71
+ */
72
+ export declare function pollUntil<T>(fetch: () => Promise<T>, options: PollUntilOptions<T>): Promise<PollUntilResult<T>>;
73
+ /**
74
+ * Like {@link pollUntil} but throws {@link WaitTimeoutError} on timeout.
75
+ */
76
+ export declare function waitUntil<T>(fetch: () => Promise<T>, options: Omit<PollUntilOptions<T>, 'throwOnTimeout'>): Promise<T>;
77
+ /**
78
+ * Polls {@link readRecords} until records appear (or `predicate` / `minCount`
79
+ * is satisfied), or until timeout. Prefer {@link pollUntil} + `aggregateRecord`
80
+ * when the UI shows a total that starts at `0` after resume.
81
+ *
82
+ * @throws {WaitForRecordsTimeoutError} when `timeoutMs` elapses
83
+ */
84
+ export declare function waitForRecords<T extends HealthRecord>(options: WaitForRecordsOptions<T>): Promise<ReadRecordsResponse<T>>;
85
+ /**
86
+ * Follows `pageToken` until exhausted (or `maxPages`). Returns a flat record list.
87
+ */
88
+ export declare function readAllRecords<T extends HealthRecord>(recordType: RecordType, options?: ReadRecordsOptions, paging?: {
89
+ maxPages?: number;
90
+ }): Promise<T[]>;
91
+ export type PullChangesResult = {
92
+ upsertionChanges: UpsertionChange[];
93
+ deletionChanges: DeletionChange[];
94
+ nextChangesToken: string;
95
+ changesTokenExpired: boolean;
96
+ pagesFetched: number;
97
+ };
98
+ /**
99
+ * Drains the changelog: loops {@link getChanges} while `hasMore`.
100
+ * Returns merged upserts/deletes and the token to persist.
101
+ *
102
+ * If `changesTokenExpired` is true, stop and backfill with {@link readRecords}
103
+ * before minting a fresh token via {@link getChangesToken}.
104
+ */
105
+ export declare function pullChanges(changesToken: string, options?: GetChangesOptions & {
106
+ maxPages?: number;
107
+ }): Promise<PullChangesResult>;
108
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/helpers.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EAEjB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,eAAe,EACf,eAAe,EAChB,MAAM,SAAS,CAAC;AAIjB,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,gBAAgB,EAAE,EAC/B,OAAO,GAAE;IAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAAO,GAC3C,OAAO,CAAC,uBAAuB,CAAC,CAkBlC;AAID,oFAAoF;AACpF,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,MAAM,EACb,GAAG,GAAE,IAAiB,GACrB,eAAe,CAMjB;AAED,oFAAoF;AACpF,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,GAAG,GAAE,IAAiB,GACrB,eAAe,CAMjB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,IAAiB,GAAG,eAAe,CAItE;AAID,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,YAAY,IAAI;IAC1D,UAAU,EAAE,UAAU,CAAC;IACvB,eAAe,EAAE,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AAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACvB,OAAO,EAAE,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,GACnD,OAAO,CAAC,CAAC,CAAC,CAGZ;AAED;;;;;;GAMG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,YAAY,EACzD,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAChC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CA2CjC;AAID;;GAEG;AACH,wBAAsB,cAAc,CAAC,CAAC,SAAS,YAAY,EACzD,UAAU,EAAE,UAAU,EACtB,OAAO,GAAE,kBAAuB,EAChC,MAAM,GAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACjC,OAAO,CAAC,CAAC,EAAE,CAAC,CAqBd;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,iBAAiB,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,iBAAiB,CAAC,CAiC5B"}
@@ -0,0 +1,208 @@
1
+ import type { HealthConnectAvailability, HealthConnectAvailabilityInfo, HealthPermission, HealthRecord, RecordType, ReadRecordsOptions, ReadRecordsResponse, InsertRecordsResponse, StepsRecord, HeartRateRecord, SleepSessionRecord, ActiveCaloriesBurnedRecord, TotalCaloriesBurnedRecord, DistanceRecord, WeightRecord, HeightRecord, BloodPressureRecord, BloodGlucoseRecord, OxygenSaturationRecord, BodyTemperatureRecord, BodyFatRecord, HydrationRecord, ExerciseSessionRecord, PlannedExerciseSessionRecord, RestingHeartRateRecord, RespiratoryRateRecord, FloorsClimbedRecord, ElevationGainedRecord, MindfulnessSessionRecord, SkinTemperatureRecord, ActivityIntensityRecord, NutritionRecord, Vo2MaxRecord, SpeedRecord, PowerRecord, StepsCadenceRecord, CyclingPedalingCadenceRecord, WheelchairPushesRecord, MenstruationFlowRecord, MenstruationPeriodRecord, OvulationTestRecord, CervicalMucusRecord, IntermenstrualBleedingRecord, SexualActivityRecord, BasalBodyTemperatureRecord, LeanBodyMassRecord, BoneMassRecord, BodyWaterMassRecord, BasalMetabolicRateRecord, HeartRateVariabilityRmssdRecord, HealthConnectFeature, FeatureStatus, MatchmakingRequest, MatchmakingPossibleResponse, CreateMedicalDataSourceRequest, MedicalDataSource, GetMedicalDataSourcesRequest, UpsertMedicalResourceRequest, MedicalResource, ReadMedicalResourcesRequest, ReadMedicalResourcesResponse, DeleteMedicalResourcesRequest, AggregateRequest, AggregateResult, AggregateGroupByDurationRequest, AggregateGroupByPeriodRequest, AggregationResultGroupedByDuration, AggregationResultGroupedByPeriod, ExerciseRouteRead, GetChangesTokenRequest, GetChangesOptions, GetChangesResponse } from './types';
2
+ export * from './types';
3
+ export { LIBRARY_VERSION, checkLibraryUpdate, compareSemver } from './upgrade';
4
+ export type { CheckLibraryUpdateOptions, LibraryUpdateInfo } from './upgrade';
5
+ export { ensurePermissions, timeRangeLastHours, timeRangeLastDays, timeRangeToday, pollUntil, waitUntil, waitForRecords, WaitTimeoutError, WaitForRecordsTimeoutError, readAllRecords, pullChanges, } from './helpers';
6
+ export type { EnsurePermissionsResult, WaitForRecordsOptions, PollUntilOptions, PollUntilResult, PullChangesResult, } from './helpers';
7
+ export { pollOnForeground, useForegroundPoll } from './foreground';
8
+ export type { PollOnForegroundOptions, ForegroundPoller, UseForegroundPollOptions, UseForegroundPollState, } from './foreground';
9
+ /**
10
+ * Returns the Health Connect availability status for this device.
11
+ *
12
+ * - `'available'` – HC is ready (`sdkStatus` 3 = SDK_AVAILABLE).
13
+ * - `'notInstalled'` – install/update HC provider (`sdkStatus` 2).
14
+ * - `'notSupported'` – OS too old, no GMS / China / HMS, or otherwise unusable (`sdkStatus` 1).
15
+ *
16
+ * Prefer {@link getHealthConnectAvailability} when you need provider / GMS details.
17
+ */
18
+ export declare function isHealthConnectAvailable(): Promise<HealthConnectAvailability>;
19
+ /**
20
+ * Detailed availability: built-in (Android 14+) vs Play APK, GMS / Play Store
21
+ * presence, raw sdkStatus, and human-readable advice (incl. China / HMS).
22
+ */
23
+ export declare function getHealthConnectAvailability(): Promise<HealthConnectAvailabilityInfo>;
24
+ /**
25
+ * Opens the Health Connect permission dialog for the supplied permissions.
26
+ * Returns the list of permissions actually granted by the user.
27
+ */
28
+ export declare function requestPermissions(permissions: HealthPermission[]): Promise<HealthPermission[]>;
29
+ /**
30
+ * Checks which of the supplied permissions are currently granted.
31
+ * Returns only the granted subset.
32
+ */
33
+ export declare function checkPermissions(permissions: HealthPermission[]): Promise<HealthPermission[]>;
34
+ /**
35
+ * True when every permission in `permissions` is currently granted.
36
+ */
37
+ export declare function hasPermissions(permissions: HealthPermission[]): Promise<boolean>;
38
+ /**
39
+ * Permissions from `permissions` that are not currently granted.
40
+ */
41
+ export declare function missingPermissions(permissions: HealthPermission[]): Promise<HealthPermission[]>;
42
+ /**
43
+ * Quick availability gate. Returns the status; when `notInstalled` and
44
+ * `openStoreIfMissing` is true (default), opens Play Store / Settings via
45
+ * {@link openHealthConnectApp}.
46
+ */
47
+ export declare function ensureAvailable(options?: {
48
+ openStoreIfMissing?: boolean;
49
+ }): Promise<HealthConnectAvailability>;
50
+ /**
51
+ * Revokes all Health Connect permissions granted to this application.
52
+ */
53
+ export declare function revokeAllPermissions(): Promise<void>;
54
+ /** Opens the Health Connect main settings screen. */
55
+ export declare function openHealthConnectSettings(): void;
56
+ /**
57
+ * Opens the Health Connect data-management / permissions screen.
58
+ * Pass your app's package name to jump directly to its permission page,
59
+ * or omit / pass an empty string to open the general management screen.
60
+ */
61
+ export declare function openHealthConnectDataManagement(packageName?: string): void;
62
+ /**
63
+ * Opens the Health Connect app.
64
+ * If the HC app is not installed, opens the Play Store listing instead.
65
+ */
66
+ export declare function openHealthConnectApp(): void;
67
+ /**
68
+ * Reads health records of a specific type.
69
+ *
70
+ * @example
71
+ * const { records } = await readRecords('Steps', {
72
+ * timeRangeFilter: { startTime: '2024-01-01T00:00:00Z', endTime: '2024-01-02T00:00:00Z' },
73
+ * });
74
+ */
75
+ export declare function readRecords<T extends HealthRecord>(recordType: RecordType, options?: ReadRecordsOptions): Promise<ReadRecordsResponse<T>>;
76
+ /**
77
+ * Inserts one or more health records into Health Connect.
78
+ * Returns the IDs assigned by Health Connect.
79
+ *
80
+ * @example
81
+ * const { recordIdsList } = await writeRecords([
82
+ * { recordType: 'Steps', count: 1000, startTime: '...', endTime: '...' },
83
+ * ]);
84
+ */
85
+ export declare function writeRecords(records: HealthRecord[]): Promise<InsertRecordsResponse>;
86
+ /**
87
+ * Updates existing Health Connect records. Each record must include
88
+ * `metadata.id` from a previous read (or insert response + re-read).
89
+ */
90
+ export declare function updateRecords(records: HealthRecord[]): Promise<void>;
91
+ /**
92
+ * Deletes all records of the given type within the supplied time range.
93
+ */
94
+ export declare function deleteRecordsByTime(recordType: RecordType, startTime: string, endTime: string): Promise<void>;
95
+ /**
96
+ * Deletes specific records by their Health Connect IDs.
97
+ */
98
+ export declare function deleteRecordsById(recordType: RecordType, recordIds: string[]): Promise<void>;
99
+ /**
100
+ * Aggregates metrics for a record type over a time range (Instant filter).
101
+ * Metric keys follow Health Connect (`COUNT_TOTAL`, `BPM_AVG`, …).
102
+ */
103
+ export declare function aggregateRecord(request: AggregateRequest): Promise<AggregateResult>;
104
+ /**
105
+ * Aggregates into fixed-duration buckets using Instant time ranges
106
+ * (avoids Android 14+ UTC wall-clock shift with LocalDateTime).
107
+ */
108
+ export declare function aggregateGroupByDuration(request: AggregateGroupByDurationRequest): Promise<AggregationResultGroupedByDuration[]>;
109
+ /**
110
+ * Aggregates into calendar period buckets (days/weeks/months/years).
111
+ * Instant inputs are converted to LocalDateTime in the device zone
112
+ * (required by Health Connect for period grouping).
113
+ */
114
+ export declare function aggregateGroupByPeriod(request: AggregateGroupByPeriodRequest): Promise<AggregationResultGroupedByPeriod[]>;
115
+ /**
116
+ * Returns a changes token for the given record types (valid ~30 days).
117
+ * Prefer one type per token so a revoked permission cannot invalidate others.
118
+ */
119
+ export declare function getChangesToken(request: GetChangesTokenRequest): Promise<string>;
120
+ /**
121
+ * Fetches upserts/deletes since `changesToken`. Loop while `hasMore`;
122
+ * persist `nextChangesToken`. If `changesTokenExpired`, backfill then mint a
123
+ * new token via {@link getChangesToken}.
124
+ *
125
+ * Optional `pageSize` (1–5000) is a soft hint for changelog page size.
126
+ */
127
+ export declare function getChanges(changesToken: string, options?: GetChangesOptions): Promise<GetChangesResponse>;
128
+ export declare const readSteps: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<StepsRecord>>;
129
+ export declare const readHeartRate: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<HeartRateRecord>>;
130
+ export declare const readSleepSessions: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<SleepSessionRecord>>;
131
+ export declare const readActiveCaloriesBurned: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<ActiveCaloriesBurnedRecord>>;
132
+ export declare const readTotalCaloriesBurned: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<TotalCaloriesBurnedRecord>>;
133
+ export declare const readDistance: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<DistanceRecord>>;
134
+ export declare const readWeight: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<WeightRecord>>;
135
+ export declare const readHeight: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<HeightRecord>>;
136
+ export declare const readBloodPressure: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BloodPressureRecord>>;
137
+ export declare const readBloodGlucose: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BloodGlucoseRecord>>;
138
+ export declare const readOxygenSaturation: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<OxygenSaturationRecord>>;
139
+ export declare const readBodyTemperature: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BodyTemperatureRecord>>;
140
+ export declare const readBodyFat: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BodyFatRecord>>;
141
+ export declare const readHydration: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<HydrationRecord>>;
142
+ export declare const readExerciseSessions: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<ExerciseSessionRecord>>;
143
+ /** Requires `getFeatureStatus('plannedExercise') === 'available'`. */
144
+ export declare const readPlannedExerciseSessions: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<PlannedExerciseSessionRecord>>;
145
+ /**
146
+ * Requests one-time consent to read a session's exercise route when
147
+ * `exerciseRoute.type === 'CONSENT_REQUIRED'`. Returns the route on grant,
148
+ * or `null` if the user denies / no route exists.
149
+ */
150
+ export declare function requestExerciseRoute(recordId: string): Promise<ExerciseRouteRead | null>;
151
+ export declare const readRestingHeartRate: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<RestingHeartRateRecord>>;
152
+ export declare const readRespiratoryRate: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<RespiratoryRateRecord>>;
153
+ export declare const readFloorsClimbed: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<FloorsClimbedRecord>>;
154
+ export declare const readElevationGained: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<ElevationGainedRecord>>;
155
+ export declare const readMindfulnessSessions: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<MindfulnessSessionRecord>>;
156
+ export declare const readSkinTemperature: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<SkinTemperatureRecord>>;
157
+ export declare const readActivityIntensity: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<ActivityIntensityRecord>>;
158
+ export declare const readNutrition: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<NutritionRecord>>;
159
+ export declare const readVo2Max: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<Vo2MaxRecord>>;
160
+ export declare const readSpeed: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<SpeedRecord>>;
161
+ export declare const readPower: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<PowerRecord>>;
162
+ export declare const readStepsCadence: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<StepsCadenceRecord>>;
163
+ export declare const readCyclingPedalingCadence: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<CyclingPedalingCadenceRecord>>;
164
+ export declare const readWheelchairPushes: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<WheelchairPushesRecord>>;
165
+ export declare const readMenstruationFlow: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<MenstruationFlowRecord>>;
166
+ export declare const readMenstruationPeriods: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<MenstruationPeriodRecord>>;
167
+ export declare const readOvulationTests: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<OvulationTestRecord>>;
168
+ export declare const readCervicalMucus: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<CervicalMucusRecord>>;
169
+ export declare const readIntermenstrualBleeding: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<IntermenstrualBleedingRecord>>;
170
+ export declare const readSexualActivity: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<SexualActivityRecord>>;
171
+ export declare const readBasalBodyTemperature: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BasalBodyTemperatureRecord>>;
172
+ export declare const readLeanBodyMass: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<LeanBodyMassRecord>>;
173
+ export declare const readBoneMass: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BoneMassRecord>>;
174
+ export declare const readBodyWaterMass: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BodyWaterMassRecord>>;
175
+ export declare const readBasalMetabolicRate: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<BasalMetabolicRateRecord>>;
176
+ export declare const readHeartRateVariabilityRmssd: (options?: ReadRecordsOptions) => Promise<ReadRecordsResponse<HeartRateVariabilityRmssdRecord>>;
177
+ /**
178
+ * Returns whether a Health Connect feature is available on this device.
179
+ * Prefer checking before using alpha-gated APIs (skin temperature, mindfulness,
180
+ * activity intensity, matchmaking, personal health record).
181
+ */
182
+ export declare function getFeatureStatus(feature: HealthConnectFeature): Promise<FeatureStatus>;
183
+ /**
184
+ * Returns whether the Matchmaking UI can show apps/devices that write data
185
+ * this app has permission to read. Requires FEATURE_MATCHMAKING.
186
+ */
187
+ export declare function checkIfMatchmakingIsPossible(options?: MatchmakingRequest): Promise<MatchmakingPossibleResponse>;
188
+ /**
189
+ * Launches the Health Connect Matchmaking flow.
190
+ * Resolves `true` when the user finishes successfully (RESULT_OK).
191
+ * Requires FEATURE_MATCHMAKING and granted read permissions for the requested types.
192
+ */
193
+ export declare function launchMatchmaking(options?: MatchmakingRequest): Promise<boolean>;
194
+ /** Creates a MedicalDataSource. Requires FEATURE_PERSONAL_HEALTH_RECORD. */
195
+ export declare function createMedicalDataSource(request: CreateMedicalDataSourceRequest): Promise<MedicalDataSource>;
196
+ /** Deletes a MedicalDataSource and all MedicalResources written under it. */
197
+ export declare function deleteMedicalDataSourceWithData(id: string): Promise<void>;
198
+ /** Lists MedicalDataSources visible to this app. */
199
+ export declare function getMedicalDataSources(request?: GetMedicalDataSourcesRequest): Promise<MedicalDataSource[]>;
200
+ /** Inserts or updates FHIR MedicalResources. */
201
+ export declare function upsertMedicalResources(requests: UpsertMedicalResourceRequest[]): Promise<MedicalResource[]>;
202
+ /**
203
+ * Reads MedicalResources by type (first page) or by pageToken (subsequent pages).
204
+ */
205
+ export declare function readMedicalResources(request: ReadMedicalResourcesRequest): Promise<ReadMedicalResourcesResponse>;
206
+ /** Deletes MedicalResources by id list or by data-source / type filter. */
207
+ export declare function deleteMedicalResources(request: DeleteMedicalResourcesRequest): Promise<void>;
208
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,yBAAyB,EACzB,6BAA6B,EAC7B,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,yBAAyB,EACzB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,4BAA4B,EAC5B,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,4BAA4B,EAC5B,sBAAsB,EACtB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,4BAA4B,EAC5B,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,+BAA+B,EAC/B,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,2BAA2B,EAC3B,8BAA8B,EAC9B,iBAAiB,EACjB,4BAA4B,EAC5B,4BAA4B,EAC5B,eAAe,EACf,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,gBAAgB,EAChB,eAAe,EACf,+BAA+B,EAC/B,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EACnB,MAAM,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