react-memory-optimization 0.0.103 → 0.0.105
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/service/responseAdapter/services/index.d.ts +3 -1
- package/dist/lib/socket/index.d.ts +2 -0
- package/dist/lib/socket/types/socket.d.ts +4 -9
- package/dist/lib/store/betting/index.d.ts +7 -2
- package/dist/lib/store/betting/services/index.d.ts +1 -0
- package/dist/lib/store/betting/types.d.ts +14 -0
- package/dist/lib/store/betting/types.js +6 -0
- package/dist/lib/store/casino/entities/categories/constants.js +2 -2
- package/dist/lib/store/casino/services/index.d.ts +0 -1
- package/dist/lib/store/ui/home/entity/banners/index.d.ts +5 -5
- package/dist/lib/store/ui/home/entity/banners/types.d.ts +0 -3
- package/dist/lib/store/ui/index.d.ts +2 -2
- package/dist/lib/store/ui/service/index.d.ts +1 -0
- package/dist/lib/store/ui/types.d.ts +3 -2
- package/package.json +1 -1
|
@@ -2,10 +2,12 @@ import { CallbackStatus, SendCommand } from 'socket/types/socket';
|
|
|
2
2
|
import { ResponseAdapter } from '..';
|
|
3
3
|
import { ResponseAdapterServiceProps } from './types';
|
|
4
4
|
export declare class ResponseAdapterService {
|
|
5
|
-
|
|
5
|
+
_parent: ResponseAdapter;
|
|
6
6
|
sendCallbackStatus: CallbackStatus;
|
|
7
7
|
sendCommand: SendCommand;
|
|
8
8
|
constructor(props: ResponseAdapterServiceProps);
|
|
9
|
+
set parent(parent: ResponseAdapter);
|
|
10
|
+
get parent(): ResponseAdapter;
|
|
9
11
|
getSettings(): import("socket/types/socket").ISocketSettings;
|
|
10
12
|
getSocketLanguage(): string;
|
|
11
13
|
getEventKeyTypeEvent(eventTypeRadar: number, objectId: number): string;
|
|
@@ -73,6 +73,8 @@ export declare class Socket implements SocketInterface {
|
|
|
73
73
|
logout(): void;
|
|
74
74
|
subscribeUserEntity(props: BaseObservableSubscriber & SubscribeUserKeys): boolean;
|
|
75
75
|
unsubscribeUserEntity(uid: string): boolean;
|
|
76
|
+
subscribeBettingInfo(props: BaseObservableSubscriber): boolean;
|
|
77
|
+
unsubscribeBettingInfo(uid: string): boolean;
|
|
76
78
|
subscribeBazarFrameUrl(props: BaseObservableSubscriber & {
|
|
77
79
|
gameId: number;
|
|
78
80
|
}): boolean;
|
|
@@ -23,7 +23,7 @@ import { TournamentSettings, TournamentSubscribeProps } from 'store/casino/entit
|
|
|
23
23
|
import { JackpotSettings, JackpotSubscribes } from 'store/casino/entities/jackpots/types';
|
|
24
24
|
import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
|
|
25
25
|
import { SubscribeCasinoCategoriesInfoProps } from 'store/casino/entities/categories/types';
|
|
26
|
-
import { BettingEntitySubscribers } from 'store/betting/types';
|
|
26
|
+
import { BettingEntitySubscribers, BettingSubscribeInfo } from 'store/betting/types';
|
|
27
27
|
import { SubscribeUserKeys, UserInfoSettings } from 'store/user/types';
|
|
28
28
|
import { ResponseAdapter } from 'service/responseAdapter';
|
|
29
29
|
import { CasinoPromotionSettings, PromotionSubscribeProps } from 'store/casino/entities/promotions/types';
|
|
@@ -55,7 +55,6 @@ export interface ISocketSettings {
|
|
|
55
55
|
}
|
|
56
56
|
export type TCasinoSettings = {
|
|
57
57
|
casinoCategoryUrls: [string, string];
|
|
58
|
-
homeCategories: string;
|
|
59
58
|
isVertical: boolean;
|
|
60
59
|
customPath?: string;
|
|
61
60
|
webp: boolean;
|
|
@@ -65,13 +64,7 @@ export type TCasinoSettings = {
|
|
|
65
64
|
};
|
|
66
65
|
export type TBettingSettings = {
|
|
67
66
|
pathname: string;
|
|
68
|
-
|
|
69
|
-
mobileActive: string;
|
|
70
|
-
desktopActive: string;
|
|
71
|
-
mobileInactive: string;
|
|
72
|
-
desktopInactive: string;
|
|
73
|
-
};
|
|
74
|
-
providerBasePath: string;
|
|
67
|
+
configPath: string;
|
|
75
68
|
};
|
|
76
69
|
export declare enum ERequestCommand {
|
|
77
70
|
GetLotteries = "client_lotteries",
|
|
@@ -214,6 +207,8 @@ export interface SocketInterface {
|
|
|
214
207
|
subscribeLotteryHistory: (props: SubscribeLotteryHistoryProps) => boolean;
|
|
215
208
|
subscribeLotteryAvailableForBuying: (props: SubscribeLotteryAvailableForBuyingProps) => boolean;
|
|
216
209
|
unsubscribeLotteriesHistoryEntities: (uid: string) => boolean;
|
|
210
|
+
subscribeBettingInfo: (props: BettingSubscribeInfo) => boolean;
|
|
211
|
+
unsubscribeBettingInfo: (uid: string) => boolean;
|
|
217
212
|
subscribeBettingStatus: (props: BaseObservableSubscriber) => boolean;
|
|
218
213
|
unsubscribeBettingStatus: (uid: string) => boolean;
|
|
219
214
|
subscribeBettingEntity: (props: BettingEntitySubscribers) => boolean;
|
|
@@ -3,7 +3,7 @@ import { Events } from './entities/events';
|
|
|
3
3
|
import { BettingMarkets } from './entities/markets';
|
|
4
4
|
import { Sports } from './entities/sports';
|
|
5
5
|
import { Tournaments } from './entities/tournaments';
|
|
6
|
-
import { BettingEntitySubscribers, BettingProps } from './types';
|
|
6
|
+
import { BettingEntitySubscribers, BettingInfo, BettingProps } from './types';
|
|
7
7
|
import { BettingServices } from './services';
|
|
8
8
|
import { TBettingSettings } from '../../socket/types/socket';
|
|
9
9
|
import { BetSlip } from './entities/betslip';
|
|
@@ -21,7 +21,7 @@ export declare class Betting extends ObservableEntity<{
|
|
|
21
21
|
markets: BettingMarkets;
|
|
22
22
|
categories: Categories;
|
|
23
23
|
tournaments: Tournaments;
|
|
24
|
-
|
|
24
|
+
_bettingSettings: TBettingSettings | null;
|
|
25
25
|
sports: Sports;
|
|
26
26
|
events: Events;
|
|
27
27
|
betSlip: BetSlip;
|
|
@@ -31,7 +31,12 @@ export declare class Betting extends ObservableEntity<{
|
|
|
31
31
|
adapterService: ResponseAdapterService;
|
|
32
32
|
_isBettingAvailable: boolean;
|
|
33
33
|
_isSettingInstalled: boolean;
|
|
34
|
+
_bettingInfo: BettingInfo | null;
|
|
34
35
|
constructor(props: BettingProps);
|
|
36
|
+
set bettingInfo(info: BettingInfo | null);
|
|
37
|
+
get bettingInfo(): BettingInfo | null;
|
|
38
|
+
set bettingSettings(settings: TBettingSettings);
|
|
39
|
+
get bettingSettings(): TBettingSettings | null;
|
|
35
40
|
set banUserCashOut(state: boolean);
|
|
36
41
|
get banUserCashOut(): boolean;
|
|
37
42
|
set isBettingAvailable(value: boolean);
|
|
@@ -312,5 +312,6 @@ 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
|
+
getConfigurations(): Promise<void>;
|
|
315
316
|
getBazarUrl(gameId: number): void;
|
|
316
317
|
}
|
|
@@ -22,6 +22,20 @@ export type BettingSettings = {
|
|
|
22
22
|
countEventsUpcoming: number;
|
|
23
23
|
frequencyMinTop: number;
|
|
24
24
|
};
|
|
25
|
+
export type BettingInfo = {
|
|
26
|
+
image: string;
|
|
27
|
+
isActive: boolean;
|
|
28
|
+
name: string;
|
|
29
|
+
restrictedCountries: number[];
|
|
30
|
+
type: EBettingProvider;
|
|
31
|
+
};
|
|
32
|
+
export declare enum EBettingProvider {
|
|
33
|
+
BetBazar = 0,
|
|
34
|
+
Our = 1
|
|
35
|
+
}
|
|
36
|
+
export type BettingSubscribeInfo = BaseObservableSubscriber & {
|
|
37
|
+
isBettingInfo: boolean;
|
|
38
|
+
};
|
|
25
39
|
type BettingSubscribeEntity = 'markets' | 'events' | 'categories' | 'tournaments' | 'sports' | 'betSlip' | 'tickets';
|
|
26
40
|
export type BettingEntitySubscribers = {
|
|
27
41
|
entity: BettingSubscribeEntity;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EBettingProvider = void 0;
|
|
4
|
+
var EBettingProvider;
|
|
5
|
+
(function (EBettingProvider) {
|
|
6
|
+
EBettingProvider[EBettingProvider["BetBazar"] = 0] = "BetBazar";
|
|
7
|
+
EBettingProvider[EBettingProvider["Our"] = 1] = "Our";
|
|
8
|
+
})(EBettingProvider || (exports.EBettingProvider = EBettingProvider = {}));
|
|
@@ -62,8 +62,8 @@ exports.HOME_DEFAULT_ORDER = {
|
|
|
62
62
|
default: {
|
|
63
63
|
isProviderSection: true,
|
|
64
64
|
providerSectionPosition: 3,
|
|
65
|
-
isLastWinnerSection:
|
|
66
|
-
lastWinnerPosition:
|
|
65
|
+
isLastWinnerSection: true,
|
|
66
|
+
lastWinnerPosition: HOME_CATEGORIES.length - 1,
|
|
67
67
|
categories: HOME_CATEGORIES,
|
|
68
68
|
},
|
|
69
69
|
};
|
|
@@ -59,5 +59,4 @@ export declare class CasinoServices {
|
|
|
59
59
|
promotionAdapter(promotion: PromotionEntity): PromotionAdaptedEntity | null;
|
|
60
60
|
getCategoryByGameId(gameId: number, isMobile: boolean): null | CasinoCategory;
|
|
61
61
|
getSubCategoryByGameId(categoryId: number, gameId: number, isMobile: boolean): null | CasinoSubCategory;
|
|
62
|
-
getHomeCategoriesConfig(homePath: string): Promise<void>;
|
|
63
62
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
2
2
|
import { ObservableEntity } from 'service/observableEntity';
|
|
3
|
-
import {
|
|
3
|
+
import { ResponseBannerInfo, ReturnBannersInfo } from './types';
|
|
4
4
|
import { UIService } from 'store/ui/service';
|
|
5
5
|
import { HomeBannersService } from './service';
|
|
6
6
|
export declare class HomeBanners extends ObservableEntity<undefined> {
|
|
7
7
|
service: HomeBannersService;
|
|
8
8
|
_banners: ReturnBannersInfo | null;
|
|
9
9
|
_responseBannerInfo: ResponseBannerInfo | null;
|
|
10
|
-
_settings:
|
|
10
|
+
_settings: string | null;
|
|
11
11
|
constructor(services: UIService);
|
|
12
12
|
set banners(banners: ReturnBannersInfo);
|
|
13
13
|
get banners(): ReturnBannersInfo | null;
|
|
14
14
|
set responseBannerInfo(responseBannerInfo: ResponseBannerInfo);
|
|
15
15
|
get responseBannerInfo(): ResponseBannerInfo | null;
|
|
16
|
-
set settings(settings:
|
|
17
|
-
get settings():
|
|
18
|
-
setSettings(settings:
|
|
16
|
+
set settings(settings: string);
|
|
17
|
+
get settings(): string | null;
|
|
18
|
+
setSettings(settings: string): void;
|
|
19
19
|
handleSendBanner(data: BaseObservableSubscriber & {
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
}): UpdateData | null;
|
|
@@ -7,10 +7,10 @@ import { UIEntitiesSettings } from './types';
|
|
|
7
7
|
export declare class UIEntities extends ObservableEntity<undefined> {
|
|
8
8
|
homePage: HomePage;
|
|
9
9
|
homeBanners: HomeBanners;
|
|
10
|
-
_settings: UIEntitiesSettings;
|
|
10
|
+
_settings: UIEntitiesSettings | null;
|
|
11
11
|
service: UIService;
|
|
12
12
|
constructor(uiSettings: UIEntitiesSettings, services: ResponseAdapterService);
|
|
13
13
|
updateCountryId(value: unknown): void;
|
|
14
14
|
set settings(settings: UIEntitiesSettings);
|
|
15
|
-
get settings(): UIEntitiesSettings;
|
|
15
|
+
get settings(): UIEntitiesSettings | null;
|
|
16
16
|
}
|