UNPKG

@replyke/core

Version:

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

37 lines (36 loc) 857 B
import { Mention } from "./Mention"; import { User } from "./User"; export interface TopComment { id: string; user: User; upvotesCount: number; content: string; createdAt: string; } export interface Entity { id: string; foreignId: string | null; shortId: string; projectId: string; user?: User | null; title: string | null; content: string | null; mentions: Mention[]; attachments: Record<string, any>[]; keywords: string[]; upvotes: string[]; downvotes: string[]; repliesCount: number; views: number; score: number; scoreUpdatedAt: Date; location: { type: "Point"; coordinates: [number, number]; } | null; metadata: Record<string, any>; topComment: TopComment | null; createdAt: Date; updatedAt: Date; deletedAt: Date | null; }