react-memory-optimization 0.0.20 → 0.0.22

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.
@@ -184,63 +184,64 @@ export type ComboMarketRowInfo = {
184
184
  };
185
185
  export declare enum ERequestIds {
186
186
  Unknown = -1,
187
- InitCasinoDemo = 0,
188
- InitCasinoGame = 1,
189
- AuthorizeByEmail = 2,
190
- AuthorizeByToken = 3,
191
- RequestBalance = 4,
192
- GetCurrentUserTournamentPlace = 5,
193
- Registration = 6,
194
- GetPhoneCode = 7,
195
- UpdatePassword = 8,
196
- RecoveryPasswordResponse = 9,
197
- RecoveryPasswordSendCode = 10,
198
- SetNewPassword = 11,
199
- UpdateUserPhone = 12,
200
- UpdateUserEmail = 13,
201
- FrameLoyaltyBonus = 14,
202
- RequestDeposit = 15,
203
- AnindaHavaleRequest = 16,
204
- GoogleInrDeposit = 17,
205
- DepositPhonePe = 18,
206
- DepositPayTm = 19,
207
- INRWithdrawImp = 20,
208
- DepositTRC = 21,
209
- DepositERC = 22,
210
- DepositBEP = 23,
211
- DepositQrForm = 24,
212
- WithdrawCoinPay = 25,
213
- GetBillingAddress = 26,
214
- WithdrawRubles = 27,
215
- BKashWithdraw = 28,
216
- CriptoWithdraw = 29,
217
- WithdrawBank = 30,
218
- WithdrawPix = 31,
219
- PixPagsmileWithdraw = 32,
220
- PixBankTransferWithdraw = 33,
221
- WithdrawPapara = 34,
222
- WithdrawAninda = 35,
223
- WithdrawMPayFix = 36,
224
- MPayWithdraw = 37,
225
- WithdrawMonetics = 38,
226
- WithdrawHavaleHera = 39,
227
- WithdrawWellexPay = 40,
228
- MNXWallet = 41,
229
- SaveToFav = 42,
230
- CancelOperation = 43,
231
- ApplyBonusPack = 44,
232
- BuyTickets = 45,
233
- LotteryHistoryTicket = 46,
234
- GetCasinoOperations = 47,
235
- GetDepositOperations = 48,
236
- CasinoTournaments = 49,
237
- ExtraLines = 50,
238
- CashOut = 51,
239
- RequestTickets = 52,
240
- LastWinners = 53,
241
- RequestLotteries = 54,
242
- ReferralWithdraw = 55,
243
- WalletAzn = 56
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,
@@ -41,79 +41,80 @@ var ReadModuleKeys;
41
41
  var ERequestIds;
42
42
  (function (ERequestIds) {
43
43
  ERequestIds[ERequestIds["Unknown"] = -1] = "Unknown";
44
- ERequestIds[ERequestIds["InitCasinoDemo"] = 0] = "InitCasinoDemo";
45
- ERequestIds[ERequestIds["InitCasinoGame"] = 1] = "InitCasinoGame";
46
- ERequestIds[ERequestIds["AuthorizeByEmail"] = 2] = "AuthorizeByEmail";
47
- ERequestIds[ERequestIds["AuthorizeByToken"] = 3] = "AuthorizeByToken";
48
- ERequestIds[ERequestIds["RequestBalance"] = 4] = "RequestBalance";
49
- ERequestIds[ERequestIds["GetCurrentUserTournamentPlace"] = 5] = "GetCurrentUserTournamentPlace";
50
- ERequestIds[ERequestIds["Registration"] = 6] = "Registration";
51
- ERequestIds[ERequestIds["GetPhoneCode"] = 7] = "GetPhoneCode";
52
- ERequestIds[ERequestIds["UpdatePassword"] = 8] = "UpdatePassword";
53
- ERequestIds[ERequestIds["RecoveryPasswordResponse"] = 9] = "RecoveryPasswordResponse";
54
- ERequestIds[ERequestIds["RecoveryPasswordSendCode"] = 10] = "RecoveryPasswordSendCode";
55
- ERequestIds[ERequestIds["SetNewPassword"] = 11] = "SetNewPassword";
56
- ERequestIds[ERequestIds["UpdateUserPhone"] = 12] = "UpdateUserPhone";
57
- ERequestIds[ERequestIds["UpdateUserEmail"] = 13] = "UpdateUserEmail";
58
- ERequestIds[ERequestIds["FrameLoyaltyBonus"] = 14] = "FrameLoyaltyBonus";
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"] = 15] = "RequestDeposit";
61
- ERequestIds[ERequestIds["AnindaHavaleRequest"] = 16] = "AnindaHavaleRequest";
61
+ ERequestIds[ERequestIds["RequestDeposit"] = 16] = "RequestDeposit";
62
+ ERequestIds[ERequestIds["AnindaHavaleRequest"] = 17] = "AnindaHavaleRequest";
62
63
  // Important FOR deeplinks
63
- ERequestIds[ERequestIds["GoogleInrDeposit"] = 17] = "GoogleInrDeposit";
64
- ERequestIds[ERequestIds["DepositPhonePe"] = 18] = "DepositPhonePe";
65
- ERequestIds[ERequestIds["DepositPayTm"] = 19] = "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"] = 20] = "INRWithdrawImp";
68
+ ERequestIds[ERequestIds["INRWithdrawImp"] = 21] = "INRWithdrawImp";
68
69
  // Cripto
69
- ERequestIds[ERequestIds["DepositTRC"] = 21] = "DepositTRC";
70
- ERequestIds[ERequestIds["DepositERC"] = 22] = "DepositERC";
71
- ERequestIds[ERequestIds["DepositBEP"] = 23] = "DepositBEP";
72
- ERequestIds[ERequestIds["DepositQrForm"] = 24] = "DepositQrForm";
73
- ERequestIds[ERequestIds["WithdrawCoinPay"] = 25] = "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"] = 26] = "GetBillingAddress";
76
+ ERequestIds[ERequestIds["GetBillingAddress"] = 27] = "GetBillingAddress";
76
77
  // Withdraw
