react-memory-optimization 0.0.20 → 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.
@@ -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 {};
@@ -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;
@@ -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
  }
@@ -33,11 +33,13 @@ export declare class User {
33
33
  token: string | null;
34
34
  countryInfo: CountryInfo | null;
35
35
  clientId: number;
36
- isAuthorized: boolean;
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);
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.21",
4
4
  "description": "react memory optimization library",
5
5
  "sideEffects": false,
6
6
  "files": [