@smartico/public-api 0.0.367 → 0.0.369
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/Tournaments/TournamentRegistrationError.d.ts +1 -0
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.mjs +5 -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/src/Tournaments/TournamentRegistrationError.ts +1 -0
|
@@ -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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
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
|
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
|
-
|
|
1707
|
-
|
|
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
|
-
|
|
1714
|
-
clean_ext_user_id: p.clean_ext_user_id
|
|
1714
|
+
isMe: p.isMe
|
|
1715
1715
|
};
|
|
1716
1716
|
})
|
|
1717
1717
|
};
|
|
@@ -1990,6 +1990,7 @@ var tournamentInfoItemTransform = function tournamentInfoItemTransform(t) {
|
|
|
1990
1990
|
exports.TournamentRegistrationError = void 0;
|
|
1991
1991
|
(function (TournamentRegistrationError) {
|
|
1992
1992
|
TournamentRegistrationError[TournamentRegistrationError["NO_ERROR"] = 0] = "NO_ERROR";
|
|
1993
|
+
TournamentRegistrationError[TournamentRegistrationError["TOURNAMENT_USER_CANNOT_JOIN_WITHOUT_CLAN"] = 1010] = "TOURNAMENT_USER_CANNOT_JOIN_WITHOUT_CLAN";
|
|
1993
1994
|
TournamentRegistrationError[TournamentRegistrationError["TOURNAMENT_INSTANCE_NOT_FOUND"] = 30001] = "TOURNAMENT_INSTANCE_NOT_FOUND";
|
|
1994
1995
|
TournamentRegistrationError[TournamentRegistrationError["TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS"] = 30002] = "TOURNAMENT_REGISTRATION_NOT_ENOUGH_POINTS";
|
|
1995
1996
|
TournamentRegistrationError[TournamentRegistrationError["TOURNAMENT_INSTANCE_NOT_IN_STATE"] = 30003] = "TOURNAMENT_INSTANCE_NOT_IN_STATE";
|