77
- ERequestIds[ERequestIds["WithdrawRubles"] = 27] = "WithdrawRubles";
78
- ERequestIds[ERequestIds["BKashWithdraw"] = 28] = "BKashWithdraw";
79
- ERequestIds[ERequestIds["CriptoWithdraw"] = 29] = "CriptoWithdraw";
80
- ERequestIds[ERequestIds["WithdrawBank"] = 30] = "WithdrawBank";
81
- ERequestIds[ERequestIds["WithdrawPix"] = 31] = "WithdrawPix";
82
- ERequestIds[ERequestIds["PixPagsmileWithdraw"] = 32] = "PixPagsmileWithdraw";
83
- ERequestIds[ERequestIds["PixBankTransferWithdraw"] = 33] = "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"] = 34] = "WithdrawPapara";
86
- ERequestIds[ERequestIds["WithdrawAninda"] = 35] = "WithdrawAninda";
87
- ERequestIds[ERequestIds["WithdrawMPayFix"] = 36] = "WithdrawMPayFix";
88
- ERequestIds[ERequestIds["MPayWithdraw"] = 37] = "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"] = 38] = "WithdrawMonetics";
92
- ERequestIds[ERequestIds["WithdrawHavaleHera"] = 39] = "WithdrawHavaleHera";
92
+ ERequestIds[ERequestIds["WithdrawMonetics"] = 39] = "WithdrawMonetics";
93
+ ERequestIds[ERequestIds["WithdrawHavaleHera"] = 40] = "WithdrawHavaleHera";
93
94
  // Wellex pay
94
- ERequestIds[ERequestIds["WithdrawWellexPay"] = 40] = "WithdrawWellexPay";
95
+ ERequestIds[ERequestIds["WithdrawWellexPay"] = 41] = "WithdrawWellexPay";
95
96
  // MNX
96
- ERequestIds[ERequestIds["MNXWallet"] = 41] = "MNXWallet";
97
+ ERequestIds[ERequestIds["MNXWallet"] = 42] = "MNXWallet";
97
98
  // END
98
99
  // Fav
99
- ERequestIds[ERequestIds["SaveToFav"] = 42] = "SaveToFav";
100
+ ERequestIds[ERequestIds["SaveToFav"] = 43] = "SaveToFav";
100
101
  // operation
101
- ERequestIds[ERequestIds["CancelOperation"] = 43] = "CancelOperation";
102
- ERequestIds[ERequestIds["ApplyBonusPack"] = 44] = "ApplyBonusPack";
102
+ ERequestIds[ERequestIds["CancelOperation"] = 44] = "CancelOperation";
103
+ ERequestIds[ERequestIds["ApplyBonusPack"] = 45] = "ApplyBonusPack";
103
104
  // lotteries
