many many many many changes

This commit is contained in:
Lee
2023-10-19 14:17:55 +01:00
parent 6acf6e8635
commit a031451fa3
36 changed files with 2743 additions and 174 deletions

View File

@ -0,0 +1,4 @@
export type ScoresaberBadge = {
description: string;
image: string;
};

View File

@ -0,0 +1,6 @@
export type ScoresaberDifficulty = {
leaderboardId: number;
difficulty: number;
gameMode: string;
difficultyRaw: string;
};

View File

@ -0,0 +1,3 @@
export type ScoresaberError = {
message: string;
};

View File

@ -0,0 +1,28 @@
import { ScoresaberDifficulty } from "./difficulty";
import { ScoresaberScore } from "./score";
export type ScoresaberLeaderboardInfo = {
id: string;
songHash: string;
songName: string;
songSubName: string;
songAuthorName: string;
levelAuthorName: string;
difficulty: ScoresaberDifficulty;
maxScore: number;
createdDate: string;
rankedDate: string[];
qualifiedDate: string[];
lovedDate: string[];
ranked: boolean;
qualified: boolean;
loved: boolean;
maxPP: number;
stars: number;
positiveModifiers: boolean;
plays: number;
dailyPlays: number;
coverImage: string;
playerScore: ScoresaberScore[];
difficulties: ScoresaberDifficulty[];
};

View File

@ -0,0 +1,19 @@
import { ScoresaberBadge } from "./badge";
import { ScoresaberScoreStats } from "./scoreStats";
export type ScoresaberPlayer = {
id: string;
name: string;
profilePicture: string;
country: string;
pp: number;
rank: number;
countryRank: number;
role: string;
badges: ScoresaberBadge[];
histories: string;
scoreStats: ScoresaberScoreStats[];
permissions: number;
banned: boolean;
inactive: boolean;
};

View File

@ -0,0 +1,7 @@
import { ScoresaberLeaderboardInfo } from "./leaderboard";
import { ScoresaberScore } from "./score";
export type ScoresaberPlayerScore = {
score: ScoresaberScore;
leaderboard: ScoresaberLeaderboardInfo;
};

View File

@ -0,0 +1,18 @@
export type ScoresaberScore = {
id: number;
leaderboardPlayerInfo: string;
rank: number;
baseScore: number;
modifiedScore: number;
pp: number;
weight: number;
modifiers: string;
multiplier: number;
badCuts: number;
missedNotes: number;
maxCombo: number;
fullCombo: boolean;
hmd: number;
hasReply: boolean;
timeSet: string;
};

View File

@ -0,0 +1,8 @@
export type ScoresaberScoreStats = {
totalScore: number;
totalRankedScore: number;
averageRankedAccuracy: number;
totalPlayCount: number;
rankedPlayCount: number;
replaysWatched: number;
};