UNPKG

@replyke/core

Version:

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

37 lines (36 loc) 859 B
import { Mention } from "./Mention"; import { UserLean } from "./User"; export interface TopComment { id: string; user: UserLean; upvotesCount: number; content: string; createdAt: string; } export interface Entity { id: string; referenceId: string; shortId: string; projectId: string; user?: UserLean | null; title: string | null; content: string | null; mentions: Mention[]; media: 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; }