@ovok/native 1.10.7 → 1.10.9
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/auth/hooks/use-session.js +3 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +11 -3
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js +24 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-request-state.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-types.js +13 -1
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store.js +7 -0
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +8 -2
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js +19 -8
- package/lib/commonjs/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +74 -52
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js +11 -0
- package/lib/commonjs/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js +2 -1
- package/lib/commonjs/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js +71 -87
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-queue.js +59 -0
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-queue.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +7 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/commonjs/polyfills/index.js +4 -6
- package/lib/commonjs/polyfills/index.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +3 -1
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +11 -3
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-refresh.js +25 -2
- package/lib/module/modules/auth/session/session-store-refresh.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-request-state.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-types.js +12 -1
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/module/modules/auth/session/session-store.js +7 -0
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +8 -2
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js +19 -8
- package/lib/module/modules/bt-management/components/android-bluetooth-foreground-service.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +74 -52
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/runtime-context.js +11 -0
- package/lib/module/modules/bt-management/hooks/runtime-context.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/use-background-sync.js +2 -1
- package/lib/module/modules/bt-management/hooks/use-background-sync.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js +64 -86
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-queue.js +52 -0
- package/lib/module/modules/bt-management/services/background-sync/background-sync-queue.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +7 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/module/polyfills/index.js +6 -3
- package/lib/module/polyfills/index.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +3 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-request-state.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +4 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-background-sync.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts +5 -16
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-queue.d.ts +28 -0
- package/lib/typescript/commonjs/src/modules/bt-management/services/background-sync/background-sync-queue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/polyfills/index.d.ts +5 -3
- package/lib/typescript/commonjs/src/polyfills/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +3 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-request-state.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +4 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/utils/sign-in-error.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/android-bluetooth-foreground-service.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/components/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts +2 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/runtime-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/use-background-sync.d.ts +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts +5 -16
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-coordinator.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-queue.d.ts +28 -0
- package/lib/typescript/module/src/modules/bt-management/services/background-sync/background-sync-queue.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/polyfills/index.d.ts +5 -3
- package/lib/typescript/module/src/polyfills/index.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,29 +1,18 @@
|
|
|
1
|
+
import type { BackgroundSyncFlushOptions } from "./background-sync-queue";
|
|
1
2
|
import { BackgroundSyncOptions } from "../../types/background-sync";
|
|
2
3
|
import { DeviceKey } from "../../types/device-key";
|
|
3
4
|
import { ResultCallback } from "../../types/result-callback";
|
|
4
|
-
|
|
5
|
-
includeExhausted?: boolean;
|
|
6
|
-
resetExhausted?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const DEFAULT_QUEUE_KEY = "@ovok/native/background-sync/results";
|
|
9
|
-
/**
|
|
10
|
-
* A small durable, at-least-once queue. The result is written before delivery and removed only
|
|
11
|
-
* after the consumer resolves. A process death between those two operations can deliver a
|
|
12
|
-
* result twice, so consumers should de-duplicate by `id`.
|
|
13
|
-
*/
|
|
5
|
+
import { DEFAULT_QUEUE_KEY } from "./background-sync-queue";
|
|
14
6
|
declare class BackgroundSyncCoordinator<T extends DeviceKey> {
|
|
15
|
-
private
|
|
16
|
-
private readonly storageKey;
|
|
17
|
-
private readonly maxRetries;
|
|
18
|
-
private readonly retryBackoffMs;
|
|
7
|
+
private options;
|
|
19
8
|
private operation;
|
|
20
9
|
constructor(options: BackgroundSyncOptions<T>);
|
|
10
|
+
updateOptions(options: BackgroundSyncOptions<T>): void;
|
|
21
11
|
enqueue: (result: ResultCallback<T>) => Promise<void>;
|
|
22
12
|
flush: (options?: BackgroundSyncFlushOptions) => Promise<void>;
|
|
23
13
|
private runExclusive;
|
|
24
|
-
private readQueue;
|
|
25
|
-
private writeQueue;
|
|
26
14
|
private flushQueue;
|
|
27
15
|
}
|
|
28
16
|
export { BackgroundSyncCoordinator, DEFAULT_QUEUE_KEY };
|
|
17
|
+
export type { BackgroundSyncFlushOptions } from "./background-sync-queue";
|
|
29
18
|
//# sourceMappingURL=background-sync-coordinator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAIL,iBAAiB,EAIlB,MAAM,yBAAyB,CAAC;AAEjC,cAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS;IACjD,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,SAAS,CAAoC;gBAElC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAI7C,aAAa,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI;IAItD,OAAO,GAAI,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC,CA4BzD;IAEK,KAAK,GAAI,UAAS,0BAA+B,KAAG,OAAO,CAAC,IAAI,CAAC,CASnE;IAEL,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,UAAU,CA+GhB;CACH;AAED,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAC;AACxD,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BackgroundSyncOptions } from "../../types/background-sync";
|
|
2
|
+
import type { DeviceKey } from "../../types/device-key";
|
|
3
|
+
import type { ResultCallback } from "../../types/result-callback";
|
|
4
|
+
interface StoredBackgroundSyncItem<T extends DeviceKey> {
|
|
5
|
+
id?: string;
|
|
6
|
+
queueId?: string;
|
|
7
|
+
ownerKey?: string;
|
|
8
|
+
queuedAt: string;
|
|
9
|
+
attempt: number;
|
|
10
|
+
nextAttemptAt: number;
|
|
11
|
+
exhausted?: boolean;
|
|
12
|
+
result: ResultCallback<T>;
|
|
13
|
+
}
|
|
14
|
+
interface BackgroundSyncFlushOptions {
|
|
15
|
+
includeExhausted?: boolean;
|
|
16
|
+
resetExhausted?: boolean;
|
|
17
|
+
resetRetryBackoff?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const DEFAULT_QUEUE_KEY = "@ovok/native/background-sync/results";
|
|
20
|
+
declare const DEFAULT_MAX_RETRIES = 3;
|
|
21
|
+
declare const DEFAULT_RETRY_BACKOFF_MS = 30000;
|
|
22
|
+
declare const createResultId: () => string;
|
|
23
|
+
declare const createQueueId: () => string;
|
|
24
|
+
declare const readBackgroundSyncQueue: <T extends DeviceKey>(options: BackgroundSyncOptions<T>) => Promise<StoredBackgroundSyncItem<T>[]>;
|
|
25
|
+
declare const writeBackgroundSyncQueue: <T extends DeviceKey>(queue: StoredBackgroundSyncItem<T>[], options: BackgroundSyncOptions<T>) => Promise<void>;
|
|
26
|
+
export { BackgroundSyncFlushOptions, createQueueId, createResultId, DEFAULT_MAX_RETRIES, DEFAULT_QUEUE_KEY, DEFAULT_RETRY_BACKOFF_MS, readBackgroundSyncQueue, writeBackgroundSyncQueue, };
|
|
27
|
+
export type { StoredBackgroundSyncItem };
|
|
28
|
+
//# sourceMappingURL=background-sync-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-sync-queue.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAKlE,UAAU,wBAAwB,CAAC,CAAC,SAAS,SAAS;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAC3B;AAED,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,QAAA,MAAM,iBAAiB,yCAAyC,CAAC;AACjE,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAC9B,QAAA,MAAM,wBAAwB,QAAS,CAAC;AAIxC,QAAA,MAAM,cAAc,QAAO,MAI1B,CAAC;AAEF,QAAA,MAAM,aAAa,QAAO,MAIzB,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAU,CAAC,SAAS,SAAS,EACxD,SAAS,qBAAqB,CAAC,CAAC,CAAC,KAChC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CA8CvC,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAU,CAAC,SAAS,SAAS,EACzD,OAAO,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACpC,SAAS,qBAAqB,CAAC,CAAC,CAAC,KAChC,OAAO,CAAC,IAAI,CAKd,CAAC;AAEF,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AACF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,
|
|
1
|
+
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,EAEtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoB1C,qBAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC,CAC1C,aAAa,EAAE,aAAa,GAC3B,OAAO;WAUG,4BAA4B,CACvC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,qBAAqB,CAAC;IAwIjC,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,yBAAyB,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,UAAU,CAAC,EAAE,yBAAyB,EACtC,QAAQ,CAAC,EAAE,+BAA+B,EAC1C,mBAAmB,CAAC,EAAE,gCAAgC,GACrD,qBAAqB;CAwBzB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { polyfillMedplumWebAPIs as polyfillOvokWebAPIs } from "@medplum/expo-polyfills";
|
|
2
|
-
export { ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig,
|
|
3
|
-
export { polyfillOvokWebAPIs };
|
|
1
|
+
import { cleanupMedplumWebAPIs as cleanupOvokNativeRuntime, polyfillMedplumWebAPIs as polyfillOvokWebAPIs } from "@medplum/expo-polyfills";
|
|
2
|
+
export { ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig, initWebSocketManager, } from "@medplum/expo-polyfills";
|
|
3
|
+
export { cleanupOvokNativeRuntime, polyfillOvokWebAPIs };
|
|
4
4
|
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
5
5
|
export declare const polyfillMedplumWebAPIs: typeof polyfillOvokWebAPIs;
|
|
6
|
+
/** @deprecated Use cleanupOvokNativeRuntime instead. */
|
|
7
|
+
export declare const cleanupMedplumWebAPIs: typeof cleanupOvokNativeRuntime;
|
|
6
8
|
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
7
9
|
export declare const initializeOvokNativeRuntime: typeof polyfillOvokWebAPIs;
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,sBAAsB,IAAI,mBAAmB,EAC9C,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC;AAEzD,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,4BAAsB,CAAC;AAE1D,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,iCAA2B,CAAC;AAE9D,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,4BAAsB,CAAC"}
|
|
@@ -4,10 +4,12 @@ type Client = ReturnType<typeof useClient>;
|
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface UseSessionResult {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
activeAccountId?: string;
|
|
8
|
+
patientId?: string;
|
|
7
9
|
reason?: "session-ended";
|
|
8
10
|
isAuthenticated: boolean;
|
|
9
11
|
accounts: OvokSavedAccount[];
|
|
10
|
-
profile: Profile;
|
|
12
|
+
profile: Profile | undefined;
|
|
11
13
|
sessions: OvokNativeSession[];
|
|
12
14
|
loading: boolean;
|
|
13
15
|
switching: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAM9D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAC9D,UAAU,gBAAgB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CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,gGAAgG;AAChG,QAAA,MAAM,UAAU,GAAI,oDAGjB,iBAAsB,KAAG,gBA+D3B,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAsK1C,CAAC"}
|
|
@@ -7,6 +7,7 @@ export type ProfileFormProps = {
|
|
|
7
7
|
fields: ProfileFormField[];
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
testID?: string;
|
|
10
|
+
onError?: (error: unknown) => void;
|
|
10
11
|
onSuccess?: (response: Patient, values: ProfileFormValues) => Promise<void> | void;
|
|
11
12
|
onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => Promise<void> | void;
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,iBAAiB,KACtB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
1
|
+
{"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,iBAAiB,KACtB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-refresh.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"session-store-refresh.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAGL,KAAK,MAAM,EAEX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,MAAM,EACd,cAAc,wBAAwB,EACtC,UAAU,MAAM,YAAY,EAC5B,QAAQ,MAAM,IAAI;+BAEsB,OAAO;;CAoMhD,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare class SessionStoreRequestState {
|
|
|
10
10
|
private authRevision;
|
|
11
11
|
constructor(client: Client, sessionClient: SessionClient);
|
|
12
12
|
getAccounts: () => import("@ovok/core").OvokSavedAccount[];
|
|
13
|
-
|
|
13
|
+
getActiveAccountId: () => string | undefined;
|
|
14
14
|
syncActiveAccount: () => void;
|
|
15
15
|
invalidate: () => void;
|
|
16
16
|
nextRevision: () => number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-request-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,iBAAiB,EAEjB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAE/B,cAAM,wBAAwB;IAS1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAThC,OAAO,CAAC,cAAc,CAAC,CAAmB;IAC1C,OAAO,CAAC,eAAe,CAAC,CAA+B;IACvD,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAK;gBAGN,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa;IAG/C,WAAW,gDAA+C;IAE1D,
|
|
1
|
+
{"version":3,"file":"session-store-request-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-request-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,iBAAiB,EAEjB,aAAa,EACd,MAAM,uBAAuB,CAAC;AAE/B,cAAM,wBAAwB;IAS1B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAThC,OAAO,CAAC,cAAc,CAAC,CAAmB;IAC1C,OAAO,CAAC,eAAe,CAAC,CAA+B;IACvD,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,OAAO,CAAC,gBAAgB,CAAS;IACjC,OAAO,CAAC,YAAY,CAAK;gBAGN,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,aAAa;IAG/C,WAAW,gDAA+C;IAE1D,kBAAkB,2BAEiC;IAEnD,iBAAiB,aASf;IAEF,UAAU,aAOR;IAEF,YAAY,eAA6B;IAEzC,IAAI,QAAQ,WAEX;IAED,SAAS,GAAI,UAAU,MAAM,aAAoC;IAEjE,iBAAiB,qEAiCf;IAEF,kBAAkB,qCAYhB;CACH;AAED,OAAO,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -4,13 +4,16 @@ type Client = ReturnType<typeof useClient>;
|
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface SessionSnapshot {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
activeAccountId?: string;
|
|
7
8
|
reason?: "session-ended";
|
|
8
9
|
switching?: boolean;
|
|
9
10
|
accounts: OvokSavedAccount[];
|
|
10
11
|
profile?: Profile;
|
|
12
|
+
profileAccountId?: string;
|
|
11
13
|
sessions: OvokNativeSession[];
|
|
12
14
|
error?: Error;
|
|
13
15
|
}
|
|
16
|
+
declare const profileMatchesAccount: (profile: Profile | undefined, accountId?: string) => boolean;
|
|
14
17
|
interface SessionClient {
|
|
15
18
|
getSavedAccounts: () => OvokSavedAccount[];
|
|
16
19
|
switchAccount: (accountId: string) => Promise<void>;
|
|
@@ -30,6 +33,6 @@ interface SessionStore {
|
|
|
30
33
|
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
31
34
|
}
|
|
32
35
|
declare const normalizeSession: (session: OvokNativeSession) => OvokNativeSession;
|
|
33
|
-
export { normalizeSession };
|
|
36
|
+
export { normalizeSession, profileMatchesAccount };
|
|
34
37
|
export type { Client, OvokNativeSession, OvokSavedAccount, Profile, SessionClient, SessionSnapshot, SessionStore, };
|
|
35
38
|
//# sourceMappingURL=session-store-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,gBAAgB,EAAE,MAAM,gBAAgB,EAAE,CAAC;IAC3C,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,WAAW,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,YAAY;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,QAAA,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,KAAG,iBAatD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAA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,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,QAAA,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,KAAG,iBAatD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;AACnD,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EAEN,YAAY,EACb,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EAEN,YAAY,EACb,MAAM,uBAAuB,CAAC;AAuL/B,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-error.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/utils/sign-in-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,WAAW,GAAG,KAAK,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC;AA4DD,QAAA,MAAM,cAAc,GAAI,OAAO,OAAO,EAAE,UAAU,OAAO,
|
|
1
|
+
{"version":3,"file":"sign-in-error.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/utils/sign-in-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,KAAK,WAAW,GAAG,KAAK,GAAG;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,WAAW,EAAE,eAAe,EAAE,CAAC;CAChC;AA4DD,QAAA,MAAM,cAAc,GAAI,OAAO,OAAO,EAAE,UAAU,OAAO,YAwBxD,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,gBAAgB,GACpB,OAAO,OAAO,EACd,UAAS;IACP,UAAU,CAAC,EAAE,UAAU,GAAG,gBAAgB,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACf,KACL,iBAoEF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"android-bluetooth-foreground-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/android-bluetooth-foreground-service.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,UAAU,wCAAwC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC/C;AAuBD,eAAO,MAAM,iCAAiC,GAAI,0CAK/C,KAAK,CAAC,iBAAiB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,wCAAwC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CACzC,CAAC,
|
|
1
|
+
{"version":3,"file":"android-bluetooth-foreground-service.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/android-bluetooth-foreground-service.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAI7D,UAAU,wCAAwC;IAChD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mCAAmC,CAAC,EAAE,OAAO,CAAC;CAC/C;AAuBD,eAAO,MAAM,iCAAiC,GAAI,0CAK/C,KAAK,CAAC,iBAAiB,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,wCAAwC,CAAC;IACnD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CACzC,CAAC,sBA+ED,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;AA6BjF,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,SAAS,cAAc,EAAE,EAAE,yUAoBvE,KAAK,CAAC,iBAAiB,CAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,sBA+hB3D,CAAC"}
|
|
@@ -55,6 +55,8 @@ export interface BluetoothRuntime {
|
|
|
55
55
|
getBackgroundScanEnabled: () => boolean;
|
|
56
56
|
initializeBackgroundScanEnabled: (enabled: boolean) => void;
|
|
57
57
|
setBackgroundScanEnabled: (enabled: boolean) => void;
|
|
58
|
+
setBackgroundSyncFlush: (flush?: () => Promise<void>) => void;
|
|
59
|
+
flushBackgroundSync: () => Promise<void>;
|
|
58
60
|
setBluetoothState: (state: RuntimeBluetoothState) => void;
|
|
59
61
|
setBluetoothPermissionStatus: (status: BluetoothPermissionStatus) => void;
|
|
60
62
|
subscribe: <K extends RuntimeEvent>(event: K, callback: (value: RuntimeEventMap[K]) => void) => () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/runtime-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-context.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/runtime-context.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAA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ACR,kBAAkB,GAClB,gBAAgB,CACnB,CAAC;AAIF,eAAO,MAAM,sBAAsB,GACjC,aAAa,UAAU,EACvB,+BAA+B,OAAO,KACrC,gBAwUF,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,wBAGtC,KAAK,CAAC,iBAAiB,CAAC;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAAC,sBAExD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,gBAQtC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,YAAY,EACpD,OAAO,CAAC,EACR,UAAU,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,KAC5C,IAUF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,SAAS,EAC5C,UAAU,CAAC,QAAQ,EAAE,wBAAwB,KAAK,SAAS,EAC3D,UAAS,CAAC,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,KAAK,OAAmB,KACrE,SA+BF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-background-sync.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,iBAAiB,GAAI,2DAI/B,wBAA6B,KAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"use-background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-background-sync.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,oBAAoB,GAAG,IAAI,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;AAE3E,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,iBAAiB,GAAI,2DAI/B,wBAA6B,KAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAyD5B,CAAC"}
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
+
import type { BackgroundSyncFlushOptions } from "./background-sync-queue";
|
|
1
2
|
import { BackgroundSyncOptions } from "../../types/background-sync";
|
|
2
3
|
import { DeviceKey } from "../../types/device-key";
|
|
3
4
|
import { ResultCallback } from "../../types/result-callback";
|
|
4
|
-
|
|
5
|
-
includeExhausted?: boolean;
|
|
6
|
-
resetExhausted?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const DEFAULT_QUEUE_KEY = "@ovok/native/background-sync/results";
|
|
9
|
-
/**
|
|
10
|
-
* A small durable, at-least-once queue. The result is written before delivery and removed only
|
|
11
|
-
* after the consumer resolves. A process death between those two operations can deliver a
|
|
12
|
-
* result twice, so consumers should de-duplicate by `id`.
|
|
13
|
-
*/
|
|
5
|
+
import { DEFAULT_QUEUE_KEY } from "./background-sync-queue";
|
|
14
6
|
declare class BackgroundSyncCoordinator<T extends DeviceKey> {
|
|
15
|
-
private
|
|
16
|
-
private readonly storageKey;
|
|
17
|
-
private readonly maxRetries;
|
|
18
|
-
private readonly retryBackoffMs;
|
|
7
|
+
private options;
|
|
19
8
|
private operation;
|
|
20
9
|
constructor(options: BackgroundSyncOptions<T>);
|
|
10
|
+
updateOptions(options: BackgroundSyncOptions<T>): void;
|
|
21
11
|
enqueue: (result: ResultCallback<T>) => Promise<void>;
|
|
22
12
|
flush: (options?: BackgroundSyncFlushOptions) => Promise<void>;
|
|
23
13
|
private runExclusive;
|
|
24
|
-
private readQueue;
|
|
25
|
-
private writeQueue;
|
|
26
14
|
private flushQueue;
|
|
27
15
|
}
|
|
28
16
|
export { BackgroundSyncCoordinator, DEFAULT_QUEUE_KEY };
|
|
17
|
+
export type { BackgroundSyncFlushOptions } from "./background-sync-queue";
|
|
29
18
|
//# sourceMappingURL=background-sync-coordinator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6BAA6B,CAAC;AAE1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAIL,iBAAiB,EAIlB,MAAM,yBAAyB,CAAC;AAEjC,cAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS;IACjD,OAAO,CAAC,OAAO,CAA2B;IAC1C,OAAO,CAAC,SAAS,CAAoC;gBAElC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAI7C,aAAa,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI;IAItD,OAAO,GAAI,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC,CA4BzD;IAEK,KAAK,GAAI,UAAS,0BAA+B,KAAG,OAAO,CAAC,IAAI,CAAC,CASnE;IAEL,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,UAAU,CA+GhB;CACH;AAED,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAC;AACxD,YAAY,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { BackgroundSyncOptions } from "../../types/background-sync";
|
|
2
|
+
import type { DeviceKey } from "../../types/device-key";
|
|
3
|
+
import type { ResultCallback } from "../../types/result-callback";
|
|
4
|
+
interface StoredBackgroundSyncItem<T extends DeviceKey> {
|
|
5
|
+
id?: string;
|
|
6
|
+
queueId?: string;
|
|
7
|
+
ownerKey?: string;
|
|
8
|
+
queuedAt: string;
|
|
9
|
+
attempt: number;
|
|
10
|
+
nextAttemptAt: number;
|
|
11
|
+
exhausted?: boolean;
|
|
12
|
+
result: ResultCallback<T>;
|
|
13
|
+
}
|
|
14
|
+
interface BackgroundSyncFlushOptions {
|
|
15
|
+
includeExhausted?: boolean;
|
|
16
|
+
resetExhausted?: boolean;
|
|
17
|
+
resetRetryBackoff?: boolean;
|
|
18
|
+
}
|
|
19
|
+
declare const DEFAULT_QUEUE_KEY = "@ovok/native/background-sync/results";
|
|
20
|
+
declare const DEFAULT_MAX_RETRIES = 3;
|
|
21
|
+
declare const DEFAULT_RETRY_BACKOFF_MS = 30000;
|
|
22
|
+
declare const createResultId: () => string;
|
|
23
|
+
declare const createQueueId: () => string;
|
|
24
|
+
declare const readBackgroundSyncQueue: <T extends DeviceKey>(options: BackgroundSyncOptions<T>) => Promise<StoredBackgroundSyncItem<T>[]>;
|
|
25
|
+
declare const writeBackgroundSyncQueue: <T extends DeviceKey>(queue: StoredBackgroundSyncItem<T>[], options: BackgroundSyncOptions<T>) => Promise<void>;
|
|
26
|
+
export { BackgroundSyncFlushOptions, createQueueId, createResultId, DEFAULT_MAX_RETRIES, DEFAULT_QUEUE_KEY, DEFAULT_RETRY_BACKOFF_MS, readBackgroundSyncQueue, writeBackgroundSyncQueue, };
|
|
27
|
+
export type { StoredBackgroundSyncItem };
|
|
28
|
+
//# sourceMappingURL=background-sync-queue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"background-sync-queue.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAKlE,UAAU,wBAAwB,CAAC,CAAC,SAAS,SAAS;IACpD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAC3B;AAED,UAAU,0BAA0B;IAClC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,QAAA,MAAM,iBAAiB,yCAAyC,CAAC;AACjE,QAAA,MAAM,mBAAmB,IAAI,CAAC;AAC9B,QAAA,MAAM,wBAAwB,QAAS,CAAC;AAIxC,QAAA,MAAM,cAAc,QAAO,MAI1B,CAAC;AAEF,QAAA,MAAM,aAAa,QAAO,MAIzB,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAAU,CAAC,SAAS,SAAS,EACxD,SAAS,qBAAqB,CAAC,CAAC,CAAC,KAChC,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,CA8CvC,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAU,CAAC,SAAS,SAAS,EACzD,OAAO,wBAAwB,CAAC,CAAC,CAAC,EAAE,EACpC,SAAS,qBAAqB,CAAC,CAAC,CAAC,KAChC,OAAO,CAAC,IAAI,CAKd,CAAC;AAEF,OAAO,EACL,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,GACzB,CAAC;AACF,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,
|
|
1
|
+
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,EAEtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoB1C,qBAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC,CAC1C,aAAa,EAAE,aAAa,GAC3B,OAAO;WAUG,4BAA4B,CACvC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,qBAAqB,CAAC;IAwIjC,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,yBAAyB,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,UAAU,CAAC,EAAE,yBAAyB,EACtC,QAAQ,CAAC,EAAE,+BAA+B,EAC1C,mBAAmB,CAAC,EAAE,gCAAgC,GACrD,qBAAqB;CAwBzB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { polyfillMedplumWebAPIs as polyfillOvokWebAPIs } from "@medplum/expo-polyfills";
|
|
2
|
-
export { ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig,
|
|
3
|
-
export { polyfillOvokWebAPIs };
|
|
1
|
+
import { cleanupMedplumWebAPIs as cleanupOvokNativeRuntime, polyfillMedplumWebAPIs as polyfillOvokWebAPIs } from "@medplum/expo-polyfills";
|
|
2
|
+
export { ExpoClientStorage, ExtendedExpoCrypto, IExpoClientStorage, PolyfillEnabledConfig, initWebSocketManager, } from "@medplum/expo-polyfills";
|
|
3
|
+
export { cleanupOvokNativeRuntime, polyfillOvokWebAPIs };
|
|
4
4
|
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
5
5
|
export declare const polyfillMedplumWebAPIs: typeof polyfillOvokWebAPIs;
|
|
6
|
+
/** @deprecated Use cleanupOvokNativeRuntime instead. */
|
|
7
|
+
export declare const cleanupMedplumWebAPIs: typeof cleanupOvokNativeRuntime;
|
|
6
8
|
/** @deprecated Use polyfillOvokWebAPIs instead. */
|
|
7
9
|
export declare const initializeOvokNativeRuntime: typeof polyfillOvokWebAPIs;
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/polyfills/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,sBAAsB,IAAI,mBAAmB,EAC9C,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,qBAAqB,EACrB,oBAAoB,GACrB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,CAAC;AAEzD,mDAAmD;AACnD,eAAO,MAAM,sBAAsB,4BAAsB,CAAC;AAE1D,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,iCAA2B,CAAC;AAE9D,mDAAmD;AACnD,eAAO,MAAM,2BAA2B,4BAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/native",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"description": "React native component sdk for OVOK",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"@medplum/expo-polyfills": "3.2.23",
|
|
90
90
|
"countries-list": "^3.4.1",
|
|
91
91
|
"crypto-js": "4.2.0",
|
|
92
|
-
"
|
|
93
|
-
"
|
|
92
|
+
"i18n-iso-countries": "^7.14.0",
|
|
93
|
+
"libphonenumber-js": "^1.13.14"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@babel/core": "^7.29.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"@medplum/react-hooks": "3.2.23",
|
|
108
108
|
"@opentelemetry/api": "^1.9.1",
|
|
109
109
|
"@opentelemetry/api-logs": "^0.222.0",
|
|
110
|
-
"@ovok/core": "^0.4.
|
|
110
|
+
"@ovok/core": "^0.4.35",
|
|
111
111
|
"@react-native-community/datetimepicker": "^9.1.0",
|
|
112
112
|
"@react-native-community/netinfo": "^12.0.1",
|
|
113
113
|
"@react-native-google-signin/google-signin": "^16.1.2",
|