@plyaz/types 1.42.7 → 1.43.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.
@@ -12,6 +12,16 @@ import type { ConfigConflict, DebugInfo } from '../debugger';
12
12
  import type { PackageErrorLike } from '../../errors';
13
13
  import type { ReactNode } from 'react';
14
14
  import type { QueryClient } from '@tanstack/react-query';
15
+ /**
16
+ * Result returned by updateConfig
17
+ * Contains resolved fetchff config that can be passed directly to endpoint calls
18
+ */
19
+ export interface UpdateConfigResult {
20
+ /** Resolved fetchff config - spread this into endpoint calls */
21
+ fetchffConfig: RequestConfig;
22
+ /** Whether the update was valid and applied */
23
+ applied: boolean;
24
+ }
15
25
  /**
16
26
  * Options for creating an API client
17
27
  * Endpoints are automatically included from src/api/endpoints
@@ -279,7 +289,7 @@ export type ApiClientWithEvents<TEventManager, EndpointsList = UnknownRecord> =
279
289
  stopMonitoring(): void;
280
290
  isMonitoring(): boolean;
281
291
  dispose(): void;
282
- updateConfig(updates: Partial<ApiClientOptions>, options?: UpdateConfigOptions): void;
292
+ updateConfig(updates: Partial<ApiClientOptions>, options?: UpdateConfigOptions): UpdateConfigResult;
283
293
  clearTemporaryOverrides(): void;
284
294
  getConfig(): ApiConfigWithMetadata;
285
295
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.42.7",
3
+ "version": "1.43.0",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared TypeScript types and schema utilities for validation and parsing in the @playz ecosystem.",