95 lines
1.9 KiB
TypeScript
95 lines
1.9 KiB
TypeScript
// Public client-safe API. Re-export each module by name; never `export *`.
|
|
export { CookieAdapter, DEFAULT_COOKIE_OPTIONS, cookie } from './cookie';
|
|
export type { CookieAdapterAbstraction, CookieOptions } from './cookie';
|
|
export { createClientEnv } from './env';
|
|
export type {
|
|
ClientEnvOptions,
|
|
EnvSchema,
|
|
EnvValues,
|
|
ServerEnvOptions,
|
|
} from './env';
|
|
export {
|
|
classifyError,
|
|
configureErrorHandler,
|
|
describeError,
|
|
handleError,
|
|
} from './error-handler';
|
|
export type {
|
|
ActionOutcome,
|
|
ErrorCause,
|
|
ErrorClass,
|
|
ErrorContext,
|
|
ErrorDescription,
|
|
ErrorHandlerConfig,
|
|
ErrorReport,
|
|
ErrorWhere,
|
|
ReadOutcome,
|
|
RetryKind,
|
|
TranslateFn,
|
|
} from './error-handler';
|
|
export { eventEmitter } from './event-emitter';
|
|
export type {
|
|
EventArgs,
|
|
EventEmitter,
|
|
EventListener,
|
|
EventMap,
|
|
EventName,
|
|
EventPayload,
|
|
Unsubscribe,
|
|
} from './event-emitter';
|
|
export {
|
|
HTTP_ERROR_CODES,
|
|
HttpClient,
|
|
HttpError,
|
|
createHttpClient,
|
|
http,
|
|
isHttpError,
|
|
toFieldErrors,
|
|
} from './http';
|
|
export type {
|
|
DownloadOptions,
|
|
DownloadResult,
|
|
ErrorInterceptor,
|
|
FeatureHttpConfig,
|
|
HttpClientConfig,
|
|
HttpErrorCode,
|
|
HttpErrorShape,
|
|
HttpMethod,
|
|
HttpResponse,
|
|
HttpResponseType,
|
|
QueryParams,
|
|
QueryValue,
|
|
RefreshConfig,
|
|
RequestArgs,
|
|
RequestConfig,
|
|
RequestInterceptor,
|
|
RequestOptions,
|
|
ResponseInterceptor,
|
|
RetryConfig,
|
|
UploadOptions,
|
|
UploadProgress,
|
|
} from './http';
|
|
export {
|
|
DEFAULT_STORAGE_PREFIX,
|
|
LocalStorageAdapter,
|
|
storage,
|
|
} from './local-storage';
|
|
export type { LocalStorageOptions } from './local-storage';
|
|
export {
|
|
SERVICE_WORKER_CONFIG,
|
|
SERVICE_WORKER_URL,
|
|
captureInstallPrompt,
|
|
configureServiceWorker,
|
|
getInstallState,
|
|
getServerInstallState,
|
|
promptInstall,
|
|
registerServiceWorker,
|
|
subscribeInstallState,
|
|
} from './pwa';
|
|
export type {
|
|
InstallOutcome,
|
|
InstallState,
|
|
ServiceWorkerConfig,
|
|
ServiceWorkerOptions,
|
|
} from './pwa';
|