-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
203 lines (180 loc) · 3.3 KB
/
schema.graphql
File metadata and controls
203 lines (180 loc) · 3.3 KB
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
scalar DateTime
scalar Upload
type DiscordSettings {
showOnProfile: Boolean
joinGDM: Boolean
}
input NotificationSettingsInput {
gameInvitations: [Notifier]
playerJoinedGame: [Notifier]
turn: [Notifier]
gameEnded: [Notifier]
turnTimerModified: [Notifier]
skipped: [Notifier]
comment: [Notifier]
privateMessage: [Notifier]
}
type NotificationSettings {
gameInvitations: [Notifier]
playerJoinedGame: [Notifier]
turn: [Notifier]
gameEnded: [Notifier]
turnTimerModified: [Notifier]
skipped: [Notifier]
comment: [Notifier]
privateMessage: [Notifier]
}
enum JoinFilter {
SETTLER
CHIEFTAIN
WARLORD
PRINCE
KING
EMPEROR
IMMORTAL
DEITY
}
enum Notifier {
EMAIL
DISCORD
}
enum Theme {
LIGHT
DARK
KING_LIGHT
KING_DARK
}
input SettingsInput {
vacationMode: Boolean
country: String
availableHours: [Int]
theme: Theme!
emailAddress: String
notifications: NotificationSettingsInput
}
enum GameType {
CIVILIZATION_V
CIVILIZATION_BE
CIVILIZATION_VI
OTHER
}
enum CivVExpansions {
GODS_AND_KINGS
BRAVE_NEW_WORLD
BABYLON
SPAIN_AND_INCA
POLYNESIA
DENMARK
KOREA
SCRAMBLED_CONTINENTS_MAP_PACK
SCRAMBLED_NATIONS_MAP_PACK
MEDITERRANEAN_MAP_PACK
ASIA_MAP_PACK
AMERICAS_MAP_PACK
MESOPOTAMIA_MAP_PACK
EXPLORERS_MAP_PACK
}
enum CivBEExpansions {
RISING_TIDE
EXOPLANETS
}
enum CivVIExpansions {
RISE_AND_FALL
GATHERING_STORM
KHMER_AND_INDONESIA
NUBIA
PERSIA_AND_MACEDON
AUSTRALIA
POLAND
}
input GameInput {
name: String!
gameType: GameType!
customGameType: String
parseCivs: Boolean
description: String
hasMods: Boolean
showInPublic: Boolean
joinFilter: [JoinFilter]
slotLimit: Int
turnTimerEnabled: Boolean
turnTimerDays: Int
multiSlotJoinAllowed: Boolean
}
type Game {
id: ID!
name: String!
gameType: GameType!
customGameType: String
parseCivs: Boolean!
description: String
createdAt: DateTime!
startedAt: DateTime
finishedAt: DateTime
hasMods: Boolean!
showInPublic: Boolean!
joinFilter: [JoinFilter]!
slotLimit: Int
turnTimerEnabled: Boolean!
turnTimerDays: Int
createdFromSave: Boolean!
multiSlotJoinAllowed: Boolean!
host: User
players: [GamePlayer]
turns(skip: Int, take: Int): [Turn]
}
type GamePlayer {
user: User
}
type User {
id: ID
username: String
}
type Turn {
player: GamePlayer
startedAt: DateTime!
finishedAt: DateTime
expiresAt: DateTime
}
type Settings {
vacationMode: Boolean
country: String
availableHours: [Int]
theme: Theme
emailAddress: String
discordConnected: Boolean
discord: DiscordSettings
notifications: NotificationSettings
}
type GameMutationResponse {
clientMutationId: ID
game: Game!
}
type SettingsMutationResponse {
clientMutationId: ID
}
type DiscordConnectionResponse {
clientMutationId: ID
}
type Mutation {
createGame(clientMutationId: ID, input: GameInput!): GameMutationResponse
saveSettings(
clientMutationId: ID
input: SettingsInput!
): SettingsMutationResponse
completeDiscordConnection(
clientMutationId: ID
code: ID!
): DiscordConnectionResponse
disconnectDiscord(clientMutationId: ID): DiscordConnectionResponse
}
type Query {
games: [Game]
game(id: ID!): Game
publicGames(skip: Int!, take: Int!): [Game]
settings: Settings
}
schema {
mutation: Mutation
query: Query
}