xpt-shared-types 1.0.4 → 1.1.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/contracts/index.d.ts +139 -0
- package/dist/contracts/index.js +8 -0
- package/dist/data/countriesList.d.ts +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 +3 -3
- package/dist/index.js +7 -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/contracts/index.ts +158 -0
- package/src/data/countriesList.ts +1156 -1156
- package/src/generated/enums.ts +171 -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 +11 -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,497 @@
|
|
|
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
|
+
StrapiDocument,
|
|
8
|
+
StrapiMedia,
|
|
9
|
+
UserRole,
|
|
10
|
+
} from '../contracts';
|
|
11
|
+
import type {
|
|
12
|
+
FriendshipStatus,
|
|
13
|
+
GameRequestCustomLobbies,
|
|
14
|
+
GameRequestGenre,
|
|
15
|
+
GameRequestTeamPlay,
|
|
16
|
+
MatchLobbyStatus,
|
|
17
|
+
MatchRound,
|
|
18
|
+
MatchStreamPlatform,
|
|
19
|
+
MatchWinnerSlot,
|
|
20
|
+
PrizeRank,
|
|
21
|
+
ReferralStatus,
|
|
22
|
+
TeamCurrentStatus,
|
|
23
|
+
TeamInviteStatus,
|
|
24
|
+
TeamInviteTeamRole,
|
|
25
|
+
TeamPlayerTeamRole,
|
|
26
|
+
TournamentCurrentStatus,
|
|
27
|
+
TournamentParticipantEntryType,
|
|
28
|
+
TournamentParticipantStatus,
|
|
29
|
+
TournamentRoleRole,
|
|
30
|
+
TournamentStageStageName,
|
|
31
|
+
TournamentTeamSize,
|
|
32
|
+
TournamentType,
|
|
33
|
+
UserTransactionStripeStatus,
|
|
34
|
+
UserTransactionType,
|
|
35
|
+
} from './enums';
|
|
36
|
+
|
|
37
|
+
/** `about` */
|
|
38
|
+
export interface About extends StrapiDocument {
|
|
39
|
+
heroTitle?: string | null;
|
|
40
|
+
summary?: BlocksContent | null;
|
|
41
|
+
aboutInfo?: unknown | null;
|
|
42
|
+
gameIcons?: StrapiMedia[];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** `dm-message` */
|
|
46
|
+
export interface DmMessage extends StrapiDocument {
|
|
47
|
+
conversationId?: string | null;
|
|
48
|
+
content?: string | null;
|
|
49
|
+
sender?: User | null;
|
|
50
|
+
readBy?: unknown | null;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** `faq` */
|
|
54
|
+
export interface Faq extends StrapiDocument {
|
|
55
|
+
question?: string | null;
|
|
56
|
+
answer?: BlocksContent | null;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** `featured-game` */
|
|
60
|
+
export interface FeaturedGame extends StrapiDocument {
|
|
61
|
+
featuredHeading?: string | null;
|
|
62
|
+
featuredSubheading?: string | null;
|
|
63
|
+
game?: Game | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** `featured-tournament` */
|
|
67
|
+
export interface FeaturedTournament extends StrapiDocument {
|
|
68
|
+
featuredHeading?: string | null;
|
|
69
|
+
featuredSubheading?: string | null;
|
|
70
|
+
tournament?: Tournament | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** `friendship` */
|
|
74
|
+
export interface Friendship extends StrapiDocument {
|
|
75
|
+
requester?: User | null;
|
|
76
|
+
receiver?: User | null;
|
|
77
|
+
status?: FriendshipStatus | null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** `game` */
|
|
81
|
+
export interface Game extends StrapiDocument {
|
|
82
|
+
title?: string | null;
|
|
83
|
+
slug?: string | null;
|
|
84
|
+
imgThumb?: StrapiMedia | null;
|
|
85
|
+
imgMain?: StrapiMedia | null;
|
|
86
|
+
tournaments?: Tournament[];
|
|
87
|
+
isTrending?: boolean | null;
|
|
88
|
+
user_game_stats?: UserGameStat[];
|
|
89
|
+
team_game_stats?: TeamGameStat[];
|
|
90
|
+
imgMainPosition?: string | null;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** `game-account` */
|
|
94
|
+
export interface GameAccount extends StrapiDocument {
|
|
95
|
+
name?: string | null;
|
|
96
|
+
tournaments?: Tournament[];
|
|
97
|
+
user_game_accounts?: UserGameAccount[];
|
|
98
|
+
imgThumb?: StrapiMedia | null;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** `game-request` */
|
|
102
|
+
export interface GameRequest extends StrapiDocument {
|
|
103
|
+
gameTitle?: string | null;
|
|
104
|
+
genre?: GameRequestGenre | null;
|
|
105
|
+
developer?: string | null;
|
|
106
|
+
platforms?: unknown | null;
|
|
107
|
+
gameIds?: unknown | null;
|
|
108
|
+
platformOther?: string | null;
|
|
109
|
+
gameIdOther?: string | null;
|
|
110
|
+
teamPlay?: GameRequestTeamPlay | null;
|
|
111
|
+
customLobbies?: GameRequestCustomLobbies | null;
|
|
112
|
+
whyAdd?: string | null;
|
|
113
|
+
notifyWhenAdded?: boolean | null;
|
|
114
|
+
submittedByEmail?: string | null;
|
|
115
|
+
submittedByUserId?: string | null;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** `group` */
|
|
119
|
+
export interface Group extends StrapiDocument {
|
|
120
|
+
title?: string | null;
|
|
121
|
+
slug?: string | null;
|
|
122
|
+
members?: string | null;
|
|
123
|
+
imgThumb?: StrapiMedia | null;
|
|
124
|
+
followers?: number | null;
|
|
125
|
+
tournaments?: Tournament[];
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** `host-summary-stat` */
|
|
129
|
+
export interface HostSummaryStat extends StrapiDocument {
|
|
130
|
+
users_permissions_user?: User | null;
|
|
131
|
+
total_tournaments_hosted?: number | null;
|
|
132
|
+
total_participants_hosted?: number | null;
|
|
133
|
+
host_exp_earned?: number | null;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** `league-table` */
|
|
137
|
+
export interface LeagueTable extends StrapiDocument {
|
|
138
|
+
playerId?: User | null;
|
|
139
|
+
wins?: number | null;
|
|
140
|
+
losses?: number | null;
|
|
141
|
+
points?: number | null;
|
|
142
|
+
tournament?: Tournament | null;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/** `match` */
|
|
146
|
+
export interface Match extends StrapiDocument {
|
|
147
|
+
tournament?: Tournament | null;
|
|
148
|
+
matchNumber?: number | null;
|
|
149
|
+
homeId?: User | null;
|
|
150
|
+
awayId?: User | null;
|
|
151
|
+
dateTime?: string | null;
|
|
152
|
+
homeScore?: number | null;
|
|
153
|
+
awayScore?: number | null;
|
|
154
|
+
round?: MatchRound | null;
|
|
155
|
+
streamLink?: string | null;
|
|
156
|
+
comments?: string | null;
|
|
157
|
+
nextMatchNumber?: number | null;
|
|
158
|
+
winnerSlot?: MatchWinnerSlot | null;
|
|
159
|
+
lobbyStatus?: MatchLobbyStatus | null;
|
|
160
|
+
homeReady?: boolean | null;
|
|
161
|
+
awayReady?: boolean | null;
|
|
162
|
+
homeScreenshot?: StrapiMedia | null;
|
|
163
|
+
awayScreenshot?: StrapiMedia | null;
|
|
164
|
+
homeReportedHome?: number | null;
|
|
165
|
+
homeReportedAway?: number | null;
|
|
166
|
+
awayReportedHome?: number | null;
|
|
167
|
+
awayReportedAway?: number | null;
|
|
168
|
+
homeTeam?: Team | null;
|
|
169
|
+
homeParticipant?: TournamentParticipant | null;
|
|
170
|
+
awayTeam?: Team | null;
|
|
171
|
+
awayParticipant?: TournamentParticipant | null;
|
|
172
|
+
isStreaming?: boolean | null;
|
|
173
|
+
streamHandle?: string | null;
|
|
174
|
+
streamPlatform?: MatchStreamPlatform | null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** `match-message` */
|
|
178
|
+
export interface MatchMessage extends StrapiDocument {
|
|
179
|
+
match?: Match | null;
|
|
180
|
+
author?: User | null;
|
|
181
|
+
content?: string | null;
|
|
182
|
+
isSystemLog?: boolean | null;
|
|
183
|
+
isAdminMessage?: boolean | null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** `notification` */
|
|
187
|
+
export interface Notification extends StrapiDocument {
|
|
188
|
+
type?: string | null;
|
|
189
|
+
message?: string | null;
|
|
190
|
+
slug?: string | null;
|
|
191
|
+
read?: boolean | null;
|
|
192
|
+
metadata?: unknown | null;
|
|
193
|
+
actor?: User | null;
|
|
194
|
+
user?: User | null;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/** `platform` */
|
|
198
|
+
export interface Platform extends StrapiDocument {
|
|
199
|
+
name?: string | null;
|
|
200
|
+
tournaments?: Tournament[];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/** `preset-avatar` */
|
|
204
|
+
export interface PresetAvatar extends StrapiDocument {
|
|
205
|
+
image?: StrapiMedia | null;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** `preset-profile-banner` */
|
|
209
|
+
export interface PresetProfileBanner extends StrapiDocument {
|
|
210
|
+
image?: StrapiMedia | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/** `preset-team-avatar` */
|
|
214
|
+
export interface PresetTeamAvatar extends StrapiDocument {
|
|
215
|
+
image?: StrapiMedia | null;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** `preset-team-profile-banner` */
|
|
219
|
+
export interface PresetTeamProfileBanner extends StrapiDocument {
|
|
220
|
+
image?: StrapiMedia | null;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** `privacy` */
|
|
224
|
+
export interface Privacy extends StrapiDocument {
|
|
225
|
+
content?: BlocksContent | null;
|
|
226
|
+
title?: string | null;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** `prize` */
|
|
230
|
+
export interface Prize extends StrapiDocument {
|
|
231
|
+
description?: string | null;
|
|
232
|
+
value?: number | null;
|
|
233
|
+
tournament?: Tournament | null;
|
|
234
|
+
rank?: PrizeRank | null;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** `referral` */
|
|
238
|
+
export interface Referral extends StrapiDocument {
|
|
239
|
+
referrer?: User | null;
|
|
240
|
+
referred?: User | null;
|
|
241
|
+
code?: string | null;
|
|
242
|
+
status?: ReferralStatus | null;
|
|
243
|
+
referrerXpt?: number | null;
|
|
244
|
+
referredXpt?: number | null;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** `region` */
|
|
248
|
+
export interface Region extends StrapiDocument {
|
|
249
|
+
name?: string | null;
|
|
250
|
+
tournaments?: Tournament[];
|
|
251
|
+
code?: string | null;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/** `social-account` */
|
|
255
|
+
export interface SocialAccount extends StrapiDocument {
|
|
256
|
+
name?: string | null;
|
|
257
|
+
baseUrl?: string | null;
|
|
258
|
+
user_socials?: UserSocial[];
|
|
259
|
+
imgThumb?: StrapiMedia | null;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/** `team` */
|
|
263
|
+
export interface Team extends StrapiDocument {
|
|
264
|
+
name?: string | null;
|
|
265
|
+
slug?: string | null;
|
|
266
|
+
bio?: string | null;
|
|
267
|
+
avatar?: StrapiMedia | null;
|
|
268
|
+
inviteCode?: string | null;
|
|
269
|
+
team_players?: TeamPlayer[];
|
|
270
|
+
team_game_stats?: TeamGameStat[];
|
|
271
|
+
banner_image?: StrapiMedia | null;
|
|
272
|
+
current_status?: TeamCurrentStatus | null;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** `team-game-stat` */
|
|
276
|
+
export interface TeamGameStat extends StrapiDocument {
|
|
277
|
+
team?: Team | null;
|
|
278
|
+
game?: Game | null;
|
|
279
|
+
match_wins?: number | null;
|
|
280
|
+
match_losses?: number | null;
|
|
281
|
+
tournaments_played?: number | null;
|
|
282
|
+
trophies_gold?: number | null;
|
|
283
|
+
trophies_silver?: number | null;
|
|
284
|
+
trophies_bronze?: number | null;
|
|
285
|
+
exp_earned?: number | null;
|
|
286
|
+
prize_earned?: number | null;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** `team-invite` */
|
|
290
|
+
export interface TeamInvite extends StrapiDocument {
|
|
291
|
+
inviter?: User | null;
|
|
292
|
+
invitee?: User | null;
|
|
293
|
+
team?: Team | null;
|
|
294
|
+
game?: Game | null;
|
|
295
|
+
status?: TeamInviteStatus | null;
|
|
296
|
+
team_role?: TeamInviteTeamRole | null;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/** `team-player` */
|
|
300
|
+
export interface TeamPlayer extends StrapiDocument {
|
|
301
|
+
team?: Team | null;
|
|
302
|
+
users_permissions_user?: User | null;
|
|
303
|
+
joinedAt?: string | null;
|
|
304
|
+
team_role?: TeamPlayerTeamRole | null;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/** `team-summary-stat` */
|
|
308
|
+
export interface TeamSummaryStat extends StrapiDocument {
|
|
309
|
+
team?: Team | null;
|
|
310
|
+
total_match_wins?: number | null;
|
|
311
|
+
total_match_losses?: number | null;
|
|
312
|
+
total_tournaments_played?: number | null;
|
|
313
|
+
total_trophies_gold?: number | null;
|
|
314
|
+
total_trophies_silver?: number | null;
|
|
315
|
+
total_trophies_bronze?: number | null;
|
|
316
|
+
total_registrations?: number | null;
|
|
317
|
+
total_no_shows?: number | null;
|
|
318
|
+
total_disputes_caused?: number | null;
|
|
319
|
+
total_exp_earned?: number | null;
|
|
320
|
+
total_prize_earned?: number | null;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/** `term` */
|
|
324
|
+
export interface Term extends StrapiDocument {
|
|
325
|
+
title?: string | null;
|
|
326
|
+
content?: BlocksContent | null;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
/** `tournament` */
|
|
330
|
+
export interface Tournament extends StrapiDocument {
|
|
331
|
+
title?: string | null;
|
|
332
|
+
slug?: string | null;
|
|
333
|
+
imgMain?: StrapiMedia | null;
|
|
334
|
+
dateTime?: string | null;
|
|
335
|
+
entryFee?: number | null;
|
|
336
|
+
type?: TournamentType | null;
|
|
337
|
+
participants?: number | null;
|
|
338
|
+
detail?: string | null;
|
|
339
|
+
users_permissions_user?: User | null;
|
|
340
|
+
matches?: Match[];
|
|
341
|
+
teamSize?: TournamentTeamSize | null;
|
|
342
|
+
game?: Game | null;
|
|
343
|
+
currentStatus?: TournamentCurrentStatus | null;
|
|
344
|
+
group?: Group | null;
|
|
345
|
+
prizes?: Prize[];
|
|
346
|
+
tournament_participants?: TournamentParticipant[];
|
|
347
|
+
tournament_roles?: TournamentRole[];
|
|
348
|
+
league_tables?: LeagueTable[];
|
|
349
|
+
rules?: string | null;
|
|
350
|
+
hasThirdPlace?: boolean | null;
|
|
351
|
+
isPrivate?: boolean | null;
|
|
352
|
+
checkInTime?: number | null;
|
|
353
|
+
region?: Region | null;
|
|
354
|
+
platform?: Platform | null;
|
|
355
|
+
gameAccount?: GameAccount | null;
|
|
356
|
+
tournament_stages?: TournamentStage[];
|
|
357
|
+
prizesDistributed?: boolean | null;
|
|
358
|
+
discordUrl?: string | null;
|
|
359
|
+
twitterUrl?: string | null;
|
|
360
|
+
twitchUrl?: string | null;
|
|
361
|
+
websiteUrl?: string | null;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/** `tournament-participant` */
|
|
365
|
+
export interface TournamentParticipant extends StrapiDocument {
|
|
366
|
+
tournament?: Tournament | null;
|
|
367
|
+
entryType?: TournamentParticipantEntryType | null;
|
|
368
|
+
registrationDate?: string | null;
|
|
369
|
+
team?: Team | null;
|
|
370
|
+
coveredBy?: User | null;
|
|
371
|
+
displayName?: string | null;
|
|
372
|
+
seed?: number | null;
|
|
373
|
+
finalPlacement?: number | null;
|
|
374
|
+
checkedIn?: boolean | null;
|
|
375
|
+
status?: TournamentParticipantStatus | null;
|
|
376
|
+
captainUser?: User | null;
|
|
377
|
+
membersSnapshot?: unknown | null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/** `tournament-preset-banner` */
|
|
381
|
+
export interface TournamentPresetBanner extends StrapiDocument {
|
|
382
|
+
banner?: StrapiMedia | null;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/** `tournament-role` */
|
|
386
|
+
export interface TournamentRole extends StrapiDocument {
|
|
387
|
+
role?: TournamentRoleRole | null;
|
|
388
|
+
users_permissions_user?: User | null;
|
|
389
|
+
tournament?: Tournament | null;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** `tournament-stage` */
|
|
393
|
+
export interface TournamentStage extends StrapiDocument {
|
|
394
|
+
stageName?: TournamentStageStageName | null;
|
|
395
|
+
bestOf?: number | null;
|
|
396
|
+
tournament?: Tournament | null;
|
|
397
|
+
isThirdPlace?: boolean | null;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/** `user` */
|
|
401
|
+
export interface User extends StrapiDocument {
|
|
402
|
+
username?: string | null;
|
|
403
|
+
email?: string | null;
|
|
404
|
+
provider?: string | null;
|
|
405
|
+
confirmed?: boolean | null;
|
|
406
|
+
blocked?: boolean | null;
|
|
407
|
+
role?: UserRole | null;
|
|
408
|
+
image?: StrapiMedia | null;
|
|
409
|
+
matches?: Match[];
|
|
410
|
+
userRating?: number | null;
|
|
411
|
+
tournament_roles?: TournamentRole[];
|
|
412
|
+
user_socials?: UserSocial[];
|
|
413
|
+
user_game_accounts?: UserGameAccount[];
|
|
414
|
+
banner_image?: StrapiMedia | null;
|
|
415
|
+
information?: string | null;
|
|
416
|
+
countryCode?: string | null;
|
|
417
|
+
dob?: string | null;
|
|
418
|
+
notifyUpdates?: boolean | null;
|
|
419
|
+
xptCoins?: number | null;
|
|
420
|
+
user_transactions?: UserTransaction[];
|
|
421
|
+
dailyRewardStreak?: number | null;
|
|
422
|
+
dailyRewardLastClaimed?: string | null;
|
|
423
|
+
user_game_stats?: UserGameStat[];
|
|
424
|
+
notificationPreferences?: unknown | null;
|
|
425
|
+
referralCode?: string | null;
|
|
426
|
+
referralRewardClaimed?: boolean | null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/** `user-game-account` */
|
|
430
|
+
export interface UserGameAccount extends StrapiDocument {
|
|
431
|
+
accountId?: string | null;
|
|
432
|
+
isPrivate?: boolean | null;
|
|
433
|
+
users_permissions_user?: User | null;
|
|
434
|
+
game_account?: GameAccount | null;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/** `user-game-stat` */
|
|
438
|
+
export interface UserGameStat extends StrapiDocument {
|
|
439
|
+
users_permissions_user?: User | null;
|
|
440
|
+
game?: Game | null;
|
|
441
|
+
exp_earned?: number | null;
|
|
442
|
+
prize_earned?: number | null;
|
|
443
|
+
tournaments_played?: number | null;
|
|
444
|
+
match_wins?: number | null;
|
|
445
|
+
match_losses?: number | null;
|
|
446
|
+
trophies_gold?: number | null;
|
|
447
|
+
trophies_silver?: number | null;
|
|
448
|
+
trophies_bronze?: number | null;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
/** `user-social` */
|
|
452
|
+
export interface UserSocial extends StrapiDocument {
|
|
453
|
+
socialId?: string | null;
|
|
454
|
+
isPrivate?: boolean | null;
|
|
455
|
+
users_permissions_user?: User | null;
|
|
456
|
+
social_account?: SocialAccount | null;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/** `user-summary-stat` */
|
|
460
|
+
export interface UserSummaryStat extends StrapiDocument {
|
|
461
|
+
users_permissions_user?: User | null;
|
|
462
|
+
total_exp_earned?: number | null;
|
|
463
|
+
total_prize_earned?: number | null;
|
|
464
|
+
total_tournaments_played?: number | null;
|
|
465
|
+
total_wins?: number | null;
|
|
466
|
+
total_losses?: number | null;
|
|
467
|
+
total_trophies_gold?: number | null;
|
|
468
|
+
total_trophies_silver?: number | null;
|
|
469
|
+
total_trophies_bronze?: number | null;
|
|
470
|
+
total_registrations?: number | null;
|
|
471
|
+
total_no_shows?: number | null;
|
|
472
|
+
total_disputes_caused?: number | null;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/** `user-transaction` */
|
|
476
|
+
export interface UserTransaction extends StrapiDocument {
|
|
477
|
+
users_permissions_user?: User | null;
|
|
478
|
+
xptAmount?: number | null;
|
|
479
|
+
priceAmount?: number | null;
|
|
480
|
+
type?: UserTransactionType | null;
|
|
481
|
+
stripeStatus?: UserTransactionStripeStatus | null;
|
|
482
|
+
description?: string | null;
|
|
483
|
+
stripePaymentIntentId?: string | null;
|
|
484
|
+
metadata?: unknown | null;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/** `xpt-team` */
|
|
488
|
+
export interface XptTeam extends StrapiDocument {
|
|
489
|
+
name?: string | null;
|
|
490
|
+
role?: string | null;
|
|
491
|
+
linkedIn?: string | null;
|
|
492
|
+
portfolio?: string | null;
|
|
493
|
+
avatar?: StrapiMedia | null;
|
|
494
|
+
isTeam?: boolean | null;
|
|
495
|
+
isFemale?: boolean | null;
|
|
496
|
+
}
|
|
497
|
+
|
package/src/index.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from './
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
// Generated from the Strapi schemas — see scripts/sync-from-strapi.js
|
|
2
|
+
export * from './generated';
|
|
3
|
+
|
|
4
|
+
// Hand-written contract primitives (response envelopes, Populated, media)
|
|
5
|
+
export * from './contracts';
|
|
6
|
+
|
|
7
|
+
// Hand-written types with no Strapi content type behind them
|
|
8
|
+
export * from './manual';
|
|
9
|
+
|
|
10
|
+
// Data
|
|
11
|
+
export * from './data/countriesList';
|
package/dist/types/match.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type MatchRound = 'Round 32' | 'Round 16' | 'Quarter Final' | 'Semi-Final' | 'Third Round' | 'Finals' | 'League';
|
package/dist/types/match.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type TournamentType = 'Single Elimination' | 'League' | 'Double Elimination';
|
package/dist/types/tournament.js
DELETED
package/src/types/match.ts
DELETED
package/src/types/tournament.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|