@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.
- package/dist/SmarticoLib/index.d.ts +1 -0
- package/dist/Tournaments/GetClanTournamentPlayersResponse.d.ts +10 -8
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +4 -4
- package/dist/index.modern.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SmarticoLib/index.ts +1 -0
- package/src/Tournaments/GetClanTournamentPlayersResponse.ts +14 -12
package/package.json
CHANGED
package/src/SmarticoLib/index.ts
CHANGED
|
@@ -692,6 +692,7 @@ export interface GetTournamentsResponse extends ProtocolResponse {
|
|
|
692
692
|
}
|
|
693
693
|
declare enum TournamentRegistrationError {
|
|
694
694
|
NO_ERROR = 0,
|
|
695
|
+
TOURNAMENT_USER_CANNOT_JOIN_WITHOUT_CLAN = 1010,
|
|
695
696
|
TOURNAMENT_INSTANCE_NOT_FOUND = 30001,
|
|
696
697
|
TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS = 30002,
|
|
697
698
|
TOURNAMENT_INSTANCE_NOT_IN_STATE = 30003,
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { ProtocolResponse } from '../Base/ProtocolResponse';
|
|
2
2
|
|
|
3
3
|
export interface ClanTournamentPlayerRaw {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
userId: number;
|
|
5
|
+
cleanExtUserId: string;
|
|
6
|
+
userAltName: string;
|
|
6
7
|
avatar_id: string;
|
|
7
8
|
avatar_real_id: number;
|
|
8
9
|
position: number;
|
|
9
10
|
scores: number;
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
isMe: boolean;
|
|
12
|
+
registration_status?: number;
|
|
13
|
+
crmBrandId?: number;
|
|
12
14
|
avatar_url?: string;
|
|
13
15
|
}
|
|
14
16
|
|
|
@@ -19,15 +21,15 @@ export interface GetClanTournamentPlayersResponse extends ProtocolResponse {
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
export interface TClanTournamentPlayer {
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
30
|
-
clean_ext_user_id: string;
|
|
32
|
+
isMe: boolean;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
export interface TClanTournamentPlayersResult {
|
|
@@ -44,15 +46,15 @@ export const clanTournamentPlayersTransform = (response: GetClanTournamentPlayer
|
|
|
44
46
|
image_url: response.clan_public_meta.image_url,
|
|
45
47
|
},
|
|
46
48
|
players: (response.players || []).map((p) => ({
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
userId: p.userId,
|
|
50
|
+
cleanExtUserId: p.cleanExtUserId,
|
|
51
|
+
userAltName: p.userAltName,
|
|
49
52
|
avatar_id: p.avatar_id,
|
|
50
53
|
avatar_real_id: p.avatar_real_id,
|
|
51
54
|
avatar_url: p.avatar_url,
|
|
52
55
|
position: p.position,
|
|
53
56
|
scores: p.scores,
|
|
54
|
-
|
|
55
|
-
clean_ext_user_id: p.clean_ext_user_id,
|
|
57
|
+
isMe: p.isMe,
|
|
56
58
|
})),
|
|
57
59
|
};
|
|
58
60
|
};
|