Merge branch 'main' of github.com:hydralauncher/hydra

This commit is contained in:
Chubby Granny Chaser
2025-05-30 04:25:53 +01:00
64 changed files with 3504 additions and 1023 deletions

View File

@@ -263,6 +263,16 @@ export type GameAchievementFiles = {
[id: string]: AchievementFile[];
};
export interface AchievementNotificationInfo {
title: string;
description?: string;
iconUrl: string;
isHidden: boolean;
isRare: boolean;
isPlatinum: boolean;
points?: number;
}
export interface GameArtifact {
id: string;
artifactLengthInBytes: number;
@@ -334,6 +344,23 @@ export type LibraryGame = Game &
download: Download | null;
};
export type UserGameDetails = ShopAssets & {
id: string;
playTimeInSeconds: number;
unlockedAchievementCount: number;
achievementsPointsEarnedSum: number;
lastTimePlayed: Date | null;
isDeleted: boolean;
isFavorite: boolean;
friendsWhoPlayed: {
id: string;
displayName: string;
profileImageUrl: string | null;
lastTimePlayed: Date | null;
playTimeInSeconds: number;
}[];
};
export * from "./game.types";
export * from "./steam.types";
export * from "./download.types";

View File

@@ -34,6 +34,7 @@ export interface Game {
title: string;
iconUrl: string | null;
playTimeInMilliseconds: number;
unsyncedDeltaPlayTimeInMilliseconds?: number;
lastTimePlayed: Date | null;
objectId: string;
shop: GameShop;
@@ -70,6 +71,14 @@ export interface GameAchievement {
cacheExpiresTimestamp: number | undefined;
}
export type AchievementCustomNotificationPosition =
| "top-left"
| "top-center"
| "top-right"
| "bottom-left"
| "bottom-center"
| "bottom-right";
export interface UserPreferences {
downloadsPath?: string | null;
language?: string;
@@ -86,7 +95,10 @@ export interface UserPreferences {
downloadNotificationsEnabled?: boolean;
repackUpdatesNotificationsEnabled?: boolean;
achievementNotificationsEnabled?: boolean;
achievementCustomNotificationsEnabled?: boolean;
achievementCustomNotificationPosition?: AchievementCustomNotificationPosition;
friendRequestNotificationsEnabled?: boolean;
friendStartGameNotificationsEnabled?: boolean;
showDownloadSpeedInMegabytes?: boolean;
extractFilesByDefault?: boolean;
}