feat: type sync conflict results

This commit is contained in:
2026-06-29 03:38:03 +08:00
parent ef959d6018
commit 663e299d28
4 changed files with 29 additions and 4 deletions
+14 -1
View File
@@ -65,11 +65,24 @@ export interface SyncStatus {
statusLabel: string;
}
export interface SyncConflict {
op_id?: string;
opId?: string;
entity_type?: string;
entityType?: string;
entity_id?: string;
entityId?: string;
path?: string;
reason?: string;
message?: string;
[key: string]: unknown;
}
export interface SyncNowResult {
pushed: number;
pulled: number;
serverSequence: number;
conflicts?: unknown[];
conflicts?: SyncConflict[];
applyErrors?: string[];
}