feat: type sync conflict results
This commit is contained in:
+14
-1
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user