feat: initial profile refactor

This commit is contained in:
Chubby Granny Chaser
2024-09-12 00:53:16 +01:00
parent 6273ca1376
commit ada7b452a0
48 changed files with 10733 additions and 922 deletions

View File

@@ -18,6 +18,7 @@ import type {
FriendRequestAction,
UserFriends,
UserBlocks,
UpdateProfileRequest,
} from "@types";
import type { DiskSpace } from "check-disk-space";
@@ -141,7 +142,9 @@ declare global {
/* Profile */
getMe: () => Promise<UserProfile | null>;
undoFriendship: (userId: string) => Promise<void>;
updateProfile: (updateProfile: UpdateProfileProps) => Promise<UserProfile>;
updateProfile: (
updateProfile: UpdateProfileRequest
) => Promise<UserProfile>;
getFriendRequests: () => Promise<FriendRequest[]>;
updateFriendRequest: (
userId: string,