@wippy-fe/types-global-proxy 0.0.39 → 0.0.41

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 (2) hide show
  1. package/index.d.ts +18 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -505,6 +505,23 @@ interface AppEnv {
505
505
  APP_WEBSOCKET_URL: string;
506
506
  }
507
507
  type ThemeMode = 'auto' | 'light' | 'dark';
508
+ interface TanstackQueryOptions {
509
+ refetchOnWindowFocus?: boolean;
510
+ refetchOnReconnect?: boolean;
511
+ refetchOnMount?: boolean;
512
+ staleTime?: number;
513
+ gcTime?: number;
514
+ retry?: boolean | number;
515
+ refetchInterval?: number | false;
516
+ }
517
+ interface TanstackConfig {
518
+ /** Overrides the in-code global query defaults for every request. */
519
+ default?: TanstackQueryOptions;
520
+ /** Overrides layered over `default` for single-resource (content) queries. */
521
+ content?: TanstackQueryOptions;
522
+ /** Overrides layered over `default` for list / navigation queries. */
523
+ lists?: TanstackQueryOptions;
524
+ }
508
525
  interface AppConfig {
509
526
  $schema: string;
510
527
  auth: AppAuthConfig;
@@ -512,6 +529,7 @@ interface AppConfig {
512
529
  axiosDefaults?: Partial<AxiosDefaults>;
513
530
  routePrefix?: string;
514
531
  apiRoutes?: ApiRoutesOverride;
532
+ tanstack?: TanstackConfig;
515
533
  themeMode?: ThemeMode;
516
534
  theming: {
517
535
  global?: ThemingScope;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wippy-fe/types-global-proxy",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "description": "Global type declarations for Wippy iframe proxy (window.getWippyApi, $W, etc.)",
5
5
  "license": "UNLICENSED",
6
6
  "types": "index.d.ts",