trender-client
Version:
Official Trender client API
20 lines (19 loc) • 594 B
TypeScript
import type { error, notificationTypeInterface, userInfo } from "./Global";
import type { postResponseSchema } from "./Post";
export interface notificationFetchResponseSchema {
user_id: string;
target_id: string;
post_id: string;
notification_type: notificationTypeInterface;
notification_id: string;
created_at: Date;
readed?: boolean;
post: postResponseSchema;
from: userInfo;
mentions: userInfo[] | [];
}
export interface notificationFetchResponse {
error?: error;
data?: Array<notificationFetchResponseSchema>;
pagination_key?: string;
}