diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-07 19:26:57 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-07 19:26:57 +0900 |
| commit | 842c74fdc2bf06a020868f5b4e504fec0da8715d (patch) | |
| tree | 8620a9ddb4211f449faaae98776a62ed8101fae3 /src/client/sync/index.ts | |
| parent | 83be5ccd5d64c64f65c7efbfb9feb94ab0f75ce6 (diff) | |
| download | kioku-842c74fdc2bf06a020868f5b4e504fec0da8715d.tar.gz kioku-842c74fdc2bf06a020868f5b4e504fec0da8715d.tar.zst kioku-842c74fdc2bf06a020868f5b4e504fec0da8715d.zip | |
feat(client): add push service for sync implementation
Implement PushService class to push local changes to server:
- Convert local decks, cards, and review logs to API format
- Push pending changes to server endpoint
- Mark items as synced after successful push
- Return conflicts reported by server (LWW resolution)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/client/sync/index.ts')
| -rw-r--r-- | src/client/sync/index.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/client/sync/index.ts b/src/client/sync/index.ts index 6f75a29..76f5081 100644 --- a/src/client/sync/index.ts +++ b/src/client/sync/index.ts @@ -7,3 +7,15 @@ export { type SyncQueueState, type SyncStatusType, } from "./queue"; + +export { + createPushService, + pendingChangesToPushData, + PushService, + type PushServiceOptions, + type SyncCardData, + type SyncDeckData, + type SyncPushData, + type SyncPushResult, + type SyncReviewLogData, +} from "./push"; |
