Files
buzz/admin-web/src/types.ts
T

48 lines
935 B
TypeScript
Raw Normal View History

export interface Report {
id: string;
communityId: string;
communityHost: string;
reporterPubkey: string;
targetKind: "event" | "pubkey" | "blob";
target: string;
channelId?: string;
reportType: string;
note?: string;
status: string;
createdAt: string;
}
export interface ReportedMessage {
authorPubkey: string;
content: string;
createdAt: string;
deletedAt: string | null;
}
export interface ReportDetail extends Report {
message: ReportedMessage | null;
}
export interface FeedbackSummary {
id: string;
communityId: string;
communityHost: string;
submitterPubkey: string;
category?: string;
bodySummary: string;
receivedAt: string;
}
export interface FeedbackDetail {
id: string;
communityId: string;
communityHost: string;
eventId: string;
submitterPubkey: string;
category?: string;
body: string;
tags: string[][];
eventCreatedAt: string;
receivedAt: string;
}