omniarena-types 1.41.0 → 1.43.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +17 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -214,3 +214,20 @@ export type PostDto = {
214
214
  likes: number;
215
215
  dislikes: number;
216
216
  };
217
+ export type BattleHistoryDto = {
218
+ id: string;
219
+ mode: 'ranked' | 'casual' | 'private';
220
+ endReason: 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
221
+ winnerId: string;
222
+ loserId: string;
223
+ createdAt: Date;
224
+ player1: BattleHistoryPlayerDto;
225
+ player2: BattleHistoryPlayerDto;
226
+ };
227
+ export type BattleHistoryPlayerDto = {
228
+ id: string;
229
+ displayName: string;
230
+ avatarUrl: string | null;
231
+ eloBefore: number;
232
+ eloAfter: number;
233
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-types",
3
- "version": "1.41.0",
3
+ "version": "1.43.0",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [