feat(client): sync digital employee outbox
This commit is contained in:
@@ -20,6 +20,8 @@ declare global {
|
||||
QimingClawBridge?: {
|
||||
digital?: {
|
||||
getSnapshot?: () => Promise<QimingclawSnapshot>;
|
||||
getSyncStatus?: () => Promise<QimingclawSyncStatus>;
|
||||
flushSync?: () => Promise<QimingclawSyncStatus>;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -50,6 +52,17 @@ interface QimingclawServiceStatus {
|
||||
serverNames?: string[];
|
||||
}
|
||||
|
||||
interface QimingclawSyncStatus {
|
||||
running: boolean;
|
||||
syncing: boolean;
|
||||
enabled: boolean;
|
||||
endpoint: string | null;
|
||||
pending: number;
|
||||
failed: number;
|
||||
lastSyncAt: string | null;
|
||||
lastSyncError: string | null;
|
||||
}
|
||||
|
||||
interface QimingclawSnapshot {
|
||||
generatedAt: string;
|
||||
services: Record<string, QimingclawServiceStatus | null>;
|
||||
|
||||
Reference in New Issue
Block a user