mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-24 20:28:16 +02:00
feat(google-docs): structure-preserving sync up with remote-conflict guard
This commit is contained in:
parent
8463c8ba57
commit
7e6ee040aa
6 changed files with 409 additions and 24 deletions
|
|
@ -693,10 +693,14 @@ const ipcSchemas = {
|
|||
req: z.object({
|
||||
path: RelPath,
|
||||
markdown: z.string(),
|
||||
// Overwrite the Google Doc even if it changed remotely since last sync.
|
||||
force: z.boolean().optional(),
|
||||
}),
|
||||
res: z.object({
|
||||
synced: z.boolean(),
|
||||
syncedAt: z.string().optional(),
|
||||
// True when a remote edit was detected and the push was held back.
|
||||
conflict: z.boolean().optional(),
|
||||
error: z.string().optional(),
|
||||
}),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue