@plyaz/types 1.7.23 → 1.7.24
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type * from './types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event Queue Type Definitions
|
|
3
|
+
*/
|
|
4
|
+
import type { EventScopeWithTemporary } from '..';
|
|
5
|
+
import type { ApiConfig } from '../../config/types';
|
|
6
|
+
/**
|
|
7
|
+
* Queued event for deferred processing
|
|
8
|
+
*/
|
|
9
|
+
export interface QueuedEvent {
|
|
10
|
+
eventType: string;
|
|
11
|
+
eventName: string;
|
|
12
|
+
data: unknown;
|
|
13
|
+
scopes?: EventScopeWithTemporary[];
|
|
14
|
+
timestamp: number;
|
|
15
|
+
metadata?: {
|
|
16
|
+
source?: string;
|
|
17
|
+
priority?: 'critical' | 'high' | 'normal' | 'low';
|
|
18
|
+
retryCount?: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Queued config update
|
|
23
|
+
*/
|
|
24
|
+
export interface QueuedConfigUpdate {
|
|
25
|
+
config: Partial<ApiConfig>;
|
|
26
|
+
strategy: 'merge' | 'replace' | 'temporary';
|
|
27
|
+
scope: EventScopeWithTemporary;
|
|
28
|
+
timestamp: number;
|
|
29
|
+
metadata?: {
|
|
30
|
+
source?: string;
|
|
31
|
+
priority?: 'critical' | 'high' | 'normal' | 'low';
|
|
32
|
+
clearOnComplete?: boolean;
|
|
33
|
+
};
|
|
34
|
+
}
|
package/package.json
CHANGED