@webority/mobile-core 0.19.0 → 0.88.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/lib/commonjs/api/userClient.js +1 -1
  2. package/lib/commonjs/auth/authStore.js +1 -1
  3. package/lib/commonjs/download/index.js +1 -1
  4. package/lib/commonjs/geolocation/index.js +1 -1
  5. package/lib/commonjs/index.js +1 -1
  6. package/lib/commonjs/network/networkStatus.js +1 -1
  7. package/lib/commonjs/sqlite/index.js +1 -1
  8. package/lib/commonjs/versionCheck/appBuild.js +1 -1
  9. package/lib/typescript/commonjs/api/baseUrl.d.ts +1 -1
  10. package/lib/typescript/commonjs/api/clientHeaders.d.ts +2 -2
  11. package/lib/typescript/commonjs/api/curl.d.ts +1 -1
  12. package/lib/typescript/commonjs/api/minAppVersion.d.ts +1 -1
  13. package/lib/typescript/commonjs/api/multipart.d.ts +1 -1
  14. package/lib/typescript/commonjs/api/publicClient.d.ts +2 -2
  15. package/lib/typescript/commonjs/api/requestDefaults.d.ts +1 -1
  16. package/lib/typescript/commonjs/api/retry.d.ts +2 -2
  17. package/lib/typescript/commonjs/api/tokenRefresh.d.ts +2 -2
  18. package/lib/typescript/commonjs/api/userClient.d.ts +4 -4
  19. package/lib/typescript/commonjs/api/workspace.d.ts +1 -1
  20. package/lib/typescript/commonjs/auth/authStore.d.ts +1 -1
  21. package/lib/typescript/commonjs/auth/index.d.ts +4 -4
  22. package/lib/typescript/commonjs/config/index.d.ts +2 -2
  23. package/lib/typescript/commonjs/download/adapters/expoFs.d.ts +1 -1
  24. package/lib/typescript/commonjs/download/index.d.ts +3 -3
  25. package/lib/typescript/commonjs/errors/extractApiError.d.ts +1 -1
  26. package/lib/typescript/commonjs/errors/index.d.ts +2 -2
  27. package/lib/typescript/commonjs/formatters/currency.d.ts +1 -1
  28. package/lib/typescript/commonjs/formatters/date.d.ts +3 -3
  29. package/lib/typescript/commonjs/formatters/dateMath.d.ts +3 -3
  30. package/lib/typescript/commonjs/formatters/formatConfig.d.ts +4 -4
  31. package/lib/typescript/commonjs/formatters/house.d.ts +3 -3
  32. package/lib/typescript/commonjs/formatters/index.d.ts +13 -13
  33. package/lib/typescript/commonjs/formatters/number.d.ts +1 -1
  34. package/lib/typescript/commonjs/formatters/phone.d.ts +4 -4
  35. package/lib/typescript/commonjs/geolocation/adapters/expoLocation.d.ts +1 -1
  36. package/lib/typescript/commonjs/geolocation/index.d.ts +3 -3
  37. package/lib/typescript/commonjs/index.d.ts +44 -44
  38. package/lib/typescript/commonjs/initSDK.d.ts +5 -5
  39. package/lib/typescript/commonjs/initUserAuth.d.ts +2 -2
  40. package/lib/typescript/commonjs/logger/crashlytics.d.ts +1 -1
  41. package/lib/typescript/commonjs/logger/index.d.ts +1 -1
  42. package/lib/typescript/commonjs/network/index.d.ts +2 -2
  43. package/lib/typescript/commonjs/network/networkStatus.d.ts +1 -1
  44. package/lib/typescript/commonjs/permissions/index.d.ts +4 -4
  45. package/lib/typescript/commonjs/push/index.d.ts +4 -4
  46. package/lib/typescript/commonjs/push/push.d.ts +6 -6
  47. package/lib/typescript/commonjs/push/task.d.ts +2 -2
  48. package/lib/typescript/commonjs/query/apiBaseQuery.d.ts +5 -5
  49. package/lib/typescript/commonjs/query/createAppApi.d.ts +3 -3
  50. package/lib/typescript/commonjs/query/index.d.ts +10 -10
  51. package/lib/typescript/commonjs/query/listeners.d.ts +1 -1
  52. package/lib/typescript/commonjs/query/paging.d.ts +2 -2
  53. package/lib/typescript/commonjs/query/persistedQueries.d.ts +2 -2
  54. package/lib/typescript/commonjs/query/tags.d.ts +2 -2
  55. package/lib/typescript/commonjs/redux/errorToastMiddleware.d.ts +3 -3
  56. package/lib/typescript/commonjs/redux/index.d.ts +5 -5
  57. package/lib/typescript/commonjs/redux/rootReducer.d.ts +1 -1
  58. package/lib/typescript/commonjs/review/index.d.ts +3 -3
  59. package/lib/typescript/commonjs/share/index.d.ts +1 -1
  60. package/lib/typescript/commonjs/smsRetriever/index.d.ts +1 -1
  61. package/lib/typescript/commonjs/specs/NativeSmsRetriever.d.ts +1 -1
  62. package/lib/typescript/commonjs/sqlite/adapters/expo.d.ts +1 -1
  63. package/lib/typescript/commonjs/sqlite/index.d.ts +4 -5
  64. package/lib/typescript/commonjs/storage/index.d.ts +2 -2
  65. package/lib/typescript/commonjs/types/axios.d.ts +2 -2
  66. package/lib/typescript/commonjs/updates/index.d.ts +2 -2
  67. package/lib/typescript/commonjs/updates/updates.d.ts +1 -1
  68. package/lib/typescript/commonjs/utils/imageCompression.d.ts +4 -4
  69. package/lib/typescript/commonjs/utils/index.d.ts +2 -2
  70. package/lib/typescript/commonjs/versionCheck/index.d.ts +6 -6
  71. package/lib/typescript/module/api/baseUrl.d.ts +1 -1
  72. package/lib/typescript/module/api/clientHeaders.d.ts +2 -2
  73. package/lib/typescript/module/api/curl.d.ts +1 -1
  74. package/lib/typescript/module/api/minAppVersion.d.ts +1 -1
  75. package/lib/typescript/module/api/multipart.d.ts +1 -1
  76. package/lib/typescript/module/api/publicClient.d.ts +2 -2
  77. package/lib/typescript/module/api/requestDefaults.d.ts +1 -1
  78. package/lib/typescript/module/api/retry.d.ts +2 -2
  79. package/lib/typescript/module/api/tokenRefresh.d.ts +2 -2
  80. package/lib/typescript/module/api/userClient.d.ts +4 -4
  81. package/lib/typescript/module/api/workspace.d.ts +1 -1
  82. package/lib/typescript/module/auth/authStore.d.ts +1 -1
  83. package/lib/typescript/module/auth/index.d.ts +4 -4
  84. package/lib/typescript/module/config/index.d.ts +2 -2
  85. package/lib/typescript/module/download/adapters/expoFs.d.ts +1 -1
  86. package/lib/typescript/module/download/index.d.ts +3 -3
  87. package/lib/typescript/module/errors/extractApiError.d.ts +1 -1
  88. package/lib/typescript/module/errors/index.d.ts +2 -2
  89. package/lib/typescript/module/formatters/currency.d.ts +1 -1
  90. package/lib/typescript/module/formatters/date.d.ts +3 -3
  91. package/lib/typescript/module/formatters/dateMath.d.ts +3 -3
  92. package/lib/typescript/module/formatters/formatConfig.d.ts +4 -4
  93. package/lib/typescript/module/formatters/house.d.ts +3 -3
  94. package/lib/typescript/module/formatters/index.d.ts +13 -13
  95. package/lib/typescript/module/formatters/number.d.ts +1 -1
  96. package/lib/typescript/module/formatters/phone.d.ts +4 -4
  97. package/lib/typescript/module/geolocation/adapters/expoLocation.d.ts +1 -1
  98. package/lib/typescript/module/geolocation/index.d.ts +3 -3
  99. package/lib/typescript/module/index.d.ts +44 -44
  100. package/lib/typescript/module/initSDK.d.ts +5 -5
  101. package/lib/typescript/module/initUserAuth.d.ts +2 -2
  102. package/lib/typescript/module/logger/crashlytics.d.ts +1 -1
  103. package/lib/typescript/module/logger/index.d.ts +1 -1
  104. package/lib/typescript/module/network/index.d.ts +2 -2
  105. package/lib/typescript/module/network/networkStatus.d.ts +1 -1
  106. package/lib/typescript/module/permissions/index.d.ts +4 -4
  107. package/lib/typescript/module/push/index.d.ts +4 -4
  108. package/lib/typescript/module/push/push.d.ts +6 -6
  109. package/lib/typescript/module/push/task.d.ts +2 -2
  110. package/lib/typescript/module/query/apiBaseQuery.d.ts +5 -5
  111. package/lib/typescript/module/query/createAppApi.d.ts +3 -3
  112. package/lib/typescript/module/query/index.d.ts +10 -10
  113. package/lib/typescript/module/query/listeners.d.ts +1 -1
  114. package/lib/typescript/module/query/paging.d.ts +2 -2
  115. package/lib/typescript/module/query/persistedQueries.d.ts +2 -2
  116. package/lib/typescript/module/query/tags.d.ts +2 -2
  117. package/lib/typescript/module/redux/errorToastMiddleware.d.ts +3 -3
  118. package/lib/typescript/module/redux/index.d.ts +5 -5
  119. package/lib/typescript/module/redux/rootReducer.d.ts +1 -1
  120. package/lib/typescript/module/review/index.d.ts +3 -3
  121. package/lib/typescript/module/share/index.d.ts +1 -1
  122. package/lib/typescript/module/smsRetriever/index.d.ts +1 -1
  123. package/lib/typescript/module/specs/NativeSmsRetriever.d.ts +1 -1
  124. package/lib/typescript/module/sqlite/adapters/expo.d.ts +1 -1
  125. package/lib/typescript/module/sqlite/index.d.ts +4 -5
  126. package/lib/typescript/module/storage/index.d.ts +2 -2
  127. package/lib/typescript/module/types/axios.d.ts +2 -2
  128. package/lib/typescript/module/updates/index.d.ts +2 -2
  129. package/lib/typescript/module/updates/updates.d.ts +1 -1
  130. package/lib/typescript/module/utils/imageCompression.d.ts +4 -4
  131. package/lib/typescript/module/utils/index.d.ts +2 -2
  132. package/lib/typescript/module/versionCheck/index.d.ts +6 -6
  133. package/package.json +28 -2
  134. package/src/specs/NativeSmsRetriever.ts +6 -6
