feat: use new endpoint to get compared achievements

This commit is contained in:
Zamitto
2024-10-19 17:23:26 -03:00
parent 89bb099caa
commit f0a2bf2f48
10 changed files with 291 additions and 203 deletions

View File

@@ -29,6 +29,7 @@ import type {
GameArtifact,
LudusaviBackup,
UserAchievement,
ComparedAchievements,
} from "@types";
import type { AxiosProgressEvent } from "axios";
import type { DiskSpace } from "check-disk-space";
@@ -202,6 +203,11 @@ declare global {
reason: string,
description: string
) => Promise<void>;
getComparedUnlockedAchievements: (
objectId: string,
shop: GameShop,
userId: string
) => Promise<ComparedAchievements>;
/* Profile */
getMe: () => Promise<UserDetails | null>;