From 21663fc29eba40978a6450f9e4bf0cdeb0aa1119 Mon Sep 17 00:00:00 2001 From: xCyanGrizzly Date: Wed, 25 Mar 2026 22:31:02 +0100 Subject: [PATCH] feat: add PackageGroupRow and DisplayItem types Co-Authored-By: Claude Opus 4.6 (1M context) --- src/lib/telegram/types.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/telegram/types.ts b/src/lib/telegram/types.ts index 03b487c..b49f1ab 100644 --- a/src/lib/telegram/types.ts +++ b/src/lib/telegram/types.ts @@ -68,6 +68,24 @@ export interface PaginatedResponse { }; } +export interface PackageGroupRow { + id: string; + name: string; + hasPreview: boolean; + totalFileSize: string; + totalFileCount: number; + packageCount: number; + combinedTags: string[]; + archiveTypes: ("ZIP" | "RAR" | "SEVEN_Z" | "DOCUMENT")[]; + latestIndexedAt: string; + sourceChannel: { id: string; title: string }; + packages: PackageListItem[]; +} + +export type DisplayItem = + | { type: "package"; data: PackageListItem } + | { type: "group"; data: PackageGroupRow }; + export interface IngestionAccountStatus { id: string; displayName: string | null;