-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.graphql
208 lines (186 loc) · 3.19 KB
/
schema.graphql
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
type Query {
map(name: String, id: Int): Map
maps(search: String, start: Int, limit: Int): [Map!]!
player(id: Int!): Player
record(id: Int!): Record
demo(id: Int!): Demo
server(id: Int!): Server
servers(search: String, start: Int, limit: Int): [Server!]!
activity: Activity!
players(search: String, start: Int, limit: Int): [Player!]!
rankings(start: Int, type: RankingType!): RankingListing!
}
"""A jump map"""
type Map {
id: String!
name: String!
authors: [Author!]!
videos: MapVideos!
tiers: Tiers!
zones: Zones!
records(zoneType: ZoneType, zoneId: Int, start: Int, limit: Int, class: Class!): [Record!]!
record(zoneType: ZoneType, zoneId: Int, playerId: Int!, class: Class!): Record
wr(class: Class!): Record
}
type Author {
id: Int!
name: String!
mapCount: Int!
player: Player
}
type Player {
id: Int!
name: String!
country: String
countryCode: String
steamId: String!
firstSeen: Float!
lastSeen: Float!
ranks: Ranks!
countryRanks: Ranks!
stats: StatsCollection!
record(mapId: Int, mapName: String, zoneType: ZoneType, zoneId: Int, class: Class!): Record
}
type Ranks {
overall: Rank!
soldier: Rank!
demoman: Rank!
}
type Rank {
points: Float!
rank: Int!
totalRanked: Int!
title: String
}
type StatsCollection {
pr: Stats!
wr: Stats!
top: Stats!
}
type Stats {
bonus: Stat!
course: Stat!
map: Stat!
trick: Stat!
}
type Stat {
count: Int!
points: Int!
}
type Record {
id: Int!
player: Player!
duration: Float!
rank: Int!
date: Float!
tiers: Tiers!
map: Map!
zone: Zone!
demo: Demo
class: Class!
demoStartTick: Int
demoEndTick: Int
server: Server!
splits: [Split!]!
}
type Tiers {
soldier: Int
demoman: Int
}
type Zone {
id: Int!
map: Map!
type: String!
zoneindex: Int!
customName: String
}
type Demo {
id: Int!
map: Map!
filename: String
date: Float!
url: String
recording: Boolean!
requested: Boolean!
expired: Boolean!
deleted: Boolean!
uploader: Player
server: Server!
}
type Server {
id: Int
currentMap: Map
freeDisk: Int
gameVersion: Int
hostName: String
maxPlayers: Int
nextMap: Map
playerCount: Int
players: [Player!]
address: String
country: String
hidden: Boolean
online: Boolean
name: String
port: Int
shortname: String
demos: [Demo!]
}
enum Class {
SOLDIER
DEMOMAN
}
type Split {
type: String!
zoneindex: Int!
customName: String
duration: Float
comparedDuration: Float
}
enum ZoneType {
BONUS
BONUS_END
CHECKPOINT
COURSE
COURSE_END
MAP
MAP_END
MISC
TRICK
}
type MapVideos {
soldier: String
demoman: String
}
type Zones {
bonus: [Zone!]!
bonusEnd: [Zone!]!
checkpoint: [Zone!]!
course: [Zone!]!
courseEnd: [Zone!]!
linear: [Zone!]!
map: [Zone!]!
mapEnd: [Zone!]!
misc: [Zone!]!
trick: [Zone!]!
}
type Activity {
bonusWrs(start: Int, limit: Int): [Record!]!
courseWrs(start: Int, limit: Int): [Record!]!
mapWrs(start: Int, limit: Int): [Record!]!
mapTops(start: Int, limit: Int): [Record!]!
}
type RankingListing {
count: Int!
entries: [Ranking!]!
}
type Ranking {
player: Player!
rank: Int!
points: Float!
}
enum RankingType {
OVERALL
SOLDIER
DEMOMAN
}