xpt-shared-types 1.0.4 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -38
- package/dist/bracket.d.ts +56 -0
- package/dist/bracket.js +144 -0
- package/dist/contracts/index.d.ts +139 -0
- package/dist/contracts/index.js +8 -0
- package/dist/data/countriesList.d.ts +1 -1
- package/dist/data/countriesList.js +1 -1
- package/dist/generated/enums.d.ts +48 -0
- package/dist/generated/enums.js +5 -0
- package/dist/generated/index.d.ts +3 -0
- package/dist/generated/index.js +22 -0
- package/dist/generated/inputs.d.ts +420 -0
- package/dist/generated/inputs.js +5 -0
- package/dist/generated/models.d.ts +420 -0
- package/dist/generated/models.js +5 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +9 -5
- package/dist/manual/index.d.ts +4 -0
- package/dist/manual/index.js +20 -0
- package/package.json +26 -23
- package/scripts/sync-from-strapi.js +281 -0
- package/src/bracket.ts +193 -0
- package/src/contracts/index.ts +158 -0
- package/src/data/countriesList.ts +1156 -1156
- package/src/generated/enums.ts +175 -0
- package/src/generated/index.ts +7 -0
- package/src/generated/inputs.ts +496 -0
- package/src/generated/models.ts +497 -0
- package/src/index.ts +14 -7
- package/src/manual/index.ts +4 -0
- package/dist/types/match.d.ts +0 -1
- package/dist/types/match.js +0 -2
- package/dist/types/tournament.d.ts +0 -1
- package/dist/types/tournament.js +0 -2
- package/src/types/match.ts +0 -8
- package/src/types/tournament.ts +0 -4
- /package/dist/{types → manual}/country.d.ts +0 -0
- /package/dist/{types → manual}/country.js +0 -0
- /package/src/{types → manual}/country.ts +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/sync-from-strapi.js — DO NOT EDIT MANUALLY.
|
|
2
|
+
// Source: xpt-strapi/src/**/content-types/**/schema.json
|
|
3
|
+
// Regenerate with: yarn sync
|
|
4
|
+
|
|
5
|
+
/** `Friendship.status` */
|
|
6
|
+
export type FriendshipStatus =
|
|
7
|
+
| "pending"
|
|
8
|
+
| "accepted";
|
|
9
|
+
|
|
10
|
+
/** `GameRequest.customLobbies` */
|
|
11
|
+
export type GameRequestCustomLobbies =
|
|
12
|
+
| "Yes"
|
|
13
|
+
| "No"
|
|
14
|
+
| "Not sure";
|
|
15
|
+
|
|
16
|
+
/** `GameRequest.genre` */
|
|
17
|
+
export type GameRequestGenre =
|
|
18
|
+
| "FPS"
|
|
19
|
+
| "MOBA"
|
|
20
|
+
| "Battle Royale"
|
|
21
|
+
| "Fighting (FGC)"
|
|
22
|
+
| "Sports"
|
|
23
|
+
| "Strategy/RTS"
|
|
24
|
+
| "Sim Racing"
|
|
25
|
+
| "Card Game"
|
|
26
|
+
| "Other";
|
|
27
|
+
|
|
28
|
+
/** `GameRequest.teamPlay` */
|
|
29
|
+
export type GameRequestTeamPlay =
|
|
30
|
+
| "No (solo)"
|
|
31
|
+
| "Yes, 2v2"
|
|
32
|
+
| "Yes, 3v3"
|
|
33
|
+
| "Yes, 4v4+"
|
|
34
|
+
| "Don't know";
|
|
35
|
+
|
|
36
|
+
/** `Match.lobbyStatus` */
|
|
37
|
+
export type MatchLobbyStatus =
|
|
38
|
+
| "waiting"
|
|
39
|
+
| "ready"
|
|
40
|
+
| "disputed"
|
|
41
|
+
| "completed";
|
|
42
|
+
|
|
43
|
+
/** `Match.round` */
|
|
44
|
+
export type MatchRound =
|
|
45
|
+
| "Round 128"
|
|
46
|
+
| "Round 64"
|
|
47
|
+
| "Round 32"
|
|
48
|
+
| "Round 16"
|
|
49
|
+
| "Quarter Final"
|
|
50
|
+
| "Semi-Final"
|
|
51
|
+
| "Third Round"
|
|
52
|
+
| "Finals"
|
|
53
|
+
| "League";
|
|
54
|
+
|
|
55
|
+
/** `Match.streamPlatform` */
|
|
56
|
+
export type MatchStreamPlatform =
|
|
57
|
+
| "twitch"
|
|
58
|
+
| "youtube"
|
|
59
|
+
| "kick"
|
|
60
|
+
| "other";
|
|
61
|
+
|
|
62
|
+
/** `Match.winnerSlot` */
|
|
63
|
+
export type MatchWinnerSlot =
|
|
64
|
+
| "home"
|
|
65
|
+
| "away";
|
|
66
|
+
|
|
67
|
+
/** `Prize.rank` */
|
|
68
|
+
export type PrizeRank =
|
|
69
|
+
| "one"
|
|
70
|
+
| "two"
|
|
71
|
+
| "three";
|
|
72
|
+
|
|
73
|
+
/** `Referral.status` */
|
|
74
|
+
export type ReferralStatus =
|
|
75
|
+
| "pending"
|
|
76
|
+
| "completed";
|
|
77
|
+
|
|
78
|
+
/** `Team.current_status` */
|
|
79
|
+
export type TeamCurrentStatus =
|
|
80
|
+
| "active"
|
|
81
|
+
| "disbanded";
|
|
82
|
+
|
|
83
|
+
/** `TeamInvite.status` */
|
|
84
|
+
export type TeamInviteStatus =
|
|
85
|
+
| "pending"
|
|
86
|
+
| "accepted"
|
|
87
|
+
| "declined";
|
|
88
|
+
|
|
89
|
+
/** `TeamInvite.team_role` */
|
|
90
|
+
export type TeamInviteTeamRole =
|
|
91
|
+
| "captain"
|
|
92
|
+
| "co_captain"
|
|
93
|
+
| "player"
|
|
94
|
+
| "substitute"
|
|
95
|
+
| "coach";
|
|
96
|
+
|
|
97
|
+
/** `TeamPlayer.team_role` */
|
|
98
|
+
export type TeamPlayerTeamRole =
|
|
99
|
+
| "captain"
|
|
100
|
+
| "co_captain"
|
|
101
|
+
| "player"
|
|
102
|
+
| "substitute"
|
|
103
|
+
| "coach";
|
|
104
|
+
|
|
105
|
+
/** `Tournament.currentStatus` */
|
|
106
|
+
export type TournamentCurrentStatus =
|
|
107
|
+
| "draft"
|
|
108
|
+
| "open"
|
|
109
|
+
| "checkIn"
|
|
110
|
+
| "seeding"
|
|
111
|
+
| "live"
|
|
112
|
+
| "completed"
|
|
113
|
+
| "cancelled";
|
|
114
|
+
|
|
115
|
+
/** `TournamentParticipant.entryType` */
|
|
116
|
+
export type TournamentParticipantEntryType =
|
|
117
|
+
| "solo"
|
|
118
|
+
| "team";
|
|
119
|
+
|
|
120
|
+
/** `TournamentParticipant.status` */
|
|
121
|
+
export type TournamentParticipantStatus =
|
|
122
|
+
| "registered"
|
|
123
|
+
| "active"
|
|
124
|
+
| "eliminated"
|
|
125
|
+
| "completed";
|
|
126
|
+
|
|
127
|
+
/** `TournamentRole.role` */
|
|
128
|
+
export type TournamentRoleRole =
|
|
129
|
+
| "moderator"
|
|
130
|
+
| "admin";
|
|
131
|
+
|
|
132
|
+
/** `TournamentStage.stageName` */
|
|
133
|
+
export type TournamentStageStageName =
|
|
134
|
+
| "Round 128"
|
|
135
|
+
| "Round 64"
|
|
136
|
+
| "Round 32"
|
|
137
|
+
| "Round 16"
|
|
138
|
+
| "Quarter Final"
|
|
139
|
+
| "Semi-Final"
|
|
140
|
+
| "Third Round"
|
|
141
|
+
| "Finals"
|
|
142
|
+
| "League";
|
|
143
|
+
|
|
144
|
+
/** `Tournament.teamSize` */
|
|
145
|
+
export type TournamentTeamSize =
|
|
146
|
+
| "one"
|
|
147
|
+
| "two"
|
|
148
|
+
| "three"
|
|
149
|
+
| "four"
|
|
150
|
+
| "five";
|
|
151
|
+
|
|
152
|
+
/** `Tournament.type` */
|
|
153
|
+
export type TournamentType =
|
|
154
|
+
| "Single Elimination"
|
|
155
|
+
| "League"
|
|
156
|
+
| "Double Elimination";
|
|
157
|
+
|
|
158
|
+
/** `UserTransaction.stripeStatus` */
|
|
159
|
+
export type UserTransactionStripeStatus =
|
|
160
|
+
| "pending"
|
|
161
|
+
| "completed"
|
|
162
|
+
| "failed"
|
|
163
|
+
| "refunded"
|
|
164
|
+
| "internal";
|
|
165
|
+
|
|
166
|
+
/** `UserTransaction.type` */
|
|
167
|
+
export type UserTransactionType =
|
|
168
|
+
| "purchase"
|
|
169
|
+
| "debit"
|
|
170
|
+
| "credit"
|
|
171
|
+
| "refund"
|
|
172
|
+
| "test";
|
|
173
|
+
|
|
174
|
+
/** Readability alias for `tournament.currentStatus`. */
|
|
175
|
+
export type TournamentStatus = TournamentCurrentStatus;
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/sync-from-strapi.js — DO NOT EDIT MANUALLY.
|
|
2
|
+
// Source: xpt-strapi/src/**/content-types/**/schema.json
|
|
3
|
+
// Regenerate with: yarn sync
|
|
4
|
+
|
|
5
|
+
import type {
|
|
6
|
+
BlocksContent,
|
|
7
|
+
MediaInput,
|
|
8
|
+
RelationInput,
|
|
9
|
+
} from '../contracts';
|
|
10
|
+
import type {
|
|
11
|
+
FriendshipStatus,
|
|
12
|
+
GameRequestCustomLobbies,
|
|
13
|
+
GameRequestGenre,
|
|
14
|
+
GameRequestTeamPlay,
|
|
15
|
+
MatchLobbyStatus,
|
|
16
|
+
MatchRound,
|
|
17
|
+
MatchStreamPlatform,
|
|
18
|
+
MatchWinnerSlot,
|
|
19
|
+
PrizeRank,
|
|
20
|
+
ReferralStatus,
|
|
21
|
+
TeamCurrentStatus,
|
|
22
|
+
TeamInviteStatus,
|
|
23
|
+
TeamInviteTeamRole,
|
|
24
|
+
TeamPlayerTeamRole,
|
|
25
|
+
TournamentCurrentStatus,
|
|
26
|
+
TournamentParticipantEntryType,
|
|
27
|
+
TournamentParticipantStatus,
|
|
28
|
+
TournamentRoleRole,
|
|
29
|
+
TournamentStageStageName,
|
|
30
|
+
TournamentTeamSize,
|
|
31
|
+
TournamentType,
|
|
32
|
+
UserTransactionStripeStatus,
|
|
33
|
+
UserTransactionType,
|
|
34
|
+
} from './enums';
|
|
35
|
+
|
|
36
|
+
/** Write payload for `about`. */
|
|
37
|
+
export interface AboutInput {
|
|
38
|
+
heroTitle?: string;
|
|
39
|
+
summary?: BlocksContent;
|
|
40
|
+
aboutInfo?: unknown;
|
|
41
|
+
gameIcons?: MediaInput[];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Write payload for `dm-message`. */
|
|
45
|
+
export interface DmMessageInput {
|
|
46
|
+
conversationId?: string;
|
|
47
|
+
content?: string;
|
|
48
|
+
sender?: RelationInput;
|
|
49
|
+
readBy?: unknown;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Write payload for `faq`. */
|
|
53
|
+
export interface FaqInput {
|
|
54
|
+
question?: string;
|
|
55
|
+
answer?: BlocksContent;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Write payload for `featured-game`. */
|
|
59
|
+
export interface FeaturedGameInput {
|
|
60
|
+
featuredHeading?: string;
|
|
61
|
+
featuredSubheading?: string;
|
|
62
|
+
game?: RelationInput;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** Write payload for `featured-tournament`. */
|
|
66
|
+
export interface FeaturedTournamentInput {
|
|
67
|
+
featuredHeading?: string;
|
|
68
|
+
featuredSubheading?: string;
|
|
69
|
+
tournament?: RelationInput;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** Write payload for `friendship`. */
|
|
73
|
+
export interface FriendshipInput {
|
|
74
|
+
requester?: RelationInput;
|
|
75
|
+
receiver?: RelationInput;
|
|
76
|
+
status?: FriendshipStatus;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Write payload for `game`. */
|
|
80
|
+
export interface GameInput {
|
|
81
|
+
title?: string;
|
|
82
|
+
slug?: string;
|
|
83
|
+
imgThumb?: MediaInput;
|
|
84
|
+
imgMain?: MediaInput;
|
|
85
|
+
tournaments?: RelationInput | RelationInput[];
|
|
86
|
+
isTrending?: boolean;
|
|
87
|
+
user_game_stats?: RelationInput | RelationInput[];
|
|
88
|
+
team_game_stats?: RelationInput | RelationInput[];
|
|
89
|
+
imgMainPosition?: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** Write payload for `game-account`. */
|
|
93
|
+
export interface GameAccountInput {
|
|
94
|
+
name?: string;
|
|
95
|
+
tournaments?: RelationInput | RelationInput[];
|
|
96
|
+
user_game_accounts?: RelationInput | RelationInput[];
|
|
97
|
+
imgThumb?: MediaInput;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** Write payload for `game-request`. */
|
|
101
|
+
export interface GameRequestInput {
|
|
102
|
+
gameTitle?: string;
|
|
103
|
+
genre?: GameRequestGenre;
|
|
104
|
+
developer?: string;
|
|
105
|
+
platforms?: unknown;
|
|
106
|
+
gameIds?: unknown;
|
|
107
|
+
platformOther?: string;
|
|
108
|
+
gameIdOther?: string;
|
|
109
|
+
teamPlay?: GameRequestTeamPlay;
|
|
110
|
+
customLobbies?: GameRequestCustomLobbies;
|
|
111
|
+
whyAdd?: string;
|
|
112
|
+
notifyWhenAdded?: boolean;
|
|
113
|
+
submittedByEmail?: string;
|
|
114
|
+
submittedByUserId?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** Write payload for `group`. */
|
|
118
|
+
export interface GroupInput {
|
|
119
|
+
title?: string;
|
|
120
|
+
slug?: string;
|
|
121
|
+
members?: string;
|
|
122
|
+
imgThumb?: MediaInput;
|
|
123
|
+
followers?: number;
|
|
124
|
+
tournaments?: RelationInput | RelationInput[];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** Write payload for `host-summary-stat`. */
|
|
128
|
+
export interface HostSummaryStatInput {
|
|
129
|
+
users_permissions_user?: RelationInput;
|
|
130
|
+
total_tournaments_hosted?: number;
|
|
131
|
+
total_participants_hosted?: number;
|
|
132
|
+
host_exp_earned?: number;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/** Write payload for `league-table`. */
|
|
136
|
+
export interface LeagueTableInput {
|
|
137
|
+
playerId?: RelationInput;
|
|
138
|
+
wins?: number;
|
|
139
|
+
losses?: number;
|
|
140
|
+
points?: number;
|
|
141
|
+
tournament?: RelationInput;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** Write payload for `match`. */
|
|
145
|
+
export interface MatchInput {
|
|
146
|
+
tournament?: RelationInput;
|
|
147
|
+
matchNumber?: number;
|
|
148
|
+
homeId?: RelationInput;
|
|
149
|
+
awayId?: RelationInput;
|
|
150
|
+
dateTime?: string;
|
|
151
|
+
homeScore?: number;
|
|
152
|
+
awayScore?: number;
|
|
153
|
+
round?: MatchRound;
|
|
154
|
+
streamLink?: string;
|
|
155
|
+
comments?: string;
|
|
156
|
+
nextMatchNumber?: number;
|
|
157
|
+
winnerSlot?: MatchWinnerSlot;
|
|
158
|
+
lobbyStatus?: MatchLobbyStatus;
|
|
159
|
+
homeReady?: boolean;
|
|
160
|
+
awayReady?: boolean;
|
|
161
|
+
homeScreenshot?: MediaInput;
|
|
162
|
+
awayScreenshot?: MediaInput;
|
|
163
|
+
homeReportedHome?: number;
|
|
164
|
+
homeReportedAway?: number;
|
|
165
|
+
awayReportedHome?: number;
|
|
166
|
+
awayReportedAway?: number;
|
|
167
|
+
homeTeam?: RelationInput;
|
|
168
|
+
homeParticipant?: RelationInput;
|
|
169
|
+
awayTeam?: RelationInput;
|
|
170
|
+
awayParticipant?: RelationInput;
|
|
171
|
+
isStreaming?: boolean;
|
|
172
|
+
streamHandle?: string;
|
|
173
|
+
streamPlatform?: MatchStreamPlatform;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/** Write payload for `match-message`. */
|
|
177
|
+
export interface MatchMessageInput {
|
|
178
|
+
match?: RelationInput;
|
|
179
|
+
author?: RelationInput;
|
|
180
|
+
content?: string;
|
|
181
|
+
isSystemLog?: boolean;
|
|
182
|
+
isAdminMessage?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** Write payload for `notification`. */
|
|
186
|
+
export interface NotificationInput {
|
|
187
|
+
type?: string;
|
|
188
|
+
message?: string;
|
|
189
|
+
slug?: string;
|
|
190
|
+
read?: boolean;
|
|
191
|
+
metadata?: unknown;
|
|
192
|
+
actor?: RelationInput;
|
|
193
|
+
user?: RelationInput;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** Write payload for `platform`. */
|
|
197
|
+
export interface PlatformInput {
|
|
198
|
+
name?: string;
|
|
199
|
+
tournaments?: RelationInput | RelationInput[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/** Write payload for `preset-avatar`. */
|
|
203
|
+
export interface PresetAvatarInput {
|
|
204
|
+
image?: MediaInput;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/** Write payload for `preset-profile-banner`. */
|
|
208
|
+
export interface PresetProfileBannerInput {
|
|
209
|
+
image?: MediaInput;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** Write payload for `preset-team-avatar`. */
|
|
213
|
+
export interface PresetTeamAvatarInput {
|
|
214
|
+
image?: MediaInput;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** Write payload for `preset-team-profile-banner`. */
|
|
218
|
+
export interface PresetTeamProfileBannerInput {
|
|
219
|
+
image?: MediaInput;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/** Write payload for `privacy`. */
|
|
223
|
+
export interface PrivacyInput {
|
|
224
|
+
content?: BlocksContent;
|
|
225
|
+
title?: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/** Write payload for `prize`. */
|
|
229
|
+
export interface PrizeInput {
|
|
230
|
+
description?: string;
|
|
231
|
+
value?: number;
|
|
232
|
+
tournament?: RelationInput;
|
|
233
|
+
rank?: PrizeRank;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** Write payload for `referral`. */
|
|
237
|
+
export interface ReferralInput {
|
|
238
|
+
referrer?: RelationInput;
|
|
239
|
+
referred?: RelationInput;
|
|
240
|
+
code?: string;
|
|
241
|
+
status?: ReferralStatus;
|
|
242
|
+
referrerXpt?: number;
|
|
243
|
+
referredXpt?: number;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/** Write payload for `region`. */
|
|
247
|
+
export interface RegionInput {
|
|
248
|
+
name?: string;
|
|
249
|
+
tournaments?: RelationInput | RelationInput[];
|
|
250
|
+
code?: string;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/** Write payload for `social-account`. */
|
|
254
|
+
export interface SocialAccountInput {
|
|
255
|
+
name?: string;
|
|
256
|
+
baseUrl?: string;
|
|
257
|
+
user_socials?: RelationInput | RelationInput[];
|
|
258
|
+
imgThumb?: MediaInput;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/** Write payload for `team`. */
|
|
262
|
+
export interface TeamInput {
|
|
263
|
+
name?: string;
|
|
264
|
+
slug?: string;
|
|
265
|
+
bio?: string;
|
|
266
|
+
avatar?: MediaInput;
|
|
267
|
+
inviteCode?: string;
|
|
268
|
+
team_players?: RelationInput | RelationInput[];
|
|
269
|
+
team_game_stats?: RelationInput | RelationInput[];
|
|
270
|
+
banner_image?: MediaInput;
|
|
271
|
+
current_status?: TeamCurrentStatus;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Write payload for `team-game-stat`. */
|
|
275
|
+
export interface TeamGameStatInput {
|
|
276
|
+
team?: RelationInput;
|
|
277
|
+
game?: RelationInput;
|
|
278
|
+
match_wins?: number;
|
|
279
|
+
match_losses?: number;
|
|
280
|
+
tournaments_played?: number;
|
|
281
|
+
trophies_gold?: number;
|
|
282
|
+
trophies_silver?: number;
|
|
283
|
+
trophies_bronze?: number;
|
|
284
|
+
exp_earned?: number;
|
|
285
|
+
prize_earned?: number;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/** Write payload for `team-invite`. */
|
|
289
|
+
export interface TeamInviteInput {
|
|
290
|
+
inviter?: RelationInput;
|
|
291
|
+
invitee?: RelationInput;
|
|
292
|
+
team?: RelationInput;
|
|
293
|
+
game?: RelationInput;
|
|
294
|
+
status?: TeamInviteStatus;
|
|
295
|
+
team_role?: TeamInviteTeamRole;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/** Write payload for `team-player`. */
|
|
299
|
+
export interface TeamPlayerInput {
|
|
300
|
+
team?: RelationInput;
|
|
301
|
+
users_permissions_user?: RelationInput;
|
|
302
|
+
joinedAt?: string;
|
|
303
|
+
team_role?: TeamPlayerTeamRole;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/** Write payload for `team-summary-stat`. */
|
|
307
|
+
export interface TeamSummaryStatInput {
|
|
308
|
+
team?: RelationInput;
|
|
309
|
+
total_match_wins?: number;
|
|
310
|
+
total_match_losses?: number;
|
|
311
|
+
total_tournaments_played?: number;
|
|
312
|
+
total_trophies_gold?: number;
|
|
313
|
+
total_trophies_silver?: number;
|
|
314
|
+
total_trophies_bronze?: number;
|
|
315
|
+
total_registrations?: number;
|
|
316
|
+
total_no_shows?: number;
|
|
317
|
+
total_disputes_caused?: number;
|
|
318
|
+
total_exp_earned?: number;
|
|
319
|
+
total_prize_earned?: number;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/** Write payload for `term`. */
|
|
323
|
+
export interface TermInput {
|
|
324
|
+
title?: string;
|
|
325
|
+
content?: BlocksContent;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/** Write payload for `tournament`. */
|
|
329
|
+
export interface TournamentInput {
|
|
330
|
+
title?: string;
|
|
331
|
+
slug?: string;
|
|
332
|
+
imgMain?: MediaInput;
|
|
333
|
+
dateTime?: string;
|
|
334
|
+
entryFee?: number;
|
|
335
|
+
type?: TournamentType;
|
|
336
|
+
participants?: number;
|
|
337
|
+
detail?: string;
|
|
338
|
+
users_permissions_user?: RelationInput;
|
|
339
|
+
matches?: RelationInput | RelationInput[];
|
|
340
|
+
teamSize?: TournamentTeamSize;
|
|
341
|
+
game?: RelationInput;
|
|
342
|
+
currentStatus?: TournamentCurrentStatus;
|
|
343
|
+
group?: RelationInput;
|
|
344
|
+
prizes?: RelationInput | RelationInput[];
|
|
345
|
+
tournament_participants?: RelationInput | RelationInput[];
|
|
346
|
+
tournament_roles?: RelationInput | RelationInput[];
|
|
347
|
+
league_tables?: RelationInput | RelationInput[];
|
|
348
|
+
rules?: string;
|
|
349
|
+
hasThirdPlace?: boolean;
|
|
350
|
+
isPrivate?: boolean;
|
|
351
|
+
checkInTime?: number;
|
|
352
|
+
region?: RelationInput;
|
|
353
|
+
platform?: RelationInput;
|
|
354
|
+
gameAccount?: RelationInput;
|
|
355
|
+
tournament_stages?: RelationInput | RelationInput[];
|
|
356
|
+
prizesDistributed?: boolean;
|
|
357
|
+
discordUrl?: string;
|
|
358
|
+
twitterUrl?: string;
|
|
359
|
+
twitchUrl?: string;
|
|
360
|
+
websiteUrl?: string;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/** Write payload for `tournament-participant`. */
|
|
364
|
+
export interface TournamentParticipantInput {
|
|
365
|
+
tournament?: RelationInput;
|
|
366
|
+
entryType?: TournamentParticipantEntryType;
|
|
367
|
+
registrationDate?: string;
|
|
368
|
+
team?: RelationInput;
|
|
369
|
+
coveredBy?: RelationInput;
|
|
370
|
+
displayName?: string;
|
|
371
|
+
seed?: number;
|
|
372
|
+
finalPlacement?: number;
|
|
373
|
+
checkedIn?: boolean;
|
|
374
|
+
status?: TournamentParticipantStatus;
|
|
375
|
+
captainUser?: RelationInput;
|
|
376
|
+
membersSnapshot?: unknown;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** Write payload for `tournament-preset-banner`. */
|
|
380
|
+
export interface TournamentPresetBannerInput {
|
|
381
|
+
banner?: MediaInput;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/** Write payload for `tournament-role`. */
|
|
385
|
+
export interface TournamentRoleInput {
|
|
386
|
+
role?: TournamentRoleRole;
|
|
387
|
+
users_permissions_user?: RelationInput;
|
|
388
|
+
tournament?: RelationInput;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/** Write payload for `tournament-stage`. */
|
|
392
|
+
export interface TournamentStageInput {
|
|
393
|
+
stageName?: TournamentStageStageName;
|
|
394
|
+
bestOf?: number;
|
|
395
|
+
tournament?: RelationInput;
|
|
396
|
+
isThirdPlace?: boolean;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/** Write payload for `user`. */
|
|
400
|
+
export interface UserInput {
|
|
401
|
+
username?: string;
|
|
402
|
+
email?: string;
|
|
403
|
+
provider?: string;
|
|
404
|
+
confirmed?: boolean;
|
|
405
|
+
blocked?: boolean;
|
|
406
|
+
role?: RelationInput;
|
|
407
|
+
image?: MediaInput;
|
|
408
|
+
matches?: RelationInput | RelationInput[];
|
|
409
|
+
userRating?: number;
|
|
410
|
+
tournament_roles?: RelationInput | RelationInput[];
|
|
411
|
+
user_socials?: RelationInput | RelationInput[];
|
|
412
|
+
user_game_accounts?: RelationInput | RelationInput[];
|
|
413
|
+
banner_image?: MediaInput;
|
|
414
|
+
information?: string;
|
|
415
|
+
countryCode?: string;
|
|
416
|
+
dob?: string;
|
|
417
|
+
notifyUpdates?: boolean;
|
|
418
|
+
xptCoins?: number;
|
|
419
|
+
user_transactions?: RelationInput | RelationInput[];
|
|
420
|
+
dailyRewardStreak?: number;
|
|
421
|
+
dailyRewardLastClaimed?: string;
|
|
422
|
+
user_game_stats?: RelationInput | RelationInput[];
|
|
423
|
+
notificationPreferences?: unknown;
|
|
424
|
+
referralCode?: string;
|
|
425
|
+
referralRewardClaimed?: boolean;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/** Write payload for `user-game-account`. */
|
|
429
|
+
export interface UserGameAccountInput {
|
|
430
|
+
accountId?: string;
|
|
431
|
+
isPrivate?: boolean;
|
|
432
|
+
users_permissions_user?: RelationInput;
|
|
433
|
+
game_account?: RelationInput;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/** Write payload for `user-game-stat`. */
|
|
437
|
+
export interface UserGameStatInput {
|
|
438
|
+
users_permissions_user?: RelationInput;
|
|
439
|
+
game?: RelationInput;
|
|
440
|
+
exp_earned?: number;
|
|
441
|
+
prize_earned?: number;
|
|
442
|
+
tournaments_played?: number;
|
|
443
|
+
match_wins?: number;
|
|
444
|
+
match_losses?: number;
|
|
445
|
+
trophies_gold?: number;
|
|
446
|
+
trophies_silver?: number;
|
|
447
|
+
trophies_bronze?: number;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/** Write payload for `user-social`. */
|
|
451
|
+
export interface UserSocialInput {
|
|
452
|
+
socialId?: string;
|
|
453
|
+
isPrivate?: boolean;
|
|
454
|
+
users_permissions_user?: RelationInput;
|
|
455
|
+
social_account?: RelationInput;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/** Write payload for `user-summary-stat`. */
|
|
459
|
+
export interface UserSummaryStatInput {
|
|
460
|
+
users_permissions_user?: RelationInput;
|
|
461
|
+
total_exp_earned?: number;
|
|
462
|
+
total_prize_earned?: number;
|
|
463
|
+
total_tournaments_played?: number;
|
|
464
|
+
total_wins?: number;
|
|
465
|
+
total_losses?: number;
|
|
466
|
+
total_trophies_gold?: number;
|
|
467
|
+
total_trophies_silver?: number;
|
|
468
|
+
total_trophies_bronze?: number;
|
|
469
|
+
total_registrations?: number;
|
|
470
|
+
total_no_shows?: number;
|
|
471
|
+
total_disputes_caused?: number;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/** Write payload for `user-transaction`. */
|
|
475
|
+
export interface UserTransactionInput {
|
|
476
|
+
users_permissions_user?: RelationInput;
|
|
477
|
+
xptAmount?: number;
|
|
478
|
+
priceAmount?: number;
|
|
479
|
+
type?: UserTransactionType;
|
|
480
|
+
stripeStatus?: UserTransactionStripeStatus;
|
|
481
|
+
description?: string;
|
|
482
|
+
stripePaymentIntentId?: string;
|
|
483
|
+
metadata?: unknown;
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** Write payload for `xpt-team`. */
|
|
487
|
+
export interface XptTeamInput {
|
|
488
|
+
name?: string;
|
|
489
|
+
role?: string;
|
|
490
|
+
linkedIn?: string;
|
|
491
|
+
portfolio?: string;
|
|
492
|
+
avatar?: MediaInput;
|
|
493
|
+
isTeam?: boolean;
|
|
494
|
+
isFemale?: boolean;
|
|
495
|
+
}
|
|
496
|
+
|