@ovok/native 1.5.2 → 1.5.3
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/lib/commonjs/modules/background-sync/android-background-sync.js +35 -2
- package/lib/commonjs/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js +80 -88
- package/lib/commonjs/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js +95 -40
- package/lib/commonjs/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/android/android-health-sync.js +1 -1
- package/lib/commonjs/modules/data-sync/components/android/android-health-sync.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js +94 -12
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-sync.js +1 -1
- package/lib/commonjs/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
- package/lib/commonjs/modules/data-sync/index.js +11 -0
- package/lib/commonjs/modules/data-sync/index.js.map +1 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-state-manager.js +15 -1
- package/lib/commonjs/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
- package/lib/commonjs/modules/data-sync/types/health-authorization-status.js +6 -0
- package/lib/commonjs/modules/data-sync/types/health-authorization-status.js.map +1 -0
- package/lib/module/modules/background-sync/android-background-sync.js +33 -1
- package/lib/module/modules/background-sync/android-background-sync.js.map +1 -1
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js +81 -89
- package/lib/module/modules/bt-management/constants/measurement-field-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js +95 -40
- package/lib/module/modules/data-sync/components/android/android-health-connect-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-sync.js +1 -1
- package/lib/module/modules/data-sync/components/android/android-health-sync.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js +95 -13
- package/lib/module/modules/data-sync/components/apple/apple-health-authorization-provider.js.map +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-sync.js +1 -1
- package/lib/module/modules/data-sync/components/apple/apple-health-sync.js.map +1 -1
- package/lib/module/modules/data-sync/index.js +1 -0
- package/lib/module/modules/data-sync/index.js.map +1 -1
- package/lib/module/modules/data-sync/services/managers/sync-state-manager.js +15 -1
- package/lib/module/modules/data-sync/services/managers/sync-state-manager.js.map +1 -1
- package/lib/module/modules/data-sync/types/health-authorization-status.js +4 -0
- package/lib/module/modules/data-sync/types/health-authorization-status.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts +24 -1
- package/lib/typescript/commonjs/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/android/android-health-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/components/data-sync.d.ts +2 -2
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-progress-manager.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/android-health-connect-authorization-provider-props.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/android-health-connect-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +5 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts +24 -1
- package/lib/typescript/module/src/modules/background-sync/android-background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-connect-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/android/android-health-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-authorization-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/components/data-sync.d.ts +2 -2
- package/lib/typescript/module/src/modules/data-sync/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-progress-manager.d.ts +1 -1
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts +1 -0
- package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/android-health-connect-authorization-provider-props.d.ts +3 -0
- package/lib/typescript/module/src/modules/data-sync/types/android-health-connect-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts +5 -1
- package/lib/typescript/module/src/modules/data-sync/types/apple-health-authorization-provider-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts +15 -0
- package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -3,4 +3,5 @@ export * from "./types/apple-health-sync-props";
|
|
|
3
3
|
export * from "./components/sync-progress-list/sync-progress-list";
|
|
4
4
|
export * from "./types/sync-progress";
|
|
5
5
|
export * from "./types/android-health-sync-props";
|
|
6
|
+
export * from "./types/health-authorization-status";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC"}
|
package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-progress-manager.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class SyncProgressManager<TDataToSync extends AndroidHealthSyncPr
|
|
|
15
15
|
setTotalObservations(measurementTypeKey: HealthSyncKeys, total: number): void;
|
|
16
16
|
incrementSyncedObservations(measurementTypeKey: HealthSyncKeys, count: number): void;
|
|
17
17
|
setStatus(measurementTypeKey: HealthSyncKeys, status: SyncProgress["status"], reason?: SyncPauseReason): void;
|
|
18
|
-
getStatus(measurementTypeKey: HealthSyncKeys): "idle" | "paused" | "
|
|
18
|
+
getStatus(measurementTypeKey: HealthSyncKeys): "idle" | "paused" | "started" | "completed" | "syncing";
|
|
19
19
|
resetAll(): void;
|
|
20
20
|
private notifyProgress;
|
|
21
21
|
}
|
package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class SyncStateManager {
|
|
|
12
12
|
* because the read cursor only advances once a read has returned.
|
|
13
13
|
*/
|
|
14
14
|
private inFlight;
|
|
15
|
+
private rerunRequested;
|
|
15
16
|
shouldStopSync: boolean;
|
|
16
17
|
pauseReason: SyncPauseReason | undefined;
|
|
17
18
|
initialDataFetched: boolean;
|
package/lib/typescript/commonjs/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-state-manager.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/sync-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBAAa,gBAAgB;IAC3B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAA4B;
|
|
1
|
+
{"version":3,"file":"sync-state-manager.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/sync-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBAAa,gBAAgB;IAC3B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,cAAc,CAAS;IAExB,cAAc,UAAS;IACvB,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;IACzC,kBAAkB,UAAS;IAC3B,sBAAsB,EAAE,KAAK,CAAC;QACnC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC,CAAM;IACD,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAM;IAE3C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI;IAI5C,uDAAuD;IACjD,IAAI,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BpD,KAAK,IAAI,IAAI;IASb,KAAK,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI;IAKrC,MAAM,IAAI,IAAI;CAIf"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { RecordType } from "react-native-health-connect";
|
|
2
2
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
3
|
+
import { AndroidHealthConnectAuthorizationStatus } from "./health-authorization-status";
|
|
3
4
|
export type AndroidHealthConnectAuthorizationProviderProps = HealthAuthorizationProviderProps<RecordType> & {
|
|
4
5
|
/** Request Health Connect's special background-read permission as well. */
|
|
5
6
|
backgroundAccess?: boolean;
|
|
7
|
+
/** Receives authorization, refusal, and initialization errors. */
|
|
8
|
+
onAuthorizationStatusChange?: (status: AndroidHealthConnectAuthorizationStatus) => void;
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=android-health-connect-authorization-provider-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-health-connect-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/android-health-connect-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"android-health-connect-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/android-health-connect-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAC;AAExF,MAAM,MAAM,8CAA8C,GACxD,gCAAgC,CAAC,UAAU,CAAC,GAAG;IAE7C,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,kEAAkE;IAClE,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,uCAAuC,KAC5C,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
3
|
-
|
|
3
|
+
import { AppleHealthAuthorizationStatus } from "./health-authorization-status";
|
|
4
|
+
export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<HKQuantityTypeIdentifier> & {
|
|
5
|
+
/** Receives the authorization state and any HealthKit types still unanswered. */
|
|
6
|
+
onAuthorizationStatusChange?: (status: AppleHealthAuthorizationStatus) => void;
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=apple-health-authorization-provider-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,wBAAwB,CAAC,GAAG;IAE3D,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
type AppleHealthAuthorizationStatus = {
|
|
3
|
+
state: "unknown" | "shouldRequest" | "requesting" | "ready" | "error";
|
|
4
|
+
/** HealthKit types that still need to be answered in Settings. */
|
|
5
|
+
notRequestedReadIdentifiers: HKQuantityTypeIdentifier[];
|
|
6
|
+
/** HealthKit write types that still need to be answered in Settings. */
|
|
7
|
+
notRequestedWriteIdentifiers: HKQuantityTypeIdentifier[];
|
|
8
|
+
error?: Error;
|
|
9
|
+
};
|
|
10
|
+
type AndroidHealthConnectAuthorizationStatus = {
|
|
11
|
+
state: "unknown" | "shouldRequest" | "requesting" | "authorized" | "refused" | "error";
|
|
12
|
+
error?: Error;
|
|
13
|
+
};
|
|
14
|
+
export type { AndroidHealthConnectAuthorizationStatus, AppleHealthAuthorizationStatus, };
|
|
15
|
+
//# sourceMappingURL=health-authorization-status.d.ts.map
|
package/lib/typescript/commonjs/src/modules/data-sync/types/health-authorization-status.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,wBAAwB,EAAE,CAAC;IAExD,wEAAwE;IACxE,4BAA4B,EAAE,wBAAwB,EAAE,CAAC;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,KAAK,uCAAuC,GAAG;IAC7C,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { MeasurementTypeKey, OvokClient } from "@ovok/core";
|
|
2
|
+
import { AndroidHealthSyncProps } from "../data-sync/types/android-health-sync-props";
|
|
3
|
+
import { SyncProgress } from "../data-sync/types/sync-progress";
|
|
1
4
|
declare const ANDROID_HEALTH_CONNECT_BACKGROUND_TASK = "OvokHealthConnectBackgroundSync";
|
|
2
5
|
interface AndroidBluetoothForegroundServiceOptions {
|
|
3
6
|
/** Text shown while the service keeps the BLE scan alive. */
|
|
@@ -15,6 +18,17 @@ interface AndroidHealthConnectBackgroundSyncOptions {
|
|
|
15
18
|
type AndroidHealthConnectBackgroundTask = (input: {
|
|
16
19
|
reason?: string;
|
|
17
20
|
}) => Promise<void>;
|
|
21
|
+
type AndroidHealthConnectSyncRunOptions = {
|
|
22
|
+
/** A restored, authenticated core client. */
|
|
23
|
+
client: OvokClient;
|
|
24
|
+
/** The patient whose Health Connect records should be imported. */
|
|
25
|
+
patientId: string;
|
|
26
|
+
/** The same record-to-Observation mapping used by AndroidHealthSync. */
|
|
27
|
+
dataToSync: AndroidHealthSyncProps["dataToSync"];
|
|
28
|
+
chunkSize?: number;
|
|
29
|
+
onError?: (error: Error) => void;
|
|
30
|
+
onProgress?: (progress: Partial<Record<MeasurementTypeKey, SyncProgress>>) => void;
|
|
31
|
+
};
|
|
18
32
|
/**
|
|
19
33
|
* Starts the Android connected-device foreground service. Mount this alongside
|
|
20
34
|
* the BTProvider that owns the scan; the service keeps that app process alive
|
|
@@ -29,11 +43,20 @@ declare const stopAndroidBluetoothForegroundService: () => Promise<void>;
|
|
|
29
43
|
*/
|
|
30
44
|
declare const scheduleAndroidHealthConnectSync: (options?: AndroidHealthConnectBackgroundSyncOptions) => Promise<void>;
|
|
31
45
|
declare const cancelAndroidHealthConnectSync: () => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Runs one Health Connect import without mounting React components.
|
|
48
|
+
*
|
|
49
|
+
* Headless JS tasks have no React tree, so AndroidHealthSync cannot be rendered
|
|
50
|
+
* after the OS recreates the app process. The host app still restores its own
|
|
51
|
+
* client and patient identity, then calls this function with the same mapping
|
|
52
|
+
* it uses in the foreground.
|
|
53
|
+
*/
|
|
54
|
+
declare const runAndroidHealthConnectSync: ({ client, patientId, dataToSync, chunkSize, onError, onProgress, }: AndroidHealthConnectSyncRunOptions) => Promise<void>;
|
|
32
55
|
/**
|
|
33
56
|
* Registers the JS entry point WorkManager invokes after process death. Call
|
|
34
57
|
* this once from the app entry point, not from a screen component, so it is
|
|
35
58
|
* registered before Android wakes the headless runtime.
|
|
36
59
|
*/
|
|
37
60
|
declare const registerAndroidHealthConnectBackgroundTask: (task: AndroidHealthConnectBackgroundTask, taskName?: string) => void;
|
|
38
|
-
export { ANDROID_HEALTH_CONNECT_BACKGROUND_TASK, AndroidBluetoothForegroundServiceOptions, AndroidHealthConnectBackgroundSyncOptions, AndroidHealthConnectBackgroundTask, cancelAndroidHealthConnectSync, registerAndroidHealthConnectBackgroundTask, scheduleAndroidHealthConnectSync, startAndroidBluetoothForegroundService, stopAndroidBluetoothForegroundService, };
|
|
61
|
+
export { ANDROID_HEALTH_CONNECT_BACKGROUND_TASK, AndroidBluetoothForegroundServiceOptions, AndroidHealthConnectBackgroundSyncOptions, AndroidHealthConnectBackgroundTask, AndroidHealthConnectSyncRunOptions, cancelAndroidHealthConnectSync, registerAndroidHealthConnectBackgroundTask, runAndroidHealthConnectSync, scheduleAndroidHealthConnectSync, startAndroidBluetoothForegroundService, stopAndroidBluetoothForegroundService, };
|
|
39
62
|
//# sourceMappingURL=android-background-sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/background-sync/android-background-sync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"android-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/background-sync/android-background-sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,QAAA,MAAM,sCAAsC,oCACT,CAAC;AAapC,UAAU,wCAAwC;IAEhD,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,UAAU,yCAAyC;IAEjD,8DAA8D;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,kEAAkE;IAClE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,KAAK,kCAAkC,GAAG,CAAC,KAAK,EAAE;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEpB,KAAK,kCAAkC,GAAG;IAExC,6CAA6C;IAC7C,MAAM,EAAE,UAAU,CAAC;IAEnB,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAElB,wEAAwE;IACxE,UAAU,EAAE,sBAAsB,CAAC,YAAY,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CACX,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,YAAY,CAAC,CAAC,KACxD,IAAI,CAAC;CACX,CAAC;AAgBF;;;;GAIG;AACH,QAAA,MAAM,sCAAsC,GAC1C,UAAS,wCAA6C,KACrD,OAAO,CAAC,IAAI,CAMd,CAAC;AAEF,QAAA,MAAM,qCAAqC,QAAa,OAAO,CAAC,IAAI,CAMnE,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,gCAAgC,GACpC,UAAS,yCAA8C,KACtD,OAAO,CAAC,IAAI,CAMd,CAAC;AAEF,QAAA,MAAM,8BAA8B,QAAa,OAAO,CAAC,IAAI,CAM5D,CAAC;AAEF;;;;;;;GAOG;AACH,QAAA,MAAM,2BAA2B,GAAU,oEAOxC,kCAAkC,KAAG,OAAO,CAAC,IAAI,CAgBnD,CAAC;AAEF;;;;GAIG;AACH,QAAA,MAAM,0CAA0C,GAC9C,MAAM,kCAAkC,EACxC,iBAAiD,KAChD,IAMF,CAAC;AAEF,OAAO,EACL,sCAAsC,EACtC,wCAAwC,EACxC,yCAAyC,EACzC,kCAAkC,EAClC,kCAAkC,EAClC,8BAA8B,EAC9B,0CAA0C,EAC1C,2BAA2B,EAC3B,gCAAgC,EAChC,sCAAsC,EACtC,qCAAqC,GACtC,CAAC"}
|
package/lib/typescript/module/src/modules/bt-management/constants/measurement-field-catalog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measurement-field-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/constants/measurement-field-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"measurement-field-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/constants/measurement-field-catalog.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAEnB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwCD,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAC5C,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CA6B5E,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { AndroidHealthConnectAuthorizationProviderProps } from "../../types/android-health-connect-authorization-provider-props";
|
|
3
|
-
export declare const AndroidHealthConnectAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, backgroundAccess, }: React.PropsWithChildren<AndroidHealthConnectAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
3
|
+
export declare const AndroidHealthConnectAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, backgroundAccess, onAuthorizationStatusChange, }: React.PropsWithChildren<AndroidHealthConnectAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
4
4
|
//# sourceMappingURL=android-health-connect-authorization-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-health-connect-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/android/android-health-connect-authorization-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"android-health-connect-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/android/android-health-connect-authorization-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAc/B,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AAiIjI,eAAO,MAAM,yCAAyC,4KAUjD,KAAK,CAAC,iBAAiB,CAAC,8CAA8C,CAAC,qSA0D3E,CAAC"}
|
package/lib/typescript/module/src/modules/data-sync/components/android/android-health-sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/android/android-health-sync.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"android-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/android/android-health-sync.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAG/E,eAAO,MAAM,iBAAiB,wFAOzB,sBAAsB,UAsF1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { AppleHealthAuthorizationProviderProps } from "../../types/apple-health-authorization-provider-props";
|
|
3
|
-
export declare const AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, }: React.PropsWithChildren<AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
3
|
+
export declare const AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
4
4
|
//# sourceMappingURL=apple-health-authorization-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-authorization-provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,qCAAqC,EAAE,MAAM,uDAAuD,CAAC;AAqB9G,eAAO,MAAM,gCAAgC,0JASxC,KAAK,CAAC,iBAAiB,CAAC,qCAAqC,CAAC,qSA8KlE,CAAC"}
|
package/lib/typescript/module/src/modules/data-sync/components/apple/apple-health-sync.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-sync.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apple-health-sync.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/components/apple/apple-health-sync.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAG3E,eAAO,MAAM,eAAe,4GAQvB,oBAAoB,UAiHxB,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export declare const DataSync: {
|
|
3
3
|
({ children }: React.PropsWithChildren): React.JSX.Element;
|
|
4
|
-
AndroidHealthConnectAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, backgroundAccess, }: React.PropsWithChildren<import("../types/android-health-connect-authorization-provider-props").AndroidHealthConnectAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
4
|
+
AndroidHealthConnectAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, backgroundAccess, onAuthorizationStatusChange, }: React.PropsWithChildren<import("../types/android-health-connect-authorization-provider-props").AndroidHealthConnectAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
5
5
|
AndroidHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, onError, onProgress, }: import("..").AndroidHealthSyncProps) => null>;
|
|
6
|
-
AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, }: React.PropsWithChildren<import("../types/apple-health-authorization-provider-props").AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
6
|
+
AppleHealthAuthorizationProvider: React.MemoExoticComponent<({ readIdentifiers, writeIdentifiers, fallback, children, skipRequest, renderManualRequestUI, onAuthorizationStatusChange, }: React.PropsWithChildren<import("../types/apple-health-authorization-provider-props").AppleHealthAuthorizationProviderProps>) => string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | null | undefined>;
|
|
7
7
|
AppleHealthSync: React.MemoExoticComponent<({ dataToSync, chunkSize, wifiOnly, backgroundDelivery, onError, onProgress, }: import("..").AppleHealthSyncProps) => null>;
|
|
8
8
|
ManuallyRequestSheet: React.NamedExoticComponent<import("@gorhom/bottom-sheet").BottomSheetModalProps<any> & React.RefAttributes<import("@gorhom/bottom-sheet").BottomSheetModal>> & {
|
|
9
9
|
Container: (props: import("@gorhom/bottom-sheet/lib/typescript/components/bottomSheetView/types").BottomSheetViewProps) => React.JSX.Element;
|
|
@@ -3,4 +3,5 @@ export * from "./types/apple-health-sync-props";
|
|
|
3
3
|
export * from "./components/sync-progress-list/sync-progress-list";
|
|
4
4
|
export * from "./types/sync-progress";
|
|
5
5
|
export * from "./types/android-health-sync-props";
|
|
6
|
+
export * from "./types/health-authorization-status";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/data-sync/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,oDAAoD,CAAC;AACnE,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC"}
|
package/lib/typescript/module/src/modules/data-sync/services/managers/sync-progress-manager.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class SyncProgressManager<TDataToSync extends AndroidHealthSyncPr
|
|
|
15
15
|
setTotalObservations(measurementTypeKey: HealthSyncKeys, total: number): void;
|
|
16
16
|
incrementSyncedObservations(measurementTypeKey: HealthSyncKeys, count: number): void;
|
|
17
17
|
setStatus(measurementTypeKey: HealthSyncKeys, status: SyncProgress["status"], reason?: SyncPauseReason): void;
|
|
18
|
-
getStatus(measurementTypeKey: HealthSyncKeys): "idle" | "paused" | "
|
|
18
|
+
getStatus(measurementTypeKey: HealthSyncKeys): "idle" | "paused" | "started" | "completed" | "syncing";
|
|
19
19
|
resetAll(): void;
|
|
20
20
|
private notifyProgress;
|
|
21
21
|
}
|
package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class SyncStateManager {
|
|
|
12
12
|
* because the read cursor only advances once a read has returned.
|
|
13
13
|
*/
|
|
14
14
|
private inFlight;
|
|
15
|
+
private rerunRequested;
|
|
15
16
|
shouldStopSync: boolean;
|
|
16
17
|
pauseReason: SyncPauseReason | undefined;
|
|
17
18
|
initialDataFetched: boolean;
|
package/lib/typescript/module/src/modules/data-sync/services/managers/sync-state-manager.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-state-manager.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/sync-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBAAa,gBAAgB;IAC3B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAA4B;
|
|
1
|
+
{"version":3,"file":"sync-state-manager.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/data-sync/services/managers/sync-state-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,qBAAa,gBAAgB;IAC3B;;;;;;;;;OASG;IACH,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,cAAc,CAAS;IAExB,cAAc,UAAS;IACvB,WAAW,EAAE,eAAe,GAAG,SAAS,CAAC;IACzC,kBAAkB,UAAS;IAC3B,sBAAsB,EAAE,KAAK,CAAC;QACnC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;QACzB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;KAC1B,CAAC,CAAM;IACD,OAAO,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAM;IAE3C,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,GAAG,IAAI;IAI5C,uDAAuD;IACjD,IAAI,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BpD,KAAK,IAAI,IAAI;IASb,KAAK,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,IAAI;IAKrC,MAAM,IAAI,IAAI;CAIf"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { RecordType } from "react-native-health-connect";
|
|
2
2
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
3
|
+
import { AndroidHealthConnectAuthorizationStatus } from "./health-authorization-status";
|
|
3
4
|
export type AndroidHealthConnectAuthorizationProviderProps = HealthAuthorizationProviderProps<RecordType> & {
|
|
4
5
|
/** Request Health Connect's special background-read permission as well. */
|
|
5
6
|
backgroundAccess?: boolean;
|
|
7
|
+
/** Receives authorization, refusal, and initialization errors. */
|
|
8
|
+
onAuthorizationStatusChange?: (status: AndroidHealthConnectAuthorizationStatus) => void;
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=android-health-connect-authorization-provider-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-health-connect-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/android-health-connect-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"android-health-connect-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/android-health-connect-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAC;AAExF,MAAM,MAAM,8CAA8C,GACxD,gCAAgC,CAAC,UAAU,CAAC,GAAG;IAE7C,2EAA2E;IAC3E,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,kEAAkE;IAClE,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,uCAAuC,KAC5C,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
2
|
import { HealthAuthorizationProviderProps } from "./health-authorization-provider-props";
|
|
3
|
-
|
|
3
|
+
import { AppleHealthAuthorizationStatus } from "./health-authorization-status";
|
|
4
|
+
export type AppleHealthAuthorizationProviderProps = HealthAuthorizationProviderProps<HKQuantityTypeIdentifier> & {
|
|
5
|
+
/** Receives the authorization state and any HealthKit types still unanswered. */
|
|
6
|
+
onAuthorizationStatusChange?: (status: AppleHealthAuthorizationStatus) => void;
|
|
7
|
+
};
|
|
4
8
|
//# sourceMappingURL=apple-health-authorization-provider-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"apple-health-authorization-provider-props.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/apple-health-authorization-provider-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,OAAO,EAAE,gCAAgC,EAAE,MAAM,uCAAuC,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AAE/E,MAAM,MAAM,qCAAqC,GAC/C,gCAAgC,CAAC,wBAAwB,CAAC,GAAG;IAE3D,iFAAiF;IACjF,2BAA2B,CAAC,EAAE,CAC5B,MAAM,EAAE,8BAA8B,KACnC,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HKQuantityTypeIdentifier } from "@kingstinct/react-native-healthkit";
|
|
2
|
+
type AppleHealthAuthorizationStatus = {
|
|
3
|
+
state: "unknown" | "shouldRequest" | "requesting" | "ready" | "error";
|
|
4
|
+
/** HealthKit types that still need to be answered in Settings. */
|
|
5
|
+
notRequestedReadIdentifiers: HKQuantityTypeIdentifier[];
|
|
6
|
+
/** HealthKit write types that still need to be answered in Settings. */
|
|
7
|
+
notRequestedWriteIdentifiers: HKQuantityTypeIdentifier[];
|
|
8
|
+
error?: Error;
|
|
9
|
+
};
|
|
10
|
+
type AndroidHealthConnectAuthorizationStatus = {
|
|
11
|
+
state: "unknown" | "shouldRequest" | "requesting" | "authorized" | "refused" | "error";
|
|
12
|
+
error?: Error;
|
|
13
|
+
};
|
|
14
|
+
export type { AndroidHealthConnectAuthorizationStatus, AppleHealthAuthorizationStatus, };
|
|
15
|
+
//# sourceMappingURL=health-authorization-status.d.ts.map
|
package/lib/typescript/module/src/modules/data-sync/types/health-authorization-status.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"health-authorization-status.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/types/health-authorization-status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAE9E,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,SAAS,GAAG,eAAe,GAAG,YAAY,GAAG,OAAO,GAAG,OAAO,CAAC;IAEtE,kEAAkE;IAClE,2BAA2B,EAAE,wBAAwB,EAAE,CAAC;IAExD,wEAAwE;IACxE,4BAA4B,EAAE,wBAAwB,EAAE,CAAC;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,KAAK,uCAAuC,GAAG;IAC7C,KAAK,EACD,SAAS,GACT,eAAe,GACf,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAEF,YAAY,EACV,uCAAuC,EACvC,8BAA8B,GAC/B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/native",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "React native component sdk for OVOK",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@medplum/core": "3.2.23",
|
|
83
83
|
"@medplum/fhirtypes": "^3.2.22",
|
|
84
84
|
"@medplum/react-hooks": "3.2.23",
|
|
85
|
-
"@ovok/core": "^0.2.
|
|
85
|
+
"@ovok/core": "^0.2.64",
|
|
86
86
|
"@react-native-community/datetimepicker": "^9.1.0",
|
|
87
87
|
"@react-native-community/netinfo": "^12.0.1",
|
|
88
88
|
"@react-native-google-signin/google-signin": "^16.1.2",
|