diff options
Diffstat (limited to 'frontend/src/types/Profile.ts')
| -rw-r--r-- | frontend/src/types/Profile.ts | 21 |
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 @@ | |||
| 1 | import type { Pagination } from "@customTypes/Pagination"; | 1 | import type { Pagination } from '@customTypes/Pagination'; |
| 2 | 2 | ||
| 3 | export interface UserShort { | 3 | export 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 | ||
| 9 | export interface UserProfile { | 9 | export 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 | ||
| 22 | interface UserProfileTitles { | 22 | interface UserProfileTitles { |
| 23 | name: string; | 23 | name: string; |
| 24 | color: string; | 24 | color: string; |
| 25 | }; | 25 | } |
| 26 | 26 | ||
| 27 | interface UserProfileLinks { | 27 | interface 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 | ||
| 34 | interface UserProfileRankings { | 34 | interface UserProfileRankings { |
| 35 | overall: UserProfileRankingsDetail; | 35 | overall: UserProfileRankingsDetail; |
| 36 | singleplayer: UserProfileRankingsDetail; | 36 | singleplayer: UserProfileRankingsDetail; |
| 37 | cooperative: UserProfileRankingsDetail; | 37 | cooperative: UserProfileRankingsDetail; |
| 38 | }; | 38 | } |
| 39 | 39 | ||
| 40 | interface UserProfileRecords { | 40 | interface 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 | ||
| 50 | interface UserProfileRecordsScores { | 50 | interface 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 | ||
| 58 | interface UserProfileRankingsDetail { | 58 | interface 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 | |||