@plyaz/types 1.30.0 → 1.31.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.
@@ -861,6 +861,26 @@ export interface CoreBaseFrontendServiceConfig<TData = Record<string, unknown>,
861
861
  * ```
862
862
  */
863
863
  optimisticUpdates?: CoreOptimisticUpdateConfig;
864
+ /**
865
+ * Polling interval in milliseconds.
866
+ *
867
+ * When set to a value > 0, enables automatic polling via startPolling().
868
+ * The service will call fetchAll() at this interval.
869
+ *
870
+ * Set to 0 or omit to disable auto-polling (use default 30s when startPolling() is called).
871
+ *
872
+ * @example
873
+ * ```typescript
874
+ * // Poll every 5 seconds
875
+ * pollingInterval: 5000
876
+ *
877
+ * // Disable auto-polling, use default 30s when startPolling() is called
878
+ * pollingInterval: 0
879
+ * ```
880
+ *
881
+ * @default 0 (disabled, uses 30s default when startPolling() is called)
882
+ */
883
+ pollingInterval?: number;
864
884
  }
865
885
  /**
866
886
  * Base interface for frontend domain services with store integration.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plyaz/types",
3
- "version": "1.30.0",
3
+ "version": "1.31.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.",