react-memory-optimization 0.0.19 → 0.0.21
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/bundle.js +1 -1
- package/dist/lib/binary/types.d.ts +58 -57
- package/dist/lib/binary/types.js +58 -57
- package/dist/lib/service/responseAdapter/index.d.ts +2 -1
- package/dist/lib/service/responseAdapter/types.d.ts +5 -0
- package/dist/lib/socket/index.d.ts +2 -0
- package/dist/lib/socket/types.d.ts +2 -0
- package/dist/lib/store/betting/entities/BazarFrame/index.d.ts +18 -0
- package/dist/lib/store/betting/index.d.ts +2 -0
- package/dist/lib/store/betting/services/index.d.ts +1 -0
- package/dist/lib/store/casino/entities/casinoTournaments/index.d.ts +4 -1
- package/dist/lib/store/casino/entities/casinoTournaments/service/index.d.ts +5 -4
- package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +36 -1
- package/dist/lib/store/user/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -184,63 +184,64 @@ export type ComboMarketRowInfo = {
|
|
|
184
184
|
};
|
|
185
185
|
export declare enum ERequestIds {
|
|
186
186
|
Unknown = -1,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
187
|
+
BetBazarInit = 0,
|
|
188
|
+
InitCasinoDemo = 1,
|
|
189
|
+
InitCasinoGame = 2,
|
|
190
|
+
AuthorizeByEmail = 3,
|
|
191
|
+
AuthorizeByToken = 4,
|
|
192
|
+
RequestBalance = 5,
|
|
193
|
+
GetCurrentUserTournamentPlace = 6,
|
|
194
|
+
Registration = 7,
|
|
195
|
+
GetPhoneCode = 8,
|
|
196
|
+
UpdatePassword = 9,
|
|
197
|
+
RecoveryPasswordResponse = 10,
|
|
198
|
+
RecoveryPasswordSendCode = 11,
|
|
199
|
+
SetNewPassword = 12,
|
|
200
|
+
UpdateUserPhone = 13,
|
|
201
|
+
UpdateUserEmail = 14,
|
|
202
|
+
FrameLoyaltyBonus = 15,
|
|
203
|
+
RequestDeposit = 16,
|
|
204
|
+
AnindaHavaleRequest = 17,
|
|
205
|
+
GoogleInrDeposit = 18,
|
|
206
|
+
DepositPhonePe = 19,
|
|
207
|
+
DepositPayTm = 20,
|
|
208
|
+
INRWithdrawImp = 21,
|
|
209
|
+
DepositTRC = 22,
|
|
210
|
+
DepositERC = 23,
|
|
211
|
+
DepositBEP = 24,
|
|
212
|
+
DepositQrForm = 25,
|
|
213
|
+
WithdrawCoinPay = 26,
|
|
214
|
+
GetBillingAddress = 27,
|
|
215
|
+
WithdrawRubles = 28,
|
|
216
|
+
BKashWithdraw = 29,
|
|
217
|
+
CriptoWithdraw = 30,
|
|
218
|
+
WithdrawBank = 31,
|
|
219
|
+
WithdrawPix = 32,
|
|
220
|
+
PixPagsmileWithdraw = 33,
|
|
221
|
+
PixBankTransferWithdraw = 34,
|
|
222
|
+
WithdrawPapara = 35,
|
|
223
|
+
WithdrawAninda = 36,
|
|
224
|
+
WithdrawMPayFix = 37,
|
|
225
|
+
MPayWithdraw = 38,
|
|
226
|
+
WithdrawMonetics = 39,
|
|
227
|
+
WithdrawHavaleHera = 40,
|
|
228
|
+
WithdrawWellexPay = 41,
|
|
229
|
+
MNXWallet = 42,
|
|
230
|
+
SaveToFav = 43,
|
|
231
|
+
CancelOperation = 44,
|
|
232
|
+
ApplyBonusPack = 45,
|
|
233
|
+
BuyTickets = 46,
|
|
234
|
+
LotteryHistoryTicket = 47,
|
|
235
|
+
GetCasinoOperations = 48,
|
|
236
|
+
GetDepositOperations = 49,
|
|
237
|
+
CasinoTournaments = 50,
|
|
238
|
+
ExtraLines = 51,
|
|
239
|
+
CashOut = 52,
|
|
240
|
+
RequestTickets = 53,
|
|
241
|
+
LastWinners = 54,
|
|
242
|
+
RequestLotteries = 55,
|
|
243
|
+
ReferralWithdraw = 56,
|
|
244
|
+
WalletAzn = 57
|
|
244
245
|
}
|
|
245
246
|
export declare enum RegistrationSubType {
|
|
246
247
|
UpdateUserInfo = 6,
|
package/dist/lib/binary/types.js
CHANGED
|
@@ -41,79 +41,80 @@ var ReadModuleKeys;
|
|
|
41
41
|
var ERequestIds;
|
|
42
42
|
(function (ERequestIds) {
|
|
43
43
|
ERequestIds[ERequestIds["Unknown"] = -1] = "Unknown";
|
|
44
|
-
ERequestIds[ERequestIds["
|
|
45
|
-
ERequestIds[ERequestIds["
|
|
46
|
-
ERequestIds[ERequestIds["
|
|
47
|
-
ERequestIds[ERequestIds["
|
|
48
|
-
ERequestIds[ERequestIds["
|
|
49
|
-
ERequestIds[ERequestIds["
|
|
50
|
-
ERequestIds[ERequestIds["
|
|
51
|
-
ERequestIds[ERequestIds["
|
|
52
|
-
ERequestIds[ERequestIds["
|
|
53
|
-
ERequestIds[ERequestIds["
|
|
54
|
-
ERequestIds[ERequestIds["
|
|
55
|
-
ERequestIds[ERequestIds["
|
|
56
|
-
ERequestIds[ERequestIds["
|
|
57
|
-
ERequestIds[ERequestIds["
|
|
58
|
-
ERequestIds[ERequestIds["
|
|
44
|
+
ERequestIds[ERequestIds["BetBazarInit"] = 0] = "BetBazarInit";
|
|
45
|
+
ERequestIds[ERequestIds["InitCasinoDemo"] = 1] = "InitCasinoDemo";
|
|
46
|
+
ERequestIds[ERequestIds["InitCasinoGame"] = 2] = "InitCasinoGame";
|
|
47
|
+
ERequestIds[ERequestIds["AuthorizeByEmail"] = 3] = "AuthorizeByEmail";
|
|
48
|
+
ERequestIds[ERequestIds["AuthorizeByToken"] = 4] = "AuthorizeByToken";
|
|
49
|
+
ERequestIds[ERequestIds["RequestBalance"] = 5] = "RequestBalance";
|
|
50
|
+
ERequestIds[ERequestIds["GetCurrentUserTournamentPlace"] = 6] = "GetCurrentUserTournamentPlace";
|
|
51
|
+
ERequestIds[ERequestIds["Registration"] = 7] = "Registration";
|
|
52
|
+
ERequestIds[ERequestIds["GetPhoneCode"] = 8] = "GetPhoneCode";
|
|
53
|
+
ERequestIds[ERequestIds["UpdatePassword"] = 9] = "UpdatePassword";
|
|
54
|
+
ERequestIds[ERequestIds["RecoveryPasswordResponse"] = 10] = "RecoveryPasswordResponse";
|
|
55
|
+
ERequestIds[ERequestIds["RecoveryPasswordSendCode"] = 11] = "RecoveryPasswordSendCode";
|
|
56
|
+
ERequestIds[ERequestIds["SetNewPassword"] = 12] = "SetNewPassword";
|
|
57
|
+
ERequestIds[ERequestIds["UpdateUserPhone"] = 13] = "UpdateUserPhone";
|
|
58
|
+
ERequestIds[ERequestIds["UpdateUserEmail"] = 14] = "UpdateUserEmail";
|
|
59
|
+
ERequestIds[ERequestIds["FrameLoyaltyBonus"] = 15] = "FrameLoyaltyBonus";
|
|
59
60
|
// Deposits
|
|
60
|
-
ERequestIds[ERequestIds["RequestDeposit"] =
|
|
61
|
-
ERequestIds[ERequestIds["AnindaHavaleRequest"] =
|
|
61
|
+
ERequestIds[ERequestIds["RequestDeposit"] = 16] = "RequestDeposit";
|
|
62
|
+
ERequestIds[ERequestIds["AnindaHavaleRequest"] = 17] = "AnindaHavaleRequest";
|
|
62
63
|
// Important FOR deeplinks
|
|
63
|
-
ERequestIds[ERequestIds["GoogleInrDeposit"] =
|
|
64
|
-
ERequestIds[ERequestIds["DepositPhonePe"] =
|
|
65
|
-
ERequestIds[ERequestIds["DepositPayTm"] =
|
|
64
|
+
ERequestIds[ERequestIds["GoogleInrDeposit"] = 18] = "GoogleInrDeposit";
|
|
65
|
+
ERequestIds[ERequestIds["DepositPhonePe"] = 19] = "DepositPhonePe";
|
|
66
|
+
ERequestIds[ERequestIds["DepositPayTm"] = 20] = "DepositPayTm";
|
|
66
67
|
// withdraw IMPS
|
|
67
|
-
ERequestIds[ERequestIds["INRWithdrawImp"] =
|
|
68
|
+
ERequestIds[ERequestIds["INRWithdrawImp"] = 21] = "INRWithdrawImp";
|
|
68
69
|
// Cripto
|
|
69
|
-
ERequestIds[ERequestIds["DepositTRC"] =
|
|
70
|
-
ERequestIds[ERequestIds["DepositERC"] =
|
|
71
|
-
ERequestIds[ERequestIds["DepositBEP"] =
|
|
72
|
-
ERequestIds[ERequestIds["DepositQrForm"] =
|
|
73
|
-
ERequestIds[ERequestIds["WithdrawCoinPay"] =
|
|
70
|
+
ERequestIds[ERequestIds["DepositTRC"] = 22] = "DepositTRC";
|
|
71
|
+
ERequestIds[ERequestIds["DepositERC"] = 23] = "DepositERC";
|
|
72
|
+
ERequestIds[ERequestIds["DepositBEP"] = 24] = "DepositBEP";
|
|
73
|
+
ERequestIds[ERequestIds["DepositQrForm"] = 25] = "DepositQrForm";
|
|
74
|
+
ERequestIds[ERequestIds["WithdrawCoinPay"] = 26] = "WithdrawCoinPay";
|
|
74
75
|
// Billing
|
|
75
|
-
ERequestIds[ERequestIds["GetBillingAddress"] =
|
|
76
|
+
ERequestIds[ERequestIds["GetBillingAddress"] = 27] = "GetBillingAddress";
|
|
76
77
|
// Withdraw
|
|
77
|
-
ERequestIds[ERequestIds["WithdrawRubles"] =
|
|
78
|
-
ERequestIds[ERequestIds["BKashWithdraw"] =
|
|
79
|
-
ERequestIds[ERequestIds["CriptoWithdraw"] =
|
|
80
|
-
ERequestIds[ERequestIds["WithdrawBank"] =
|
|
81
|
-
ERequestIds[ERequestIds["WithdrawPix"] =
|
|
82
|
-
ERequestIds[ERequestIds["PixPagsmileWithdraw"] =
|
|
83
|
-
ERequestIds[ERequestIds["PixBankTransferWithdraw"] =
|
|
78
|
+
ERequestIds[ERequestIds["WithdrawRubles"] = 28] = "WithdrawRubles";
|
|
79
|
+
ERequestIds[ERequestIds["BKashWithdraw"] = 29] = "BKashWithdraw";
|
|
80
|
+
ERequestIds[ERequestIds["CriptoWithdraw"] = 30] = "CriptoWithdraw";
|
|
81
|
+
ERequestIds[ERequestIds["WithdrawBank"] = 31] = "WithdrawBank";
|
|
82
|
+
ERequestIds[ERequestIds["WithdrawPix"] = 32] = "WithdrawPix";
|
|
83
|
+
ERequestIds[ERequestIds["PixPagsmileWithdraw"] = 33] = "PixPagsmileWithdraw";
|
|
84
|
+
ERequestIds[ERequestIds["PixBankTransferWithdraw"] = 34] = "PixBankTransferWithdraw";
|
|
84
85
|
// Widthdray turkish
|
|
85
|
-
ERequestIds[ERequestIds["WithdrawPapara"] =
|
|
86
|
-
ERequestIds[ERequestIds["WithdrawAninda"] =
|
|
87
|
-
ERequestIds[ERequestIds["WithdrawMPayFix"] =
|
|
88
|
-
ERequestIds[ERequestIds["MPayWithdraw"] =
|
|
86
|
+
ERequestIds[ERequestIds["WithdrawPapara"] = 35] = "WithdrawPapara";
|
|
87
|
+
ERequestIds[ERequestIds["WithdrawAninda"] = 36] = "WithdrawAninda";
|
|
88
|
+
ERequestIds[ERequestIds["WithdrawMPayFix"] = 37] = "WithdrawMPayFix";
|
|
89
|
+
ERequestIds[ERequestIds["MPayWithdraw"] = 38] = "MPayWithdraw";
|
|
89
90
|
// End withdraw turkish
|
|
90
91
|
// Withdraw Monetics
|
|
91
|
-
ERequestIds[ERequestIds["WithdrawMonetics"] =
|
|
92
|
-
ERequestIds[ERequestIds["WithdrawHavaleHera"] =
|
|
92
|
+
ERequestIds[ERequestIds["WithdrawMonetics"] = 39] = "WithdrawMonetics";
|
|
93
|
+
ERequestIds[ERequestIds["WithdrawHavaleHera"] = 40] = "WithdrawHavaleHera";
|
|
93
94
|
// Wellex pay
|
|
94
|
-
ERequestIds[ERequestIds["WithdrawWellexPay"] =
|
|
95
|
+
ERequestIds[ERequestIds["WithdrawWellexPay"] = 41] = "WithdrawWellexPay";
|
|
95
96
|
// MNX
|
|
96
|
-
ERequestIds[ERequestIds["MNXWallet"] =
|
|
97
|
+
ERequestIds[ERequestIds["MNXWallet"] = 42] = "MNXWallet";
|
|
97
98
|
// END
|
|
98
99
|
// Fav
|
|
99
|
-
ERequestIds[ERequestIds["SaveToFav"] =
|
|
100
|
+
ERequestIds[ERequestIds["SaveToFav"] = 43] = "SaveToFav";
|
|
100
101
|
// operation
|
|
101
|
-
ERequestIds[ERequestIds["CancelOperation"] =
|
|
102
|
-
ERequestIds[ERequestIds["ApplyBonusPack"] =
|
|
102
|
+
ERequestIds[ERequestIds["CancelOperation"] = 44] = "CancelOperation";
|
|
103
|
+
ERequestIds[ERequestIds["ApplyBonusPack"] = 45] = "ApplyBonusPack";
|
|
103
104
|
// lotteries
|
|
104
|
-
ERequestIds[ERequestIds["BuyTickets"] =
|
|
105
|
-
ERequestIds[ERequestIds["LotteryHistoryTicket"] =
|
|
105
|
+
ERequestIds[ERequestIds["BuyTickets"] = 46] = "BuyTickets";
|
|
106
|
+
ERequestIds[ERequestIds["LotteryHistoryTicket"] = 47] = "LotteryHistoryTicket";
|
|
106
107
|
// lib
|
|
107
|
-
ERequestIds[ERequestIds["GetCasinoOperations"] =
|
|
108
|
-
ERequestIds[ERequestIds["GetDepositOperations"] =
|
|
109
|
-
ERequestIds[ERequestIds["CasinoTournaments"] =
|
|
110
|
-
ERequestIds[ERequestIds["ExtraLines"] =
|
|
111
|
-
ERequestIds[ERequestIds["CashOut"] =
|
|
112
|
-
ERequestIds[ERequestIds["RequestTickets"] =
|
|
113
|
-
ERequestIds[ERequestIds["LastWinners"] =
|
|
114
|
-
ERequestIds[ERequestIds["RequestLotteries"] =
|
|
115
|
-
ERequestIds[ERequestIds["ReferralWithdraw"] =
|
|
116
|
-
ERequestIds[ERequestIds["WalletAzn"] =
|
|
108
|
+
ERequestIds[ERequestIds["GetCasinoOperations"] = 48] = "GetCasinoOperations";
|
|
109
|
+
ERequestIds[ERequestIds["GetDepositOperations"] = 49] = "GetDepositOperations";
|
|
110
|
+
ERequestIds[ERequestIds["CasinoTournaments"] = 50] = "CasinoTournaments";
|
|
111
|
+
ERequestIds[ERequestIds["ExtraLines"] = 51] = "ExtraLines";
|
|
112
|
+
ERequestIds[ERequestIds["CashOut"] = 52] = "CashOut";
|
|
113
|
+
ERequestIds[ERequestIds["RequestTickets"] = 53] = "RequestTickets";
|
|
114
|
+
ERequestIds[ERequestIds["LastWinners"] = 54] = "LastWinners";
|
|
115
|
+
ERequestIds[ERequestIds["RequestLotteries"] = 55] = "RequestLotteries";
|
|
116
|
+
ERequestIds[ERequestIds["ReferralWithdraw"] = 56] = "ReferralWithdraw";
|
|
117
|
+
ERequestIds[ERequestIds["WalletAzn"] = 57] = "WalletAzn";
|
|
117
118
|
})(ERequestIds || (exports.ERequestIds = ERequestIds = {}));
|
|
118
119
|
// REGISTRATION SUB ID
|
|
119
120
|
var RegistrationSubType;
|
|
@@ -6,7 +6,7 @@ import { UserOperations } from '../../store/operations';
|
|
|
6
6
|
import { User } from '../../store/user';
|
|
7
7
|
import { Betting } from '../../store/betting';
|
|
8
8
|
import { Lottery } from 'store/lottery';
|
|
9
|
-
import { HandleBackOfficeResponse, ResponseAdapterInstanceProps } from './types';
|
|
9
|
+
import { HandleBackOfficeResponse, HandleRunGameResponse, ResponseAdapterInstanceProps } from './types';
|
|
10
10
|
import { ResponseAdapterService } from './services';
|
|
11
11
|
import { SocketServices } from 'socket/services';
|
|
12
12
|
import { AdaptedCasinoTournamentProps } from 'store/casino/entities/casinoTournaments/types';
|
|
@@ -37,5 +37,6 @@ export declare class ResponseAdapter {
|
|
|
37
37
|
private ticketResultResponse;
|
|
38
38
|
private handleAdditionalUserInfo;
|
|
39
39
|
handleBackOfficeSettings(result: HandleBackOfficeResponse): void;
|
|
40
|
+
handleRunCasinoGameResponse(result: HandleRunGameResponse): void;
|
|
40
41
|
handleCasinoTournament(result: AdaptedCasinoTournamentProps, isInitial?: boolean): void;
|
|
41
42
|
}
|
|
@@ -71,6 +71,8 @@ export declare class Socket implements SocketInterface {
|
|
|
71
71
|
subscribeCountryInfo(props: SubscribeCountryInfoProps): boolean;
|
|
72
72
|
subscribeMinDepOdd(props: SubscribeMinDepositInfoProps): boolean;
|
|
73
73
|
subscribeUserCurrencyInfo(props: SubscribeUserCurrencyInfoProps): boolean;
|
|
74
|
+
subscribeCasinoFrameUrl(props: BaseObservableSubscriber): boolean;
|
|
75
|
+
unsubscribeCasinoFrameUrl(uid: string): boolean;
|
|
74
76
|
subscribeUserState(props: SubscribeUserStateProps): boolean;
|
|
75
77
|
subscribeUserInfo(props: SubscribeUserStateProps): boolean;
|
|
76
78
|
subscribeStories(props: BaseObservableSubscriber): boolean;
|
|
@@ -226,6 +226,8 @@ export interface SocketInterface {
|
|
|
226
226
|
subscribeBettingEntity: (props: BettingEntitySubscribers) => boolean;
|
|
227
227
|
subscribeOdd: (props: SubscribeOdd) => void;
|
|
228
228
|
unsubscribeOdd: (uid: string, isPrematch: boolean) => void;
|
|
229
|
+
subscribeCasinoFrameUrl: (props: BaseObservableSubscriber) => boolean;
|
|
230
|
+
unsubscribeCasinoFrameUrl: (uid: string) => boolean;
|
|
229
231
|
subscribeBettingTopEvents: (props: SubscribeBettingTopEventsProps) => boolean;
|
|
230
232
|
unsubscribeBettingTopEvents: (uid: string) => boolean;
|
|
231
233
|
subscribeSports: (props: SubscribeSportsProps) => boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
2
|
+
import { ObservableEntity } from 'service/observableEntity';
|
|
3
|
+
import { HandleRunGameResponse } from 'service/responseAdapter/types';
|
|
4
|
+
import { BettingServices } from 'store/betting/services';
|
|
5
|
+
export declare class BazarFrame extends ObservableEntity<undefined> {
|
|
6
|
+
_url: string;
|
|
7
|
+
service: BettingServices;
|
|
8
|
+
constructor(service: BettingServices);
|
|
9
|
+
revalidate(): void;
|
|
10
|
+
set url(value: string);
|
|
11
|
+
get url(): string;
|
|
12
|
+
parseResponse(result: HandleRunGameResponse): void;
|
|
13
|
+
getAndSendUrl(): UpdateData | null;
|
|
14
|
+
sendUpdateEntity(d: BaseObservableSubscriber & {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}): UpdateData | null;
|
|
17
|
+
unsubscribe(uid: string): void;
|
|
18
|
+
}
|
|
@@ -11,8 +11,10 @@ import { BettingTickets } from './entities/tickets';
|
|
|
11
11
|
import { ObservableEntity } from 'service/observableEntity';
|
|
12
12
|
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
13
13
|
import { BettingResponseAdapter } from './adapter';
|
|
14
|
+
import { BazarFrame } from './entities/BazarFrame';
|
|
14
15
|
export declare class Betting extends ObservableEntity<undefined> {
|
|
15
16
|
bettingResponseAdapter: BettingResponseAdapter;
|
|
17
|
+
bazarFrame: BazarFrame;
|
|
16
18
|
markets: BettingMarkets;
|
|
17
19
|
categories: Categories;
|
|
18
20
|
tournaments: Tournaments;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TournamentPlayer, CurrentTournamentPlayer, AdaptedCasinoTournament, InitialTournaments, RequestCommands, TournamentSettings, CasinoTournamentsProps, ProviderTournament, InHouseTournaments, TournamentSubscribeProps } from './types';
|
|
1
|
+
import { TournamentPlayer, CurrentTournamentPlayer, AdaptedCasinoTournament, InitialTournaments, RequestCommands, TournamentSettings, CasinoTournamentsProps, ProviderTournament, InHouseTournaments, TournamentSubscribeProps, NewFormatProviderTournamentEntity, NewFormatStore } from './types';
|
|
2
2
|
import { TournamentServices } from './service';
|
|
3
3
|
import { ObservableEntity } from 'service/observableEntity';
|
|
4
4
|
import { UpdateData } from 'service/observable/type';
|
|
@@ -21,10 +21,13 @@ export declare class CasinoTournaments extends ObservableEntity<undefined> {
|
|
|
21
21
|
tournaments: {
|
|
22
22
|
[id: number]: AdaptedCasinoTournament;
|
|
23
23
|
};
|
|
24
|
+
_newFormatTournaments: NewFormatStore;
|
|
24
25
|
currentUserInfo: {
|
|
25
26
|
[tournamentId: number]: CurrentTournamentPlayer;
|
|
26
27
|
};
|
|
27
28
|
constructor({ parent, sendCommand, tournamentSettings, }: CasinoTournamentsProps);
|
|
29
|
+
set newFormatTournaments(tournaments: NewFormatProviderTournamentEntity[]);
|
|
30
|
+
get newFormatTournaments(): NewFormatStore;
|
|
28
31
|
set inHouseTournaments(tournaments: InHouseTournaments);
|
|
29
32
|
get inHouseTournaments(): InHouseTournaments;
|
|
30
33
|
set providerTournaments(v: {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { UpdateData } from 'service/observable/type';
|
|
2
2
|
import { CasinoTournaments } from 'store/casino/entities/casinoTournaments';
|
|
3
|
-
import { BattleHookInfo, BattleInfo, ProviderTournament, TournamentInfo } from 'store/casino/entities/casinoTournaments/types';
|
|
3
|
+
import { BattleHookInfo, BattleInfo, NewFormatProviderTournamentEntity, ProviderTournament, TournamentInfo } from 'store/casino/entities/casinoTournaments/types';
|
|
4
4
|
export declare class TournamentServices {
|
|
5
5
|
parent: CasinoTournaments;
|
|
6
6
|
constructor(parent: CasinoTournaments);
|
|
7
|
-
getTournamentById(info: BattleInfo, isMobile: boolean): UpdateData | null;
|
|
7
|
+
getTournamentById(info: BattleInfo, isMobile: boolean, isExperimental?: boolean): UpdateData | null;
|
|
8
8
|
private getImages;
|
|
9
9
|
requestTournaments(isSocket?: boolean): Promise<void>;
|
|
10
|
-
getHistoryTournaments(): {
|
|
10
|
+
getHistoryTournaments(isProviderExperimental?: boolean): {
|
|
11
11
|
data: BattleHookInfo[];
|
|
12
12
|
isArray: boolean;
|
|
13
13
|
property: string;
|
|
14
14
|
withCompare: boolean;
|
|
15
15
|
};
|
|
16
|
-
getActiveTournaments(): null | UpdateData;
|
|
16
|
+
getActiveTournaments(isProviderExperimental?: boolean): null | UpdateData;
|
|
17
|
+
adaptingNewFormatTournaments(battles: NewFormatProviderTournamentEntity[], isHistory: boolean): BattleHookInfo[];
|
|
17
18
|
convertTournamentToBaseType(isProviderBattle: boolean, battle: TournamentInfo | ProviderTournament, isHistory?: boolean, convertPlayers?: boolean): BattleHookInfo;
|
|
18
19
|
}
|
|
@@ -103,7 +103,9 @@ export type TournamentsSubscribe = {
|
|
|
103
103
|
export type TournamentSubscribeProps = BaseObservableSubscriber & (TournamentsSubscribe | {
|
|
104
104
|
battleInfo: BattleInfo;
|
|
105
105
|
isMobile: boolean;
|
|
106
|
-
})
|
|
106
|
+
}) & {
|
|
107
|
+
isProviderExperimental?: boolean;
|
|
108
|
+
};
|
|
107
109
|
export type BattleHookInfo = Omit<TournamentInfo, 'status' | 'amount' | 'players'> & {
|
|
108
110
|
name: string;
|
|
109
111
|
isInHouse: boolean;
|
|
@@ -114,6 +116,9 @@ export type BattleHookInfo = Omit<TournamentInfo, 'status' | 'amount' | 'players
|
|
|
114
116
|
providerName: string;
|
|
115
117
|
isFinished: boolean;
|
|
116
118
|
players: AdaptedTournamentPlayer[];
|
|
119
|
+
gameIds?: string[];
|
|
120
|
+
rules?: string[];
|
|
121
|
+
images?: NewFormatBattleImages;
|
|
117
122
|
};
|
|
118
123
|
export type BattleDetails = BattleHookInfo & {
|
|
119
124
|
isFinished: boolean;
|
|
@@ -132,4 +137,34 @@ export type GetImagesProps = {
|
|
|
132
137
|
isHistory: boolean;
|
|
133
138
|
isProvider: boolean;
|
|
134
139
|
id: number;
|
|
140
|
+
images?: NewFormatBattleImages;
|
|
141
|
+
isDetails: boolean;
|
|
142
|
+
};
|
|
143
|
+
export type NewFormatProviderTournamentEntity = {
|
|
144
|
+
id: number;
|
|
145
|
+
name: string;
|
|
146
|
+
gameIds: string[];
|
|
147
|
+
providerName: string;
|
|
148
|
+
prizePool: {
|
|
149
|
+
[currencyId: string]: string;
|
|
150
|
+
};
|
|
151
|
+
images: {
|
|
152
|
+
[en: string]: NewFormatBattleImages;
|
|
153
|
+
};
|
|
154
|
+
startDate: string;
|
|
155
|
+
endDate: string;
|
|
156
|
+
rules: {
|
|
157
|
+
[en: string]: string[];
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
export type NewFormatStore = {
|
|
161
|
+
active: NewFormatProviderTournamentEntity[];
|
|
162
|
+
finished: NewFormatProviderTournamentEntity[];
|
|
163
|
+
upcoming: NewFormatProviderTournamentEntity[];
|
|
164
|
+
};
|
|
165
|
+
export type NewFormatBattleImages = {
|
|
166
|
+
Tournament: string;
|
|
167
|
+
TournamentBg: string;
|
|
168
|
+
TournamentHistory: string;
|
|
169
|
+
TournamentHistoryBg: string;
|
|
135
170
|
};
|
|
@@ -33,11 +33,13 @@ export declare class User {
|
|
|
33
33
|
token: string | null;
|
|
34
34
|
countryInfo: CountryInfo | null;
|
|
35
35
|
clientId: number;
|
|
36
|
-
|
|
36
|
+
_isAuthorized: boolean;
|
|
37
37
|
_currencyInfo: CurrencyInfo | null;
|
|
38
38
|
_ratio: number;
|
|
39
39
|
userInfo: null | UserInfo;
|
|
40
40
|
constructor(sendCommand: SendCommand, callbackStatus: CallbackStatus, parentService: ResponseAdapterService);
|
|
41
|
+
set isAuthorized(value: boolean);
|
|
42
|
+
get isAuthorized(): boolean;
|
|
41
43
|
set currencyInfo(value: CurrencyInfo | null);
|
|
42
44
|
get currencyInfo(): CurrencyInfo | null;
|
|
43
45
|
set ratio(v: number);
|