104
- ERequestIds[ERequestIds["BuyTickets"] = 45] = "BuyTickets";
105
- ERequestIds[ERequestIds["LotteryHistoryTicket"] = 46] = "LotteryHistoryTicket";
105
+ ERequestIds[ERequestIds["BuyTickets"] = 46] = "BuyTickets";
106
+ ERequestIds[ERequestIds["LotteryHistoryTicket"] = 47] = "LotteryHistoryTicket";
106
107
  // lib
107
- ERequestIds[ERequestIds["GetCasinoOperations"] = 47] = "GetCasinoOperations";
108
- ERequestIds[ERequestIds["GetDepositOperations"] = 48] = "GetDepositOperations";
109
- ERequestIds[ERequestIds["CasinoTournaments"] = 49] = "CasinoTournaments";
110
- ERequestIds[ERequestIds["ExtraLines"] = 50] = "ExtraLines";
111
- ERequestIds[ERequestIds["CashOut"] = 51] = "CashOut";
112
- ERequestIds[ERequestIds["RequestTickets"] = 52] = "RequestTickets";
113
- ERequestIds[ERequestIds["LastWinners"] = 53] = "LastWinners";
114
- ERequestIds[ERequestIds["RequestLotteries"] = 54] = "RequestLotteries";
115
- ERequestIds[ERequestIds["ReferralWithdraw"] = 55] = "ReferralWithdraw";
116
- ERequestIds[ERequestIds["WalletAzn"] = 56] = "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
  }
@@ -172,4 +172,9 @@ export type ResponseAdapterInstanceProps = {
172
172
  parentService: SocketServices;
173
173
  usefulUrls: UseFulUrls;
174
174
  };
175
+ export type HandleRunGameResponse = {
176
+ errorCode: number;
177
+ requestId: ERequestIds;
178
+ url: string;
179
+ };
175
180
  export {};
@@ -1,7 +1,6 @@
1
1
  import { ESocketCallbackStep, ISocketSettings, SocketInterface, TBettingSettings, TCasinoSettings } from './types';
2
2
  import { ResponseAdapter } from '../service/responseAdapter';
3
3
  import { SubscribeSportInfoBySportIdProps, SubscribeSportsProps } from '../store/betting/entities/sports/types';
4
- import { SubscribeCountryInfoProps, SubscribeMinDepositInfoProps, SubscribeUserCurrencyInfoProps, SubscribeUserStateProps } from '../store/user/types';
5
4
  import { ReadModuleKeys, ReadModuleType } from '../binary/types';
6
5
  import { CashOutTicketProps, SubscribeComposeTransactionsProps } from './methodTypes';
7
6
  import { SubscribeBettingEventsByTournamentIdProps, SubscribeBettingTopEventsProps, SubscribeEventDetailsMarketTabs, SubscribeEventDetailsMarketsByGroupIdProps, SubscribeEventShortInfoProps, SubscribeLineEntitiesProps, SubscribeOdd, SubscribeEventEntitiesProps } from '../store/betting/entities/events/types';
@@ -28,6 +27,7 @@ import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/type
28
27
  import { JackpotSettings } from 'store/casino/entities/jackpots/types';
29
28
  import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
30
29
  import { BettingEntitySubscribers } from 'store/betting/types';
