UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

40 lines (39 loc) 972 B
export interface FileImageVariant { path: string; publicPath: string; width: number; height: number; size: number; format: string; } export interface FileImage { fileId: string; originalWidth: number; originalHeight: number; variants: Record<string, FileImageVariant>; processingStatus: "completed" | "failed"; processingError: string | null; format: string; quality: number; exifStripped: boolean; createdAt: Date; updatedAt: Date; } export interface File { id: string; projectId: string; userId: string | null; entityId: string | null; commentId: string | null; chatMessageId: string | null; spaceId: string | null; type: "image" | "video" | "document" | "other"; originalPath: string; originalSize: number; originalMimeType: string; position: number; metadata: Record<string, any>; image?: FileImage; createdAt: Date; updatedAt: Date; }