diff options
author | polwex <polwex@sortug.com> | 2025-07-16 10:07:06 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-16 10:07:06 +0700 |
commit | ff3078e93411c3467d797258744a7f17a7dbdf0a (patch) | |
tree | b13df65dbae32a3298afc0ada39b73a7d8aa469d /app/src/lib/bookmark-models.ts | |
parent | b26f4a03e15feddeb4bee8c06cd5078c1a54e5c5 (diff) |
m
Diffstat (limited to 'app/src/lib/bookmark-models.ts')
-rw-r--r-- | app/src/lib/bookmark-models.ts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/app/src/lib/bookmark-models.ts b/app/src/lib/bookmark-models.ts new file mode 100644 index 0000000..298bbec --- /dev/null +++ b/app/src/lib/bookmark-models.ts @@ -0,0 +1,46 @@ +import { TwitterBookmark } from "./twitter-api"; + +export interface Bookmark { + created: number | null; + origin: { twatter: TwitterBookmark } | { url: string }; + tags: string[]; +} + +export interface ProcessedBookmark { + id: string; + originalTweet: TwitterBookmark; + category: string; + summary: string; + keyPoints: string[]; + action: "store" | "schedule" | "archive" | "ignore"; + actionData?: { + vaultPath?: string; + eventDate?: string; + eventTitle?: string; + eventDescription?: string; + }; + processedAt: string; + llmAnalysis: { + model: string; + promptTokens: number; + completionTokens: number; + reasoning: string; + }; +} + +export interface BookmarkSyncStatus { + lastSync: string | null; + totalBookmarks: number; + processedBookmarks: number; + pendingBookmarks: number; + error?: string; +} + +export interface BookmarkFilters { + category?: string; + author?: string; + dateFrom?: string; + dateTo?: string; + hasAction?: boolean; + actionType?: "store" | "schedule" | "archive" | "ignore"; +} |