feat: adding user report

This commit is contained in:
Chubby Granny Chaser
2024-09-14 20:55:00 +01:00
parent fcc24d6b94
commit 8799378bf2
20 changed files with 463 additions and 228 deletions

View File

@@ -22,6 +22,7 @@ import type {
UpdateProfileRequest,
GameStats,
TrendingGame,
UserStats,
} from "@types";
import type { DiskSpace } from "check-disk-space";
@@ -143,6 +144,12 @@ declare global {
skip: number
) => Promise<UserFriends>;
getBlockedUsers: (take: number, skip: number) => Promise<UserBlocks>;
getUserStats: (userId: string) => Promise<UserStats>;
reportUser: (
userId: string,
reason: string,
description: string
) => Promise<void>;
/* Profile */
getMe: () => Promise<UserProfile | null>;