front-back-poker-types 5.0.208 → 5.0.209
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.
|
@@ -21,12 +21,16 @@ type Room = {
|
|
|
21
21
|
userInRoom: boolean | undefined;
|
|
22
22
|
};
|
|
23
23
|
export type GetRoomsResponse = Room[];
|
|
24
|
-
export type
|
|
24
|
+
export type Tournament = {
|
|
25
25
|
id: number;
|
|
26
26
|
title: string;
|
|
27
27
|
type: TournamentType;
|
|
28
28
|
status: TournamentStatus;
|
|
29
29
|
prizeType: TournamentPrizeType;
|
|
30
|
+
/**
|
|
31
|
+
* в таймстемпе
|
|
32
|
+
*/
|
|
33
|
+
openRegIn: number;
|
|
30
34
|
/**
|
|
31
35
|
* в таймстемпе
|
|
32
36
|
*/
|
|
@@ -58,5 +62,6 @@ export type GetTournamentsResponse = Array<{
|
|
|
58
62
|
*/
|
|
59
63
|
targetRoomId: number | undefined;
|
|
60
64
|
startingChips: number;
|
|
61
|
-
}
|
|
65
|
+
};
|
|
66
|
+
export type GetTournamentsResponse = Array<Tournament>;
|
|
62
67
|
export {};
|
|
@@ -95,12 +95,16 @@ export type TournamentTransaction = {
|
|
|
95
95
|
type: TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel;
|
|
96
96
|
tournamentTitle: string;
|
|
97
97
|
};
|
|
98
|
+
export type PromoCodeTransaction = {
|
|
99
|
+
type: TransactionType.PromoCode;
|
|
100
|
+
promoCode: string;
|
|
101
|
+
};
|
|
98
102
|
export type UserTransaction = {
|
|
99
103
|
id: number;
|
|
100
104
|
amount: number;
|
|
101
105
|
createdAt: number;
|
|
102
|
-
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | {
|
|
103
|
-
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel>;
|
|
106
|
+
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | PromoCodeTransaction | {
|
|
107
|
+
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel | TransactionType.PromoCode>;
|
|
104
108
|
});
|
|
105
109
|
export type GetUserTransactionsResponse = {
|
|
106
110
|
totalCount: number;
|
|
@@ -21,12 +21,16 @@ type Room = {
|
|
|
21
21
|
userInRoom: boolean | undefined;
|
|
22
22
|
};
|
|
23
23
|
export type GetRoomsResponse = Room[];
|
|
24
|
-
export type
|
|
24
|
+
export type Tournament = {
|
|
25
25
|
id: number;
|
|
26
26
|
title: string;
|
|
27
27
|
type: TournamentType;
|
|
28
28
|
status: TournamentStatus;
|
|
29
29
|
prizeType: TournamentPrizeType;
|
|
30
|
+
/**
|
|
31
|
+
* в таймстемпе
|
|
32
|
+
*/
|
|
33
|
+
openRegIn: number;
|
|
30
34
|
/**
|
|
31
35
|
* в таймстемпе
|
|
32
36
|
*/
|
|
@@ -58,5 +62,6 @@ export type GetTournamentsResponse = Array<{
|
|
|
58
62
|
*/
|
|
59
63
|
targetRoomId: number | undefined;
|
|
60
64
|
startingChips: number;
|
|
61
|
-
}
|
|
65
|
+
};
|
|
66
|
+
export type GetTournamentsResponse = Array<Tournament>;
|
|
62
67
|
export {};
|
|
@@ -95,12 +95,16 @@ export type TournamentTransaction = {
|
|
|
95
95
|
type: TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel;
|
|
96
96
|
tournamentTitle: string;
|
|
97
97
|
};
|
|
98
|
+
export type PromoCodeTransaction = {
|
|
99
|
+
type: TransactionType.PromoCode;
|
|
100
|
+
promoCode: string;
|
|
101
|
+
};
|
|
98
102
|
export type UserTransaction = {
|
|
99
103
|
id: number;
|
|
100
104
|
amount: number;
|
|
101
105
|
createdAt: number;
|
|
102
|
-
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | {
|
|
103
|
-
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel>;
|
|
106
|
+
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | PromoCodeTransaction | {
|
|
107
|
+
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel | TransactionType.PromoCode>;
|
|
104
108
|
});
|
|
105
109
|
export type GetUserTransactionsResponse = {
|
|
106
110
|
totalCount: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -138,12 +138,16 @@ type TournamentTransaction = {
|
|
|
138
138
|
type: TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel;
|
|
139
139
|
tournamentTitle: string;
|
|
140
140
|
};
|
|
141
|
+
type PromoCodeTransaction = {
|
|
142
|
+
type: TransactionType.PromoCode;
|
|
143
|
+
promoCode: string;
|
|
144
|
+
};
|
|
141
145
|
type UserTransaction = {
|
|
142
146
|
id: number;
|
|
143
147
|
amount: number;
|
|
144
148
|
createdAt: number;
|
|
145
|
-
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | {
|
|
146
|
-
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel>;
|
|
149
|
+
} & (WithdrawUserTransaction | RoomUserTransaction | TournamentTransaction | PromoCodeTransaction | {
|
|
150
|
+
type: Exclude<TransactionType, TransactionType.Withdraw | TransactionType.BuyIn | TransactionType.CashOut | TransactionType.TournamentBuyIn | TransactionType.TournamentPrize | TransactionType.TournamentCancel | TransactionType.PromoCode>;
|
|
147
151
|
});
|
|
148
152
|
type GetUserTransactionsResponse = {
|
|
149
153
|
totalCount: number;
|
|
@@ -237,12 +241,16 @@ type Room = {
|
|
|
237
241
|
userInRoom: boolean | undefined;
|
|
238
242
|
};
|
|
239
243
|
type GetRoomsResponse = Room[];
|
|
240
|
-
type
|
|
244
|
+
type Tournament = {
|
|
241
245
|
id: number;
|
|
242
246
|
title: string;
|
|
243
247
|
type: TournamentType;
|
|
244
248
|
status: TournamentStatus;
|
|
245
249
|
prizeType: TournamentPrizeType;
|
|
250
|
+
/**
|
|
251
|
+
* в таймстемпе
|
|
252
|
+
*/
|
|
253
|
+
openRegIn: number;
|
|
246
254
|
/**
|
|
247
255
|
* в таймстемпе
|
|
248
256
|
*/
|
|
@@ -274,7 +282,8 @@ type GetTournamentsResponse = Array<{
|
|
|
274
282
|
*/
|
|
275
283
|
targetRoomId: number | undefined;
|
|
276
284
|
startingChips: number;
|
|
277
|
-
}
|
|
285
|
+
};
|
|
286
|
+
type GetTournamentsResponse = Array<Tournament>;
|
|
278
287
|
|
|
279
288
|
declare const TOURNAMENT_PATHNAME = "/tournament";
|
|
280
289
|
declare const REGISTRATION_PATHNAME = "/registration";
|
|
@@ -1276,4 +1285,4 @@ declare function encodeBase64(str: string): string;
|
|
|
1276
1285
|
*/
|
|
1277
1286
|
declare function decodeBase64(base64: string): string;
|
|
1278
1287
|
|
|
1279
|
-
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, GetUserRoomIdsResponse, 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, REFERRALS_PATHNAME, REGISTRATION_PATHNAME, ROOMS_LOGS_PATHNAME, ROOMS_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, 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_ROOMS_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 };
|
|
1288
|
+
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, GetUserRoomIdsResponse, 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, ROOMS_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_ROOMS_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 };
|