aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/types/Profile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/types/Profile.ts')
-rw-r--r--frontend/src/types/Profile.ts21
1 files changed, 10 insertions, 11 deletions
diff --git a/frontend/src/types/Profile.ts b/frontend/src/types/Profile.ts
index 42e5c3e..8051ae5 100644
--- a/frontend/src/types/Profile.ts
+++ b/frontend/src/types/Profile.ts
@@ -1,10 +1,10 @@
1import type { Pagination } from "@customTypes/Pagination"; 1import type { Pagination } from '@customTypes/Pagination';
2 2
3export interface UserShort { 3export interface UserShort {
4 steam_id: string; 4 steam_id: string;
5 user_name: string; 5 user_name: string;
6 avatar_link: string; 6 avatar_link: string;
7}; 7}
8 8
9export interface UserProfile { 9export interface UserProfile {
10 profile: boolean; 10 profile: boolean;
@@ -17,25 +17,25 @@ export interface UserProfile {
17 rankings: UserProfileRankings; 17 rankings: UserProfileRankings;
18 records: UserProfileRecords[]; 18 records: UserProfileRecords[];
19 pagination: Pagination; 19 pagination: Pagination;
20}; 20}
21 21
22interface UserProfileTitles { 22interface UserProfileTitles {
23 name: string; 23 name: string;
24 color: string; 24 color: string;
25}; 25}
26 26
27interface UserProfileLinks { 27interface UserProfileLinks {
28 p2sr: string; 28 p2sr: string;
29 steam: string; 29 steam: string;
30 youtube: string; 30 youtube: string;
31 twitch: string; 31 twitch: string;
32}; 32}
33 33
34interface UserProfileRankings { 34interface UserProfileRankings {
35 overall: UserProfileRankingsDetail; 35 overall: UserProfileRankingsDetail;
36 singleplayer: UserProfileRankingsDetail; 36 singleplayer: UserProfileRankingsDetail;
37 cooperative: UserProfileRankingsDetail; 37 cooperative: UserProfileRankingsDetail;
38}; 38}
39 39
40interface UserProfileRecords { 40interface UserProfileRecords {
41 game_id: number; 41 game_id: number;
@@ -44,8 +44,8 @@ interface UserProfileRecords {
44 map_name: string; 44 map_name: string;
45 map_wr_count: number; 45 map_wr_count: number;
46 placement: number; 46 placement: number;
47 scores: UserProfileRecordsScores[] 47 scores: UserProfileRecordsScores[];
48}; 48}
49 49
50interface UserProfileRecordsScores { 50interface UserProfileRecordsScores {
51 record_id: number; 51 record_id: number;
@@ -53,11 +53,10 @@ interface UserProfileRecordsScores {
53 score_count: number; 53 score_count: number;
54 score_time: number; 54 score_time: number;
55 date: string; 55 date: string;
56}; 56}
57 57
58interface UserProfileRankingsDetail { 58interface UserProfileRankingsDetail {
59 rank: number; 59 rank: number;
60 completion_count: number; 60 completion_count: number;
61 completion_total: number; 61 completion_total: number;
62}; 62}
63