react-memory-optimization 0.0.104 → 0.0.107
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/api/constants.js +9 -0
- package/dist/lib/service/api/types.d.ts +3 -1
- package/dist/lib/service/api/types.js +2 -0
- package/dist/lib/service/responseAdapter/services/index.d.ts +3 -1
- package/dist/lib/socket/index.d.ts +4 -0
- package/dist/lib/socket/types/socket.d.ts +6 -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/services/index.d.ts +0 -1
- package/dist/lib/store/ui/Bonuses/Deposit/index.d.ts +17 -0
- package/dist/lib/store/ui/Bonuses/Deposit/service.d.ts +8 -0
- package/dist/lib/store/ui/Bonuses/Deposit/service.js +32 -0
- 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 +4 -2
- package/dist/lib/store/ui/service/index.d.ts +1 -0
- package/dist/lib/store/ui/types.d.ts +4 -2
- package/dist/lib/store/user/types.d.ts +1 -0
- package/dist/lib/store/user/types.js +1 -0
- package/package.json +1 -1
|
@@ -22,4 +22,13 @@ exports.PAYMENT_REQUEST_PATHS = {
|
|
|
22
22
|
path: types_1.EApiPath.CreateProdWithdraw,
|
|
23
23
|
adapterFn: utils_1.restAdapterWithdraw,
|
|
24
24
|
},
|
|
25
|
+
// PKR
|
|
26
|
+
[types_1.EPaymentRequestPath.PiqPayPkDeposit]: {
|
|
27
|
+
path: types_1.EApiPath.CreateProdDeposit,
|
|
28
|
+
adapterFn: utils_1.restAdapterDeposit,
|
|
29
|
+
},
|
|
30
|
+
[types_1.EPaymentRequestPath.PiqPayPkWithdraw]: {
|
|
31
|
+
path: types_1.EApiPath.CreateProdWithdraw,
|
|
32
|
+
adapterFn: utils_1.restAdapterWithdraw,
|
|
33
|
+
},
|
|
25
34
|
};
|
|
@@ -18,7 +18,9 @@ export declare enum EPaymentRequestPath {
|
|
|
18
18
|
FlashPayUpiDeposit = "flash_pay_upi_deposit",
|
|
19
19
|
FlashPayImpusWithdraw = "flash_pay_impus_withdraw",
|
|
20
20
|
PicoPayBkashNagadDeposit = "pico_pay_bkash_nagad_deposit",
|
|
21
|
-
PicoPayBkashNagadWithdraw = "pico_pay_bkash_nagad_withdraw"
|
|
21
|
+
PicoPayBkashNagadWithdraw = "pico_pay_bkash_nagad_withdraw",
|
|
22
|
+
PiqPayPkDeposit = "piq_pay_pk_deposit",
|
|
23
|
+
PiqPayPkWithdraw = "piq_pay_pk_withdraw"
|
|
22
24
|
}
|
|
23
25
|
export type ApiList = {
|
|
24
26
|
[key: string]: {
|
|
@@ -22,6 +22,8 @@ var EPaymentRequestPath;
|
|
|
22
22
|
EPaymentRequestPath["FlashPayImpusWithdraw"] = "flash_pay_impus_withdraw";
|
|
23
23
|
EPaymentRequestPath["PicoPayBkashNagadDeposit"] = "pico_pay_bkash_nagad_deposit";
|
|
24
24
|
EPaymentRequestPath["PicoPayBkashNagadWithdraw"] = "pico_pay_bkash_nagad_withdraw";
|
|
25
|
+
EPaymentRequestPath["PiqPayPkDeposit"] = "piq_pay_pk_deposit";
|
|
26
|
+
EPaymentRequestPath["PiqPayPkWithdraw"] = "piq_pay_pk_withdraw";
|
|
25
27
|
})(EPaymentRequestPath || (exports.EPaymentRequestPath = EPaymentRequestPath = {}));
|
|
26
28
|
// FlashPayUpiDeposit
|
|
27
29
|
var EPaymentStatusCode;
|
|
@@ -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;
|
|
@@ -112,6 +114,8 @@ export declare class Socket implements SocketInterface {
|
|
|
112
114
|
uid: string;
|
|
113
115
|
isActive: boolean;
|
|
114
116
|
}): boolean;
|
|
117
|
+
subscribeBonusBackgroundCard(props: BaseObservableSubscriber): boolean;
|
|
118
|
+
unsubscribeBonusBackgroundCard(uid: string): boolean;
|
|
115
119
|
subscribeCashBonuses(props: BaseObservableSubscriber & {
|
|
116
120
|
channelType?: CashBonusChannelType;
|
|
117
121
|
}): 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",
|
|
@@ -178,6 +171,8 @@ export interface SocketInterface {
|
|
|
178
171
|
uid: string;
|
|
179
172
|
isActive: boolean;
|
|
180
173
|
}) => boolean;
|
|
174
|
+
subscribeBonusBackgroundCard: (props: BaseObservableSubscriber) => boolean;
|
|
175
|
+
unsubscribeBonusBackgroundCard: (uid: string) => boolean;
|
|
181
176
|
subscribeCashBonuses: (props: BaseObservableSubscriber & {
|
|
182
177
|
channelType?: CashBonusChannelType;
|
|
183
178
|
}) => boolean;
|
|
@@ -214,6 +209,8 @@ export interface SocketInterface {
|
|
|
214
209
|
subscribeLotteryHistory: (props: SubscribeLotteryHistoryProps) => boolean;
|
|
215
210
|
subscribeLotteryAvailableForBuying: (props: SubscribeLotteryAvailableForBuyingProps) => boolean;
|
|
216
211
|
unsubscribeLotteriesHistoryEntities: (uid: string) => boolean;
|
|
212
|
+
subscribeBettingInfo: (props: BettingSubscribeInfo) => boolean;
|
|
213
|
+
unsubscribeBettingInfo: (uid: string) => boolean;
|
|
217
214
|
subscribeBettingStatus: (props: BaseObservableSubscriber) => boolean;
|
|
218
215
|
unsubscribeBettingStatus: (uid: string) => boolean;
|
|
219
216
|
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 = {}));
|
|
@@ -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
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ObservableEntity } from 'service/observableEntity';
|
|
2
|
+
import { UIService } from 'store/ui/service';
|
|
3
|
+
import { BonusOnDepositBackgroundCardService } from './service';
|
|
4
|
+
import { BaseObservableSubscriber, UpdateData } from 'service/observable/type';
|
|
5
|
+
export declare class BonusOnDepositBackgroundCard extends ObservableEntity<undefined> {
|
|
6
|
+
service: BonusOnDepositBackgroundCardService;
|
|
7
|
+
_settings: string | null;
|
|
8
|
+
_depositPath: string | null;
|
|
9
|
+
constructor(services: UIService);
|
|
10
|
+
set settings(settings: string);
|
|
11
|
+
get settings(): string | null;
|
|
12
|
+
set depositPath(path: string);
|
|
13
|
+
get depositPath(): string | null;
|
|
14
|
+
sendUpdateEntity(d: BaseObservableSubscriber & {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}): UpdateData | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIService } from 'store/ui/service';
|
|
2
|
+
import { BonusOnDepositBackgroundCard } from '.';
|
|
3
|
+
export declare class BonusOnDepositBackgroundCardService {
|
|
4
|
+
private readonly parent;
|
|
5
|
+
private readonly services;
|
|
6
|
+
constructor(parent: BonusOnDepositBackgroundCard, services: UIService);
|
|
7
|
+
getCustomBonusPath(path: string): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BonusOnDepositBackgroundCardService = void 0;
|
|
4
|
+
class BonusOnDepositBackgroundCardService {
|
|
5
|
+
constructor(parent, services) {
|
|
6
|
+
this.parent = parent;
|
|
7
|
+
this.services = services;
|
|
8
|
+
this.parent = parent;
|
|
9
|
+
this.services = services;
|
|
10
|
+
}
|
|
11
|
+
async getCustomBonusPath(path) {
|
|
12
|
+
try {
|
|
13
|
+
const response = await fetch(path, {
|
|
14
|
+
method: 'GET',
|
|
15
|
+
cache: 'no-cache',
|
|
16
|
+
headers: {
|
|
17
|
+
'Cache-Control': 'no-cache',
|
|
18
|
+
Pragma: 'no-cache',
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
if (!response.ok) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const data = (await response.json());
|
|
25
|
+
this.parent.depositPath = data.deposit;
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
console.error('🚀 ERROR WITH HOME CATEGORIES CONFIG', error);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.BonusOnDepositBackgroundCardService = BonusOnDepositBackgroundCardService;
|
|
@@ -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;
|
|
@@ -4,13 +4,15 @@ import { ObservableEntity } from 'service/observableEntity';
|
|
|
4
4
|
import { HomeBanners } from './home/entity/banners';
|
|
5
5
|
import { UIService } from './service';
|
|
6
6
|
import { UIEntitiesSettings } from './types';
|
|
7
|
+
import { BonusOnDepositBackgroundCard } from './Bonuses/Deposit';
|
|
7
8
|
export declare class UIEntities extends ObservableEntity<undefined> {
|
|
8
9
|
homePage: HomePage;
|
|
9
10
|
homeBanners: HomeBanners;
|
|
10
|
-
|
|
11
|
+
bonusOnDepositCard: BonusOnDepositBackgroundCard;
|
|
12
|
+
_settings: UIEntitiesSettings | null;
|
|
11
13
|
service: UIService;
|
|
12
14
|
constructor(uiSettings: UIEntitiesSettings, services: ResponseAdapterService);
|
|
13
15
|
updateCountryId(value: unknown): void;
|
|
14
16
|
set settings(settings: UIEntitiesSettings);
|
|
15
|
-
get settings(): UIEntitiesSettings;
|
|
17
|
+
get settings(): UIEntitiesSettings | null;
|
|
16
18
|
}
|
|
@@ -66,6 +66,7 @@ var PaymentChannelType;
|
|
|
66
66
|
PaymentChannelType[PaymentChannelType["NagadWellexPay"] = 77] = "NagadWellexPay";
|
|
67
67
|
PaymentChannelType[PaymentChannelType["PicPayBkashThree"] = 79] = "PicPayBkashThree";
|
|
68
68
|
PaymentChannelType[PaymentChannelType["PicPayBkashTwo"] = 80] = "PicPayBkashTwo";
|
|
69
|
+
PaymentChannelType[PaymentChannelType["PicPayPkr"] = 83] = "PicPayPkr";
|
|
69
70
|
// Pakistan
|
|
70
71
|
PaymentChannelType[PaymentChannelType["EasypaisaFast"] = 86] = "EasypaisaFast";
|
|
71
72
|
PaymentChannelType[PaymentChannelType["Easypaisa"] = 87] = "Easypaisa";
|