30
+ import { SubscribeUserKeys } from 'store/user/types';
31
31
  export declare class Socket implements SocketInterface {
32
32
  socketServices: SocketServices;
33
33
  initialSettings: ISocketSettings;
@@ -68,11 +68,9 @@ export declare class Socket implements SocketInterface {
68
68
  decode(stream: Uint8Array, step: number): void;
69
69
  subscribeEntity(method: () => boolean): boolean;
70
70
  logout(): void;
71
- subscribeCountryInfo(props: SubscribeCountryInfoProps): boolean;
72
- subscribeMinDepOdd(props: SubscribeMinDepositInfoProps): boolean;
73
- subscribeUserCurrencyInfo(props: SubscribeUserCurrencyInfoProps): boolean;
74
- subscribeUserState(props: SubscribeUserStateProps): boolean;
75
- subscribeUserInfo(props: SubscribeUserStateProps): boolean;
71
+ subscribeUserEntity(props: BaseObservableSubscriber & SubscribeUserKeys): boolean;
72
+ subscribeCasinoFrameUrl(props: BaseObservableSubscriber): boolean;
73
+ unsubscribeCasinoFrameUrl(uid: string): boolean;
76
74
  subscribeStories(props: BaseObservableSubscriber): boolean;
77
75
  unsubscribeUserEntity(uid: string): boolean;
78
76
  subscribeBalanceInfo(props: BaseObservableSubscriber): boolean;
@@ -1,6 +1,5 @@
1
1
  import { SubscribeSportInfoBySportIdProps, SubscribeSportsProps } from '../store/betting/entities/sports/types';
2
2
  import { SubscriberCategoriesProps, SubscriberCategoryProps } from '../store/betting/entities/categories/types';
3
- import { SubscribeCountryInfoProps, SubscribeMinDepositInfoProps, SubscribeUserCurrencyInfoProps, SubscribeUserStateProps } from '../store/user/types';
4
3
  import { CashOutTicketProps, SubscribeComposeTransactionsProps } from './methodTypes';
5
4
  import { SubscribeBettingEventsByTournamentIdProps, SubscribeBettingTopEventsProps, SubscribeEventDetailsMarketTabs, SubscribeEventDetailsMarketsByGroupIdProps, SubscribeEventEntitiesProps, SubscribeEventShortInfoProps, SubscribeLineEntitiesProps, SubscribeOdd } from '../store/betting/entities/events/types';
6
5
  import { SubscribeLiveScoreProps } from '../store/betting/entities/events/live/types';
@@ -26,6 +25,7 @@ import { JackpotSettings, JackpotSubscribes } from 'store/casino/entities/jackpo
26
25
  import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
27
26
  import { SubscribeCasinoCategoriesInfoProps } from 'store/casino/entities/categories/types';
28
27
  import { BettingEntitySubscribers } from 'store/betting/types';
28
+ import { SubscribeUserKeys } from 'store/user/types';
29
29
  export declare enum ESocketCallbackStep {
30
30
  Unknown = 0,
31
31
  Init = 1,
@@ -136,13 +136,9 @@ export interface SocketInterface {
136
136
  sendCommand: SendCommand;
137
137
  subscribeEntity: (method: () => boolean) => boolean;
138
138
  logout: () => void;
139
- subscribeCountryInfo: (props: SubscribeCountryInfoProps) => boolean;
140
- subscribeMinDepOdd: (props: SubscribeMinDepositInfoProps) => boolean;
141
- subscribeUserCurrencyInfo: (props: SubscribeUserCurrencyInfoProps) => boolean;
142
- subscribeUserState: (props: SubscribeUserStateProps) => boolean;
143
- subscribeUserInfo: (props: SubscribeUserStateProps) => boolean;
144
- subscribeStories: (props: BaseObservableSubscriber) => boolean;
139
+ subscribeUserEntity: (props: BaseObservableSubscriber & SubscribeUserKeys) => boolean;
145
140
  unsubscribeUserEntity: (uid: string) => boolean;
141
+ subscribeStories: (props: BaseObservableSubscriber) => boolean;
146
142
  subscribeBalanceInfo: (props: BaseObservableSubscriber) => boolean;
147
143
  subscribeBonusBalanceCoins: (props: BaseObservableSubscriber) => boolean;
148
144
  unsubscribeBalanceEntity: (uid: string) => boolean;
@@ -226,6 +222,8 @@ export interface SocketInterface {
226
222
  subscribeBettingEntity: (props: BettingEntitySubscribers) => boolean;
227
223
  subscribeOdd: (props: SubscribeOdd) => void;
228
224
  unsubscribeOdd: (uid: string, isPrematch: boolean) => void;
225
+ subscribeCasinoFrameUrl: (props: BaseObservableSubscriber) => boolean;
226
+ unsubscribeCasinoFrameUrl: (uid: string) => boolean;
229
227
  subscribeBettingTopEvents: (props: SubscribeBettingTopEventsProps) => boolean;
230
228
  unsubscribeBettingTopEvents: (uid: string) => boolean;
231
229
  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;
@@ -312,4 +312,5 @@ export declare class BettingServices {
312
312
  away: string;
313
313
  }): string;
314
314
  replaceOutcomeName(name: string, marketSpecValues: string[], lineSpecifierValues: string[], home?: string, away?: string): string;
315
+ getBazarUrl(): void;
315
316
  }
@@ -1,5 +1,5 @@
1
1
  import { Observable } from '../../service/observable';
2
- import { CountryInfo, CountryInfoResponse, CurrencyInfo, HandleAuthResponseProps, ObservableSettings, SubscribeCountryInfoProps, SubscribeMinDepositInfoProps, SubscribeUserCurrencyInfoProps, SubscribeUserStateProps, UserInfo } from './types';
2
+ import { CountryInfo, CountryInfoResponse, CurrencyInfo, HandleAuthResponseProps, SubscribeUserKeys, UserInfo } from './types';
3
3
  import { UserFavorites } from './entities/favorites';
4
4
  import { UserServices } from './services';
5
5
  import { Balance } from './entities/balance';
@@ -14,7 +14,9 @@ import { DailyActivities } from './entities/daily';
14
14
  import { Avatar } from './entities/avatar';
15
15
  import { PromoCode } from './entities/promoCode';
16
16
  import { Stories } from './entities/stories';
17
- export declare class User {
17
+ import { ObservableEntity } from 'service/observableEntity';
18
+ import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
19
+ export declare class User extends ObservableEntity<undefined> {
18
20
  userObservable: Observable;
19
21
  services: UserServices;
20
22
  parentService: ResponseAdapterService;
@@ -28,16 +30,22 @@ export declare class User {
28
30
  avatars: Avatar;
29
31
  promoCode: PromoCode;
30
32
  storiesInstance: Stories;
31
- observableSettings: ObservableSettings;
32
- minDepositOdd: number;
33
+ _availableCurrencies: CurrencyInfo[];
34
+ _minDepositOdd: number;
33
35
  token: string | null;
34
36
  countryInfo: CountryInfo | null;
35
37
  clientId: number;
36
- isAuthorized: boolean;
38
+ _isAuthorized: boolean;
37
39
  _currencyInfo: CurrencyInfo | null;
38
40
  _ratio: number;
39
41
  userInfo: null | UserInfo;
40
42
  constructor(sendCommand: SendCommand, callbackStatus: CallbackStatus, parentService: ResponseAdapterService);
43
+ set minDepositOdd(value: number);
44
+ get minDepositOdd(): number;
45
+ set availableCurrencies(availableCurrencies: CurrencyInfo[]);
46
+ get availableCurrencies(): CurrencyInfo[];
47
+ set isAuthorized(value: boolean);
48
+ get isAuthorized(): boolean;
41
49
  set currencyInfo(value: CurrencyInfo | null);
42
50
  get currencyInfo(): CurrencyInfo | null;
43
51
  set ratio(v: number);
@@ -45,17 +53,11 @@ export declare class User {
45
53
  reset(): void;
46
54
  setInitialState(result: HandleAuthResponseProps): void;
47
55
  setCountryInfo(response: CountryInfoResponse): void;
48
- setMinDepositOdd(odd: number): void;
49
- private sendCountryIdUpdate;
50
- private sendCurrencyInfoUpdate;
51
- private sendUserState;
52
- private sendUserInfo;
53
- private minDepOdd;
54
- sendUpdates(): void;
55
- subscribeCountryInfo(props: SubscribeCountryInfoProps): void;
56
- subscribeMinDepOdd(props: SubscribeMinDepositInfoProps): void;
57
- subscribeUserCurrencyInfo(props: SubscribeUserCurrencyInfoProps): void;
58
- subscribeUserState(props: SubscribeUserStateProps): void;
59
- subscribeUserInfo(props: SubscribeUserStateProps): void;
60
- unsubscribeUserEntity(uid: string): void;
56
+ private handleCountryInfo;
57
+ private handleCurrencyInfo;
58
+ private handleUserStateInfo;
59
+ private handleUserInfo;
60
+ private handleMinDepositInfo;
61
+ private handleAvailableCurrenciesInfo;
62
+ sendUpdateEntity(d: BaseObservableSubscriber & SubscribeUserKeys): UpdateData | null;
61
63
  }
@@ -59,46 +59,18 @@ export type CountryInfo = {
59
59
  countryId: number;
60
60
  currencyIds: number[];
61
61
  };
62
- export type ObservableSettings = {
63
- [uid: string]: ObservableCountrySetting | ObservableCurrencyInfoSetting | ObservableUserStateSetting | ObservableUserMinDepSetting | ObservableUserInfoSetting;
64
- };
65
- type ObservableCountrySetting = {
66
- isCountryId: boolean;
67
- };
68
- type ObservableCurrencyInfoSetting = {
69
- isCurrencyInfo: boolean;
70
- };
71
- type ObservableUserStateSetting = {
72
- isUserState: boolean;
73
- };
74
- type ObservableUserInfoSetting = {
75
- isUserInfo: boolean;
76
- };
77
- type ObservableUserMinDepSetting = {
78
- isMinOdd: boolean;
62
+ export type SubscribeUserKeys = {
63
+ isCountryInfo?: boolean;
64
+ isMinDeposit?: boolean;
65
+ isCurrencyInfo?: boolean;
66
+ isUserState?: boolean;
67
+ isUserInfo?: boolean;
68
+ isAvailableCurrencies?: boolean;
79
69
  };
80
70
  export type AuthInfo = {
81
71
  isAuth: true;
82
72
  token: string;
83
73
  } | null;
84
- export type SubscribeCountryInfoProps = {
85
- uid: string;
86
- callback: (info: CountryInfo | null) => void;
87
- };
88
- export type SubscribeMinDepositInfoProps = {
89
- uid: string;
90
- callback: (info: {
91
- minDep: number;
92
- }) => void;
93
- };
94
- export type SubscribeUserCurrencyInfoProps = {
95
- uid: string;
96
- callback: (info: CurrencyInfo | null) => void;
97
- };
98
- export type SubscribeUserStateProps = {
99
- uid: string;
100
- callback: (info: AuthInfo) => void;
101
- };
102
74
  export type PaymentDictionaries = PaymentDictionary[];
103
75
  export type PaymentDictionary = {
104
76
  type_in: EPaymentSpecAction;
@@ -272,4 +244,3 @@ export type MPayMethods = PaymentChannelType.MPayParazula | PaymentChannelType.M
272
244
  export type WellexPayMethods = PaymentChannelType.BKashFastWellexPay | PaymentChannelType.NagadFastWellexPay | PaymentChannelType.NagadWellexPay | PaymentChannelType.BkashWellexPay | PaymentChannelType.WellxpayUpay | PaymentChannelType.BKashFastWellexPayCopy | PaymentChannelType.NagadFastWellexPayCopy | PaymentChannelType.WellxpayRocket;
273
245
  export type CashXMethods = PaymentChannelType.NagadCashX | PaymentChannelType.BkashCashX;
274
246
  export type RublesMethods = PaymentChannelType.WithdrawRubSber | PaymentChannelType.WithdrawRubTinkof | PaymentChannelType.CreditCard | PaymentChannelType.CreditCardFast | PaymentChannelType.CreditCardAcquirning;
275
- export {};
@@ -18,47 +18,6 @@ var EPaymentLaunch;
18
18
  EPaymentLaunch[EPaymentLaunch["Redirect"] = 2] = "Redirect";
19
19
  EPaymentLaunch[EPaymentLaunch["Qr"] = 3] = "Qr";
20
20
  })(EPaymentLaunch || (exports.EPaymentLaunch = EPaymentLaunch = {}));
21
- // export type DictionaryTypes = {
22
- // currency_map_channels: { id_currency: number; id_channel: number }[];
23
- // payment_systems_channels: TChannel[];
24
- // payment_systems_limits: TLimit[];
25
- // };
26
- // export enum PaymentDirect {
27
- // Deposit = 1,
28
- // Withdraw,
29
- // }
30
- // export type TLimit = {
31
- // amount_max: number;
32
- // amount_min: number;
33
- // direction: PaymentDirect;
34
- // id_channel: number;
35
- // id_currency: number;
36
- // id_system: number;
37
- // };
38
- // export type TChannel = {
39
- // channel_name: string;
40
- // fast_pay: number;
41
- // deps_required: number;
42
- // has_deposit: number;
43
- // has_withdraw: number;
44
- // id_channel: number;
45
- // id_system: number;
46
- // is_active: number;
47
- // is_crypto: number;
48
- // };
49
- // export type Payment = {
50
- // channelName: string;
51
- // isFast: boolean;
52
- // id: number;
53
- // order: number;
54
- // limit: TLimit;
55
- // isCrypto: boolean;
56
- // };
57
- // export type Withdraw = Payment;
58
- // export type Payments = {
59
- // deposit: Payment[];
60
- // withdraw: Withdraw[];
61
- // };
62
21
  var PaymentChannelType;
63
22
  (function (PaymentChannelType) {
64
23
  // new Cripto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-memory-optimization",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [