@ovok/native 1.10.2 → 1.10.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/README.md +5 -5
- package/lib/commonjs/modules/auth/default-translation.js +5 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +3 -6
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js +3 -3
- package/lib/commonjs/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +5 -2
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-types.js +17 -0
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -0
- package/lib/commonjs/modules/auth/session/session-store.js +25 -13
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/auth/utils/sign-in-error.js +6 -2
- package/lib/commonjs/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js +5 -0
- package/lib/commonjs/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/declined-device-storage.js +36 -1
- package/lib/commonjs/modules/bt-management/hooks/declined-device-storage.js.map +1 -1
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-state.js +25 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-state.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-types.js +6 -0
- package/lib/commonjs/modules/bt-management/hooks/nearby-device-offer-types.js.map +1 -0
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-device-offer.js +22 -36
- package/lib/commonjs/modules/bt-management/hooks/use-nearby-device-offer.js.map +1 -1
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js +11 -0
- package/lib/commonjs/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js +33 -19
- package/lib/commonjs/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js +51 -11
- package/lib/commonjs/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/commonjs/modules/data-sync/utils/health-units.js +1 -0
- package/lib/commonjs/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js +31 -15
- package/lib/commonjs/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/commonjs/modules/ui/default-translation.js +50 -0
- package/lib/commonjs/modules/ui/default-translation.js.map +1 -0
- package/lib/module/modules/auth/default-translation.js +5 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +3 -6
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js +2 -3
- package/lib/module/modules/auth/reset-password/components/form/reset-password-form-provider.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +5 -2
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-types.js +13 -0
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -0
- package/lib/module/modules/auth/session/session-store.js +22 -10
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/auth/utils/sign-in-error.js +5 -2
- package/lib/module/modules/auth/utils/sign-in-error.js.map +1 -1
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js +5 -0
- package/lib/module/modules/bt-management/components/bt-provider-child-wrapper.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/declined-device-storage.js +33 -1
- package/lib/module/modules/bt-management/hooks/declined-device-storage.js.map +1 -1
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-state.js +20 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-state.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-types.js +4 -0
- package/lib/module/modules/bt-management/hooks/nearby-device-offer-types.js.map +1 -0
- package/lib/module/modules/bt-management/hooks/use-nearby-device-offer.js +21 -35
- package/lib/module/modules/bt-management/hooks/use-nearby-device-offer.js.map +1 -1
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js +11 -0
- package/lib/module/modules/bt-management/services/background-sync/background-sync-coordinator.js.map +1 -1
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js +33 -19
- package/lib/module/modules/data-sync/utils/convert-generic-health-data.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-data-catalog.js +51 -11
- package/lib/module/modules/data-sync/utils/health-data-catalog.js.map +1 -1
- package/lib/module/modules/data-sync/utils/health-units.js +1 -0
- package/lib/module/modules/data-sync/utils/health-units.js.map +1 -1
- package/lib/module/modules/ui/components/bluetooth-state-notice.js +31 -15
- package/lib/module/modules/ui/components/bluetooth-state-notice.js.map +1 -1
- package/lib/module/modules/ui/default-translation.js +45 -0
- package/lib/module/modules/ui/default-translation.js.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.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/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +27 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts +1 -18
- 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 +2 -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/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts +10 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts +15 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts +6 -14
- package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts.map +1 -1
- 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/types/background-sync.d.ts +7 -0
- package/lib/typescript/commonjs/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts +8 -5
- package/lib/typescript/commonjs/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/ui/default-translation.d.ts +30 -0
- package/lib/typescript/commonjs/src/modules/ui/default-translation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/default-translation.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/reset-password/components/form/reset-password-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +27 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts +1 -18
- 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 +2 -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/bt-provider-child-wrapper.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/declined-device-storage.d.ts +10 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/declined-device-storage.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts +6 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts +15 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts +6 -14
- package/lib/typescript/module/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts.map +1 -1
- 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/types/background-sync.d.ts +7 -0
- package/lib/typescript/module/src/modules/bt-management/types/background-sync.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/convert-generic-health-data.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts +2 -0
- package/lib/typescript/module/src/modules/data-sync/utils/health-data-catalog.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/data-sync/utils/health-units.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts +8 -5
- package/lib/typescript/module/src/modules/ui/components/bluetooth-state-notice.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/ui/default-translation.d.ts +30 -0
- package/lib/typescript/module/src/modules/ui/default-translation.d.ts.map +1 -0
- package/package.json +4 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Linking","Platform","StyleSheet","View","Button","PaperButton","Card","PaperCard","Text","PaperText","useBluetoothState","useOvokUi","jsx","_jsx","jsxs","_jsxs","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","copy","copyOverride","settingsAction","testID","uiProps","theme","slots","state","request","permissionStatus","openSettings","openAppSettings","busy","setBusy","useState","
|
|
1
|
+
{"version":3,"names":["React","useTranslation","Linking","Platform","StyleSheet","View","Button","PaperButton","Card","PaperCard","Text","PaperText","useBluetoothState","useOvokUi","jsx","_jsx","jsxs","_jsxs","BluetoothStateNotice","bleManager","requestPermission","onOpenSettings","title","copy","copyOverride","settingsAction","testID","uiProps","t","theme","slots","state","request","permissionStatus","openSettings","openAppSettings","busy","setBusy","useState","actionFailed","setActionFailed","openBluetoothSettings","OS","sendIntent","openURL","openPermissionSettings","takeAction","granted","heading","body","action","undefined","resolvedCopy","style","borderRadius","children","styles","content","variant","color","colors","error","loading","disabled","mode","onPress","create","gap","padding"],"sourceRoot":"../../../../../src","sources":["modules/ui/components/bluetooth-state-notice.tsx"],"mappings":";;AAAA;;AAEA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,QAAQ,eAAe;AAC9C,SAASC,OAAO,EAAEC,QAAQ,E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,IAAA,CAACL,IAAI;QAACmB,KAAK,EAAEA,KAAM;QAAC6B,OAAO,EAAC,aAAa;QAAAH,QAAA,EACtCH,YAAY,CAACJ;MAAO,CACjB,CAAC,eACPjC,IAAA,CAACL,IAAI;QAACmB,KAAK,EAAEA,KAAM;QAAA0B,QAAA,EAAEH,YAAY,CAACH;MAAI,CAAO,CAAC,EAC7CV,YAAY,iBACXxB,IAAA,CAACL,IAAI;QAACmB,KAAK,EAAEA,KAAM;QAACwB,KAAK,EAAE;UAAEM,KAAK,EAAE9B,KAAK,CAAC+B,MAAM,CAACC;QAAM,CAAE;QAAAN,QAAA,EACtD3B,CAAC,CAAC,qCAAqC;MAAC,CACrC,CACP,EACAsB,MAAM,iBACLnC,IAAA,CAACT,MAAM;QACLuB,KAAK,EAAEA,KAAM;QACbiC,OAAO,EAAE1B,IAAK;QACd2B,QAAQ,EAAE3B,IAAK;QACf4B,IAAI,EAAC,WAAW;QAChBC,OAAO,EAAEA,CAAA,KAAM,KAAKnB,UAAU,CAAC,CAAE;QAAAS,QAAA,EAEhCL;MAAM,CACD,CACT;IAAA,CACG;EAAC,CACH,CAAC;AAEX,CAAC;AAED,MAAMM,MAAM,GAAGpD,UAAU,CAAC8D,MAAM,CAAC;EAAET,OAAO,EAAE;IAAEU,GAAG,EAAE,EAAE;IAAEC,OAAO,EAAE;EAAG;AAAE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import i18n from "i18next";
|
|
4
|
+
export const defaultUiTranslation = {
|
|
5
|
+
"bluetooth-state-notice": {
|
|
6
|
+
off: {
|
|
7
|
+
heading: "Bluetooth is off",
|
|
8
|
+
body: "Turn on Bluetooth to find and connect to health devices.",
|
|
9
|
+
action: "Open Bluetooth settings"
|
|
10
|
+
},
|
|
11
|
+
unsupported: {
|
|
12
|
+
heading: "Bluetooth is not supported",
|
|
13
|
+
body: "This device cannot use Bluetooth Low Energy."
|
|
14
|
+
},
|
|
15
|
+
unauthorized: {
|
|
16
|
+
heading: "Bluetooth permission is required",
|
|
17
|
+
body: "Allow Bluetooth access to find health devices.",
|
|
18
|
+
action: "Allow access"
|
|
19
|
+
},
|
|
20
|
+
denied: {
|
|
21
|
+
heading: "Bluetooth permission is required",
|
|
22
|
+
body: "Allow Bluetooth access to find health devices.",
|
|
23
|
+
action: "Allow access"
|
|
24
|
+
},
|
|
25
|
+
blocked: {
|
|
26
|
+
heading: "Bluetooth permission is blocked",
|
|
27
|
+
body: "Allow Bluetooth access in app settings to find health devices.",
|
|
28
|
+
action: "Open app settings"
|
|
29
|
+
},
|
|
30
|
+
"action-error": "Bluetooth settings could not be opened. Please try again."
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
if (typeof i18n.addResourceBundle === "function") {
|
|
34
|
+
i18n.addResourceBundle("en", "translation", defaultUiTranslation, true, false);
|
|
35
|
+
} else {
|
|
36
|
+
const resources = i18n.options.resources ?? {};
|
|
37
|
+
const englishResources = Object.assign({}, resources.en);
|
|
38
|
+
const existingTranslation = Object.assign({}, englishResources.translation);
|
|
39
|
+
i18n.options.resources = Object.assign({}, resources, {
|
|
40
|
+
en: Object.assign({}, englishResources, {
|
|
41
|
+
translation: Object.assign({}, defaultUiTranslation, existingTranslation)
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=default-translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["i18n","defaultUiTranslation","off","heading","body","action","unsupported","unauthorized","denied","blocked","addResourceBundle","resources","options","englishResources","Object","assign","en","existingTranslation","translation"],"sourceRoot":"../../../../src","sources":["modules/ui/default-translation.ts"],"mappings":";;AAAA,OAAOA,IAAI,MAAM,SAAS;AAE1B,OAAO,MAAMC,oBAAoB,GAAG;EAClC,wBAAwB,EAAE;IACxBC,GAAG,EAAE;MACHC,OAAO,EAAE,kBAAkB;MAC3BC,IAAI,EAAE,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9,10 @@ export declare const defaultTranslation: {
|
|
|
9
9
|
};
|
|
10
10
|
profile: {
|
|
11
11
|
form: {
|
|
12
|
+
error: {
|
|
13
|
+
network: string;
|
|
14
|
+
generic: string;
|
|
15
|
+
};
|
|
12
16
|
phone: {
|
|
13
17
|
country: string;
|
|
14
18
|
invalid: string;
|
|
@@ -34,6 +38,7 @@ export declare const defaultTranslation: {
|
|
|
34
38
|
patient: string;
|
|
35
39
|
practitioner: string;
|
|
36
40
|
"reset-password": string;
|
|
41
|
+
success: string;
|
|
37
42
|
subtitle: string;
|
|
38
43
|
title: string;
|
|
39
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE9B,CAAC"}
|
package/lib/typescript/commonjs/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;
|
|
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,CA6J1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,gCA0DhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAID,sFAAsF;AACtF,eAAO,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAID,sFAAsF;AACtF,eAAO,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAsBvE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
2
|
+
import type { useClient } from "@ovok/core";
|
|
3
|
+
type Client = ReturnType<typeof useClient>;
|
|
4
|
+
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
|
+
interface SessionSnapshot {
|
|
6
|
+
status: SessionStatus;
|
|
7
|
+
profile?: Profile;
|
|
8
|
+
sessions: OvokNativeSession[];
|
|
9
|
+
error?: Error;
|
|
10
|
+
}
|
|
11
|
+
interface SessionClient {
|
|
12
|
+
logout: () => Promise<void>;
|
|
13
|
+
getSessions: () => Promise<OvokNativeSession[]>;
|
|
14
|
+
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
interface SessionStore {
|
|
17
|
+
snapshot: SessionSnapshot;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
refresh: (includeSessions: boolean) => Promise<void>;
|
|
20
|
+
refreshSessions: () => Promise<void>;
|
|
21
|
+
logout: () => Promise<void>;
|
|
22
|
+
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
declare const normalizeSession: (session: OvokNativeSession) => OvokNativeSession;
|
|
25
|
+
export { normalizeSession };
|
|
26
|
+
export type { Client, OvokNativeSession, Profile, SessionClient, SessionStore };
|
|
27
|
+
//# sourceMappingURL=session-store-types.d.ts.map
|
|
@@ -0,0 +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,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,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,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;AAC5B,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
3
|
-
type Client = ReturnType<typeof useClient>;
|
|
4
|
-
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
|
-
interface SessionSnapshot {
|
|
6
|
-
status: SessionStatus;
|
|
7
|
-
profile?: Profile;
|
|
8
|
-
sessions: OvokNativeSession[];
|
|
9
|
-
error?: Error;
|
|
10
|
-
}
|
|
11
|
-
interface SessionStore {
|
|
12
|
-
snapshot: SessionSnapshot;
|
|
13
|
-
subscribe: (listener: () => void) => () => void;
|
|
14
|
-
refresh: (includeSessions: boolean) => Promise<void>;
|
|
15
|
-
refreshSessions: () => Promise<void>;
|
|
16
|
-
logout: () => Promise<void>;
|
|
17
|
-
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
18
|
-
}
|
|
1
|
+
import { type Client, type SessionStore } from "./session-store-types";
|
|
19
2
|
declare const getSessionStore: (client: Client) => SessionStore;
|
|
20
3
|
export { getSessionStore };
|
|
21
4
|
//# sourceMappingURL=session-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,MAAM,EAIX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AA4N/B,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -8,10 +8,11 @@ interface ParsedSignInError {
|
|
|
8
8
|
error: SignInError;
|
|
9
9
|
fieldErrors: ValidationError[];
|
|
10
10
|
}
|
|
11
|
+
declare const isNetworkError: (error: unknown, message?: unknown) => boolean;
|
|
11
12
|
/** Converts transport/server failures to safe, translatable sign-in errors. */
|
|
12
13
|
declare const parseSignInError: (error: unknown, options?: {
|
|
13
14
|
isMfaVerification?: boolean;
|
|
14
15
|
isSignIn?: boolean;
|
|
15
16
|
}) => ParsedSignInError;
|
|
16
|
-
export { parseSignInError, type ParsedSignInError, type SignInError };
|
|
17
|
+
export { isNetworkError, parseSignInError, type ParsedSignInError, type SignInError, };
|
|
17
18
|
//# sourceMappingURL=sign-in-error.d.ts.map
|
|
@@ -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;
|
|
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,YAYxD,CAAC;AAEF,+EAA+E;AAC/E,QAAA,MAAM,gBAAgB,GACpB,OAAO,OAAO,EACd,UAAS;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,KAChE,iBA4DF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,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":"AACA,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,
|
|
1
|
+
{"version":3,"file":"bt-provider-child-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/components/bt-provider-child-wrapper.tsx"],"names":[],"mappings":"AACA,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+f3D,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import type { BluetoothRuntime } from "./runtime-context";
|
|
1
2
|
import type { PairedDeviceStorage } from "./use-paired-devices";
|
|
3
|
+
interface DeclinedDeviceState {
|
|
4
|
+
ids?: readonly string[];
|
|
5
|
+
loading?: Promise<readonly string[]>;
|
|
6
|
+
listeners: Set<() => void>;
|
|
7
|
+
}
|
|
2
8
|
declare const parseDeclinedDeviceIds: (value: string | null) => string[];
|
|
9
|
+
declare const getDeclinedDeviceState: (runtime: BluetoothRuntime, storageKey: string) => DeclinedDeviceState;
|
|
10
|
+
declare const publishDeclinedDeviceIds: (state: DeclinedDeviceState, ids: readonly string[]) => void;
|
|
11
|
+
declare const loadDeclinedDeviceIds: (state: DeclinedDeviceState, storage: PairedDeviceStorage, storageKey: string) => Promise<readonly string[]>;
|
|
3
12
|
declare const updateDeclinedDeviceIds: (storage: PairedDeviceStorage, storageKey: string, update: (ids: readonly string[]) => string[]) => Promise<string[]>;
|
|
4
|
-
export { parseDeclinedDeviceIds, updateDeclinedDeviceIds };
|
|
13
|
+
export { getDeclinedDeviceState, loadDeclinedDeviceIds, parseDeclinedDeviceIds, publishDeclinedDeviceIds, updateDeclinedDeviceIds, };
|
|
5
14
|
//# sourceMappingURL=declined-device-storage.d.ts.map
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/declined-device-storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declined-device-storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/declined-device-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"declined-device-storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/declined-device-storage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,UAAU,mBAAmB;IAC3B,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IACrC,SAAS,EAAE,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;CAC5B;AAYD,QAAA,MAAM,sBAAsB,GAAI,OAAO,MAAM,GAAG,IAAI,KAAG,MAAM,EAkB5D,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAC1B,SAAS,gBAAgB,EACzB,YAAY,MAAM,KACjB,mBAgBF,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAC5B,OAAO,mBAAmB,EAC1B,KAAK,SAAS,MAAM,EAAE,KACrB,IAGF,CAAC;AAEF,QAAA,MAAM,qBAAqB,GACzB,OAAO,mBAAmB,EAC1B,SAAS,mBAAmB,EAC5B,YAAY,MAAM,KACjB,OAAO,CAAC,SAAS,MAAM,EAAE,CAkB3B,CAAC;AAEF,QAAA,MAAM,uBAAuB,GAC3B,SAAS,mBAAmB,EAC5B,YAAY,MAAM,EAClB,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,KAAK,MAAM,EAAE,KAC3C,OAAO,CAAC,MAAM,EAAE,CAiClB,CAAC;AAEF,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,GACxB,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BluetoothRuntime } from "./runtime-context";
|
|
2
|
+
import { BluetoothError } from "../types/bluetooth-error";
|
|
3
|
+
declare const getDismissedLater: (runtime: BluetoothRuntime, storageKey: string) => Set<string>;
|
|
4
|
+
declare const notNearbyError: () => BluetoothError;
|
|
5
|
+
export { getDismissedLater, notNearbyError };
|
|
6
|
+
//# sourceMappingURL=nearby-device-offer-state.d.ts.map
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-state.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nearby-device-offer-state.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/nearby-device-offer-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAsB,MAAM,0BAA0B,CAAC;AAO9E,QAAA,MAAM,iBAAiB,GACrB,SAAS,gBAAgB,EACzB,YAAY,MAAM,KACjB,GAAG,CAAC,MAAM,CAgBZ,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,cAIxB,CAAC;AAEJ,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RuntimeDevice } from "./runtime-context";
|
|
2
|
+
import type { PairedDeviceStorage } from "./use-paired-devices";
|
|
3
|
+
import type { BluetoothError } from "../types/bluetooth-error";
|
|
4
|
+
type NearbyDeviceOfferStatus = "idle" | "offered" | "pairing" | "paired" | "error";
|
|
5
|
+
interface UseNearbyDeviceOfferOptions {
|
|
6
|
+
storage: PairedDeviceStorage;
|
|
7
|
+
storageKey?: string;
|
|
8
|
+
declinedStorageKey?: string;
|
|
9
|
+
enabled?: boolean;
|
|
10
|
+
shouldOffer?: (device: RuntimeDevice) => boolean;
|
|
11
|
+
onPaired?: (device: RuntimeDevice) => void;
|
|
12
|
+
onError?: (error: BluetoothError, device?: RuntimeDevice) => void;
|
|
13
|
+
}
|
|
14
|
+
export type { NearbyDeviceOfferStatus, UseNearbyDeviceOfferOptions };
|
|
15
|
+
//# sourceMappingURL=nearby-device-offer-types.d.ts.map
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/nearby-device-offer-types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nearby-device-offer-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/nearby-device-offer-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,KAAK,uBAAuB,GACxB,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,OAAO,CAAC;AAEZ,UAAU,2BAA2B;IACnC,OAAO,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;CACnE;AAED,YAAY,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,CAAC"}
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RuntimeDevice } from "./runtime-context";
|
|
3
|
-
import {
|
|
4
|
-
export type NearbyDeviceOfferStatus
|
|
5
|
-
export
|
|
6
|
-
storage: PairedDeviceStorage;
|
|
7
|
-
storageKey?: string;
|
|
8
|
-
declinedStorageKey?: string;
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
onPaired?: (device: RuntimeDevice) => void;
|
|
11
|
-
onError?: (error: BluetoothError, device?: RuntimeDevice) => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const useNearbyDeviceOffer: ({ storage, storageKey, declinedStorageKey, enabled, onPaired, onError, }: UseNearbyDeviceOfferOptions) => {
|
|
1
|
+
import type { NearbyDeviceOfferStatus, UseNearbyDeviceOfferOptions } from "./nearby-device-offer-types";
|
|
2
|
+
import type { RuntimeDevice } from "./runtime-context";
|
|
3
|
+
import { type BluetoothError } from "../types/bluetooth-error";
|
|
4
|
+
export type { NearbyDeviceOfferStatus, UseNearbyDeviceOfferOptions, } from "./nearby-device-offer-types";
|
|
5
|
+
export declare const useNearbyDeviceOffer: ({ storage, storageKey, declinedStorageKey, enabled, shouldOffer, onPaired, onError, }: UseNearbyDeviceOfferOptions) => {
|
|
14
6
|
device?: RuntimeDevice;
|
|
15
7
|
status: NearbyDeviceOfferStatus;
|
|
16
8
|
error?: BluetoothError;
|
|
17
9
|
accept: () => Promise<void>;
|
|
18
|
-
decline: () => Promise<void>;
|
|
10
|
+
decline: (deviceId?: string) => Promise<void>;
|
|
19
11
|
undecline: (deviceId: string) => Promise<void>;
|
|
20
12
|
later: () => void;
|
|
21
13
|
};
|
package/lib/typescript/commonjs/src/modules/bt-management/hooks/use-nearby-device-offer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-nearby-device-offer.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-nearby-device-offer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-nearby-device-offer.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/hooks/use-nearby-device-offer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,EACL,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAgBlC,YAAY,EACV,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,oBAAoB,GAAI,uFAQlC,2BAA2B,KAAG;IAC/B,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,uBAAuB,CAAC;IAChC,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9C,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,KAAK,EAAE,MAAM,IAAI,CAAC;CAqMnB,CAAC"}
|
|
@@ -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":"AACA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"background-sync-coordinator.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/bt-management/services/background-sync/background-sync-coordinator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAwB,MAAM,6BAA6B,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAc7D,MAAM,WAAW,0BAA0B;IACzC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,iBAAiB,yCAAyC,CAAC;AAkBjE;;;;GAIG;AACH,cAAM,yBAAyB,CAAC,CAAC,SAAS,SAAS;IAM9B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAL3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,SAAS,CAAoC;gBAEjB,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;IAS9D,OAAO,GAAI,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,IAAI,CAAC,CAwBtD;IAEE,KAAK,GAAI,UAAS,0BAA+B,KAAG,OAAO,CAAC,IAAI,CAAC,CAGnE;IAEL,OAAO,CAAC,YAAY,CAMlB;IAEF,OAAO,CAAC,SAAS,CAwCf;IAEF,OAAO,CAAC,UAAU,CAIhB;IAEF,OAAO,CAAC,UAAU,CAgEhB;CACH;AAED,OAAO,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -21,6 +21,11 @@ interface BackgroundSyncOptions<T extends DeviceKey = DeviceKey> {
|
|
|
21
21
|
storage: BackgroundSyncStorage;
|
|
22
22
|
/** Called after a result is persisted. Resolve only after the result is accepted. */
|
|
23
23
|
onResult: (result: BackgroundSyncResult<T>) => Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the stable, opaque key for the account currently able to accept a
|
|
26
|
+
* result. Required at runtime before queueing or delivering account-owned data.
|
|
27
|
+
*/
|
|
28
|
+
getOwnerKey?: () => string | undefined;
|
|
24
29
|
/** Called when a corrupt stored queue is moved aside and reset. */
|
|
25
30
|
onError?: (error: Error) => void;
|
|
26
31
|
/** Storage key used by the queue. */
|
|
@@ -41,6 +46,8 @@ interface BackgroundSyncOptions<T extends DeviceKey = DeviceKey> {
|
|
|
41
46
|
enabled?: boolean;
|
|
42
47
|
title?: string;
|
|
43
48
|
body?: string | ((result: BackgroundSyncResult<T>) => string);
|
|
49
|
+
/** Return false to suppress the notification for this accepted result. */
|
|
50
|
+
shouldNotify?: (result: BackgroundSyncResult<T>) => boolean;
|
|
44
51
|
data?: PushNotificationContent["data"] | ((result: BackgroundSyncResult<T>) => PushNotificationContent["data"]);
|
|
45
52
|
};
|
|
46
53
|
/** Number of delivery attempts before an item is retained as exhausted. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/background-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CA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C,CAAC;KAC9D,CAAC;IAEF,kFAAkF;IAClF,aAAa,CAAC,EAAE;QACd,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"background-sync.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-management/types/background-sync.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wCAAwC,EAAE,MAAM,uBAAuB,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAEnF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACjD,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD;AAED,UAAU,oBAAoB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,CAC5D,SAAQ,cAAc,CAAC,CAAC,CAAC;IAEzB,kFAAkF;IAClF,EAAE,EAAE,MAAM,CAAC;IAEX,wFAAwF;IACxF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS;IAE7D,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,mGAAmG;IACnG,OAAO,EAAE,qBAAqB,CAAC;IAE/B,qFAAqF;IACrF,QAAQ,EAAE,CAAC,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|
|
|
1
|
-
{"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"convert-generic-health-data.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/convert-generic-health-data.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAI3D,KAAK,sBAAsB,GAAG,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,EAAE,cAAc,CAAC;CACtB,CAAC;AAUF,eAAO,MAAM,qCAAqC,GAAU,kJAQzD,sBAAsB,KAAG,OAAO,CAAC,WAAW,EAAE,CAwGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI/D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"health-data-catalog.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-data-catalog.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BA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.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"health-units.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/data-sync/utils/health-units.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAmB5C,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,wBAAwB,EAC9D,gBAAgB,CAAC,KAChB,iBAAiB,CAAC,CAAC,CAAC,GAAG,SACwC,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { BleManager } from "react-native-ble-plx";
|
|
3
|
+
import type { BluetoothPermissionStatus } from "../../bt-management/types/bluetooth-permission-status";
|
|
4
|
+
import "../default-translation";
|
|
3
5
|
import { OvokUiProps } from "../types";
|
|
6
|
+
export interface BluetoothStateNoticeCopy {
|
|
7
|
+
heading?: string;
|
|
8
|
+
body?: string;
|
|
9
|
+
action?: string;
|
|
10
|
+
}
|
|
4
11
|
export interface BluetoothStateNoticeProps extends OvokUiProps {
|
|
5
12
|
bleManager?: BleManager;
|
|
6
13
|
requestPermission?: () => Promise<boolean>;
|
|
7
14
|
onOpenSettings?: () => Promise<void> | void;
|
|
8
15
|
title?: string;
|
|
9
|
-
copy?: Partial<Record<"on" | "unsupported" | "unauthorized" | "off",
|
|
10
|
-
heading?: string;
|
|
11
|
-
body?: string;
|
|
12
|
-
action?: string;
|
|
13
|
-
}>>;
|
|
16
|
+
copy?: Partial<Record<"on" | "unsupported" | "unauthorized" | "off" | BluetoothPermissionStatus, BluetoothStateNoticeCopy>>;
|
|
14
17
|
settingsAction?: string;
|
|
15
18
|
testID?: string;
|
|
16
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bluetooth-state-notice.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/ui/components/bluetooth-state-notice.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bluetooth-state-notice.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/ui/components/bluetooth-state-notice.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOlD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAGvG,OAAO,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CACZ,MAAM,CACJ,IAAI,GAAG,aAAa,GAAG,cAAc,GAAG,KAAK,GAAG,yBAAyB,EACzE,wBAAwB,CACzB,CACF,CAAC;IACF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,oBAAoB,GAAI,kHASlC,yBAAyB,6BA6I3B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const defaultUiTranslation: {
|
|
2
|
+
"bluetooth-state-notice": {
|
|
3
|
+
off: {
|
|
4
|
+
heading: string;
|
|
5
|
+
body: string;
|
|
6
|
+
action: string;
|
|
7
|
+
};
|
|
8
|
+
unsupported: {
|
|
9
|
+
heading: string;
|
|
10
|
+
body: string;
|
|
11
|
+
};
|
|
12
|
+
unauthorized: {
|
|
13
|
+
heading: string;
|
|
14
|
+
body: string;
|
|
15
|
+
action: string;
|
|
16
|
+
};
|
|
17
|
+
denied: {
|
|
18
|
+
heading: string;
|
|
19
|
+
body: string;
|
|
20
|
+
action: string;
|
|
21
|
+
};
|
|
22
|
+
blocked: {
|
|
23
|
+
heading: string;
|
|
24
|
+
body: string;
|
|
25
|
+
action: string;
|
|
26
|
+
};
|
|
27
|
+
"action-error": string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=default-translation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/ui/default-translation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BhC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const defaultTranslation: {
|
|
|
9
9
|
};
|
|
10
10
|
profile: {
|
|
11
11
|
form: {
|
|
12
|
+
error: {
|
|
13
|
+
network: string;
|
|
14
|
+
generic: string;
|
|
15
|
+
};
|
|
12
16
|
phone: {
|
|
13
17
|
country: string;
|
|
14
18
|
invalid: string;
|
|
@@ -34,6 +38,7 @@ export declare const defaultTranslation: {
|
|
|
34
38
|
patient: string;
|
|
35
39
|
practitioner: string;
|
|
36
40
|
"reset-password": string;
|
|
41
|
+
success: string;
|
|
37
42
|
subtitle: string;
|
|
38
43
|
title: string;
|
|
39
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkE9B,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;
|
|
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,CA6J1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reset-password-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/reset-password/components/form/reset-password-form-provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gDAAgD,CAAC;AAGhG,eAAO,MAAM,yBAAyB,GAAI,mDAMvC,8BAA8B,gCA0DhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAID,sFAAsF;AACtF,eAAO,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAID,sFAAsF;AACtF,eAAO,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAsBvE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
2
|
+
import type { useClient } from "@ovok/core";
|
|
3
|
+
type Client = ReturnType<typeof useClient>;
|
|
4
|
+
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
|
+
interface SessionSnapshot {
|
|
6
|
+
status: SessionStatus;
|
|
7
|
+
profile?: Profile;
|
|
8
|
+
sessions: OvokNativeSession[];
|
|
9
|
+
error?: Error;
|
|
10
|
+
}
|
|
11
|
+
interface SessionClient {
|
|
12
|
+
logout: () => Promise<void>;
|
|
13
|
+
getSessions: () => Promise<OvokNativeSession[]>;
|
|
14
|
+
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
interface SessionStore {
|
|
17
|
+
snapshot: SessionSnapshot;
|
|
18
|
+
subscribe: (listener: () => void) => () => void;
|
|
19
|
+
refresh: (includeSessions: boolean) => Promise<void>;
|
|
20
|
+
refreshSessions: () => Promise<void>;
|
|
21
|
+
logout: () => Promise<void>;
|
|
22
|
+
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
declare const normalizeSession: (session: OvokNativeSession) => OvokNativeSession;
|
|
25
|
+
export { normalizeSession };
|
|
26
|
+
export type { Client, OvokNativeSession, Profile, SessionClient, SessionStore };
|
|
27
|
+
//# sourceMappingURL=session-store-types.d.ts.map
|
|
@@ -0,0 +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,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,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,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,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,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;AAC5B,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OvokNativeSession, SessionRevokeOption, SessionStatus } from "../types/session";
|
|
3
|
-
type Client = ReturnType<typeof useClient>;
|
|
4
|
-
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
|
-
interface SessionSnapshot {
|
|
6
|
-
status: SessionStatus;
|
|
7
|
-
profile?: Profile;
|
|
8
|
-
sessions: OvokNativeSession[];
|
|
9
|
-
error?: Error;
|
|
10
|
-
}
|
|
11
|
-
interface SessionStore {
|
|
12
|
-
snapshot: SessionSnapshot;
|
|
13
|
-
subscribe: (listener: () => void) => () => void;
|
|
14
|
-
refresh: (includeSessions: boolean) => Promise<void>;
|
|
15
|
-
refreshSessions: () => Promise<void>;
|
|
16
|
-
logout: () => Promise<void>;
|
|
17
|
-
revokeSessions: (option: SessionRevokeOption) => Promise<void>;
|
|
18
|
-
}
|
|
1
|
+
import { type Client, type SessionStore } from "./session-store-types";
|
|
19
2
|
declare const getSessionStore: (client: Client) => SessionStore;
|
|
20
3
|
export { getSessionStore };
|
|
21
4
|
//# sourceMappingURL=session-store.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,KAAK,MAAM,EAIX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AA4N/B,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -8,10 +8,11 @@ interface ParsedSignInError {
|
|
|
8
8
|
error: SignInError;
|
|
9
9
|
fieldErrors: ValidationError[];
|
|
10
10
|
}
|
|
11
|
+
declare const isNetworkError: (error: unknown, message?: unknown) => boolean;
|
|
11
12
|
/** Converts transport/server failures to safe, translatable sign-in errors. */
|
|
12
13
|
declare const parseSignInError: (error: unknown, options?: {
|
|
13
14
|
isMfaVerification?: boolean;
|
|
14
15
|
isSignIn?: boolean;
|
|
15
16
|
}) => ParsedSignInError;
|
|
16
|
-
export { parseSignInError, type ParsedSignInError, type SignInError };
|
|
17
|
+
export { isNetworkError, parseSignInError, type ParsedSignInError, type SignInError, };
|
|
17
18
|
//# sourceMappingURL=sign-in-error.d.ts.map
|
|
@@ -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;
|
|
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,YAYxD,CAAC;AAEF,+EAA+E;AAC/E,QAAA,MAAM,gBAAgB,GACpB,OAAO,OAAO,EACd,UAAS;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAO,KAChE,iBA4DF,CAAC;AAEF,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,CAAC"}
|