react-memory-optimization 0.0.98 → 0.0.99
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/index.d.ts +2 -2
- package/dist/lib/service/api/index.d.ts +1 -1
- package/dist/lib/service/api/utils.js +2 -2
- package/dist/lib/service/observable/index.d.ts +1 -1
- package/dist/lib/service/responseAdapter/adapters.d.ts +1 -1
- package/dist/lib/service/responseAdapter/index.d.ts +2 -3
- package/dist/lib/service/responseAdapter/types.d.ts +2 -0
- package/dist/lib/socket/index.d.ts +10 -45
- package/dist/lib/socket/services.d.ts +1 -1
- package/dist/lib/socket/services.js +10 -8
- package/dist/lib/socket/types/socket.d.ts +5 -15
- package/dist/lib/store/betting/entities/events/index.d.ts +1 -1
- package/dist/lib/store/betting/entities/events/live/index.d.ts +2 -2
- package/dist/lib/store/betting/services/index.d.ts +6 -6
- package/dist/lib/store/casino/entities/casinoTournaments/index.d.ts +1 -10
- package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +2 -2
- package/dist/lib/store/casino/entities/categories/index.d.ts +3 -4
- package/dist/lib/store/casino/entities/categories/types.d.ts +6 -0
- package/dist/lib/store/casino/entities/games/types.d.ts +2 -2
- package/dist/lib/store/casino/entities/jackpots/types.d.ts +0 -3
- package/dist/lib/store/casino/entities/providers/types.d.ts +1 -1
- package/dist/lib/store/casino/index.d.ts +0 -2
- package/dist/lib/store/casino/services/index.d.ts +11 -24
- package/dist/lib/store/operations/entities/vipClub/index.d.ts +1 -1
- package/dist/lib/store/operations/index.d.ts +0 -1
- package/dist/lib/store/ui/home/entity/banners/index.d.ts +25 -0
- package/dist/lib/store/ui/home/entity/banners/service/index.d.ts +9 -0
- package/dist/lib/store/ui/home/entity/banners/types.d.ts +76 -0
- package/dist/lib/store/ui/home/entity/banners/types.js +10 -0
- package/dist/lib/store/ui/home/entity/service/index.d.ts +7 -0
- package/dist/lib/store/ui/home/index.d.ts +12 -0
- package/dist/lib/store/ui/index.d.ts +16 -0
- package/dist/lib/store/ui/service/index.d.ts +7 -0
- package/dist/lib/store/ui/types.d.ts +4 -0
- package/dist/lib/store/user/entities/avatars/index.d.ts +1 -4
- package/dist/lib/store/user/entities/daily/index.d.ts +3 -3
- package/dist/lib/store/user/entities/favorites/constants.js +0 -12
- package/dist/lib/store/user/entities/favorites/index.d.ts +1 -4
- package/dist/lib/store/user/entities/favorites/types.d.ts +1 -14
- package/dist/lib/store/user/entities/referral/index.d.ts +3 -3
- package/dist/lib/store/user/index.d.ts +0 -6
- package/dist/lib/store/user/services/index.d.ts +1 -8
- package/dist/lib/store/user/types.d.ts +5 -5
- package/dist/lib/store/user/utils.js +1 -1
- package/dist/lib/utils/betting.js +2 -0
- package/dist/lib/utils/shader.d.ts +1 -1
- package/dist/lib/utils/shader.js +1 -1
- package/package.json +1 -1
- package/dist/lib/store/user/entities/bonusWheel/constants.d.ts +0 -1
- package/dist/lib/store/user/entities/bonusWheel/constants.js +0 -7
- package/dist/lib/store/user/entities/bonusWheel/index.d.ts +0 -17
- package/dist/lib/store/user/entities/bonusWheel/types.d.ts +0 -7
- package/dist/lib/store/user/entities/hamster/constant.d.ts +0 -10
- package/dist/lib/store/user/entities/hamster/constant.js +0 -39
- package/dist/lib/store/user/entities/hamster/index.d.ts +0 -21
- package/dist/lib/store/user/entities/hamster/types.d.ts +0 -28
- package/dist/lib/store/user/entities/hamster/types.js +0 -2
- package/dist/lib/store/user/entities/lootBox/constants.d.ts +0 -8
- package/dist/lib/store/user/entities/lootBox/constants.js +0 -26
- package/dist/lib/store/user/entities/lootBox/index.d.ts +0 -39
- package/dist/lib/store/user/entities/lootBox/types.d.ts +0 -10
- package/dist/lib/store/user/entities/lootBox/types.js +0 -2
- /package/dist/lib/store/{user/entities/bonusWheel → ui}/types.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TBinaryDataType, TSendBinaryDataType, EReadDataType, EWriteDataType, ICurrency, ITopEvent } from './types';
|
|
1
|
+
import { TBinaryDataType, TSendBinaryDataType, EReadDataType, EWriteDataType, ICurrency, ITopEvent, ReadModuleType, ReadModuleKeys } from './types';
|
|
2
2
|
import { RospisInfo } from '../store/betting/entities/markets/types';
|
|
3
3
|
declare class Binary {
|
|
4
4
|
seek: number;
|
|
@@ -6,7 +6,7 @@ declare class Binary {
|
|
|
6
6
|
sendData: number[];
|
|
7
7
|
constructor();
|
|
8
8
|
writing(scheme: TSendBinaryDataType[], data?: any): string;
|
|
9
|
-
reading(scheme: TBinaryDataType[], eventData: Uint8Array, getSpecificScheme: (k:
|
|
9
|
+
reading(scheme: TBinaryDataType[], eventData: Uint8Array, getSpecificScheme: (k: ReadModuleKeys) => ReadModuleType[]): any;
|
|
10
10
|
private moduleReading;
|
|
11
11
|
private readBetSlipResponse;
|
|
12
12
|
private readBetHistory;
|
|
@@ -16,7 +16,7 @@ declare class Api {
|
|
|
16
16
|
post<T, U = unknown>(url: EApiPath, body: U, config?: Partial<ApiRequestConfig>): Promise<T | null>;
|
|
17
17
|
private getCommandList;
|
|
18
18
|
validationCommand<T = unknown>(command: EPaymentRequestPath, sendData?: any): Promise<T | null>;
|
|
19
|
-
registration(path: string, sendData: RestCommandDataProps): Promise<any>;
|
|
19
|
+
registration(path: string | undefined, sendData: RestCommandDataProps): Promise<any>;
|
|
20
20
|
}
|
|
21
21
|
export declare const api: Api;
|
|
22
22
|
export {};
|
|
@@ -92,9 +92,9 @@ const restAdapterWithdraw = (data) => {
|
|
|
92
92
|
text,
|
|
93
93
|
url: '',
|
|
94
94
|
isQR: false,
|
|
95
|
-
iconType,
|
|
95
|
+
iconType: iconType !== null && iconType !== void 0 ? iconType : types_1.EIconType.Error,
|
|
96
96
|
requestId: types_2.ERequestIds.WithdrawRequest,
|
|
97
|
-
isError,
|
|
97
|
+
isError: isError !== null && isError !== void 0 ? isError : true,
|
|
98
98
|
};
|
|
99
99
|
return { key, responseData };
|
|
100
100
|
};
|
|
@@ -12,7 +12,7 @@ export declare class Observable {
|
|
|
12
12
|
addToCallbackQueue(id: string, callback: (d: any) => void): void;
|
|
13
13
|
sendUpdate: (props: UpdateData & {
|
|
14
14
|
fn: (d: any) => void;
|
|
15
|
-
}) =>
|
|
15
|
+
}) => true | undefined;
|
|
16
16
|
update(props: UpdateData): void;
|
|
17
17
|
removeFn(id: string): void;
|
|
18
18
|
removeAll(): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MoneyResponse } from '../moneyResponse';
|
|
2
|
-
import { SendCommand } from '../../socket/types/socket';
|
|
3
2
|
import { Casino } from '../../store/casino';
|
|
4
3
|
import { CasinoTournaments } from '../../store/casino/entities/casinoTournaments';
|
|
5
4
|
import { UserOperations } from '../../store/operations';
|
|
@@ -10,9 +9,8 @@ import { HandleBackOfficeResponse, HandleRunGameResponse, ResponseAdapterInstanc
|
|
|
10
9
|
import { ResponseAdapterService } from './services';
|
|
11
10
|
import { SocketServices } from 'socket/services';
|
|
12
11
|
import { AdaptedCasinoTournamentProps } from 'store/casino/entities/casinoTournaments/types';
|
|
12
|
+
import { UIEntities } from 'store/ui';
|
|
13
13
|
export declare class ResponseAdapter {
|
|
14
|
-
callbackStatus: (s: string, result: any) => void;
|
|
15
|
-
sendCommand: SendCommand;
|
|
16
14
|
services: ResponseAdapterService;
|
|
17
15
|
parentService: SocketServices;
|
|
18
16
|
casino: Casino;
|
|
@@ -22,6 +20,7 @@ export declare class ResponseAdapter {
|
|
|
22
20
|
user: User;
|
|
23
21
|
betting: Betting;
|
|
24
22
|
lottery: Lottery;
|
|
23
|
+
ui: UIEntities;
|
|
25
24
|
constructor(props: ResponseAdapterInstanceProps);
|
|
26
25
|
resultEffect(key: string, result?: any): void;
|
|
27
26
|
private handleBonusPackAvailable;
|
|
@@ -8,6 +8,7 @@ import { CasinoHistoryBet } from 'store/operations/entities/casinoHistory/types'
|
|
|
8
8
|
import { SendCommand, TBettingSettings, TCasinoSettings } from 'socket/types/socket';
|
|
9
9
|
import { SocketServices } from 'socket/services';
|
|
10
10
|
import { UserInfoSettings } from 'store/user/types';
|
|
11
|
+
import { UIEntitiesSettings } from 'store/ui/types';
|
|
11
12
|
export declare enum EKYCStatus {
|
|
12
13
|
NotVerified = 0,
|
|
13
14
|
NeedKYC = 1,
|
|
@@ -172,6 +173,7 @@ export type ResponseAdapterInstanceProps = {
|
|
|
172
173
|
sendCommand: SendCommand;
|
|
173
174
|
parentService: SocketServices;
|
|
174
175
|
userInfoSettings: UserInfoSettings;
|
|
176
|
+
uiSettings: UIEntitiesSettings;
|
|
175
177
|
};
|
|
176
178
|
export type HandleRunGameResponse = {
|
|
177
179
|
errorCode: number;
|
|
@@ -20,15 +20,16 @@ import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
|
|
|
20
20
|
import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
|
|
21
21
|
import { ExperimentalFeatures } from 'service/experimental';
|
|
22
22
|
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
23
|
-
import { AvatarType,
|
|
24
|
-
import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
|
|
23
|
+
import { AvatarType, SubscribeAvatars } from 'store/user/entities/avatars/types';
|
|
25
24
|
import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
|
|
26
25
|
import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
|
|
27
|
-
import {
|
|
26
|
+
import { JackpotSubscribes } from 'store/casino/entities/jackpots/types';
|
|
28
27
|
import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
|
|
29
28
|
import { BettingEntitySubscribers } from 'store/betting/types';
|
|
30
29
|
import { SubscribeUserKeys } from 'store/user/types';
|
|
31
30
|
import { PromotionSubscribeProps } from 'store/casino/entities/promotions/types';
|
|
31
|
+
import { UIEntitiesSettings } from 'store/ui/types';
|
|
32
|
+
import { TournamentSubscribeProps } from 'store/casino/entities/casinoTournaments/types';
|
|
32
33
|
export declare class Socket implements SocketInterface {
|
|
33
34
|
socketServices: SocketServices;
|
|
34
35
|
initialSettings: ISocketSettings;
|
|
@@ -43,6 +44,7 @@ export declare class Socket implements SocketInterface {
|
|
|
43
44
|
_transport: null | ResponseAdapter;
|
|
44
45
|
casinoSettings: TCasinoSettings;
|
|
45
46
|
bettingSettings: TBettingSettings;
|
|
47
|
+
uiSettings: UIEntitiesSettings;
|
|
46
48
|
experimentalFeatures: ExperimentalFeatures;
|
|
47
49
|
_socketStatus: ESocketCallbackStep;
|
|
48
50
|
decodeTasks: {
|
|
@@ -53,7 +55,7 @@ export declare class Socket implements SocketInterface {
|
|
|
53
55
|
set socketStatus(s: ESocketCallbackStep);
|
|
54
56
|
get socketStatus(): ESocketCallbackStep;
|
|
55
57
|
set transport(transport: ResponseAdapter);
|
|
56
|
-
get transport(): ResponseAdapter;
|
|
58
|
+
get transport(): ResponseAdapter | null;
|
|
57
59
|
sendDecodeDataInfo(decodeFn: (key: string, result: any) => void): (key: string, result: any) => void;
|
|
58
60
|
init(): void;
|
|
59
61
|
onOpen(): void;
|
|
@@ -79,8 +81,10 @@ export declare class Socket implements SocketInterface {
|
|
|
79
81
|
subscribeBalanceInfo(props: BaseObservableSubscriber): boolean;
|
|
80
82
|
subscribeBonusBalanceCoins(props: BaseObservableSubscriber): boolean;
|
|
81
83
|
unsubscribeBalanceEntity(uid: string): boolean;
|
|
82
|
-
subscribeJackpotsEntity(props:
|
|
84
|
+
subscribeJackpotsEntity(props: JackpotSubscribes): boolean;
|
|
83
85
|
unsubscribeJackpotsEntity(uid: string): boolean;
|
|
86
|
+
subscribeHomeBanners(props: BaseObservableSubscriber): boolean;
|
|
87
|
+
unsubscribeHomeBanners(uid: string): boolean;
|
|
84
88
|
subscribeCasinoCategories(props: SubscribeCasinoCategoriesInfoProps): boolean;
|
|
85
89
|
unsubscribeCasinoCategories(uid: string): boolean;
|
|
86
90
|
subscribeCasinoGamesInfo(props: SubscribeCasinoGamesProps): boolean;
|
|
@@ -89,9 +93,7 @@ export declare class Socket implements SocketInterface {
|
|
|
89
93
|
unsubscribeCasinoProviders(uid: string): boolean;
|
|
90
94
|
subscribeCasinoLastWinners(props: SubscribeCasinoLastWinnersProps): boolean;
|
|
91
95
|
unsubscribeCasinoLastWinnerEntities(uid: string): boolean;
|
|
92
|
-
subscribeCasinoBattles(props:
|
|
93
|
-
isFinished: boolean;
|
|
94
|
-
}): boolean;
|
|
96
|
+
subscribeCasinoBattles(props: TournamentSubscribeProps): boolean;
|
|
95
97
|
unsubscribeCasinoBattles(uid: string): boolean;
|
|
96
98
|
subscribeCasinoPromotions(props: PromotionSubscribeProps): boolean;
|
|
97
99
|
unsubscribeCasinoPromotions(uid: string): boolean;
|
|
@@ -125,8 +127,6 @@ export declare class Socket implements SocketInterface {
|
|
|
125
127
|
subscribeFavoriteGames(props: SubscribeFavoriteGamesProps): boolean;
|
|
126
128
|
unsubscribeFavoriteEntity(uid: string): boolean;
|
|
127
129
|
handleSaveUserAvatar(info: AvatarType | null): boolean;
|
|
128
|
-
handleBuyAvatar(info: BuyAvatarProps): boolean;
|
|
129
|
-
handleBuyHero(info: BuyHeroAvatar): boolean;
|
|
130
130
|
subscribeAvatars(props: SubscribeAvatars): boolean;
|
|
131
131
|
unsubscribeAvatarEntity(uid: string): boolean;
|
|
132
132
|
subscribeLotteryFreeCash(props: SubscribeFreeCashTickets): boolean;
|
|
@@ -198,41 +198,6 @@ export declare class Socket implements SocketInterface {
|
|
|
198
198
|
subscribeReferralClient(props: BaseObservableSubscriber): boolean;
|
|
199
199
|
referralWithdraw(amount: number): boolean;
|
|
200
200
|
unsubscribeReferralEntity(uid: string): boolean;
|
|
201
|
-
getLootBoxResult(amount: number): false | {
|
|
202
|
-
isError: boolean;
|
|
203
|
-
prize: number;
|
|
204
|
-
isWin: boolean;
|
|
205
|
-
description: string;
|
|
206
|
-
isRealMoney?: undefined;
|
|
207
|
-
} | {
|
|
208
|
-
isWin: boolean;
|
|
209
|
-
prize: number;
|
|
210
|
-
description: string;
|
|
211
|
-
isRealMoney: boolean;
|
|
212
|
-
isError?: undefined;
|
|
213
|
-
} | {
|
|
214
|
-
isWin: boolean;
|
|
215
|
-
prize: number;
|
|
216
|
-
isRealMoney: boolean;
|
|
217
|
-
isError?: undefined;
|
|
218
|
-
description?: undefined;
|
|
219
|
-
} | {
|
|
220
|
-
prize: number;
|
|
221
|
-
isWin: boolean;
|
|
222
|
-
isError?: undefined;
|
|
223
|
-
description?: undefined;
|
|
224
|
-
isRealMoney?: undefined;
|
|
225
|
-
};
|
|
226
|
-
getLootBoxGameSettings(): false | import("../store/user/entities/lootBox/types").LootBoxGameSettings;
|
|
227
|
-
getWheelItems(): number[];
|
|
228
|
-
getWheelResult(): {
|
|
229
|
-
value: number;
|
|
230
|
-
result: number;
|
|
231
|
-
};
|
|
232
|
-
boostEnergy(): boolean;
|
|
233
|
-
changeCoins(sellCoins: number, receiveCoins: number): boolean;
|
|
234
|
-
subscribeHamster(props: BaseObservableSubscriber): boolean;
|
|
235
|
-
unsubscribeHamster(uid: string): boolean;
|
|
236
201
|
setActiveDailyTask(id: string): boolean;
|
|
237
202
|
subscribeDailyTasks(props: BaseObservableSubscriber): boolean;
|
|
238
203
|
subscribeActiveDailyTask(props: BaseObservableSubscriber): boolean;
|
|
@@ -8,10 +8,12 @@ class SocketServices {
|
|
|
8
8
|
this.parent = parent;
|
|
9
9
|
}
|
|
10
10
|
getPlaceBetData() {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
(_a = this.parent.transport) === null || _a === void 0 ? void 0 : _a.betting.betSlip.setBetSlipHardStatus(types_1.EPlaceBetStatus.Sending);
|
|
13
|
+
const bets = [];
|
|
14
|
+
// ;Object.values(this.parent.transport?.betting.betSlip.bets);
|
|
15
|
+
const express = (_b = this.parent.transport) === null || _b === void 0 ? void 0 : _b.betting.betSlip.services.getBetByBetUid(types_1.ECustomBetUid.Express);
|
|
16
|
+
const system = (_c = this.parent.transport) === null || _c === void 0 ? void 0 : _c.betting.betSlip.services.getBetByBetUid(types_1.ECustomBetUid.System);
|
|
15
17
|
const requestId = 0;
|
|
16
18
|
const ticketId = 0;
|
|
17
19
|
// cashout data
|
|
@@ -33,13 +35,13 @@ class SocketServices {
|
|
|
33
35
|
const isTinder = 0;
|
|
34
36
|
const isAlternativeStakeAllowed = 0;
|
|
35
37
|
const byte = 0;
|
|
36
|
-
const bettingInstance = this.parent.transport.betting;
|
|
37
|
-
const eventsInstance = bettingInstance.events;
|
|
38
|
+
const bettingInstance = (_d = this.parent.transport) === null || _d === void 0 ? void 0 : _d.betting;
|
|
39
|
+
const eventsInstance = bettingInstance === null || bettingInstance === void 0 ? void 0 : bettingInstance.events;
|
|
38
40
|
const sendedBets = express || system ? bets : bets.filter((b) => b.stake);
|
|
39
41
|
const ordinarLength = sendedBets.length;
|
|
40
42
|
const ordinarBets = sendedBets.map((bet) => {
|
|
41
43
|
const { isPrematch, eventUid, lineUid, outcomeId } = bet;
|
|
42
|
-
const event = eventsInstance.services.getEvents(isPrematch).events[eventUid];
|
|
44
|
+
const event = eventsInstance === null || eventsInstance === void 0 ? void 0 : eventsInstance.services.getEvents(isPrematch).events[eventUid];
|
|
43
45
|
if (!event) {
|
|
44
46
|
console.error('EVENT NOT FOUND STOP ANY UPDATE ACTIONS ! BET SLIP ERROR');
|
|
45
47
|
return;
|
|
@@ -49,7 +51,7 @@ class SocketServices {
|
|
|
49
51
|
console.error('EVENT NOT FOUND STOP ANY UPDATE ACTIONS ! BET SLIP ERROR');
|
|
50
52
|
return;
|
|
51
53
|
}
|
|
52
|
-
const lineCompoundKey = bettingInstance.bettingServices.createCompoundKey(line, event, line.specValues);
|
|
54
|
+
const lineCompoundKey = bettingInstance === null || bettingInstance === void 0 ? void 0 : bettingInstance.bettingServices.createCompoundKey(line, event, line.specValues);
|
|
53
55
|
const lineTypeRadar = line.lineTypeRadar;
|
|
54
56
|
const { odd } = eventsInstance.services.getOdd({
|
|
55
57
|
isPrematch,
|
|
@@ -16,8 +16,7 @@ import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
|
|
|
16
16
|
import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
|
|
17
17
|
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
18
18
|
import { ExperimentalFeatures } from 'service/experimental';
|
|
19
|
-
import { AvatarType,
|
|
20
|
-
import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
|
|
19
|
+
import { AvatarType, SubscribeAvatars } from 'store/user/entities/avatars/types';
|
|
21
20
|
import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
|
|
22
21
|
import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
|
|
23
22
|
import { TournamentSettings, TournamentSubscribeProps } from 'store/casino/entities/casinoTournaments/types';
|
|
@@ -28,6 +27,7 @@ import { BettingEntitySubscribers } from 'store/betting/types';
|
|
|
28
27
|
import { SubscribeUserKeys, UserInfoSettings } from 'store/user/types';
|
|
29
28
|
import { ResponseAdapter } from 'service/responseAdapter';
|
|
30
29
|
import { CasinoPromotionSettings, PromotionSubscribeProps } from 'store/casino/entities/promotions/types';
|
|
30
|
+
import { UIEntitiesSettings } from 'store/ui/types';
|
|
31
31
|
export declare enum ESocketCallbackStep {
|
|
32
32
|
Unknown = 0,
|
|
33
33
|
Init = 1,
|
|
@@ -51,6 +51,7 @@ export interface ISocketSettings {
|
|
|
51
51
|
decodedDataCallback: (step: string, result?: any) => void;
|
|
52
52
|
referralBaseUrl: string;
|
|
53
53
|
token: string;
|
|
54
|
+
ui: UIEntitiesSettings;
|
|
54
55
|
}
|
|
55
56
|
export type TCasinoSettings = {
|
|
56
57
|
casinoCategoryUrls: [string, string];
|
|
@@ -148,6 +149,8 @@ export interface SocketInterface {
|
|
|
148
149
|
unsubscribeBalanceEntity: (uid: string) => boolean;
|
|
149
150
|
subscribeCasinoCategories: (data: SubscribeCasinoCategoriesInfoProps) => boolean;
|
|
150
151
|
unsubscribeCasinoCategories: (uid: string) => boolean;
|
|
152
|
+
subscribeHomeBanners: (props: BaseObservableSubscriber) => boolean;
|
|
153
|
+
unsubscribeHomeBanners: (uid: string) => boolean;
|
|
151
154
|
subscribeJackpotsEntity: (props: JackpotSubscribes) => boolean;
|
|
152
155
|
unsubscribeJackpotsEntity: (uid: string) => boolean;
|
|
153
156
|
subscribeCasinoGamesInfo: (props: SubscribeCasinoGamesProps) => boolean;
|
|
@@ -190,26 +193,13 @@ export interface SocketInterface {
|
|
|
190
193
|
saveToFavoriteEntities: (data: PrepareFavoriteEntitiesForSavingProps) => void;
|
|
191
194
|
unsubscribeFavoriteEntity: (uid: string) => void;
|
|
192
195
|
handleSaveUserAvatar: (props: null | AvatarType) => void;
|
|
193
|
-
handleBuyAvatar: (props: BuyAvatarProps) => void;
|
|
194
196
|
subscribeAvatars: (props: SubscribeAvatars) => void;
|
|
195
197
|
unsubscribeAvatarEntity: (uid: string) => void;
|
|
196
|
-
getLootBoxResult: (bet: number) => void;
|
|
197
|
-
getLootBoxGameSettings: () => void;
|
|
198
|
-
getWheelItems: () => number[];
|
|
199
|
-
getWheelResult: () => {
|
|
200
|
-
value: number;
|
|
201
|
-
result: number;
|
|
202
|
-
};
|
|
203
198
|
subscribeReferralLink: (props: BaseObservableSubscriber) => void;
|
|
204
199
|
subscribeReferralBalance: (props: BaseObservableSubscriber) => void;
|
|
205
200
|
subscribeReferralClient: (props: BaseObservableSubscriber) => void;
|
|
206
201
|
referralWithdraw: (amount: number) => void;
|
|
207
202
|
unsubscribeReferralEntity: (uid: string) => void;
|
|
208
|
-
boostEnergy: () => void;
|
|
209
|
-
handleBuyHero: (props: BuyHeroAvatar) => void;
|
|
210
|
-
changeCoins: (sellCoins: number, receiveCoins: number) => void;
|
|
211
|
-
subscribeHamster: (props: BaseObservableSubscriber) => void;
|
|
212
|
-
unsubscribeHamster: (uid: string) => void;
|
|
213
203
|
setActiveDailyTask: (id: string) => void;
|
|
214
204
|
subscribeDailyTasks: (props: BaseObservableSubscriber) => void;
|
|
215
205
|
subscribeActiveDailyTask: (props: BaseObservableSubscriber) => void;
|
|
@@ -18,7 +18,7 @@ export declare class Events extends ObservableEntity<undefined> {
|
|
|
18
18
|
settingEventsObservable: SettingEventsObservable;
|
|
19
19
|
constructor(services: BettingServices);
|
|
20
20
|
set settings(settings: BettingSettings);
|
|
21
|
-
get settings(): BettingSettings;
|
|
21
|
+
get settings(): BettingSettings | null;
|
|
22
22
|
updateTopEvents(topEvents: TopEventInfo[]): void;
|
|
23
23
|
updateEvents({ prematchEvents, liveEvents }: UpdateEvents): void;
|
|
24
24
|
updateTopEventsSubscribers(): void;
|
|
@@ -24,12 +24,12 @@ export declare class LiveEvents {
|
|
|
24
24
|
outcomes: number[];
|
|
25
25
|
isFirstMarket?: undefined;
|
|
26
26
|
} | {
|
|
27
|
-
mainMarket:
|
|
27
|
+
mainMarket: null;
|
|
28
28
|
isSpecial: boolean;
|
|
29
29
|
isShowMoreBtn: boolean;
|
|
30
30
|
outcomes: number[];
|
|
31
31
|
isFirstMarket: boolean;
|
|
32
|
-
};
|
|
32
|
+
} | null;
|
|
33
33
|
private sendEventUpdate;
|
|
34
34
|
private updateLinesByMarketId;
|
|
35
35
|
private updateEventScore;
|
|
@@ -251,12 +251,12 @@ export declare class BettingServices {
|
|
|
251
251
|
outcomes: number[];
|
|
252
252
|
isFirstMarket?: undefined;
|
|
253
253
|
} | {
|
|
254
|
-
mainMarket:
|
|
254
|
+
mainMarket: null;
|
|
255
255
|
isSpecial: boolean;
|
|
256
256
|
isShowMoreBtn: boolean;
|
|
257
257
|
outcomes: number[];
|
|
258
258
|
isFirstMarket: boolean;
|
|
259
|
-
};
|
|
259
|
+
} | null;
|
|
260
260
|
getMarketsByComboMarketId(comboMarketId: number, event: PrematchEvent | LiveEvent, isPrematch?: boolean): ReturnGetMarketsByComboMarketIdProps;
|
|
261
261
|
getOdd(props: GetOddProps): ReturnGetOddType;
|
|
262
262
|
getMarketById(marketId: number): import("../entities/markets/types").Market;
|
|
@@ -286,26 +286,26 @@ export declare class BettingServices {
|
|
|
286
286
|
getExpressOdd(): string;
|
|
287
287
|
getSystemOdd(rang: number): string;
|
|
288
288
|
private getCombinations;
|
|
289
|
-
getBetByBetUid(betUid: string | ECustomBetUid): Bet | ExpressBet | SystemBet |
|
|
289
|
+
getBetByBetUid(betUid: string | ECustomBetUid): Bet | ExpressBet | SystemBet | null;
|
|
290
290
|
getComboBoxes(): import("../entities/markets/types").ComboMarketsInfo;
|
|
291
291
|
getEvents(isPrematch: boolean): import("../entities/events/prematch").PrematchEvents | import("../entities/events/live").LiveEvents;
|
|
292
292
|
findEventsByTime(events: PrematchEvent[], time: number): PrematchEvent | undefined;
|
|
293
293
|
createCompoundKey(line: EventLine, event: PrematchEvent | LiveEvent, specValues: string[]): string;
|
|
294
|
-
getPrefix(line: EventLine, event: PrematchEvent | LiveEvent): string;
|
|
294
|
+
getPrefix(line: EventLine, event: PrematchEvent | LiveEvent): string | undefined;
|
|
295
295
|
getEventByEventId(eventUid: string): {
|
|
296
296
|
isPrematch: boolean;
|
|
297
297
|
event: PrematchEvent;
|
|
298
298
|
} | {
|
|
299
299
|
isPrematch: boolean;
|
|
300
300
|
event: LiveEvent;
|
|
301
|
-
};
|
|
301
|
+
} | null;
|
|
302
302
|
getEventByObjectId(objectId: number, eventUid: string): {
|
|
303
303
|
isPrematch: boolean;
|
|
304
304
|
event: PrematchEvent;
|
|
305
305
|
} | {
|
|
306
306
|
isPrematch: boolean;
|
|
307
307
|
event: LiveEvent;
|
|
308
|
-
};
|
|
308
|
+
} | null;
|
|
309
309
|
getCashoutSumForOrdinarOrExpress({ stake, type, ordinars }: any): number | false;
|
|
310
310
|
translateOutcomes(name: string, { home, away }: {
|
|
311
311
|
home: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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';
|
|
@@ -15,16 +15,7 @@ export declare class CasinoTournaments extends ObservableEntity<undefined> {
|
|
|
15
15
|
finished: ProviderTournament[];
|
|
16
16
|
active: ProviderTournament[];
|
|
17
17
|
};
|
|
18
|
-
tournamentPlayers: {
|
|
19
|
-
[id: number]: TournamentPlayer[];
|
|
20
|
-
};
|
|
21
|
-
tournaments: {
|
|
22
|
-
[id: number]: AdaptedCasinoTournament;
|
|
23
|
-
};
|
|
24
18
|
_newFormatTournaments: NewFormatStore;
|
|
25
|
-
currentUserInfo: {
|
|
26
|
-
[tournamentId: number]: CurrentTournamentPlayer;
|
|
27
|
-
};
|
|
28
19
|
constructor({ parent, sendCommand, tournamentSettings, }: CasinoTournamentsProps);
|
|
29
20
|
set newFormatTournaments(tournaments: NewFormatProviderTournamentEntity[]);
|
|
30
21
|
get newFormatTournaments(): NewFormatStore;
|
|
@@ -103,12 +103,12 @@ export type BattleInfo = {
|
|
|
103
103
|
export type TournamentsSubscribe = {
|
|
104
104
|
isFinished: boolean;
|
|
105
105
|
};
|
|
106
|
-
export type TournamentSubscribeProps = BaseObservableSubscriber & (TournamentsSubscribe | {
|
|
106
|
+
export type TournamentSubscribeProps = BaseObservableSubscriber & ((TournamentsSubscribe | {
|
|
107
107
|
battleInfo: BattleInfo;
|
|
108
108
|
isMobile: boolean;
|
|
109
109
|
}) & {
|
|
110
110
|
isProviderExperimental?: boolean;
|
|
111
|
-
};
|
|
111
|
+
});
|
|
112
112
|
export type BattleHookInfo = Omit<TournamentInfo, 'status' | 'amount' | 'players'> & {
|
|
113
113
|
name: string;
|
|
114
114
|
isInHouse: boolean;
|
|
@@ -2,13 +2,12 @@ import { CategoriesInfo, HomeCategoriesInfo, ResponseEncodeConfig, SubscribeCasi
|
|
|
2
2
|
import { CasinoServices } from 'store/casino/services';
|
|
3
3
|
import { ObservableEntity } from 'service/observableEntity';
|
|
4
4
|
import { UpdateData } from 'service/observable/type';
|
|
5
|
-
import { CountryInfo } from 'store/user/types';
|
|
6
5
|
import { TCasinoSettings } from 'socket/types/socket';
|
|
7
6
|
export declare class CasinoCategories extends ObservableEntity<undefined> {
|
|
8
7
|
services: CasinoServices;
|
|
9
8
|
_homeCategoriesConfig: HomeCategoriesInfo;
|
|
10
|
-
mobileCategoriesInfo: CategoriesInfo;
|
|
11
|
-
desktopCategoriesInfo: CategoriesInfo;
|
|
9
|
+
mobileCategoriesInfo: CategoriesInfo | null;
|
|
10
|
+
desktopCategoriesInfo: CategoriesInfo | null;
|
|
12
11
|
config: null | ResponseEncodeConfig;
|
|
13
12
|
isNeedToConfigureData: boolean;
|
|
14
13
|
_countryId: number;
|
|
@@ -21,7 +20,7 @@ export declare class CasinoCategories extends ObservableEntity<undefined> {
|
|
|
21
20
|
private request;
|
|
22
21
|
getMainFile(url: string): Promise<void>;
|
|
23
22
|
getConfig(urls: [string, string]): Promise<void>;
|
|
24
|
-
updateCountryId(
|
|
23
|
+
updateCountryId(value: unknown): void;
|
|
25
24
|
configureCasinoData(): void;
|
|
26
25
|
updateGamesRestricts(): void;
|
|
27
26
|
startCasinoConfigSubscribers(): void;
|
|
@@ -77,6 +77,12 @@ export declare enum ECategoryWager {
|
|
|
77
77
|
Bonus = 1,
|
|
78
78
|
Tournament = 2
|
|
79
79
|
}
|
|
80
|
+
export type WagerCategory = {
|
|
81
|
+
sortId: number;
|
|
82
|
+
id: ECasinoCategoryIds.Wager;
|
|
83
|
+
gameIds: number[];
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
80
86
|
export type ResponseEncodeConfig = {
|
|
81
87
|
categories: {
|
|
82
88
|
[sortId: number]: {
|
|
@@ -70,7 +70,7 @@ export type ObservableSettingGames = {
|
|
|
70
70
|
excludeGameIds?: number[];
|
|
71
71
|
};
|
|
72
72
|
export type GetSearchingGamesProps = {
|
|
73
|
-
providerId
|
|
73
|
+
providerId?: number | null;
|
|
74
74
|
isMobile: boolean;
|
|
75
75
|
excludeGameIds?: number[];
|
|
76
76
|
search: string;
|
|
@@ -80,7 +80,7 @@ export type ObservableCasinoProviderGamesSetting = {
|
|
|
80
80
|
isProviderGames: boolean;
|
|
81
81
|
page: number;
|
|
82
82
|
search?: string;
|
|
83
|
-
providerId
|
|
83
|
+
providerId: number | null;
|
|
84
84
|
excludeGameIds?: number[];
|
|
85
85
|
limit: number;
|
|
86
86
|
isMobile: boolean;
|
|
@@ -20,8 +20,6 @@ export declare class Casino {
|
|
|
20
20
|
isWebP: boolean;
|
|
21
21
|
customPath: string;
|
|
22
22
|
language: string;
|
|
23
|
-
configUrl: string;
|
|
24
|
-
imgHost: string;
|
|
25
23
|
constructor(casinoSettings: TCasinoSettings, language: string, mainService: ResponseAdapterService);
|
|
26
24
|
setInitialData({ games, providers }: InitProps): void;
|
|
27
25
|
setNewAvailableProviders({ availableProvidersByRegion, }: TFilerDataProps): Promise<void>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Casino } from '..';
|
|
2
|
-
import { CasinoCategory, CasinoSubCategory,
|
|
2
|
+
import { CasinoCategory, CasinoSubCategory, ResponseEncodeConfig, WagerCategory } from '../entities/categories/types';
|
|
3
3
|
import { AdaptedGame, AdaptedGames, EAdaptedGameSpecialLabel, GetSearchingGamesProps } from '../entities/games/types';
|
|
4
4
|
import { GetProviderInfo, Provider, Providers } from '../entities/providers/types';
|
|
5
5
|
import { InitialProviders, InstanceProviders } from '../types';
|
|
6
|
+
import { BinaryConvertToObjType } from 'binary/types';
|
|
6
7
|
import { ResponseAdapterService } from 'service/responseAdapter/services';
|
|
7
8
|
import { JackpotHookInfo, JackpotInfo, JackpotResponse } from '../entities/jackpots/types';
|
|
8
9
|
import { ESortType } from 'globalTypes/utils';
|
|
@@ -22,14 +23,14 @@ export declare class CasinoServices {
|
|
|
22
23
|
getGamesByProvider(isMobile: boolean, providerId: number, excludeGameIds?: number[]): AdaptedGame[];
|
|
23
24
|
getGameById(isMobile: boolean, isForce?: boolean): (gameId: number) => AdaptedGame;
|
|
24
25
|
filteredProviders(restrictionProviders: InstanceProviders, currentProviders: Providers | InitialProviders): Providers;
|
|
25
|
-
getSubCategoryGames(categoryId: number, subCategoryId: number, isMobile: boolean): number[];
|
|
26
|
-
getCategoryGames(categoryId: number, isMobile: boolean): number[];
|
|
26
|
+
getSubCategoryGames(categoryId: number, subCategoryId: number, isMobile: boolean): number[] | undefined;
|
|
27
|
+
getCategoryGames(categoryId: number, isMobile: boolean): number[] | undefined;
|
|
27
28
|
getVipGames(isMobile?: boolean): any[];
|
|
28
29
|
getProviders(): InitialProviders;
|
|
29
30
|
getProvidersWithGameCounters(isMobile: boolean): (Provider & {
|
|
30
31
|
gameCounter: number;
|
|
31
32
|
})[];
|
|
32
|
-
getProviderByIdOrName(providerId?: number, providerName?: string): import("../types").InstanceProvider;
|
|
33
|
+
getProviderByIdOrName(providerId?: number, providerName?: string): import("../types").InstanceProvider | undefined;
|
|
33
34
|
providerHaveAnyGames(providerId: number): {
|
|
34
35
|
haveDesktopGame: boolean;
|
|
35
36
|
haveMobileGame: boolean;
|
|
@@ -39,30 +40,16 @@ export declare class CasinoServices {
|
|
|
39
40
|
isVerticalImg(): boolean;
|
|
40
41
|
filteredCasinoGames(providers: InitialProviders): void;
|
|
41
42
|
resetMobileDesktopGames(): void;
|
|
42
|
-
preparingWageringCategories(): {
|
|
43
|
-
mobileWagerCategory:
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
name: string;
|
|
48
|
-
};
|
|
49
|
-
desktopWagerCategory: {
|
|
50
|
-
sortId: number;
|
|
51
|
-
id: ECasinoCategoryIds;
|
|
52
|
-
gameIds: number[];
|
|
53
|
-
name: string;
|
|
54
|
-
};
|
|
55
|
-
bonusWager: (import("binary/types").BinaryConvertToObjType & {
|
|
56
|
-
value: number;
|
|
57
|
-
})[];
|
|
58
|
-
tournamentWager: (import("binary/types").BinaryConvertToObjType & {
|
|
59
|
-
value: number;
|
|
60
|
-
})[];
|
|
43
|
+
preparingWageringCategories(): undefined | {
|
|
44
|
+
mobileWagerCategory: WagerCategory;
|
|
45
|
+
desktopWagerCategory: WagerCategory;
|
|
46
|
+
bonusWager: BinaryConvertToObjType[];
|
|
47
|
+
tournamentWager: BinaryConvertToObjType[];
|
|
61
48
|
};
|
|
62
49
|
getWageringGames(isMobile: boolean): AdaptedGame[];
|
|
63
50
|
getProvidersByRoute(props: GetProviderInfo): (Provider & {
|
|
64
51
|
gameCounter: number;
|
|
65
|
-
})[];
|
|
52
|
+
})[] | undefined;
|
|
66
53
|
getSpecLabel(isBonusWager: boolean, isTournamentWager: boolean): EAdaptedGameSpecialLabel;
|
|
67
54
|
configureCasinoData(): any;
|
|
68
55
|
decodeCasinoData(stream: Uint8Array): ResponseEncodeConfig;
|
|
@@ -56,7 +56,7 @@ export declare class VipClub extends ObservableEntity<undefined> {
|
|
|
56
56
|
withCompare: boolean;
|
|
57
57
|
property: string;
|
|
58
58
|
isArray: boolean;
|
|
59
|
-
};
|
|
59
|
+
} | null;
|
|
60
60
|
update(operations: Operation[]): void;
|
|
61
61
|
setOperations(operations: Operation[]): void;
|
|
62
62
|
cancelOperation({ operationId }: CancelOperationProps): void;
|
|
@@ -31,7 +31,6 @@ export declare class UserOperations extends ObservableEntity<undefined> {
|
|
|
31
31
|
availableFreeSpins: Operation[];
|
|
32
32
|
activeBonusOnDeposit: Operation[];
|
|
33
33
|
activeFreeSpins: Operation[];
|
|
34
|
-
casinoGameHistoryCallbackFn: ((o: CasinoHistoryBet[]) => void)[];
|
|
35
34
|
sendCommand: SendCommand;
|
|
36
35
|
callbackStatus: CallbackStatus;
|
|
37
36
|
constructor(sendCommand: SendCommand, callbackStatus: CallbackStatus, parentService: ResponseAdapterService);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
2
|
+
import { ObservableEntity } from 'service/observableEntity';
|
|
3
|
+
import { HomeBannersSettings, ResponseBannerInfo, ReturnBannersInfo } from './types';
|
|
4
|
+
import { UIService } from 'store/ui/service';
|
|
5
|
+
import { HomeBannersService } from './service';
|
|
6
|
+
export declare class HomeBanners extends ObservableEntity<undefined> {
|
|
7
|
+
service: HomeBannersService;
|
|
8
|
+
_banners: ReturnBannersInfo | null;
|
|
9
|
+
_responseBannerInfo: ResponseBannerInfo | null;
|
|
10
|
+
_settings: HomeBannersSettings | null;
|
|
11
|
+
constructor(services: UIService);
|
|
12
|
+
set banners(banners: ReturnBannersInfo);
|
|
13
|
+
get banners(): ReturnBannersInfo | null;
|
|
14
|
+
set responseBannerInfo(responseBannerInfo: ResponseBannerInfo);
|
|
15
|
+
get responseBannerInfo(): ResponseBannerInfo | null;
|
|
16
|
+
set settings(settings: HomeBannersSettings);
|
|
17
|
+
get settings(): HomeBannersSettings | null;
|
|
18
|
+
setSettings(settings: HomeBannersSettings): void;
|
|
19
|
+
handleSendBanner(data: BaseObservableSubscriber & {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}): UpdateData | null;
|
|
22
|
+
sendUpdateEntity(d: BaseObservableSubscriber & {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}): UpdateData | null;
|
|
25
|
+
}
|