From 842c74fdc2bf06a020868f5b4e504fec0da8715d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 7 Dec 2025 19:26:57 +0900 Subject: feat(client): add push service for sync implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/client/sync/index.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/client/sync/index.ts') 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"; -- cgit v1.2.3-70-g09d2