@@ -1,5 +1,5 @@
1
1
  export interface SmsRetrieverError {
2
- type: 'TIMEOUT' | 'SERVICE_UNAVAILABLE' | 'UNKNOWN_ERROR';
2
+ type: "TIMEOUT" | "SERVICE_UNAVAILABLE" | "UNKNOWN_ERROR";
3
3
  message: string;
4
4
  }
5
5
  export interface SmsListenerSubscription {
@@ -1,4 +1,4 @@
1
- import type { TurboModule } from 'react-native';
1
+ import type { TurboModule } from "react-native";
2
2
  /**
3
3
  * Android-only — the Play Services SMS Retriever API has no iOS equivalent.
4
4
  * The JS wrapper in `smsRetriever/index.ts` never touches this module on
@@ -1,4 +1,4 @@
1
- import type { SqliteDriver } from '../index';
1
+ import type { SqliteDriver } from "../index";
2
2
  /**
3
3
  * expo-sqlite. Shape verified against 57.0.2 rather than assumed, and it is the
4
4
  * one driver that cannot share an adapter with the others: expo splits reads
@@ -1,7 +1,6 @@
1
1
  /**
2
- * expo-sqlite is the fleet's only sanctioned SQLite driver (react-native.md:
3
- * "we will always use expo-sqlite, what Expo gives, we don't look elsewhere
4
- * ever") — this module resolves it automatically, with no app-side wiring.
2
+ * expo-sqlite is the only supported SQLite driver, and this module resolves
3
+ * it automatically, with no app-side wiring.
5
4
  * `setSqliteImplementation` still exists, narrowed to tests and the showcase:
6
5
  * it injects a denying/failing backend to reach error paths a healthy device
7
6
  * never takes, the same pattern every other injectable surface in this
@@ -65,7 +64,7 @@ export interface FindOptions {
65
64
  export interface Migration {
66
65
  version: number;
67
66
  name?: string;
68
- up: string | string[] | ((tx: Pick<Db, 'execute'>) => Promise<void>);
67
+ up: string | string[] | ((tx: Pick<Db, "execute">) => Promise<void>);
69
68
  }
70
69
  export interface MigrateOptions {
71
70
  /**
@@ -92,7 +91,7 @@ export interface Db {
92
91
  * waits until it commits or rolls back. Inside `work` use only `tx`; a call
93
92
  * on the database itself would wait for this transaction and never finish.
94
93
  */
95
- transaction: <T>(work: (tx: Pick<Db, 'execute' | 'select' | 'selectOne'>) => Promise<T>) => Promise<T>;
94
+ transaction: <T>(work: (tx: Pick<Db, "execute" | "select" | "selectOne">) => Promise<T>) => Promise<T>;
96
95
  insert: (table: string, row: Record<string, unknown>) => Promise<number | undefined>;
97
96
  insertMany: (table: string, rows: Record<string, unknown>[]) => Promise<number>;
98
97
  update: (table: string, values: Record<string, unknown>, where: Where) => Promise<number>;
@@ -7,7 +7,7 @@ interface AsyncStorageLike {
7
7
  setItem: (key: string, value: string) => Promise<void>;
8
8
  removeItem: (key: string) => Promise<void>;
9
9
  /**
10
- * The batch API exists under TWO names, and both are live in this fleet.
10
+ * The batch API exists under TWO names, and both are live in apps today.
11
11
  *
12
12
  * `@react-native-async-storage/async-storage` 3 renamed the v1 trio and
13
13
  * changed their shapes: `getMany` returns a Record where `multiGet` returned
@@ -15,7 +15,7 @@ interface AsyncStorageLike {
15
15
  * names are still what `expo-sqlite/kv-store` and AsyncStorage 2 expose.
16
16
  *
17
17
  * Declaring only one set is not a compile error and not a runtime error — it
18
- * silently falls through to the per-key loop below. The fleet pins
18
+ * silently falls through to the per-key loop below. Apps pin
19
19
  * AsyncStorage 3, so recognising only the v1 names put every consumer on N
20
20
  * round-trips per batch with nothing to notice.
21
21
  */
@@ -1,5 +1,5 @@
1
- import 'axios';
2
- declare module 'axios' {
1
+ import "axios";
2
+ declare module "axios" {
3
3
  interface AxiosRequestConfig {
4
4
  /** When true, the library's response-error interceptors do not log this request's failure. */
5
5
  skipErrorLog?: boolean;
@@ -3,6 +3,6 @@
3
3
  * point because it names expo-updates, an optional peer: Metro resolves every require reachable
4
4
  * from an import, so keeping it off the main barrel lets an app without OTA skip the package.
5
5
  */
6
- export type { OtaUpdatesConfig, OtaUpdatesState, OtaUpdatesStatus, UpdatesModuleLike } from './updates';
7
- export { applyOtaUpdate, checkForOtaUpdate, DEFAULT_MIN_CHECK_INTERVAL_MS, initOtaUpdates, normalizeAppIdentity, setOtaUpdatesImplementation, stopOtaUpdates, useOtaUpdates } from './updates';
6
+ export type { OtaUpdatesConfig, OtaUpdatesState, OtaUpdatesStatus, UpdatesModuleLike, } from "./updates";
7
+ export { applyOtaUpdate, checkForOtaUpdate, DEFAULT_MIN_CHECK_INTERVAL_MS, initOtaUpdates, normalizeAppIdentity, setOtaUpdatesImplementation, stopOtaUpdates, useOtaUpdates, } from "./updates";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -60,7 +60,7 @@ export interface OtaUpdatesConfig {
60
60
  * `unavailable`: OTA is off in this build (a debug build, or expo-updates not installed).
61
61
  * `ready`: an update is downloaded and applies on the next cold start, or at `applyOtaUpdate()`.
62
62
  */
63
- export type OtaUpdatesStatus = 'unavailable' | 'idle' | 'checking' | 'downloading' | 'ready' | 'error';
63
+ export type OtaUpdatesStatus = "unavailable" | "idle" | "checking" | "downloading" | "ready" | "error";
64
64
  export interface OtaUpdatesState {
65
65
  status: OtaUpdatesStatus;
66
66
  /** The update now running; null for the bundle embedded in the store build. */
@@ -9,7 +9,7 @@
9
9
  * capture and a delayed save, and uploading the empty result is a certain
10
10
  * server rejection that can wedge an outbox.
11
11
  * 2. Decodes the photo ONCE and reads its size. The longer side is brought
12
- * down to `maxSize` (1500 by default, the fleet standard); a photo already
12
+ * down to `maxSize` (1500 by default); a photo already
13
13
  * within it is never enlarged.
14
14
  * 3. Re-encodes at a quality picked from the source's real byte size (bigger
15
15
  * files are compressed harder), or at the `quality` given. The re-encode
@@ -31,7 +31,7 @@
31
31
  * nothing. Tests and the showcase inject a backend through
32
32
  * `setImageCompressorImplementation`.
33
33
  */
34
- export type ImageOutputFormat = 'jpg' | 'png' | 'webp';
34
+ export type ImageOutputFormat = "jpg" | "png" | "webp";
35
35
  export interface CompressImageOptions {
36
36
  /** Bound on the LONGER side in pixels; never enlarges. Defaults to 1500. */
37
37
  maxSize?: number;
@@ -107,7 +107,7 @@ export interface EncodeOptions {
107
107
  width?: number;
108
108
  height?: number;
109
109
  quality: number;
110
- format: 'jpeg' | 'png' | 'webp';
110
+ format: "jpeg" | "png" | "webp";
111
111
  }
112
112
  export interface EncodedImage {
113
113
  uri: string;
@@ -142,7 +142,7 @@ export declare const setImageCompressorImplementation: (impl: ImageCompressorLik
142
142
  * Bigger source files get compressed harder: a fixed quality either
143
143
  * over-compresses small photos or leaves large ones too heavy to upload
144
144
  * quickly. Unknown size falls back to the middle rung rather than assuming
145
- * either extreme. The fleet ladder (`react-native.md`).
145
+ * either extreme.
146
146
  */
147
147
  export declare const qualityForFileSize: (fileSize?: number | null) => number;
148
148
  /**
@@ -1,3 +1,3 @@
1
- export type { CompressImageOptions, ImageCompressorLike } from './imageCompression';
2
- export { compressImage, ImageUnreadableError, setImageCompressorImplementation } from './imageCompression';
1
+ export type { CompressImageOptions, ImageCompressorLike } from "./imageCompression";
2
+ export { compressImage, ImageUnreadableError, setImageCompressorImplementation, } from "./imageCompression";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,18 +1,18 @@
1
- import { type Environment } from '../config';
2
- import { type DeviceInfoLike } from './appBuild';
1
+ import { type Environment } from "../config";
2
+ import { type DeviceInfoLike } from "./appBuild";
3
3
  /**
4
4
  * Supply the app identity from a native module instead of config.
5
5
  * Prefer `setConfig({ appId, appBuild })` — it needs no native dependency.
6
6
  * Pass `null` to clear.
7
7
  */
8
8
  export declare const setDeviceInfoImplementation: (impl: DeviceInfoLike | null) => void;
9
- export type Platform = 'ios' | 'android' | string;
9
+ export type Platform = "ios" | "android" | string;
10
10
  /**
11
11
  * A required update always reports `'major'`: the server states a minimum
12
12
  * build, not the size of the change, and `'major'` is the value consumers
13
13
  * already treat as "must update".
14
14
  */
15
- export type UpdateType = 'major' | 'minor' | 'patch' | 'prerelease' | null;
15
+ export type UpdateType = "major" | "minor" | "patch" | "prerelease" | null;
16
16
  /** @deprecated Store versions are no longer parsed; the minimum is a build number. */
17
17
  export interface ParsedVersion {
18
18
  major: number;
@@ -72,7 +72,7 @@ export declare const VersionCheck: VersionCheckType;
72
72
  */
73
73
  export declare const useVersionCheck: (isAppReady: boolean, environment?: Environment) => UpdateInfo;
74
74
  export default VersionCheck;
75
- export { readAppBuild } from './appBuild';
76
- export { isBuildBelowMinimum, parseBuildNumber } from './buildNumber';
75
+ export { readAppBuild } from "./appBuild";
76
+ export { isBuildBelowMinimum, parseBuildNumber } from "./buildNumber";
77
77
  export type { DeviceInfoLike };
78
78
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import type { AxiosInstance } from "axios";
2
2
  /**
3
3
  * Resolves `baseURL` PER REQUEST rather than at module evaluation.
4
4
  *
@@ -1,10 +1,10 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import type { AxiosInstance } from "axios";
2
2
  export declare const CLIENT_BUILD_HEADER = "X-Client-Build";
3
3
  export declare const APP_BUILD_HEADER = "X-App-Build";
4
4
  export declare const CLIENT_KIND_HEADER = "X-Client-Kind";
5
5
  export declare const ACCOUNT_ID_HEADER = "X-Account-Id";
6
6
  /** The server picks session rules and the minimum version per kind; the names match its enum. */
7
- export type ClientKind = 'Browser' | 'MobileApp';
7
+ export type ClientKind = "Browser" | "MobileApp";
8
8
  export declare const CLIENT_KIND: ClientKind;
9
9
  /** `<appVersion>+<commit>`, `<appVersion>` when no commit was stamped, `null` before init. */
10
10
  export declare const getClientBuild: () => string | null;
@@ -1,4 +1,4 @@
1
- import type { AxiosRequestConfig } from 'axios';
1
+ import type { AxiosRequestConfig } from "axios";
2
2
  /**
3
3
  * Builds a copy-pasteable curl command for a request, with every credential
4
4
  * replaced by a placeholder.
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import type { AxiosInstance } from "axios";
2
2
  /**
3
3
  * The lowest internal build number (the integer `VERSION_INTERNAL`) the API
4
4
  * still serves for this client kind. The API sends it on every response,
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import type { AxiosInstance } from "axios";
2
2
  /**
3
3
  * The clients default to a JSON content type, and axios then serialises a FormData body to
4
4
  * JSON, which breaks every upload. Dropping the header for FormData lets the platform write
@@ -1,5 +1,5 @@
1
- import { type AxiosInstance } from 'axios';
2
- import '../types/axios.js';
1
+ import { type AxiosInstance } from "axios";
2
+ import "../types/axios.js";
3
3
  /**
4
4
  * Public Axios Client
5
5
  * - Base URL: Set your public API base URL.
@@ -1,4 +1,4 @@
1
- import type { AxiosInstance } from 'axios';
1
+ import type { AxiosInstance } from "axios";
2
2
  /**
3
3
  * A fresh v4 uuid. `crypto.randomUUID` exists only in a secure context (HTTPS or localhost) and
4
4
  * not at all on Hermes, so the id falls back to `getRandomValues`, then to `Math.random`. A
@@ -1,4 +1,4 @@
1
- import { type AxiosError, type AxiosInstance } from 'axios';
1
+ import { type AxiosError, type AxiosInstance } from "axios";
2
2
  export interface RetryPolicy {
3
3
  retries?: number;
4
4
  /** `attempt` is 1-based: 1 is the first retry, not the original request. */
@@ -6,7 +6,7 @@ export interface RetryPolicy {
6
6
  shouldRetry?: (error: AxiosError) => boolean;
7
7
  onRetry?: (attempt: number, error: AxiosError) => void;
8
8
  }
9
- declare module 'axios' {
9
+ declare module "axios" {
10
10
  interface AxiosRequestConfig {
11
11
  /** `false` opts a single request out of retrying; an object overrides the client policy. */
12
12
  retry?: boolean | RetryPolicy;
@@ -1,5 +1,5 @@
1
- import { type SessionEndReason } from '../auth/authStore.js';
2
- import type { UserAuthOptions } from '../initUserAuth.js';
1
+ import { type SessionEndReason } from "../auth/authStore.js";
2
+ import type { UserAuthOptions } from "../initUserAuth.js";
3
3
  /**
4
4
  * The one token-refresh flow in the library, run by userClient's interceptors.
5
5
  * The library calls the refresh endpoint itself, so it can tell a rejected
@@ -1,7 +1,7 @@
1
- import { type AxiosInstance } from 'axios';
2
- import '../types/axios.js';
3
- export type { RefreshableStore } from './tokenRefresh.js';
4
- export { injectStore, injectUserAuth, resetRefreshState, SIGN_OUT_REASON_HEADER } from './tokenRefresh.js';
1
+ import { type AxiosInstance } from "axios";
2
+ import "../types/axios.js";
3
+ export type { RefreshableStore } from "./tokenRefresh.js";
4
+ export { injectStore, injectUserAuth, resetRefreshState, SIGN_OUT_REASON_HEADER, } from "./tokenRefresh.js";
5
5
  /**
6
6
  * Thrown by the request interceptor when the device is offline, before the
7
7
  * request ever reaches the adapter (and therefore the network). Distinct from
@@ -1,4 +1,4 @@
1
- import type { AxiosError, InternalAxiosRequestConfig } from 'axios';
1
+ import type { AxiosError, InternalAxiosRequestConfig } from "axios";
2
2
  /** The body `code` of the API's 409 for a request naming a workspace the session is not in. */
3
3
  export declare const WORKSPACE_CHANGED_CODE = "workspace_changed";
4
4
  interface WorkspaceChangedResponse {
@@ -29,7 +29,7 @@ export interface StoredToken {
29
29
  * - `otherTab`: web only. Another tab signed out of the shared session; never
30
30
  * emitted here, declared so both platforms share one type.
31
31
  */
32
- export type SessionEndReason = 'signedOut' | 'rejected' | 'terminated' | 'corrupt' | 'otherTab';
32
+ export type SessionEndReason = "signedOut" | "rejected" | "terminated" | "corrupt" | "otherTab";
33
33
  /** What else is known about a session end, beside its reason. */
34
34
  export interface SessionEndDetail {
35
35
  /**
@@ -1,5 +1,5 @@
1
- export type { LegacyTokenKeys, SessionEndDetail, SessionEndedListener, SessionEndReason, StoredToken } from './authStore.js';
2
- export { ACCESS_TOKEN_KEY, addSessionEndedListener, clearSession, getSessionUser, getToken, LEGACY_REFRESH_TOKEN_LIFETIME_MS, REFRESH_TOKEN_KEY, removeSessionUser, removeToken, SESSION_USER_KEY, setLegacyTokenKeys, storeSessionUser, storeToken } from './authStore.js';
3
- export type { JwtClaims } from './jwt.js';
4
- export { decodeJWT, getJWTExpiry, isJWTExpired } from './jwt.js';
1
+ export type { LegacyTokenKeys, SessionEndDetail, SessionEndedListener, SessionEndReason, StoredToken, } from "./authStore.js";
2
+ export { ACCESS_TOKEN_KEY, addSessionEndedListener, clearSession, getSessionUser, getToken, LEGACY_REFRESH_TOKEN_LIFETIME_MS, REFRESH_TOKEN_KEY, removeSessionUser, removeToken, SESSION_USER_KEY, setLegacyTokenKeys, storeSessionUser, storeToken, } from "./authStore.js";
3
+ export type { JwtClaims } from "./jwt.js";
4
+ export { decodeJWT, getJWTExpiry, isJWTExpired } from "./jwt.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -2,8 +2,8 @@
2
2
  * Configuration management for Webority packages
3
3
  * Provides a flexible way to inject configuration without hard dependencies
4
4
  */
5
- export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
6
- export type Environment = 'Development' | 'Production' | 'Staging';
5
+ export type LogLevel = "debug" | "info" | "warn" | "error";
6
+ export type Environment = "Development" | "Production" | "Staging";
7
7
  export interface Config {
8
8
  /** API base URL (required before making API calls) */
9
9
  baseUrl: string | null;
@@ -1,4 +1,4 @@
1
- import type { FileSystemLike } from '../index.js';
1
+ import type { FileSystemLike } from "../index.js";
2
2
  /**
3
3
  * expo-file-system. Shape verified against 57.0.6, where the legacy function
4
4
  * API (`downloadAsync`, `getInfoAsync`) still exists on the main entry point
@@ -20,7 +20,7 @@ export interface FileSystemLike {
20
20
  }
21
21
  export interface DownloadHttpRequestConfig {
22
22
  headers?: Record<string, string>;
23
- responseType: 'arraybuffer';
23
+ responseType: "arraybuffer";
24
24
  timeout?: number;
25
25
  signal?: AbortSignal;
26
26
  onDownloadProgress?: (event: {
@@ -40,7 +40,7 @@ export interface DownloadHttpClient {
40
40
  data: T;
41
41
  }>;
42
42
  }
43
- export type DownloadDestination = 'documents' | 'cache' | 'downloads';
43
+ export type DownloadDestination = "documents" | "cache" | "downloads";
44
44
  export interface DownloadOptions {
45
45
  /** Sends the request: `userClient` for a signed-in download, `publicClient` for an open one. */
46
46
  client: DownloadHttpClient;
@@ -60,7 +60,7 @@ export interface DownloadResult {
60
60
  mimeType?: string;
61
61
  fromCache: boolean;
62
62
  }
63
- export type DownloadErrorCode = 'unsupported' | 'permission-denied' | 'network' | 'http-error' | 'write-failed' | 'aborted' | 'empty-file';
63
+ export type DownloadErrorCode = "unsupported" | "permission-denied" | "network" | "http-error" | "write-failed" | "aborted" | "empty-file";
64
64
  export declare class DownloadError extends Error {
65
65
  readonly code: DownloadErrorCode;
66
66
  readonly status?: number;
@@ -2,7 +2,7 @@
2
2
  * Normalizes any failure a thunk, a service or the RTK Query base query can see into one
3
3
  * `ApiError`. Identical source in @webority/web-core and @webority/mobile-core.
4
4
  *
5
- * Bodies read, newest first: the fleet body `{ code, message, traceId, errors }` (D-077),
5
+ * Bodies read, newest first: the standard body `{ code, message, traceId, errors }`,
6
6
  * where `errors` is a ModelState dictionary (`{ Field: ["msg"] }`) or a list of
7
7
  * `{ field, message, reference }` (a refusal that names its fields),
8
8
  * ProblemDetails `{ title, detail, errors }` from APIs not yet moved, legacy `{ error }` and
@@ -1,3 +1,3 @@
1
- export type { ApiError } from './extractApiError.js';
2
- export { apiErrorMessage, CONTRACT_ERROR_CODE, extractApiError, isApiError, isNoResponse, NETWORK_CODE, OFFLINE_CODE, OFFLINE_MESSAGE, REQUEST_CANCELED_CODE, SERVER_FAILURE_MESSAGE, TIMEOUT_CODE, TIMEOUT_MESSAGE, toFieldPath, UNEXPECTED_MESSAGE, UNREACHABLE_MESSAGE } from './extractApiError.js';
1
+ export type { ApiError } from "./extractApiError.js";
2
+ export { apiErrorMessage, CONTRACT_ERROR_CODE, extractApiError, isApiError, isNoResponse, NETWORK_CODE, OFFLINE_CODE, OFFLINE_MESSAGE, REQUEST_CANCELED_CODE, SERVER_FAILURE_MESSAGE, TIMEOUT_CODE, TIMEOUT_MESSAGE, toFieldPath, UNEXPECTED_MESSAGE, UNREACHABLE_MESSAGE, } from "./extractApiError.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -2,7 +2,7 @@
2
2
  * The currency keys plus any other `Intl.NumberFormatOptions` (`currencyDisplay`, `notation`,
3
3
  * `signDisplay`, ...), passed through to Intl.NumberFormat.
4
4
  */
5
- export interface FormatCurrencyOptions extends Omit<Intl.NumberFormatOptions, 'style' | 'currency'> {
5
+ export interface FormatCurrencyOptions extends Omit<Intl.NumberFormatOptions, "style" | "currency"> {
6
6
  /** ISO 4217 currency code. A missing or empty one warns and prints INR. */
7
7
  currency?: string;
8
8
  /** BCP-47 locale tag. Defaults to the configured locale, else `'en-IN'` (Indian numbering system). */
@@ -1,7 +1,7 @@
1
- import { type DateValue, type FormatDateOptions, type FormatDateTimeOptions, type FormatTimeOptions } from './house.js';
1
+ import { type DateValue, type FormatDateOptions, type FormatDateTimeOptions, type FormatTimeOptions } from "./house.js";
2
2
  export type DateInput = Date | string | number;
3
- export type DateStyle = 'short' | 'medium' | 'long' | 'full';
4
- export type TimeStyle = 'short' | 'medium' | 'long';
3
+ export type DateStyle = "short" | "medium" | "long" | "full";
4
+ export type TimeStyle = "short" | "medium" | "long";
5
5
  /** "08-Apr-2026" in the configured zone; a bare calendar date stays that day. */
6
6
  export declare function formatDate(value: DateValue, options?: FormatDateOptions): string;
7
7
  /** Intl `dateStyle` output, `'en-IN'` by default. */
@@ -1,4 +1,4 @@
1
- import type { DateInput } from './date.js';
1
+ import type { DateInput } from "./date.js";
2
2
  /**
3
3
  * Whether two values fall on the same calendar day in the device's local
4
4
  * timezone. Invalid input on either side returns false rather than throwing.
@@ -30,7 +30,7 @@ export declare const addDays: (value: DateInput | null | undefined, count: numbe
30
30
  * Small dayjs/moment-style token formatter — YYYY/YY, MMMM/MMM/MM/M,
31
31
  * DD/D, dddd/ddd, HH/H (24h), hh/h (12h), mm/m, ss/s, A/a (upper/lower AM/PM).
32
32
  * Everything else in the pattern (spaces, commas, colons) passes through
33
- * literally. Hand-rolled rather than a dependency because this fleet's date
33
+ * literally. Hand-rolled rather than a dependency because the date
34
34
  * formatting needs are a small, closed token set, not general i18n — for
35
35
  * genuinely locale-aware output, `formatDate`/`formatTime` (Intl-backed, in
36
36
  * `./date`) are the ones to reach for; this is for matching an exact
@@ -46,7 +46,7 @@ export declare const formatDatePattern: (value: DateInput, pattern: string, opti
46
46
  /**
47
47
  * `DD MMM, YYYY` — zero-padded day, short month, comma, year (e.g.
48
48
  * `05 Sep, 2025`). A specific legacy pattern some apps already display,
49
- * not the fleet's own product convention: `formatDate` (the Intl `style`-based
49
+ * not the recommended convention: `formatDate` (the Intl `style`-based
50
50
  * formatter in `./date`) is the one to reach for in new code. This exists so
51
51
  * an app already showing this exact pattern can move off a date library
52
52
  * without a visible change.
@@ -21,21 +21,21 @@
21
21
  * only the date; the time of day, the zone and relative phrases are untouched.
22
22
  */
23
23
  /** `'IST'`: every instant in India Standard Time. `'viewer'`: the device or browser zone, labelled. */
24
- export type ZoneMode = 'IST' | 'viewer';
24
+ export type ZoneMode = "IST" | "viewer";
25
25
  /** How the integer part of a number is grouped. */
26
- export type NumberGrouping = 'indian' | 'international' | 'none';
26
+ export type NumberGrouping = "indian" | "international" | "none";
27
27
  /**
28
28
  * The decimal mark and group separator of every number: `'PointWithCommaGroups'` "1,234.5",
29
29
  * `'CommaWithPointGroups'` "1.234,5", `'CommaWithSpaceGroups'` "1 234,5", `'PointWithSpaceGroups'`
30
30
  * "1 234.5". The space is a no-break space (U+00A0), so a number never wraps.
31
31
  */
32
- export type NumberStyle = 'PointWithCommaGroups' | 'CommaWithPointGroups' | 'CommaWithSpaceGroups' | 'PointWithSpaceGroups';
32
+ export type NumberStyle = "PointWithCommaGroups" | "CommaWithPointGroups" | "CommaWithSpaceGroups" | "PointWithSpaceGroups";
33
33
  /**
34
34
  * The order of every date: `'DayMonthNameYear'` "09-Oct-2026" (the house order, month name from the
35
35
  * locale when one is configured), `'DayMonthYear'` "09/10/2026", `'MonthDayYear'` "10/09/2026",
36
36
  * `'YearMonthDay'` "2026-10-09".
37
37
  */
38
- export type DateOrder = 'DayMonthNameYear' | 'DayMonthYear' | 'MonthDayYear' | 'YearMonthDay';
38
+ export type DateOrder = "DayMonthNameYear" | "DayMonthYear" | "MonthDayYear" | "YearMonthDay";
39
39
  /** The two characters a number style puts in a number. */
40
40
  export interface NumberSeparators {
41
41
  decimal: string;
@@ -1,8 +1,8 @@
1
- import { type NumberGrouping, type ZoneMode } from './formatConfig.js';
1
+ import { type NumberGrouping, type ZoneMode } from "./formatConfig.js";
2
2
  /** A date the house formatters accept; null, undefined and "" read as missing. */
3
3
  export type DateValue = Date | string | number | null | undefined;
4
4
  /** A zone mode, `'UTC'`, or any IANA zone name such as `'America/New_York'`. */
5
- export type ZoneOption = ZoneMode | 'UTC' | (string & {});
5
+ export type ZoneOption = ZoneMode | "UTC" | (string & {});
6
6
  export interface FormatDateOptions {
7
7
  /** Overrides the configured zone mode for this call. */
8
8
  zone?: ZoneOption;
@@ -59,7 +59,7 @@ export interface FormatNumberOptions extends Intl.NumberFormatOptions {
59
59
  }
60
60
  export interface FormatPercentOptions extends FormatNumberOptions {
61
61
  /** `'ratio'` (the default) reads 0.42 as 42%; `'percent'` reads 42 as 42%. */
62
- scale?: 'ratio' | 'percent';
62
+ scale?: "ratio" | "percent";
63
63
  }
64
64
  export interface FormatMinorOptions {
65
65
  /** ISO 4217 code. A missing or empty one warns and prints INR. */
@@ -1,14 +1,14 @@
1
- export type { FormatCurrencyOptions } from './currency.js';
2
- export { formatCurrency } from './currency.js';
3
- export type { DateInput, DateStyle, TimeStyle } from './date.js';
4
- export { formatDate, formatDateTime, formatRelativeTime, formatTime } from './date.js';
5
- export { addDays, diffMs, formatDateDDMMMYYYY, formatDateISO, formatDatePattern, formatTime12h, formatTimeInWindowsZone, formatTimeInZone, isDateAfter, isDateBefore, isSameDay, startOfDay } from './dateMath.js';
6
- export type { DateOrder, FormatterConfig, NumberGrouping, NumberStyle, ZoneMode } from './formatConfig.js';
7
- export { configureFormatters, getFormatterConfig } from './formatConfig.js';
8
- export type { DateValue, FormatDateOptions, FormatDateTimeOptions, FormatMinorOptions, FormatNumberOptions, FormatPercentOptions, FormatRelativeOptions, FormatTimeOptions, ZoneOption } from './house.js';
9
- export { formatMinor, formatRelative } from './house.js';
10
- export { getInitials } from './initials.js';
11
- export { formatCompactNumber, formatNumber, formatPercent } from './number.js';
12
- export type { FormatPhoneOptions, PhoneCountry, PhoneCountryEntry, PhoneNumber, PhoneNumberType, PhoneParts, PhoneValidationKind } from './phone.js';
13
- export { AsYouType, clampNationalNumber, countryFlagEmoji, detectPhoneCountry, formatPhone, formatPhoneAsTyped, getCountries, getCountryCallingCode, getPhoneCountries, isSupportedCountry, isValidNationalNumber, isValidPhoneNumber, maxNationalNumberLength, normalizePhone, parsePhoneNumber, parsePhoneNumberFromString, splitPhoneNumber, validatePhoneNumberLength } from './phone.js';
1
+ export type { FormatCurrencyOptions } from "./currency.js";
2
+ export { formatCurrency } from "./currency.js";
3
+ export type { DateInput, DateStyle, TimeStyle } from "./date.js";
4
+ export { formatDate, formatDateTime, formatRelativeTime, formatTime } from "./date.js";
5
+ export { addDays, diffMs, formatDateDDMMMYYYY, formatDateISO, formatDatePattern, formatTime12h, formatTimeInWindowsZone, formatTimeInZone, isDateAfter, isDateBefore, isSameDay, startOfDay, } from "./dateMath.js";
6
+ export type { DateOrder, FormatterConfig, NumberGrouping, NumberStyle, ZoneMode, } from "./formatConfig.js";
7
+ export { configureFormatters, getFormatterConfig } from "./formatConfig.js";
8
+ export type { DateValue, FormatDateOptions, FormatDateTimeOptions, FormatMinorOptions, FormatNumberOptions, FormatPercentOptions, FormatRelativeOptions, FormatTimeOptions, ZoneOption, } from "./house.js";
9
+ export { formatMinor, formatRelative } from "./house.js";
10
+ export { getInitials } from "./initials.js";
11
+ export { formatCompactNumber, formatNumber, formatPercent } from "./number.js";
12
+ export type { FormatPhoneOptions, PhoneCountry, PhoneCountryEntry, PhoneNumber, PhoneNumberType, PhoneParts, PhoneValidationKind, } from "./phone.js";
13
+ export { AsYouType, clampNationalNumber, countryFlagEmoji, detectPhoneCountry, formatPhone, formatPhoneAsTyped, getCountries, getCountryCallingCode, getPhoneCountries, isSupportedCountry, isValidNationalNumber, isValidPhoneNumber, maxNationalNumberLength, normalizePhone, parsePhoneNumber, parsePhoneNumberFromString, splitPhoneNumber, validatePhoneNumberLength, } from "./phone.js";
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { type FormatNumberOptions, type FormatPercentOptions } from './house.js';
1
+ import { type FormatNumberOptions, type FormatPercentOptions } from "./house.js";
2
2
  /**
3
3
  * Two forms share each name. With an options object, or nothing, the house
4
4
  * formatter runs (`./house`: no Intl, the configured grouping and empty
@@ -1,6 +1,6 @@
1
- import { type CountryCode } from 'libphonenumber-js/max';
2
- export type { NumberType as PhoneNumberType, PhoneNumber } from 'libphonenumber-js/max';
3
- export { AsYouType, getCountries, getCountryCallingCode, isSupportedCountry, isValidPhoneNumber, parsePhoneNumber, parsePhoneNumberFromString, validatePhoneNumberLength } from 'libphonenumber-js/max';
1
+ import { type CountryCode } from "libphonenumber-js/max";
2
+ export type { NumberType as PhoneNumberType, PhoneNumber } from "libphonenumber-js/max";
3
+ export { AsYouType, getCountries, getCountryCallingCode, isSupportedCountry, isValidPhoneNumber, parsePhoneNumber, parsePhoneNumberFromString, validatePhoneNumberLength, } from "libphonenumber-js/max";
4
4
  /**
5
5
  * Re-exported under our own name rather than importing CountryCode directly
6
6
  * everywhere, so a future need to diverge (or re-narrow) has one place to do
@@ -56,7 +56,7 @@ export interface PhoneParts {
56
56
  * a 10-digit number starting with 1 to 5 is a real fixed line and passes
57
57
  * `'any'`, but no SMS will ever reach it.
58
58
  */
59
- export type PhoneValidationKind = 'any' | 'mobile';
59
+ export type PhoneValidationKind = "any" | "mobile";
60
60
  /**
61
61
  * Split a typed or pasted number into calling code + national digits.
62
62
  * `'+919876543210'` resolves to IN / 91 / 9876543210 from its own prefix; a
@@ -1,4 +1,4 @@
1
- import type { GeolocationLike } from '../index.js';
1
+ import type { GeolocationLike } from "../index.js";
2
2
  /**
3
3
  * The slice of expo-location this adapter uses. Verified against 57.0.14.
4
4
  *
@@ -1,4 +1,4 @@
1
- import '../permissions/location.js';
1
+ import "../permissions/location.js";
2
2
  export interface GeoCoordinates {
3
3
  latitude: number;
4
4
  longitude: number;
@@ -11,14 +11,14 @@ export interface GeoPosition {
11
11
  coords: GeoCoordinates;
12
12
  timestamp: number;
13
13
  }
14
- export type GeoErrorCode = 'permission-denied' | 'position-unavailable' | 'timeout' | 'services-disabled' | 'unsupported';
14
+ export type GeoErrorCode = "permission-denied" | "position-unavailable" | "timeout" | "services-disabled" | "unsupported";
15
15
  export declare class GeolocationError extends Error {
16
16
  readonly code: GeoErrorCode;
17
17
  constructor(code: GeoErrorCode, message: string);
18
18
  }
19
19
  export interface GeoOptions {
20
20
  /** `fine` maps to the platform's high-accuracy (GPS) provider. Default `fine`. */
21
- accuracy?: 'fine' | 'coarse';
21
+ accuracy?: "fine" | "coarse";
22
22
  timeoutMs?: number;
23
23
  maximumAgeMs?: number;
24
24
  /** Extra attempts after the first, used only for `timeout` / `position-unavailable`. */