omniarena-types 1.67.0 → 1.69.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 +18 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -268,7 +268,8 @@ export type ResetPasswordData = {
268
268
  newPassword: string;
269
269
  };
270
270
  export type UpdateProfileData = {
271
- avatarUrl: string | null;
271
+ displayName: string;
272
+ avatar: string | null;
272
273
  };
273
274
  export type SentMessageDto = {
274
275
  id: string;
@@ -309,10 +310,12 @@ export type PostDto = {
309
310
  dislikes: number;
310
311
  reaction: -1 | 1 | null;
311
312
  };
313
+ export type BattleMode = 'ranked' | 'casual' | 'private';
314
+ export type BattleEndReason = 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
312
315
  export type BattleHistoryDto = {
313
316
  id: string;
314
- mode: 'ranked' | 'casual' | 'private';
315
- endReason: 'opponent_defeated' | 'opponent_surrendered' | 'opponent_left' | 'error';
317
+ mode: BattleMode;
318
+ endReason: BattleEndReason;
316
319
  winnerId: string;
317
320
  loserId: string;
318
321
  createdAt: Date;
@@ -327,6 +330,18 @@ export type BattleHistoryPlayerDto = {
327
330
  eloBefore: number;
328
331
  eloAfter: number;
329
332
  };
333
+ export type BattleSummaryDto = {
334
+ id: string;
335
+ mode: BattleMode;
336
+ endReason: BattleEndReason;
337
+ winnerId: string;
338
+ loserId: string;
339
+ createdAt: Date;
340
+ player1Team: number[];
341
+ player2Team: number[];
342
+ player1: UserHeaderDto;
343
+ player2: UserHeaderDto;
344
+ };
330
345
  export type LeaderboardEntryDto = {
331
346
  id: string;
332
347
  username: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omniarena-types",
3
- "version": "1.67.0",
3
+ "version": "1.69.0",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [