blob: 89c66d5682d31652c34a9a3dfb141df732d0974f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
import type { Category, GameCategoryPortals } from '@customTypes/Game';
import type { Pagination } from '@customTypes/Pagination';
import type { UserShort } from '@customTypes/Profile';
export interface Map {
id: number;
name: string;
image: string;
is_disabled: boolean;
difficulty: number;
category_portals: GameCategoryPortals[];
};
export interface MapDiscussion {
discussion: MapDiscussionsDetail;
};
export interface MapDiscussions {
discussions: MapDiscussionsDetail[];
};
export interface MapDiscussionsDetail {
id: number;
title: string;
content: string;
creator: UserShort;
comments: MapDiscussionDetailComment[];
created_at: string;
updated_at: string;
};
interface MapDiscussionDetailComment {
comment: string;
date: string;
user: UserShort;
};
export interface MapLeaderboard {
map: MapSummaryMap;
records: MapLeaderboardRecordSingleplayer[] | MapLeaderboardRecordMultiplayer[];
pagination: Pagination;
};
export interface MapLeaderboardRecordSingleplayer {
kind: "singleplayer";
placement: number;
record_id: number;
score_count: number;
score_time: number;
user: UserShort;
demo_id: string;
record_date: string;
};
export interface MapLeaderboardRecordMultiplayer {
kind: "multiplayer";
placement: number;
record_id: number;
score_count: number;
score_time: number;
host: UserShort;
partner: UserShort;
host_demo_id: string;
partner_demo_id: string;
record_date: string;
};
export interface MapSummary {
map: MapSummaryMap;
summary: MapSummaryDetails;
};
interface MapSummaryMap {
id: number;
image: string;
chapter_name: string;
game_name: string;
map_name: string;
is_coop: boolean;
is_disabled: boolean;
};
interface MapSummaryDetails {
routes: MapSummaryDetailsRoute[];
};
interface MapSummaryDetailsRoute {
route_id: number;
category: Category;
history: MapSummaryDetailsRouteHistory;
rating: number;
completion_count: number;
description: string;
showcase: string;
};
interface MapSummaryDetailsRouteHistory {
runner_name: string;
score_count: number;
date: string;
};
export interface MapDeleteEndpoint {
map_id: number;
record_id: number;
}
|