omniarena-types 1.67.0 → 1.68.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/dist/index.d.ts +16 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -309,10 +309,12 @@ export type PostDto = {
|
|
|
309
309
|
dislikes: number;
|
|
310
310
|
reaction: -1 | 1 | null;
|
|
311
311
|
};
|
|
312
|
+
export type BattleMode = 'ranked' | 'casual' | 'private';
|
|
313
|
+
export type BattleEndReason = 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
|
|
312
314
|
export type BattleHistoryDto = {
|
|
313
315
|
id: string;
|
|
314
|
-
mode:
|
|
315
|
-
endReason:
|
|
316
|
+
mode: BattleMode;
|
|
317
|
+
endReason: BattleEndReason;
|
|
316
318
|
winnerId: string;
|
|
317
319
|
loserId: string;
|
|
318
320
|
createdAt: Date;
|
|
@@ -327,6 +329,18 @@ export type BattleHistoryPlayerDto = {
|
|
|
327
329
|
eloBefore: number;
|
|
328
330
|
eloAfter: number;
|
|
329
331
|
};
|
|
332
|
+
export type BattleSummaryDto = {
|
|
333
|
+
id: string;
|
|
334
|
+
mode: BattleMode;
|
|
335
|
+
endReason: BattleEndReason;
|
|
336
|
+
winnerId: string;
|
|
337
|
+
loserId: string;
|
|
338
|
+
createdAt: Date;
|
|
339
|
+
player1Team: number[];
|
|
340
|
+
player2Team: number[];
|
|
341
|
+
player1: UserHeaderDto;
|
|
342
|
+
player2: UserHeaderDto;
|
|
343
|
+
};
|
|
330
344
|
export type LeaderboardEntryDto = {
|
|
331
345
|
id: string;
|
|
332
346
|
username: string;
|