front-back-poker-types 5.0.218 → 5.0.222
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/cjs/index.js +0 -4
- package/dist/cjs/types/api/tournament.d.ts +4 -0
- package/dist/cjs/types/api/user.d.ts +0 -4
- package/dist/cjs/types/ws/notifications.d.ts +1 -0
- package/dist/cjs/types/ws/room/to-front.d.ts +8 -4
- package/dist/esm/index.js +1 -3
- package/dist/esm/types/api/tournament.d.ts +4 -0
- package/dist/esm/types/api/user.d.ts +0 -4
- package/dist/esm/types/ws/notifications.d.ts +1 -0
- package/dist/esm/types/ws/room/to-front.d.ts +8 -4
- package/dist/index.d.ts +14 -9
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -56,8 +56,6 @@ exports.TransactionType = void 0;
|
|
|
56
56
|
})(exports.TransactionType || (exports.TransactionType = {}));
|
|
57
57
|
var PROMO_CODE_PATHNAME = '/promo-code';
|
|
58
58
|
var USER_PROMO_CODE_PATHNAME = "".concat(USER_PATHNAME).concat(PROMO_CODE_PATHNAME);
|
|
59
|
-
var ROOMS_PATHNAME = '/rooms';
|
|
60
|
-
var USER_ROOMS_PATHNAME = "".concat(USER_PATHNAME).concat(ROOMS_PATHNAME);
|
|
61
59
|
var SETTINGS_PATHNAME = '/settings';
|
|
62
60
|
var USER_SETTINGS_PATHNAME = "".concat(USER_PATHNAME).concat(SETTINGS_PATHNAME);
|
|
63
61
|
exports.CardView = void 0;
|
|
@@ -585,7 +583,6 @@ exports.PROMO_CODE_PATHNAME = PROMO_CODE_PATHNAME;
|
|
|
585
583
|
exports.REFERRALS_PATHNAME = REFERRALS_PATHNAME;
|
|
586
584
|
exports.REGISTRATION_PATHNAME = REGISTRATION_PATHNAME;
|
|
587
585
|
exports.ROOMS_LOGS_PATHNAME = ROOMS_LOGS_PATHNAME;
|
|
588
|
-
exports.ROOMS_PATHNAME = ROOMS_PATHNAME;
|
|
589
586
|
exports.ROOM_PATHNAME = ROOM_PATHNAME;
|
|
590
587
|
exports.ROOM_WS_PATHNAME = ROOM_WS_PATHNAME;
|
|
591
588
|
exports.SETTINGS_PATHNAME = SETTINGS_PATHNAME;
|
|
@@ -600,7 +597,6 @@ exports.USER_FREE_CHIPS_PATHNAME = USER_FREE_CHIPS_PATHNAME;
|
|
|
600
597
|
exports.USER_PATHNAME = USER_PATHNAME;
|
|
601
598
|
exports.USER_PROMO_CODE_PATHNAME = USER_PROMO_CODE_PATHNAME;
|
|
602
599
|
exports.USER_REFERRALS_PATHNAME = USER_REFERRALS_PATHNAME;
|
|
603
|
-
exports.USER_ROOMS_PATHNAME = USER_ROOMS_PATHNAME;
|
|
604
600
|
exports.USER_SETTINGS_PATHNAME = USER_SETTINGS_PATHNAME;
|
|
605
601
|
exports.USER_TRANSACTIONS_PATHNAME = USER_TRANSACTIONS_PATHNAME;
|
|
606
602
|
exports.USER_WITHDRAW_PATHNAME = USER_WITHDRAW_PATHNAME;
|
|
@@ -71,6 +71,10 @@ export type GetTournamentPlayersInfoResponse = Array<{
|
|
|
71
71
|
* Сколько выигрывает юзер сейчас
|
|
72
72
|
*/
|
|
73
73
|
prize: Nullable<number>;
|
|
74
|
+
/**
|
|
75
|
+
* В какой руме находится юзер сейчас в турнире
|
|
76
|
+
*/
|
|
77
|
+
roomId: number | undefined;
|
|
74
78
|
}>;
|
|
75
79
|
export type GetTournamentTablesInfoResponse = Array<{
|
|
76
80
|
id: number;
|
|
@@ -19,7 +19,6 @@ export type UserAuthResponse = {
|
|
|
19
19
|
balance: number;
|
|
20
20
|
freeBalance: number;
|
|
21
21
|
accessToken: string;
|
|
22
|
-
activeRoomId: number | undefined;
|
|
23
22
|
referralCount: number;
|
|
24
23
|
roomIds: number[];
|
|
25
24
|
isNew: boolean | undefined;
|
|
@@ -118,9 +117,6 @@ export type PostActivePromoCodeRequest = {
|
|
|
118
117
|
export type PostActivePromoCodeResponse = {
|
|
119
118
|
amount: number;
|
|
120
119
|
};
|
|
121
|
-
export declare const ROOMS_PATHNAME = "/rooms";
|
|
122
|
-
export declare const USER_ROOMS_PATHNAME = "/user/rooms";
|
|
123
|
-
export type GetUserRoomIdsResponse = number[];
|
|
124
120
|
export declare const SETTINGS_PATHNAME = "/settings";
|
|
125
121
|
export declare const USER_SETTINGS_PATHNAME = "/user/settings";
|
|
126
122
|
export declare enum CardView {
|
|
@@ -32,12 +32,13 @@ export type Card = {
|
|
|
32
32
|
rank: CardRank;
|
|
33
33
|
};
|
|
34
34
|
export type Cards = Card[];
|
|
35
|
+
export type UserId = number;
|
|
35
36
|
export type Winners = {
|
|
36
|
-
userId:
|
|
37
|
+
userId: UserId;
|
|
37
38
|
chipsCount: number;
|
|
38
39
|
}[][];
|
|
39
40
|
export type GameStartUser = {
|
|
40
|
-
|
|
41
|
+
id: UserId;
|
|
41
42
|
/**
|
|
42
43
|
* Оставшееся время резерва места
|
|
43
44
|
*/
|
|
@@ -55,7 +56,7 @@ export type GameStartUser = {
|
|
|
55
56
|
export type User = {
|
|
56
57
|
avatarId: number;
|
|
57
58
|
nickname: string;
|
|
58
|
-
id:
|
|
59
|
+
id: UserId;
|
|
59
60
|
cards?: Cards;
|
|
60
61
|
chipsCount: number;
|
|
61
62
|
place: number;
|
|
@@ -139,8 +140,11 @@ export type TournamentData = {
|
|
|
139
140
|
* Длительность уровня, в мс
|
|
140
141
|
*/
|
|
141
142
|
levelDuration: Nullable<number>;
|
|
143
|
+
/**
|
|
144
|
+
* Первые 3 места игроков по стеку в турнире, сидящие в этой комнате
|
|
145
|
+
*/
|
|
146
|
+
topUsers: Record<UserId, number> | undefined;
|
|
142
147
|
};
|
|
143
|
-
export type UserId = User['id'];
|
|
144
148
|
type Showdown = Record<UserId, Cards>;
|
|
145
149
|
export type ActionMessageContentToFront = {
|
|
146
150
|
userId: UserId;
|
package/dist/esm/index.js
CHANGED
|
@@ -54,8 +54,6 @@ var TransactionType;
|
|
|
54
54
|
})(TransactionType || (TransactionType = {}));
|
|
55
55
|
var PROMO_CODE_PATHNAME = '/promo-code';
|
|
56
56
|
var USER_PROMO_CODE_PATHNAME = "".concat(USER_PATHNAME).concat(PROMO_CODE_PATHNAME);
|
|
57
|
-
var ROOMS_PATHNAME = '/rooms';
|
|
58
|
-
var USER_ROOMS_PATHNAME = "".concat(USER_PATHNAME).concat(ROOMS_PATHNAME);
|
|
59
57
|
var SETTINGS_PATHNAME = '/settings';
|
|
60
58
|
var USER_SETTINGS_PATHNAME = "".concat(USER_PATHNAME).concat(SETTINGS_PATHNAME);
|
|
61
59
|
var CardView;
|
|
@@ -570,4 +568,4 @@ function decodeBase64(base64) {
|
|
|
570
568
|
// need timestamp from server
|
|
571
569
|
// (0-6 0-60 seconds)(timestamp / 10000)BufferedBySecret
|
|
572
570
|
|
|
573
|
-
export { AUTH_PATHNAME, ActionType, ApiErrorCode, CONTACT_US_URL, CardRank, CardSuit, CardView, DEVELOPMENT_SHORT_NAME_TG_BOT, DEVELOPMENT_USERNAME_TG_BOT, FREE_CHIPS_PATHNAME, NOTIFICATION_WS_PATHNAME, NotificationType, PROD_SHORT_NAME_TG_BOT, PROD_USERNAME_TG_BOT, PROMO_CODE_PATHNAME, REFERRALS_PATHNAME, REGISTRATION_PATHNAME, ROOMS_LOGS_PATHNAME,
|
|
571
|
+
export { AUTH_PATHNAME, ActionType, ApiErrorCode, CONTACT_US_URL, CardRank, CardSuit, CardView, DEVELOPMENT_SHORT_NAME_TG_BOT, DEVELOPMENT_USERNAME_TG_BOT, FREE_CHIPS_PATHNAME, NOTIFICATION_WS_PATHNAME, NotificationType, PROD_SHORT_NAME_TG_BOT, PROD_USERNAME_TG_BOT, PROMO_CODE_PATHNAME, REFERRALS_PATHNAME, REGISTRATION_PATHNAME, ROOMS_LOGS_PATHNAME, ROOM_PATHNAME, ROOM_WS_PATHNAME, RoomType, RoomWSErrorToFront, SETTINGS_PATHNAME, ShowCardsType, StartAppParamKey, TEST_SHORT_NAME_TG_BOT, TEST_USERNAME_TG_BOT, TOURNAMENT_PATHNAME, TOURNAMENT_REGISTRATION_PATHNAME, TRANSACTIONS_PATHNAME, TournamentInfoType, TournamentPrizeType, TournamentStatus, TournamentType, TransactionType, USER_AUTH_PATHNAME, USER_FREE_CHIPS_PATHNAME, USER_PATHNAME, USER_PROMO_CODE_PATHNAME, USER_REFERRALS_PATHNAME, USER_SETTINGS_PATHNAME, USER_TRANSACTIONS_PATHNAME, USER_WITHDRAW_PATHNAME, WITHDRAW_PATHNAME, WSMessageTypeToBack, WSMessageTypeToFront, WSNotificationSearchParams, WSRoomSearchParams, WsCloseCode, WsErrorCode, decodeBase64, encodeBase64, sleepTime };
|
|
@@ -71,6 +71,10 @@ export type GetTournamentPlayersInfoResponse = Array<{
|
|
|
71
71
|
* Сколько выигрывает юзер сейчас
|
|
72
72
|
*/
|
|
73
73
|
prize: Nullable<number>;
|
|
74
|
+
/**
|
|
75
|
+
* В какой руме находится юзер сейчас в турнире
|
|
76
|
+
*/
|
|
77
|
+
roomId: number | undefined;
|
|
74
78
|
}>;
|
|
75
79
|
export type GetTournamentTablesInfoResponse = Array<{
|
|
76
80
|
id: number;
|
|
@@ -19,7 +19,6 @@ export type UserAuthResponse = {
|
|
|
19
19
|
balance: number;
|
|
20
20
|
freeBalance: number;
|
|
21
21
|
accessToken: string;
|
|
22
|
-
activeRoomId: number | undefined;
|
|
23
22
|
referralCount: number;
|
|
24
23
|
roomIds: number[];
|
|
25
24
|
isNew: boolean | undefined;
|
|
@@ -118,9 +117,6 @@ export type PostActivePromoCodeRequest = {
|
|
|
118
117
|
export type PostActivePromoCodeResponse = {
|
|
119
118
|
amount: number;
|
|
120
119
|
};
|
|
121
|
-
export declare const ROOMS_PATHNAME = "/rooms";
|
|
122
|
-
export declare const USER_ROOMS_PATHNAME = "/user/rooms";
|
|
123
|
-
export type GetUserRoomIdsResponse = number[];
|
|
124
120
|
export declare const SETTINGS_PATHNAME = "/settings";
|
|
125
121
|
export declare const USER_SETTINGS_PATHNAME = "/user/settings";
|
|
126
122
|
export declare enum CardView {
|
|
@@ -32,12 +32,13 @@ export type Card = {
|
|
|
32
32
|
rank: CardRank;
|
|
33
33
|
};
|
|
34
34
|
export type Cards = Card[];
|
|
35
|
+
export type UserId = number;
|
|
35
36
|
export type Winners = {
|
|
36
|
-
userId:
|
|
37
|
+
userId: UserId;
|
|
37
38
|
chipsCount: number;
|
|
38
39
|
}[][];
|
|
39
40
|
export type GameStartUser = {
|
|
40
|
-
|
|
41
|
+
id: UserId;
|
|
41
42
|
/**
|
|
42
43
|
* Оставшееся время резерва места
|
|
43
44
|
*/
|
|
@@ -55,7 +56,7 @@ export type GameStartUser = {
|
|
|
55
56
|
export type User = {
|
|
56
57
|
avatarId: number;
|
|
57
58
|
nickname: string;
|
|
58
|
-
id:
|
|
59
|
+
id: UserId;
|
|
59
60
|
cards?: Cards;
|
|
60
61
|
chipsCount: number;
|
|
61
62
|
place: number;
|
|
@@ -139,8 +140,11 @@ export type TournamentData = {
|
|
|
139
140
|
* Длительность уровня, в мс
|
|
140
141
|
*/
|
|
141
142
|
levelDuration: Nullable<number>;
|
|
143
|
+
/**
|
|
144
|
+
* Первые 3 места игроков по стеку в турнире, сидящие в этой комнате
|
|
145
|
+
*/
|
|
146
|
+
topUsers: Record<UserId, number> | undefined;
|
|
142
147
|
};
|
|
143
|
-
export type UserId = User['id'];
|
|
144
148
|
type Showdown = Record<UserId, Cards>;
|
|
145
149
|
export type ActionMessageContentToFront = {
|
|
146
150
|
userId: UserId;
|
package/dist/index.d.ts
CHANGED
|
@@ -66,7 +66,6 @@ type UserAuthResponse = {
|
|
|
66
66
|
balance: number;
|
|
67
67
|
freeBalance: number;
|
|
68
68
|
accessToken: string;
|
|
69
|
-
activeRoomId: number | undefined;
|
|
70
69
|
referralCount: number;
|
|
71
70
|
roomIds: number[];
|
|
72
71
|
isNew: boolean | undefined;
|
|
@@ -165,9 +164,6 @@ type PostActivePromoCodeRequest = {
|
|
|
165
164
|
type PostActivePromoCodeResponse = {
|
|
166
165
|
amount: number;
|
|
167
166
|
};
|
|
168
|
-
declare const ROOMS_PATHNAME = "/rooms";
|
|
169
|
-
declare const USER_ROOMS_PATHNAME = "/user/rooms";
|
|
170
|
-
type GetUserRoomIdsResponse = number[];
|
|
171
167
|
declare const SETTINGS_PATHNAME = "/settings";
|
|
172
168
|
declare const USER_SETTINGS_PATHNAME = "/user/settings";
|
|
173
169
|
declare enum CardView {
|
|
@@ -361,6 +357,10 @@ type GetTournamentPlayersInfoResponse = Array<{
|
|
|
361
357
|
* Сколько выигрывает юзер сейчас
|
|
362
358
|
*/
|
|
363
359
|
prize: Nullable<number>;
|
|
360
|
+
/**
|
|
361
|
+
* В какой руме находится юзер сейчас в турнире
|
|
362
|
+
*/
|
|
363
|
+
roomId: number | undefined;
|
|
364
364
|
}>;
|
|
365
365
|
type GetTournamentTablesInfoResponse = Array<{
|
|
366
366
|
id: number;
|
|
@@ -621,12 +621,13 @@ type Card = {
|
|
|
621
621
|
rank: CardRank;
|
|
622
622
|
};
|
|
623
623
|
type Cards = Card[];
|
|
624
|
+
type UserId = number;
|
|
624
625
|
type Winners = {
|
|
625
|
-
userId:
|
|
626
|
+
userId: UserId;
|
|
626
627
|
chipsCount: number;
|
|
627
628
|
}[][];
|
|
628
629
|
type GameStartUser = {
|
|
629
|
-
|
|
630
|
+
id: UserId;
|
|
630
631
|
/**
|
|
631
632
|
* Оставшееся время резерва места
|
|
632
633
|
*/
|
|
@@ -644,7 +645,7 @@ type GameStartUser = {
|
|
|
644
645
|
type User = {
|
|
645
646
|
avatarId: number;
|
|
646
647
|
nickname: string;
|
|
647
|
-
id:
|
|
648
|
+
id: UserId;
|
|
648
649
|
cards?: Cards;
|
|
649
650
|
chipsCount: number;
|
|
650
651
|
place: number;
|
|
@@ -728,8 +729,11 @@ type TournamentData = {
|
|
|
728
729
|
* Длительность уровня, в мс
|
|
729
730
|
*/
|
|
730
731
|
levelDuration: Nullable<number>;
|
|
732
|
+
/**
|
|
733
|
+
* Первые 3 места игроков по стеку в турнире, сидящие в этой комнате
|
|
734
|
+
*/
|
|
735
|
+
topUsers: Record<UserId, number> | undefined;
|
|
731
736
|
};
|
|
732
|
-
type UserId = User['id'];
|
|
733
737
|
type Showdown = Record<UserId, Cards>;
|
|
734
738
|
type ActionMessageContentToFront = {
|
|
735
739
|
userId: UserId;
|
|
@@ -1249,6 +1253,7 @@ type UserDataNotification = {
|
|
|
1249
1253
|
avatarId: number;
|
|
1250
1254
|
referralCount: number;
|
|
1251
1255
|
nickname: string;
|
|
1256
|
+
activeRoomIds: number[] | undefined;
|
|
1252
1257
|
};
|
|
1253
1258
|
/**
|
|
1254
1259
|
* Данные системы, меняются в админке
|
|
@@ -1307,4 +1312,4 @@ declare function encodeBase64(str: string): string;
|
|
|
1307
1312
|
*/
|
|
1308
1313
|
declare function decodeBase64(base64: string): string;
|
|
1309
1314
|
|
|
1310
|
-
export { AUTH_PATHNAME, ActionMessageContentToFront, ActionType, AmountWSMessageContent, ApiErrorCode, BalanceUpdateNotification, CONTACT_US_URL, CallWSMessageToBack, CallWSMessageToFront, Card, CardRank, CardSuit, CardView, Cards, ChangeRoomWSMessageToFront, ChatWSMessageToBack, ChatWSMessageToFront, ChipsUpdateWSMessageToBack, ChipsUpdateWSMessageToFront, DEVELOPMENT_SHORT_NAME_TG_BOT, DEVELOPMENT_USERNAME_TG_BOT, EmojiWSMessageToBack, EmojiWSMessageToFront, EndGameWSMessageToFront, ErrorWSMessageToFront, ExtendTimeWSMessageToBack, ExtendTimeWSMessageToFront, FREE_CHIPS_PATHNAME, FoldWSMessageToBack, FoldWSMessageToFront, GameNotStartWSMessageToFront, GameStartUser, GameStartWSMessageToFront, GetFreeChipsDataResponse, GetReferralsResponse, GetRoomsLogsQuery, GetRoomsLogsResponse, GetRoomsQuery, GetRoomsResponse, GetSettingsResponse, GetTournamentBlindsInfoResponse, GetTournamentGeneralInfoResponse, GetTournamentInfoQuery, GetTournamentInfoResponse, GetTournamentMainInfoResponse, GetTournamentPlayersInfoResponse, GetTournamentPrizePoolInfoResponse, GetTournamentTablesInfoResponse, GetTournamentsResponse, GetUpWSMessageToBack, GetUpWSMessageToFront,
|
|
1315
|
+
export { AUTH_PATHNAME, ActionMessageContentToFront, ActionType, AmountWSMessageContent, ApiErrorCode, BalanceUpdateNotification, CONTACT_US_URL, CallWSMessageToBack, CallWSMessageToFront, Card, CardRank, CardSuit, CardView, Cards, ChangeRoomWSMessageToFront, ChatWSMessageToBack, ChatWSMessageToFront, ChipsUpdateWSMessageToBack, ChipsUpdateWSMessageToFront, DEVELOPMENT_SHORT_NAME_TG_BOT, DEVELOPMENT_USERNAME_TG_BOT, EmojiWSMessageToBack, EmojiWSMessageToFront, EndGameWSMessageToFront, ErrorWSMessageToFront, ExtendTimeWSMessageToBack, ExtendTimeWSMessageToFront, FREE_CHIPS_PATHNAME, FoldWSMessageToBack, FoldWSMessageToFront, GameNotStartWSMessageToFront, GameStartUser, GameStartWSMessageToFront, GetFreeChipsDataResponse, GetReferralsResponse, GetRoomsLogsQuery, GetRoomsLogsResponse, GetRoomsQuery, GetRoomsResponse, GetSettingsResponse, GetTournamentBlindsInfoResponse, GetTournamentGeneralInfoResponse, GetTournamentInfoQuery, GetTournamentInfoResponse, GetTournamentMainInfoResponse, GetTournamentPlayersInfoResponse, GetTournamentPrizePoolInfoResponse, GetTournamentTablesInfoResponse, GetTournamentsResponse, GetUpWSMessageToBack, GetUpWSMessageToFront, GetUserTransactionsRequest, GetUserTransactionsResponse, Keys, KickedByTimeWSMessageToFront, NOTIFICATION_WS_PATHNAME, NewRoundWSMessageToFront, Notification, NotificationType, Nullable, PROD_SHORT_NAME_TG_BOT, PROD_USERNAME_TG_BOT, PROMO_CODE_PATHNAME, PlainObject, PostActivePromoCodeRequest, PostActivePromoCodeResponse, PostFreeChipsResponse, PostRoomLogRequest, PostSettingsRequest, PostTournamentRegistrationRequest, PostTournamentRegistrationResponse, PostUserWithdrawRequest, PromoCodeTransaction, REFERRALS_PATHNAME, REGISTRATION_PATHNAME, ROOMS_LOGS_PATHNAME, ROOM_PATHNAME, ROOM_WS_PATHNAME, RaiseWSMessageToBack, RaiseWSMessageToFront, RoomLog, RoomLogSource, RoomType, RoomUserTransaction, RoomWSErrorToFront, SETTINGS_PATHNAME, ShowCardsType, ShowCardsWSMessageToBack, ShowCardsWSMessageToFront, ShowdownCardsWSMessageToFront, SitDownWSMessageToBack, SitDownWSMessageToFront, SitOutWSMessageToBack, SitOutWSMessageToFront, SitWSMessageToBack, SitWSMessageToFront, StartAppParamKey, StartExtraTimeWSMessageToFront, TEST_SHORT_NAME_TG_BOT, TEST_USERNAME_TG_BOT, TOURNAMENT_PATHNAME, TOURNAMENT_REGISTRATION_PATHNAME, TRANSACTIONS_PATHNAME, TableDataWSMessageToBack, TableDataWSMessageToFront, Tournament, TournamentData, TournamentInfoType, TournamentPrizeType, TournamentResultWSMessageToFront, TournamentStartNotification, TournamentStatus, TournamentTransaction, TournamentType, TransactionType, USER_AUTH_PATHNAME, USER_FREE_CHIPS_PATHNAME, USER_PATHNAME, USER_PROMO_CODE_PATHNAME, USER_REFERRALS_PATHNAME, USER_SETTINGS_PATHNAME, USER_TRANSACTIONS_PATHNAME, USER_WITHDRAW_PATHNAME, User, UserAuthRequest, UserAuthResponse, UserAuthType, UserDataNotification, UserId, UserTransaction, UsersOnlineNotification, Values, WITHDRAW_PATHNAME, WSMessageToBack, WSMessageToFront, WSMessageTypeToBack, WSMessageTypeToFront, WSNotificationSearchParams, WSRoomSearchParams, Winners, WithdrawUserTransaction, WsCloseCode, WsErrorCode, decodeBase64, encodeBase64, sleepTime };
|