Merge branch 'main' into feat/disabling-update-badges

This commit is contained in:
Chubby Granny Chaser
2025-12-26 21:53:45 +00:00
committed by GitHub
71 changed files with 2994 additions and 1150 deletions

View File

@@ -144,6 +144,10 @@ export interface FriendRequestSync {
friendRequestCount: number;
}
export interface NotificationSync {
notificationCount: number;
}
export interface FriendRequest {
id: string;
displayName: string;
@@ -166,6 +170,7 @@ export type ProfileVisibility = "PUBLIC" | "PRIVATE" | "FRIENDS";
export interface Badge {
name: string;
title: string;
description: string;
badge: {
url: string;
@@ -313,6 +318,58 @@ export interface GameArtifact {
isFrozen: boolean;
}
export type NotificationType =
| "FRIEND_REQUEST_RECEIVED"
| "FRIEND_REQUEST_ACCEPTED"
| "BADGE_RECEIVED"
| "REVIEW_UPVOTE";
export type LocalNotificationType =
| "EXTRACTION_COMPLETE"
| "DOWNLOAD_COMPLETE"
| "UPDATE_AVAILABLE"
| "ACHIEVEMENT_UNLOCKED";
export interface Notification {
id: string;
type: NotificationType;
variables: Record<string, string>;
pictureUrl: string | null;
url: string | null;
isRead: boolean;
priority: number;
createdAt: string;
}
export interface LocalNotification {
id: string;
type: LocalNotificationType;
title: string;
description: string;
pictureUrl: string | null;
url: string | null;
isRead: boolean;
createdAt: string;
}
export type MergedNotification =
| (Notification & { source: "api" })
| (LocalNotification & { source: "local" });
export interface NotificationsResponse {
notifications: Notification[];
pagination: {
total: number;
take: number;
skip: number;
hasMore: boolean;
};
}
export interface NotificationCountResponse {
count: number;
}
export interface ComparedAchievements {
achievementsPointsTotal: number;
owner: {