@smartico/public-api 0.0.367 → 0.0.368

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.
@@ -674,6 +674,7 @@ export interface GetTournamentsResponse extends ProtocolResponse {
674
674
  }
675
675
  declare enum TournamentRegistrationError {
676
676
  NO_ERROR = 0,
677
+ TOURNAMENT_USER_CANNOT_JOIN_WITHOUT_CLAN = 1010,
677
678
  TOURNAMENT_INSTANCE_NOT_FOUND = 30001,
678
679
  TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS = 30002,
679
680
  TOURNAMENT_INSTANCE_NOT_IN_STATE = 30003,
@@ -1,13 +1,15 @@
1
1
  import { ProtocolResponse } from '../Base/ProtocolResponse';
2
2
  export interface ClanTournamentPlayerRaw {
3
- user_id: number;
4
- public_username: string;
3
+ userId: number;
4
+ cleanExtUserId: string;
5
+ userAltName: string;
5
6
  avatar_id: string;
6
7
  avatar_real_id: number;
7
8
  position: number;
8
9
  scores: number;
9
- is_me: boolean;
10
- clean_ext_user_id: string;
10
+ isMe: boolean;
11
+ registration_status?: number;
12
+ crmBrandId?: number;
11
13
  avatar_url?: string;
12
14
  }
13
15
  export interface GetClanTournamentPlayersResponse extends ProtocolResponse {
@@ -19,15 +21,15 @@ export interface GetClanTournamentPlayersResponse extends ProtocolResponse {
19
21
  players: ClanTournamentPlayerRaw[];
20
22
  }
21
23
  export interface TClanTournamentPlayer {
22
- user_id: number;
23
- public_username: string;
24
+ userId: number;
25
+ cleanExtUserId: string;
26
+ userAltName: string;
24
27
  avatar_id: string;
25
28
  avatar_real_id: number;
26
29
  avatar_url?: string;
27
30
  position: number;
28
31
  scores: number;
29
- is_me: boolean;
30
- clean_ext_user_id: string;
32
+ isMe: boolean;
31
33
  }
32
34
  export interface TClanTournamentPlayersResult {
33
35
  clan_id: number;
package/dist/index.js CHANGED
@@ -1703,15 +1703,15 @@ var clanTournamentPlayersTransform = function clanTournamentPlayersTransform(res
1703
1703
  },
1704
1704
  players: (response.players || []).map(function (p) {
1705
1705
  return {
1706
- user_id: p.user_id,
1707
- public_username: p.public_username,
1706
+ userId: p.userId,
1707
+ cleanExtUserId: p.cleanExtUserId,
1708
+ userAltName: p.userAltName,
1708
1709
  avatar_id: p.avatar_id,
1709
1710
  avatar_real_id: p.avatar_real_id,
1710
1711
  avatar_url: p.avatar_url,
1711
1712
  position: p.position,
1712
1713
  scores: p.scores,
1713
- is_me: p.is_me,
1714
- clean_ext_user_id: p.clean_ext_user_id
1714
+ isMe: p.isMe
1715
1715
  };
1716
1716
  })
1717
1717
  };