react-memory-optimization 0.0.1
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/README.md +0 -0
- package/dist/bundle.js +1 -0
- package/dist/lib/binary/constants/modules.d.ts +2 -0
- package/dist/lib/binary/constants/modules.js +685 -0
- package/dist/lib/binary/constants/requests.d.ts +2 -0
- package/dist/lib/binary/constants/requests.js +3065 -0
- package/dist/lib/binary/constants/scheme.d.ts +2 -0
- package/dist/lib/binary/constants/scheme.js +1548 -0
- package/dist/lib/binary/index.d.ts +81 -0
- package/dist/lib/binary/types.d.ts +287 -0
- package/dist/lib/binary/types.js +159 -0
- package/dist/lib/constants/pagination.d.ts +1 -0
- package/dist/lib/constants/pagination.js +4 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/service/experimental/index.d.ts +16 -0
- package/dist/lib/service/experimental/instaNews/index.d.ts +12 -0
- package/dist/lib/service/experimental/instaNews/types.d.ts +9 -0
- package/dist/lib/service/experimental/instaNews/types.js +2 -0
- package/dist/lib/service/experimental/jackpots/index.d.ts +21 -0
- package/dist/lib/service/experimental/jackpots/types.d.ts +38 -0
- package/dist/lib/service/experimental/jackpots/types.js +2 -0
- package/dist/lib/service/experimental/push/index.d.ts +7 -0
- package/dist/lib/service/experimental/service/index.d.ts +12 -0
- package/dist/lib/service/experimental/types.d.ts +21 -0
- package/dist/lib/service/experimental/types.js +2 -0
- package/dist/lib/service/moneyResponse/index.d.ts +8 -0
- package/dist/lib/service/moneyResponse/types.d.ts +101 -0
- package/dist/lib/service/moneyResponse/types.js +59 -0
- package/dist/lib/service/observable/index.d.ts +19 -0
- package/dist/lib/service/observable/type.d.ts +17 -0
- package/dist/lib/service/observable/type.js +2 -0
- package/dist/lib/service/observableEntity/index.d.ts +14 -0
- package/dist/lib/service/observableEntity/types.d.ts +7 -0
- package/dist/lib/service/observableEntity/types.js +2 -0
- package/dist/lib/service/responseAdapter/adapters.d.ts +80 -0
- package/dist/lib/service/responseAdapter/adapters.js +113 -0
- package/dist/lib/service/responseAdapter/constants.d.ts +1 -0
- package/dist/lib/service/responseAdapter/constants.js +4 -0
- package/dist/lib/service/responseAdapter/index.d.ts +41 -0
- package/dist/lib/service/responseAdapter/services/index.d.ts +12 -0
- package/dist/lib/service/responseAdapter/services/types.d.ts +7 -0
- package/dist/lib/service/responseAdapter/services/types.js +2 -0
- package/dist/lib/service/responseAdapter/types.d.ts +164 -0
- package/dist/lib/service/responseAdapter/types.js +12 -0
- package/dist/lib/service/responseAdapter/utils.d.ts +27 -0
- package/dist/lib/service/responseAdapter/utils.js +63 -0
- package/dist/lib/socket/index.d.ts +253 -0
- package/dist/lib/socket/methodTypes.d.ts +23 -0
- package/dist/lib/socket/methodTypes.js +2 -0
- package/dist/lib/socket/services.d.ts +39 -0
- package/dist/lib/socket/services.js +115 -0
- package/dist/lib/socket/types.d.ts +297 -0
- package/dist/lib/socket/types.js +83 -0
- package/dist/lib/store/betting/entities/betslip/index.d.ts +56 -0
- package/dist/lib/store/betting/entities/betslip/types.d.ts +200 -0
- package/dist/lib/store/betting/entities/betslip/types.js +62 -0
- package/dist/lib/store/betting/entities/categories/index.d.ts +20 -0
- package/dist/lib/store/betting/entities/categories/types.d.ts +41 -0
- package/dist/lib/store/betting/entities/categories/types.js +2 -0
- package/dist/lib/store/betting/entities/events/index.d.ts +41 -0
- package/dist/lib/store/betting/entities/events/live/index.d.ts +56 -0
- package/dist/lib/store/betting/entities/events/live/types.d.ts +116 -0
- package/dist/lib/store/betting/entities/events/live/types.js +2 -0
- package/dist/lib/store/betting/entities/events/prematch/index.d.ts +44 -0
- package/dist/lib/store/betting/entities/events/prematch/types.d.ts +66 -0
- package/dist/lib/store/betting/entities/events/prematch/types.js +2 -0
- package/dist/lib/store/betting/entities/events/top/index.d.ts +7 -0
- package/dist/lib/store/betting/entities/events/top/types.d.ts +5 -0
- package/dist/lib/store/betting/entities/events/top/types.js +2 -0
- package/dist/lib/store/betting/entities/events/types.d.ts +255 -0
- package/dist/lib/store/betting/entities/events/types.js +84 -0
- package/dist/lib/store/betting/entities/events/utils.d.ts +11 -0
- package/dist/lib/store/betting/entities/events/utils.js +184 -0
- package/dist/lib/store/betting/entities/markets/index.d.ts +22 -0
- package/dist/lib/store/betting/entities/markets/types.d.ts +115 -0
- package/dist/lib/store/betting/entities/markets/types.js +22 -0
- package/dist/lib/store/betting/entities/sports/index.d.ts +20 -0
- package/dist/lib/store/betting/entities/sports/types.d.ts +62 -0
- package/dist/lib/store/betting/entities/sports/types.js +37 -0
- package/dist/lib/store/betting/entities/tickets/index.d.ts +26 -0
- package/dist/lib/store/betting/entities/tickets/types.d.ts +105 -0
- package/dist/lib/store/betting/entities/tickets/types.js +16 -0
- package/dist/lib/store/betting/entities/tournaments/index.d.ts +30 -0
- package/dist/lib/store/betting/entities/tournaments/types.d.ts +69 -0
- package/dist/lib/store/betting/entities/tournaments/types.js +2 -0
- package/dist/lib/store/betting/index.d.ts +45 -0
- package/dist/lib/store/betting/services/constants.d.ts +1 -0
- package/dist/lib/store/betting/services/constants.js +11 -0
- package/dist/lib/store/betting/services/index.d.ts +311 -0
- package/dist/lib/store/betting/services/types.d.ts +42 -0
- package/dist/lib/store/betting/services/types.js +9 -0
- package/dist/lib/store/betting/services/utils.d.ts +6 -0
- package/dist/lib/store/betting/services/utils.js +73 -0
- package/dist/lib/store/betting/types.d.ts +44 -0
- package/dist/lib/store/betting/types.js +2 -0
- package/dist/lib/store/casino/entities/casinoTournaments/index.d.ts +43 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/constants.d.ts +2 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/constants.js +11 -0
- package/dist/lib/store/casino/entities/casinoTournaments/service/index.d.ts +18 -0
- package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +134 -0
- package/dist/lib/store/casino/entities/casinoTournaments/types.js +10 -0
- package/dist/lib/store/casino/entities/categories/index.d.ts +33 -0
- package/dist/lib/store/casino/entities/categories/types.d.ts +152 -0
- package/dist/lib/store/casino/entities/categories/types.js +23 -0
- package/dist/lib/store/casino/entities/games/index.d.ts +32 -0
- package/dist/lib/store/casino/entities/games/types.d.ts +128 -0
- package/dist/lib/store/casino/entities/games/types.js +17 -0
- package/dist/lib/store/casino/entities/jackpots/constants.d.ts +14 -0
- package/dist/lib/store/casino/entities/jackpots/constants.js +17 -0
- package/dist/lib/store/casino/entities/jackpots/index.d.ts +23 -0
- package/dist/lib/store/casino/entities/jackpots/types.d.ts +48 -0
- package/dist/lib/store/casino/entities/jackpots/types.js +9 -0
- package/dist/lib/store/casino/entities/lastWinners/index.d.ts +23 -0
- package/dist/lib/store/casino/entities/lastWinners/types.d.ts +14 -0
- package/dist/lib/store/casino/entities/lastWinners/types.js +2 -0
- package/dist/lib/store/casino/entities/providers/index.d.ts +32 -0
- package/dist/lib/store/casino/entities/providers/types.d.ts +45 -0
- package/dist/lib/store/casino/entities/providers/types.js +2 -0
- package/dist/lib/store/casino/index.d.ts +30 -0
- package/dist/lib/store/casino/services/constants.d.ts +4 -0
- package/dist/lib/store/casino/services/constants.js +22 -0
- package/dist/lib/store/casino/services/index.d.ts +67 -0
- package/dist/lib/store/casino/types.d.ts +50 -0
- package/dist/lib/store/casino/types.js +27 -0
- package/dist/lib/store/lottery/entities/freeCash/index.d.ts +20 -0
- package/dist/lib/store/lottery/entities/freeCash/types.d.ts +34 -0
- package/dist/lib/store/lottery/entities/freeCash/types.js +2 -0
- package/dist/lib/store/lottery/entities/history/index.d.ts +19 -0
- package/dist/lib/store/lottery/entities/history/types.d.ts +49 -0
- package/dist/lib/store/lottery/entities/history/types.js +16 -0
- package/dist/lib/store/lottery/entities/instantCash/index.d.ts +20 -0
- package/dist/lib/store/lottery/entities/instantCash/types.d.ts +22 -0
- package/dist/lib/store/lottery/entities/instantCash/types.js +2 -0
- package/dist/lib/store/lottery/index.d.ts +27 -0
- package/dist/lib/store/lottery/services/index.d.ts +24 -0
- package/dist/lib/store/lottery/types.d.ts +53 -0
- package/dist/lib/store/lottery/types.js +9 -0
- package/dist/lib/store/notifications/types.d.ts +17 -0
- package/dist/lib/store/notifications/types.js +21 -0
- package/dist/lib/store/operations/entities/activeBonuses/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/activeBonuses/types.d.ts +8 -0
- package/dist/lib/store/operations/entities/activeBonuses/types.js +3 -0
- package/dist/lib/store/operations/entities/availableBonuses/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/availableBonuses/types.d.ts +8 -0
- package/dist/lib/store/operations/entities/availableBonuses/types.js +3 -0
- package/dist/lib/store/operations/entities/cashBonuses/index.d.ts +49 -0
- package/dist/lib/store/operations/entities/cashBonuses/types.d.ts +3 -0
- package/dist/lib/store/operations/entities/cashBonuses/types.js +2 -0
- package/dist/lib/store/operations/entities/casinoHistory/index.d.ts +18 -0
- package/dist/lib/store/operations/entities/casinoHistory/types.d.ts +15 -0
- package/dist/lib/store/operations/entities/casinoHistory/types.js +2 -0
- package/dist/lib/store/operations/entities/payments/index.d.ts +31 -0
- package/dist/lib/store/operations/entities/referralOperations/index.d.ts +11 -0
- package/dist/lib/store/operations/entities/tournaments/constants.d.ts +2 -0
- package/dist/lib/store/operations/entities/tournaments/constants.js +8 -0
- package/dist/lib/store/operations/entities/tournaments/index.d.ts +24 -0
- package/dist/lib/store/operations/entities/tournaments/types.d.ts +9 -0
- package/dist/lib/store/operations/entities/tournaments/types.js +2 -0
- package/dist/lib/store/operations/entities/vipClub/cosntants.d.ts +3 -0
- package/dist/lib/store/operations/entities/vipClub/cosntants.js +21 -0
- package/dist/lib/store/operations/entities/vipClub/index.d.ts +64 -0
- package/dist/lib/store/operations/entities/vipClub/types.d.ts +31 -0
- package/dist/lib/store/operations/entities/vipClub/types.js +2 -0
- package/dist/lib/store/operations/index.d.ts +49 -0
- package/dist/lib/store/operations/services/index.d.ts +17 -0
- package/dist/lib/store/operations/types.d.ts +245 -0
- package/dist/lib/store/operations/types.js +80 -0
- package/dist/lib/store/operations/utils.d.ts +3 -0
- package/dist/lib/store/operations/utils.js +65 -0
- package/dist/lib/store/user/constants.d.ts +31 -0
- package/dist/lib/store/user/constants.js +1173 -0
- package/dist/lib/store/user/entities/avatar/constants.d.ts +2 -0
- package/dist/lib/store/user/entities/avatar/constants.js +75 -0
- package/dist/lib/store/user/entities/avatar/index.d.ts +28 -0
- package/dist/lib/store/user/entities/avatar/types.d.ts +30 -0
- package/dist/lib/store/user/entities/avatar/types.js +2 -0
- package/dist/lib/store/user/entities/balance/index.d.ts +25 -0
- package/dist/lib/store/user/entities/balance/types.d.ts +29 -0
- package/dist/lib/store/user/entities/balance/types.js +2 -0
- package/dist/lib/store/user/entities/bonusWheel/constants.d.ts +1 -0
- package/dist/lib/store/user/entities/bonusWheel/constants.js +7 -0
- package/dist/lib/store/user/entities/bonusWheel/index.d.ts +17 -0
- package/dist/lib/store/user/entities/bonusWheel/types.d.ts +7 -0
- package/dist/lib/store/user/entities/bonusWheel/types.js +2 -0
- package/dist/lib/store/user/entities/daily/index.d.ts +20 -0
- package/dist/lib/store/user/entities/daily/types.d.ts +21 -0
- package/dist/lib/store/user/entities/daily/types.js +2 -0
- package/dist/lib/store/user/entities/favorites/constants.d.ts +2 -0
- package/dist/lib/store/user/entities/favorites/constants.js +32 -0
- package/dist/lib/store/user/entities/favorites/index.d.ts +27 -0
- package/dist/lib/store/user/entities/favorites/types.d.ts +122 -0
- package/dist/lib/store/user/entities/favorites/types.js +2 -0
- package/dist/lib/store/user/entities/hamster/constant.d.ts +10 -0
- package/dist/lib/store/user/entities/hamster/constant.js +39 -0
- package/dist/lib/store/user/entities/hamster/index.d.ts +21 -0
- package/dist/lib/store/user/entities/hamster/types.d.ts +28 -0
- package/dist/lib/store/user/entities/hamster/types.js +2 -0
- package/dist/lib/store/user/entities/lootBox/constants.d.ts +8 -0
- package/dist/lib/store/user/entities/lootBox/constants.js +26 -0
- package/dist/lib/store/user/entities/lootBox/index.d.ts +39 -0
- package/dist/lib/store/user/entities/lootBox/types.d.ts +10 -0
- package/dist/lib/store/user/entities/lootBox/types.js +2 -0
- package/dist/lib/store/user/entities/promoCode/index.d.ts +8 -0
- package/dist/lib/store/user/entities/promoCode/type.d.ts +19 -0
- package/dist/lib/store/user/entities/promoCode/type.js +15 -0
- package/dist/lib/store/user/entities/referral/index.d.ts +30 -0
- package/dist/lib/store/user/entities/referral/types.d.ts +26 -0
- package/dist/lib/store/user/entities/referral/types.js +8 -0
- package/dist/lib/store/user/index.d.ts +59 -0
- package/dist/lib/store/user/services/index.d.ts +31 -0
- package/dist/lib/store/user/services/types.d.ts +4 -0
- package/dist/lib/store/user/services/types.js +2 -0
- package/dist/lib/store/user/services/utils.d.ts +4 -0
- package/dist/lib/store/user/services/utils.js +10 -0
- package/dist/lib/store/user/types.d.ts +270 -0
- package/dist/lib/store/user/types.js +180 -0
- package/dist/lib/store/user/utils.d.ts +4 -0
- package/dist/lib/store/user/utils.js +22 -0
- package/dist/lib/utils/betting.d.ts +4 -0
- package/dist/lib/utils/betting.js +93 -0
- package/dist/lib/utils/casino.d.ts +1 -0
- package/dist/lib/utils/casino.js +6 -0
- package/dist/lib/utils/pagination.d.ts +2 -0
- package/dist/lib/utils/pagination.js +25 -0
- package/dist/lib/utils/shader.d.ts +16 -0
- package/dist/lib/utils/shader.js +27 -0
- package/package.json +63 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SocketServices = void 0;
|
|
4
|
+
const types_1 = require("store/betting/entities/betslip/types");
|
|
5
|
+
const types_2 = require("binary/types");
|
|
6
|
+
class SocketServices {
|
|
7
|
+
constructor(parent) {
|
|
8
|
+
this.parent = parent;
|
|
9
|
+
}
|
|
10
|
+
getPlaceBetData() {
|
|
11
|
+
this.parent.transport.betting.betSlip.setBetSlipHardStatus(types_1.EPlaceBetStatus.Sending);
|
|
12
|
+
const bets = Object.values(this.parent.transport.betting.betSlip.bets);
|
|
13
|
+
const express = this.parent.transport.betting.betSlip.services.getBetByBetUid(types_1.ECustomBetUid.Express);
|
|
14
|
+
const system = this.parent.transport.betting.betSlip.services.getBetByBetUid(types_1.ECustomBetUid.System);
|
|
15
|
+
const requestId = 0;
|
|
16
|
+
const ticketId = 0;
|
|
17
|
+
// cashout data
|
|
18
|
+
const outputStake = 0 * 100;
|
|
19
|
+
const remainingStake = 0 * 100;
|
|
20
|
+
const cashoutChangeTypeSetting = 0;
|
|
21
|
+
const couponData = 4; // place betslip - if i WANT cashout I need to send 0;
|
|
22
|
+
const device = 1;
|
|
23
|
+
// bb
|
|
24
|
+
const betBuilderBetsNumber = 0;
|
|
25
|
+
const betBuilderStake = 0 * 100;
|
|
26
|
+
const balanceType = 0; // main or bonus ( three times )
|
|
27
|
+
const betBuilderOdd = Math.ceil(0 * 1000);
|
|
28
|
+
const systemRang = (system === null || system === void 0 ? void 0 : system.activeSystemRange) || 0;
|
|
29
|
+
const systemStake = (+(system === null || system === void 0 ? void 0 : system.stake) || 0) * 100;
|
|
30
|
+
const expressStake = +((express === null || express === void 0 ? void 0 : express.stake) || 0) * 100;
|
|
31
|
+
const stake = 0;
|
|
32
|
+
const oddChangesType = 0;
|
|
33
|
+
const isTinder = 0;
|
|
34
|
+
const isAlternativeStakeAllowed = 0;
|
|
35
|
+
const byte = 0;
|
|
36
|
+
const bettingInstance = this.parent.transport.betting;
|
|
37
|
+
const eventsInstance = bettingInstance.events;
|
|
38
|
+
const sendedBets = express || system ? bets : bets.filter((b) => b.stake);
|
|
39
|
+
const ordinarLength = sendedBets.length;
|
|
40
|
+
const ordinarBets = sendedBets.map((bet) => {
|
|
41
|
+
const { isPrematch, eventUid, lineUid, outcomeId } = bet;
|
|
42
|
+
const event = eventsInstance.services.getEvents(isPrematch).events[eventUid];
|
|
43
|
+
if (!event) {
|
|
44
|
+
console.error('EVENT NOT FOUND STOP ANY UPDATE ACTIONS ! BET SLIP ERROR');
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const line = event.lines[lineUid];
|
|
48
|
+
if (!line) {
|
|
49
|
+
console.error('EVENT NOT FOUND STOP ANY UPDATE ACTIONS ! BET SLIP ERROR');
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const lineCompoundKey = bettingInstance.bettingServices.createCompoundKey(line, event, line.specValues);
|
|
53
|
+
const lineTypeRadar = line.lineTypeRadar;
|
|
54
|
+
const { odd } = eventsInstance.services.getOdd({
|
|
55
|
+
isPrematch,
|
|
56
|
+
eventUid,
|
|
57
|
+
lineUid,
|
|
58
|
+
outcomeId,
|
|
59
|
+
});
|
|
60
|
+
if (!odd) {
|
|
61
|
+
console.error('ODD NOT FOUND STOP ANY UPDATE ACTIONS ! BET SLIP ERROR');
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const stake = bet.stake;
|
|
65
|
+
return {
|
|
66
|
+
lineCompoundKey,
|
|
67
|
+
lineTypeRadar,
|
|
68
|
+
outcomeId,
|
|
69
|
+
odd: Math.ceil(odd * 1000),
|
|
70
|
+
stake: +stake * 100,
|
|
71
|
+
balanceType,
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
const betBuilderBets = [];
|
|
75
|
+
// this.parent.transport.betting.betSlip.setToOrdinarBetsQueue(ordinarBets);
|
|
76
|
+
return {
|
|
77
|
+
requestId,
|
|
78
|
+
ticketId,
|
|
79
|
+
outputStake,
|
|
80
|
+
remainingStake,
|
|
81
|
+
expressStake,
|
|
82
|
+
cashoutChangeTypeSetting,
|
|
83
|
+
couponData,
|
|
84
|
+
device,
|
|
85
|
+
betBuilderBetsNumber,
|
|
86
|
+
betBuilderStake,
|
|
87
|
+
balanceType,
|
|
88
|
+
betBuilderOdd,
|
|
89
|
+
ordinarLength,
|
|
90
|
+
systemRang,
|
|
91
|
+
systemStake,
|
|
92
|
+
stake,
|
|
93
|
+
oddChangesType,
|
|
94
|
+
isTinder,
|
|
95
|
+
isAlternativeStakeAllowed,
|
|
96
|
+
byte,
|
|
97
|
+
ordinarBets,
|
|
98
|
+
betBuilderBets,
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
getCashOutTicketInfo(props) {
|
|
102
|
+
const { ticketId, outputStake, remainingStake } = props;
|
|
103
|
+
const requestId = types_2.ERequestIds.CashOut;
|
|
104
|
+
const cashOutChangeTypeSetting = 0;
|
|
105
|
+
return {
|
|
106
|
+
requestId,
|
|
107
|
+
ticketId,
|
|
108
|
+
outputStake: outputStake * 100,
|
|
109
|
+
remainingStake: remainingStake * 100,
|
|
110
|
+
cashoutChangeTypeSetting: cashOutChangeTypeSetting,
|
|
111
|
+
typeMultiBet: 0, // coupon or cashout
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.SocketServices = SocketServices;
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { SubscribeSportInfoBySportIdProps, SubscribeSportsProps } from '../store/betting/entities/sports/types';
|
|
2
|
+
import { SubscriberCategoriesProps, SubscriberCategoryProps } from '../store/betting/entities/categories/types';
|
|
3
|
+
import { SubscribeBettingTopTournamentsProps, SubscribeBettingTournamentsByCategoryIdOrSportIdProps, SubscribeBettingTournamentsByIdProps } from '../store/betting/entities/tournaments/types';
|
|
4
|
+
import { SubscribeCountryInfoProps, SubscribeMinDepositInfoProps, SubscribeUserCurrencyInfoProps, SubscribeUserStateProps } from '../store/user/types';
|
|
5
|
+
import { CashOutTicketProps, SubscribeComposeTransactionsProps } from './methodTypes';
|
|
6
|
+
import { SubscribeBettingStatusProps } from '../store/betting/types';
|
|
7
|
+
import { SubscribeBettingEventsByTournamentIdProps, SubscribeBettingTopEventsProps, SubscribeEventDetailsMarketTabs, SubscribeEventDetailsMarketsByGroupIdProps, SubscribeEventEntitiesProps, SubscribeEventShortInfoProps, SubscribeLineEntitiesProps, SubscribeOdd } from '../store/betting/entities/events/types';
|
|
8
|
+
import { SubscribeLiveScoreProps } from '../store/betting/entities/events/live/types';
|
|
9
|
+
import { AddBetProps, RemoveBetProps, SetBetSlipStakeProps, SubscribeBetSlipBaseProps, SubscribeBetSlipMaxToWinProps, SubscribeBettingBetSlipCounterProps, SubscribeSelectedOdd, SubscribeSpecialBetOdd } from '../store/betting/entities/betslip/types';
|
|
10
|
+
import { SubscribeCasinoCategoriesHomePageProps, SubscribeCasinoCategoriesProps, SubscribeCasinoSubCategoriesProps } from 'store/casino/entities/categories/types';
|
|
11
|
+
import { SubscribeCasinoGameInfoSetting, SubscribeCasinoGameSetting, SubscribeCasinoProviderGamesSetting, SubscribeGameDemoModeProps } from 'store/casino/entities/games/types';
|
|
12
|
+
import { ObservableProviderGameCountSetting, ObservableProviderInfoSetting, ObservableProvidersSetting } from 'store/casino/entities/providers/types';
|
|
13
|
+
import { PrepareFavoriteEntitiesForSavingProps, SubscribeFavoriteGameProps, SubscribeFavoriteGamesProps } from 'store/user/entities/favorites/types';
|
|
14
|
+
import { SubscribeFilterMarketNamesProps, SubscribeFilterMarketsProps } from 'store/betting/entities/markets/types';
|
|
15
|
+
import { SubscribeHistoryTicketsInfoProps, SubscribeTicketInfoProps, SubscribeTicketsProps } from 'store/betting/entities/tickets/types';
|
|
16
|
+
import { SubscribeCasinoLastWinnersProps } from 'store/casino/entities/lastWinners/types';
|
|
17
|
+
import { SubscribeFreeCashTickets } from 'store/lottery/entities/freeCash/types';
|
|
18
|
+
import { SubscribeInstantTickets } from 'store/lottery/entities/instantCash/types';
|
|
19
|
+
import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
|
|
20
|
+
import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
|
|
21
|
+
import { BaseObservableSubscriber } from 'service/observable/type';
|
|
22
|
+
import { ExperimentalFeatures } from 'service/experimental';
|
|
23
|
+
import { AvatarType, BuyAvatarProps } from 'store/user/entities/avatar/types';
|
|
24
|
+
import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
|
|
25
|
+
import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
|
|
26
|
+
import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
|
|
27
|
+
import { TournamentSettings, TournamentSubscribeProps } from 'store/casino/entities/casinoTournaments/types';
|
|
28
|
+
import { JackpotSettings, JackpotSubscribes } from 'store/casino/entities/jackpots/types';
|
|
29
|
+
import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
|
|
30
|
+
export declare enum ESocketCallbackStep {
|
|
31
|
+
Unknown = 0,
|
|
32
|
+
Init = 1,
|
|
33
|
+
Connected = 2,
|
|
34
|
+
Error = 3,
|
|
35
|
+
Close = 4,
|
|
36
|
+
Kill = 5,
|
|
37
|
+
Reconnection = 6,
|
|
38
|
+
SchemeNotFound = 7,
|
|
39
|
+
DecodedInfo = 8
|
|
40
|
+
}
|
|
41
|
+
export interface ISocketSettings {
|
|
42
|
+
socketUrl: string;
|
|
43
|
+
language: string;
|
|
44
|
+
casinoSettings: TCasinoSettings;
|
|
45
|
+
bettingSettings: TBettingSettings;
|
|
46
|
+
appType: number;
|
|
47
|
+
isDevMode?: boolean;
|
|
48
|
+
socketCallback: (step: ESocketCallbackStep) => void;
|
|
49
|
+
decodedDataCallback: (step: string, result?: any) => void;
|
|
50
|
+
referralBaseUrl: string;
|
|
51
|
+
token: string;
|
|
52
|
+
}
|
|
53
|
+
export type TCasinoSettings = {
|
|
54
|
+
casinoCategoryUrls: [string, string];
|
|
55
|
+
isVertical: boolean;
|
|
56
|
+
customPath?: string;
|
|
57
|
+
webp: boolean;
|
|
58
|
+
tournaments: TournamentSettings;
|
|
59
|
+
jackpot: JackpotSettings;
|
|
60
|
+
};
|
|
61
|
+
export type TBettingSettings = {
|
|
62
|
+
pathname: string;
|
|
63
|
+
inHouseBattlePaths: {
|
|
64
|
+
mobileActive: string;
|
|
65
|
+
desktopActive: string;
|
|
66
|
+
mobileInactive: string;
|
|
67
|
+
desktopInactive: string;
|
|
68
|
+
};
|
|
69
|
+
providerBasePath: string;
|
|
70
|
+
};
|
|
71
|
+
export declare enum ERequestCommand {
|
|
72
|
+
GetLotteries = "client_lotteries",
|
|
73
|
+
BuyLottery = "bet_lottery_ticket",
|
|
74
|
+
HistoryLottery = "betlotteries",
|
|
75
|
+
AuthByToken = "clienttoken",
|
|
76
|
+
AuthByLogin = "clientlogin",
|
|
77
|
+
UserData = "betlogin",
|
|
78
|
+
GeoProviders = "client_slotegrator_geo_provider",
|
|
79
|
+
LogOut = "clientlogout",
|
|
80
|
+
DemoInit = "client_slotegrator_demo_init",
|
|
81
|
+
GameInit = "bet_slotegrator_game_init",
|
|
82
|
+
Registration = "clientregister",
|
|
83
|
+
ClientSms = "clientsms",
|
|
84
|
+
ClientSmsEmail = "clientsms_email",
|
|
85
|
+
BetBitoloDeposit = "bet_bitolo_create_deposit",
|
|
86
|
+
BetPaykassmaActiveOne = "bet_paykassma_deposit_active_step1",
|
|
87
|
+
PaykassmaDepositActiveTwo = "bet_paykassma_deposit_active_step2",
|
|
88
|
+
PaykassmaCreateWithdraw = "bet_paykassma_create_withdraw",
|
|
89
|
+
BetInstaPaysCreateWithdraw = "bet_instapays_create_withdraw",
|
|
90
|
+
BetPayAnindaCreateWithdraw = "bet_payaninda_create_withdraw",
|
|
91
|
+
BitoloWithdraw = "bet_bitolo_create_withdraw",
|
|
92
|
+
BetPayheraCreateWithdraw = "bet_payhera_create_withdraw",
|
|
93
|
+
UserTag = "client_utm_content",
|
|
94
|
+
BetHistory = "bethistory",
|
|
95
|
+
BetGameFlow = "betgameflow",
|
|
96
|
+
BetOperation = "betoperation",
|
|
97
|
+
ClientCodePass = "clientcodepass",
|
|
98
|
+
BetCancelPayment = "betcancelpayment",
|
|
99
|
+
RequestMax = "betlimits",
|
|
100
|
+
ExtraLines = "extralines",
|
|
101
|
+
MultiTicket = "multiticket",
|
|
102
|
+
ClientPsw = "clientnewpass",
|
|
103
|
+
СlientСode = "clientcode",
|
|
104
|
+
BetPaykassmaDeposit = "bet_paykassma_create_deposit",
|
|
105
|
+
BetInstapaysCreateDeposit = "bet_instapays_create_deposit",
|
|
106
|
+
BetPayAnindaCreateDeposit = "bet_payaninda_create_deposit",
|
|
107
|
+
BetPayfixCreateDeposit = "bet_payfix_create_deposit",
|
|
108
|
+
BetPayheraCreateDeposit = "bet_payhera_create_deposit",
|
|
109
|
+
CurrencyProvider = "client_slotegrator_currency_provider",
|
|
110
|
+
GetUserGeoAndCurrency = "client_slotegrator_geo_currency",
|
|
111
|
+
SendBets = "multiticket",
|
|
112
|
+
ClientTournament = "client_casino_tournament",
|
|
113
|
+
ClientSettings = "clientfavorites",
|
|
114
|
+
BetPagsmileDep = "bet_pagsmile_create_deposit",
|
|
115
|
+
BetPagsmileWithdraw = "bet_pagsmile_create_withdraw",
|
|
116
|
+
BetManual = "bet_manual_deposit",
|
|
117
|
+
BetBonusPack = "betbonuspack",
|
|
118
|
+
TournamentUserInfo = "client_place",
|
|
119
|
+
BetLoyaltyPage = "bet_loyality_page",
|
|
120
|
+
StartBetting = "startbet",
|
|
121
|
+
StopBetting = "stopbet",
|
|
122
|
+
RublesDeposit = "bet_payment_create_deposit",
|
|
123
|
+
BetPaymentCreateWithdraw = "bet_payment_create_withdraw",
|
|
124
|
+
BetPaymentCreateDeposit = "bet_payment_create_deposit"
|
|
125
|
+
}
|
|
126
|
+
export type SendCommand = (key: string, data: {
|
|
127
|
+
[key: string]: string | number | any[];
|
|
128
|
+
}) => void;
|
|
129
|
+
export type CallbackStatus = (t: string, r?: any) => void;
|
|
130
|
+
export interface SocketInterface {
|
|
131
|
+
experimentalFeatures: ExperimentalFeatures;
|
|
132
|
+
init: () => void;
|
|
133
|
+
sendCommand: SendCommand;
|
|
134
|
+
subscribeEntity: (method: () => boolean) => boolean;
|
|
135
|
+
logout: () => void;
|
|
136
|
+
subscribeCountryInfo: (props: SubscribeCountryInfoProps) => boolean;
|
|
137
|
+
subscribeMinDepOdd: (props: SubscribeMinDepositInfoProps) => boolean;
|
|
138
|
+
subscribeUserCurrencyInfo: (props: SubscribeUserCurrencyInfoProps) => boolean;
|
|
139
|
+
subscribeUserState: (props: SubscribeUserStateProps) => boolean;
|
|
140
|
+
subscribeUserInfo: (props: SubscribeUserStateProps) => boolean;
|
|
141
|
+
unsubscribeUserEntity: (uid: string) => boolean;
|
|
142
|
+
subscribeBalanceInfo: (props: BaseObservableSubscriber) => boolean;
|
|
143
|
+
subscribeBonusBalanceCoins: (props: BaseObservableSubscriber) => boolean;
|
|
144
|
+
unsubscribeBalanceEntity: (uid: string) => boolean;
|
|
145
|
+
subscribeCasinoCategoryInfo: (props: any) => boolean;
|
|
146
|
+
unsubscribeCasinoCategoryEntity: (uid: string) => boolean;
|
|
147
|
+
subscribeJackpotsEntity: (props: JackpotSubscribes) => boolean;
|
|
148
|
+
unsubscribeJackpotsEntity: (uid: string) => boolean;
|
|
149
|
+
subscribeCasinoCategoriesHomePage: (props: SubscribeCasinoCategoriesHomePageProps) => boolean;
|
|
150
|
+
subscribeCasinoCategories: (props: SubscribeCasinoCategoriesProps) => boolean;
|
|
151
|
+
subscribeCasinoSubCategories: (props: SubscribeCasinoSubCategoriesProps) => boolean;
|
|
152
|
+
subscribeCasinoGames: (data: SubscribeCasinoGameSetting) => boolean;
|
|
153
|
+
unsubscribeCasinoGames: (id: string) => boolean;
|
|
154
|
+
subscribeCasinoGameInfo: (data: SubscribeCasinoGameInfoSetting) => boolean;
|
|
155
|
+
unsubscribeCasinoGameInfo: (id: string) => boolean;
|
|
156
|
+
subscribeProviderGames: (props: SubscribeCasinoProviderGamesSetting) => boolean;
|
|
157
|
+
unsubscribeProviderGames: (uid: string) => boolean;
|
|
158
|
+
subscribeGameDemoMode: (props: SubscribeGameDemoModeProps) => boolean;
|
|
159
|
+
unsubscribeGameDemoMode: (uid: string) => boolean;
|
|
160
|
+
subscribeCasinoProviders: (props: BaseObservableSubscriber | ObservableProvidersSetting | ObservableProviderInfoSetting | ObservableProviderGameCountSetting) => boolean;
|
|
161
|
+
unsubscribeCasinoProviders: (uid: string) => boolean;
|
|
162
|
+
subscribeCasinoBattles: (props: TournamentSubscribeProps) => boolean;
|
|
163
|
+
unsubscribeCasinoBattles: (uid: string) => boolean;
|
|
164
|
+
subscribeCasinoLastWinners: (props: SubscribeCasinoLastWinnersProps) => boolean;
|
|
165
|
+
unsubscribeCasinoLastWinnerEntities: (uid: string) => boolean;
|
|
166
|
+
subscribeCasinoGameHistory: (config: CasinoHistoryGamesSubscriber) => boolean;
|
|
167
|
+
unsubscribeCasinoGameHistory: (uid: string) => boolean;
|
|
168
|
+
subscribeTransactions: (config: SubscribeComposeTransactionsProps) => boolean;
|
|
169
|
+
unsubscribeTransactions: (uid: string) => boolean;
|
|
170
|
+
subscribeVipClubEntities: (config: BaseObservableSubscriber & UpdateVipClubEntityKey) => boolean;
|
|
171
|
+
unsubscribeVipClubEntities: (uid: string) => boolean;
|
|
172
|
+
subscribeVipClubOperations: (data: BaseObservableSubscriber & UpdateVipClubEntityKey) => boolean;
|
|
173
|
+
unsubscribeVipClubOperations: (uid: string) => boolean;
|
|
174
|
+
subscribeBonuses: (data: BaseObservableSubscriber & {
|
|
175
|
+
isActive: boolean;
|
|
176
|
+
}) => boolean;
|
|
177
|
+
unsubscribeBonuses: (data: {
|
|
178
|
+
uid: string;
|
|
179
|
+
isActive: boolean;
|
|
180
|
+
}) => boolean;
|
|
181
|
+
subscribeCashBonuses: (props: BaseObservableSubscriber & {
|
|
182
|
+
channelType?: CashBonusChannelType;
|
|
183
|
+
}) => boolean;
|
|
184
|
+
unsubscribeCashBonuses: (uid: string) => void;
|
|
185
|
+
subscribeTournamentBonuses: (props: BaseObservableSubscriber & {
|
|
186
|
+
isActive: boolean;
|
|
187
|
+
}) => boolean;
|
|
188
|
+
unsubscribeTournamentBonuses: (uid: string) => void;
|
|
189
|
+
subscribeIsFavoriteGame: (props: SubscribeFavoriteGameProps) => boolean;
|
|
190
|
+
subscribeFavoriteGames: (props: SubscribeFavoriteGamesProps) => boolean;
|
|
191
|
+
saveToFavoriteEntities: (data: PrepareFavoriteEntitiesForSavingProps) => void;
|
|
192
|
+
unsubscribeFavoriteEntity: (uid: string) => void;
|
|
193
|
+
handleSaveUserAvatar: (props: null | AvatarType) => void;
|
|
194
|
+
handleBuyAvatar: (props: BuyAvatarProps) => void;
|
|
195
|
+
subscribeUserAvatar: (props: BaseObservableSubscriber) => void;
|
|
196
|
+
subscribeUserAvatars: (props: BaseObservableSubscriber) => void;
|
|
197
|
+
unsubscribeAvatar: (uid: string) => void;
|
|
198
|
+
getLootBoxResult: (bet: number) => void;
|
|
199
|
+
getLootBoxGameSettings: () => void;
|
|
200
|
+
getWheelItems: () => number[];
|
|
201
|
+
getWheelResult: () => {
|
|
202
|
+
value: number;
|
|
203
|
+
result: number;
|
|
204
|
+
};
|
|
205
|
+
subscribeReferralLink: (props: BaseObservableSubscriber) => void;
|
|
206
|
+
subscribeReferralBalance: (props: BaseObservableSubscriber) => void;
|
|
207
|
+
subscribeReferralClient: (props: BaseObservableSubscriber) => void;
|
|
208
|
+
referralWithdraw: (amount: number) => void;
|
|
209
|
+
unsubscribeReferralEntity: (uid: string) => void;
|
|
210
|
+
boostEnergy: () => void;
|
|
211
|
+
handleBuyHero: (props: BuyHeroAvatar) => void;
|
|
212
|
+
changeCoins: (sellCoins: number, receiveCoins: number) => void;
|
|
213
|
+
subscribeHamster: (props: BaseObservableSubscriber) => void;
|
|
214
|
+
unsubscribeHamster: (uid: string) => void;
|
|
215
|
+
setActiveDailyTask: (id: string) => void;
|
|
216
|
+
subscribeDailyTasks: (props: BaseObservableSubscriber) => void;
|
|
217
|
+
subscribeActiveDailyTask: (props: BaseObservableSubscriber) => void;
|
|
218
|
+
unsubscribeDailyTasks: (uid: string) => void;
|
|
219
|
+
handleActivateCode: (code: string) => void;
|
|
220
|
+
subscribeLotteryFreeCash: (props: SubscribeFreeCashTickets) => boolean;
|
|
221
|
+
unsubscribeLotteryFreeCash: (uid: string) => boolean;
|
|
222
|
+
subscribeLotteryInstantCash: (props: SubscribeInstantTickets) => boolean;
|
|
223
|
+
unsubscribeLotteryInstantCashEntity: (uid: string) => boolean;
|
|
224
|
+
subscribeBuyTicketInfo: (props: SubscribeBuyTicketInfoProps) => boolean;
|
|
225
|
+
unsubscribeBuyTicketInfo: (uid: string) => boolean;
|
|
226
|
+
subscribeLotteryHistory: (props: SubscribeLotteryHistoryProps) => boolean;
|
|
227
|
+
subscribeLotteryAvailableForBuying: (props: SubscribeLotteryAvailableForBuyingProps) => boolean;
|
|
228
|
+
unsubscribeLotteriesHistoryEntities: (uid: string) => boolean;
|
|
229
|
+
subscribeBettingStatus: (props: SubscribeBettingStatusProps) => boolean;
|
|
230
|
+
unsubscribeBettingStatus: (uid: string) => boolean;
|
|
231
|
+
subscribeBettingSettingsStatus: (props: SubscribeBettingStatusProps) => boolean;
|
|
232
|
+
unsubscribeBettingSettingsStatus: (uid: string) => boolean;
|
|
233
|
+
subscribeOdd: (props: SubscribeOdd) => void;
|
|
234
|
+
unsubscribeOdd: (uid: string, isPrematch: boolean) => void;
|
|
235
|
+
subscribeBettingTopTournaments: (props: SubscribeBettingTopTournamentsProps) => boolean;
|
|
236
|
+
unsubscribeBettingTopTournaments: (uid: string) => boolean;
|
|
237
|
+
subscribeBettingTournamentsByCategoryIdOrSportId: (props: SubscribeBettingTournamentsByCategoryIdOrSportIdProps) => boolean;
|
|
238
|
+
unsubscribeBettingTournamentsByCategoryIdOrSportId: (uid: string) => boolean;
|
|
239
|
+
subscribeBettingTournamentById: (props: SubscribeBettingTournamentsByIdProps) => void;
|
|
240
|
+
unsubscribeBettingTournamentById: (uid: string) => void;
|
|
241
|
+
subscribeBettingTopEvents: (props: SubscribeBettingTopEventsProps) => boolean;
|
|
242
|
+
unsubscribeBettingTopEvents: (uid: string) => boolean;
|
|
243
|
+
subscribeSports: (props: SubscribeSportsProps) => boolean;
|
|
244
|
+
subscribeSportInfoBySportId: (props: SubscribeSportInfoBySportIdProps) => boolean;
|
|
245
|
+
unsubscribeSportEntities: (uid: string) => boolean;
|
|
246
|
+
subscribeBettingCategories: (props: SubscriberCategoriesProps) => boolean;
|
|
247
|
+
unsubscribeBettingCategories: (uid: string) => boolean;
|
|
248
|
+
subscribeCategoryById: (props: SubscriberCategoryProps) => boolean;
|
|
249
|
+
unsubscribeCategoryById: (uid: string) => boolean;
|
|
250
|
+
subscribeEventsByTournamentId: (props: SubscribeBettingEventsByTournamentIdProps) => boolean;
|
|
251
|
+
unsubscribeEventsByTournamentId: (uid: string) => boolean;
|
|
252
|
+
subscribeEventEntities: (props: SubscribeEventEntitiesProps) => boolean;
|
|
253
|
+
unsubscribeEventEntities: (uid: string, isPrematch: boolean) => boolean;
|
|
254
|
+
subscribeEventScore: (props: SubscribeLiveScoreProps) => boolean;
|
|
255
|
+
unsubscribeEventScore: (uid: string) => boolean;
|
|
256
|
+
subscribeShortEventInfo: (props: SubscribeEventShortInfoProps) => boolean;
|
|
257
|
+
unsubscribeShortEventInfo: (uid: string, isPrematch: boolean) => boolean;
|
|
258
|
+
subscribeEventDetailsMarketTabs: (props: SubscribeEventDetailsMarketTabs) => boolean;
|
|
259
|
+
unsubscribeEventDetailsMarketTabs: (uid: string, isPrematch: boolean) => boolean;
|
|
260
|
+
subscribeEventDetailsMarketsByGroupId: (props: SubscribeEventDetailsMarketsByGroupIdProps) => boolean;
|
|
261
|
+
unsubscribeEventDetailsMarketsByGroupId: (uid: string, isPrematch: boolean) => boolean;
|
|
262
|
+
subscribeLineEntities: (props: SubscribeLineEntitiesProps) => boolean;
|
|
263
|
+
unsubscribeLineEntities: (uid: string, isPrematch: boolean) => boolean;
|
|
264
|
+
subscribeCashOutTickets: (props: SubscribeTicketsProps) => boolean;
|
|
265
|
+
subscribeInGameLiveTickets: (props: SubscribeTicketsProps) => boolean;
|
|
266
|
+
subscribeInGameTickets: (props: SubscribeTicketsProps) => boolean;
|
|
267
|
+
subscribeTicketInfo: (props: SubscribeTicketInfoProps) => boolean;
|
|
268
|
+
subscribeHistoryTickets: (props: SubscribeHistoryTicketsInfoProps) => boolean;
|
|
269
|
+
unsubscribeTicketsEntity: (uid: string) => boolean;
|
|
270
|
+
ticketCashOut: (props: CashOutTicketProps) => void;
|
|
271
|
+
subscribeBettingBetSlipCounter: (props: SubscribeBettingBetSlipCounterProps) => boolean;
|
|
272
|
+
subscribeSelectedOdd: (props: SubscribeSelectedOdd) => boolean;
|
|
273
|
+
subscribeBetSlipBets: (props: SubscribeBetSlipBaseProps) => boolean;
|
|
274
|
+
subscribeBetSlipStatus: (props: SubscribeBetSlipBaseProps) => void;
|
|
275
|
+
subscribeBetSlipShortInfo: (props: SubscribeBetSlipBaseProps) => void;
|
|
276
|
+
subscribeBetSlipMaxToWin: (props: SubscribeBetSlipMaxToWinProps) => void;
|
|
277
|
+
subscribeSpecialBetOdd: (props: SubscribeSpecialBetOdd) => void;
|
|
278
|
+
subscribeBetSlipBetsAmount: (props: Omit<SubscribeBetSlipBaseProps, 'betUid'>) => void;
|
|
279
|
+
unsubscribeBetSlipEntities: (uid: string) => void;
|
|
280
|
+
addBet: (props: AddBetProps) => boolean;
|
|
281
|
+
removeBet: (props: RemoveBetProps) => boolean;
|
|
282
|
+
removeAllBets: () => boolean;
|
|
283
|
+
placeBetSlip: () => boolean;
|
|
284
|
+
acceptErrors: () => boolean;
|
|
285
|
+
setSystemRang: (rang: number) => boolean;
|
|
286
|
+
setBetSlipStake: (props: SetBetSlipStakeProps) => boolean;
|
|
287
|
+
subscribeFilterMarkets: (props: SubscribeFilterMarketsProps) => void;
|
|
288
|
+
unsubscribeFilterMarkets: (uid: string) => void;
|
|
289
|
+
subscribeFilterMarketNames: (props: SubscribeFilterMarketNamesProps) => void;
|
|
290
|
+
unsubscribeFilterMarketNames: (uid: string) => void;
|
|
291
|
+
}
|
|
292
|
+
export declare enum ERequestStatus {
|
|
293
|
+
Unknown = 0,
|
|
294
|
+
Requesting = 1,
|
|
295
|
+
Success = 2,
|
|
296
|
+
Rejected = 3
|
|
297
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERequestStatus = exports.ERequestCommand = exports.ESocketCallbackStep = void 0;
|
|
4
|
+
var ESocketCallbackStep;
|
|
5
|
+
(function (ESocketCallbackStep) {
|
|
6
|
+
ESocketCallbackStep[ESocketCallbackStep["Unknown"] = 0] = "Unknown";
|
|
7
|
+
ESocketCallbackStep[ESocketCallbackStep["Init"] = 1] = "Init";
|
|
8
|
+
ESocketCallbackStep[ESocketCallbackStep["Connected"] = 2] = "Connected";
|
|
9
|
+
ESocketCallbackStep[ESocketCallbackStep["Error"] = 3] = "Error";
|
|
10
|
+
ESocketCallbackStep[ESocketCallbackStep["Close"] = 4] = "Close";
|
|
11
|
+
ESocketCallbackStep[ESocketCallbackStep["Kill"] = 5] = "Kill";
|
|
12
|
+
ESocketCallbackStep[ESocketCallbackStep["Reconnection"] = 6] = "Reconnection";
|
|
13
|
+
ESocketCallbackStep[ESocketCallbackStep["SchemeNotFound"] = 7] = "SchemeNotFound";
|
|
14
|
+
ESocketCallbackStep[ESocketCallbackStep["DecodedInfo"] = 8] = "DecodedInfo";
|
|
15
|
+
})(ESocketCallbackStep || (exports.ESocketCallbackStep = ESocketCallbackStep = {}));
|
|
16
|
+
var ERequestCommand;
|
|
17
|
+
(function (ERequestCommand) {
|
|
18
|
+
ERequestCommand["GetLotteries"] = "client_lotteries";
|
|
19
|
+
ERequestCommand["BuyLottery"] = "bet_lottery_ticket";
|
|
20
|
+
ERequestCommand["HistoryLottery"] = "betlotteries";
|
|
21
|
+
ERequestCommand["AuthByToken"] = "clienttoken";
|
|
22
|
+
ERequestCommand["AuthByLogin"] = "clientlogin";
|
|
23
|
+
ERequestCommand["UserData"] = "betlogin";
|
|
24
|
+
ERequestCommand["GeoProviders"] = "client_slotegrator_geo_provider";
|
|
25
|
+
ERequestCommand["LogOut"] = "clientlogout";
|
|
26
|
+
ERequestCommand["DemoInit"] = "client_slotegrator_demo_init";
|
|
27
|
+
ERequestCommand["GameInit"] = "bet_slotegrator_game_init";
|
|
28
|
+
ERequestCommand["Registration"] = "clientregister";
|
|
29
|
+
ERequestCommand["ClientSms"] = "clientsms";
|
|
30
|
+
ERequestCommand["ClientSmsEmail"] = "clientsms_email";
|
|
31
|
+
ERequestCommand["BetBitoloDeposit"] = "bet_bitolo_create_deposit";
|
|
32
|
+
ERequestCommand["BetPaykassmaActiveOne"] = "bet_paykassma_deposit_active_step1";
|
|
33
|
+
ERequestCommand["PaykassmaDepositActiveTwo"] = "bet_paykassma_deposit_active_step2";
|
|
34
|
+
ERequestCommand["PaykassmaCreateWithdraw"] = "bet_paykassma_create_withdraw";
|
|
35
|
+
ERequestCommand["BetInstaPaysCreateWithdraw"] = "bet_instapays_create_withdraw";
|
|
36
|
+
ERequestCommand["BetPayAnindaCreateWithdraw"] = "bet_payaninda_create_withdraw";
|
|
37
|
+
ERequestCommand["BitoloWithdraw"] = "bet_bitolo_create_withdraw";
|
|
38
|
+
ERequestCommand["BetPayheraCreateWithdraw"] = "bet_payhera_create_withdraw";
|
|
39
|
+
ERequestCommand["UserTag"] = "client_utm_content";
|
|
40
|
+
ERequestCommand["BetHistory"] = "bethistory";
|
|
41
|
+
ERequestCommand["BetGameFlow"] = "betgameflow";
|
|
42
|
+
ERequestCommand["BetOperation"] = "betoperation";
|
|
43
|
+
ERequestCommand["ClientCodePass"] = "clientcodepass";
|
|
44
|
+
ERequestCommand["BetCancelPayment"] = "betcancelpayment";
|
|
45
|
+
ERequestCommand["RequestMax"] = "betlimits";
|
|
46
|
+
ERequestCommand["ExtraLines"] = "extralines";
|
|
47
|
+
// TODO FIX IT SendBets
|
|
48
|
+
ERequestCommand["MultiTicket"] = "multiticket";
|
|
49
|
+
ERequestCommand["ClientPsw"] = "clientnewpass";
|
|
50
|
+
ERequestCommand["\u0421lient\u0421ode"] = "clientcode";
|
|
51
|
+
ERequestCommand["BetPaykassmaDeposit"] = "bet_paykassma_create_deposit";
|
|
52
|
+
ERequestCommand["BetInstapaysCreateDeposit"] = "bet_instapays_create_deposit";
|
|
53
|
+
ERequestCommand["BetPayAnindaCreateDeposit"] = "bet_payaninda_create_deposit";
|
|
54
|
+
ERequestCommand["BetPayfixCreateDeposit"] = "bet_payfix_create_deposit";
|
|
55
|
+
ERequestCommand["BetPayheraCreateDeposit"] = "bet_payhera_create_deposit";
|
|
56
|
+
ERequestCommand["CurrencyProvider"] = "client_slotegrator_currency_provider";
|
|
57
|
+
ERequestCommand["GetUserGeoAndCurrency"] = "client_slotegrator_geo_currency";
|
|
58
|
+
// TODO FIX IT MultiTicket
|
|
59
|
+
ERequestCommand["SendBets"] = "multiticket";
|
|
60
|
+
ERequestCommand["ClientTournament"] = "client_casino_tournament";
|
|
61
|
+
// TODO walletxPay rename
|
|
62
|
+
ERequestCommand["ClientSettings"] = "clientfavorites";
|
|
63
|
+
ERequestCommand["BetPagsmileDep"] = "bet_pagsmile_create_deposit";
|
|
64
|
+
ERequestCommand["BetPagsmileWithdraw"] = "bet_pagsmile_create_withdraw";
|
|
65
|
+
ERequestCommand["BetManual"] = "bet_manual_deposit";
|
|
66
|
+
ERequestCommand["BetBonusPack"] = "betbonuspack";
|
|
67
|
+
ERequestCommand["TournamentUserInfo"] = "client_place";
|
|
68
|
+
ERequestCommand["BetLoyaltyPage"] = "bet_loyality_page";
|
|
69
|
+
ERequestCommand["StartBetting"] = "startbet";
|
|
70
|
+
ERequestCommand["StopBetting"] = "stopbet";
|
|
71
|
+
// Rubles
|
|
72
|
+
ERequestCommand["RublesDeposit"] = "bet_payment_create_deposit";
|
|
73
|
+
ERequestCommand["BetPaymentCreateWithdraw"] = "bet_payment_create_withdraw";
|
|
74
|
+
ERequestCommand["BetPaymentCreateDeposit"] = "bet_payment_create_deposit";
|
|
75
|
+
})(ERequestCommand || (exports.ERequestCommand = ERequestCommand = {}));
|
|
76
|
+
// ============== END MARKETS ==============
|
|
77
|
+
var ERequestStatus;
|
|
78
|
+
(function (ERequestStatus) {
|
|
79
|
+
ERequestStatus[ERequestStatus["Unknown"] = 0] = "Unknown";
|
|
80
|
+
ERequestStatus[ERequestStatus["Requesting"] = 1] = "Requesting";
|
|
81
|
+
ERequestStatus[ERequestStatus["Success"] = 2] = "Success";
|
|
82
|
+
ERequestStatus[ERequestStatus["Rejected"] = 3] = "Rejected";
|
|
83
|
+
})(ERequestStatus || (exports.ERequestStatus = ERequestStatus = {}));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BettingServices } from '../../services';
|
|
2
|
+
import { Observable } from '../../../../service/observable';
|
|
3
|
+
import { Bets, CreateBetUidProps, SubscribeBettingBetSlipCounterProps, BetSlipObservableSettings, AddBetProps, RemoveBetProps, SubscribeSelectedOdd, SetBetSlipStakeProps, SubscribeBetSlipBaseProps, SetMaxLimitProps, SubscribeBetSlipMaxToWinProps, EPlaceBetStatus, BetSlipResponse, EBetState, ExpressBet, SystemBet, SubscribeSpecialBetOdd } from './types';
|
|
4
|
+
import { UpdateEvents } from '../events/types';
|
|
5
|
+
export declare class BetSlip {
|
|
6
|
+
services: BettingServices;
|
|
7
|
+
observableSettings: BetSlipObservableSettings;
|
|
8
|
+
betSlipObservable: Observable;
|
|
9
|
+
bets: Bets;
|
|
10
|
+
betSlipHardStatus: undefined | EPlaceBetStatus;
|
|
11
|
+
express: null | ExpressBet;
|
|
12
|
+
system: null | SystemBet;
|
|
13
|
+
keys: {
|
|
14
|
+
bets: string;
|
|
15
|
+
express: string;
|
|
16
|
+
system: string;
|
|
17
|
+
};
|
|
18
|
+
constructor(services: BettingServices);
|
|
19
|
+
private getBetUid;
|
|
20
|
+
updateEventEntities({ prematchEvents, liveEvents }: UpdateEvents): void;
|
|
21
|
+
isSelectedOdd(info: CreateBetUidProps & {
|
|
22
|
+
outcomeId: number;
|
|
23
|
+
lineUid: string;
|
|
24
|
+
}): boolean;
|
|
25
|
+
setBetState(betUid: string, state: EBetState): void;
|
|
26
|
+
setMaxLimit(result: SetMaxLimitProps): void;
|
|
27
|
+
setBetSlipHardStatus(status: undefined | EPlaceBetStatus): void;
|
|
28
|
+
betSlipResponse(result: BetSlipResponse): void;
|
|
29
|
+
resetBetsError(): void;
|
|
30
|
+
private toggleExpress;
|
|
31
|
+
private toggleSystem;
|
|
32
|
+
addBet(props: AddBetProps): void;
|
|
33
|
+
removeBet(props: RemoveBetProps): void;
|
|
34
|
+
removeAllBets(): void;
|
|
35
|
+
setStake({ betUid, stake }: SetBetSlipStakeProps): void;
|
|
36
|
+
setSystemRang(rang: number): void;
|
|
37
|
+
private updateCounter;
|
|
38
|
+
private updateIsSelectedOdd;
|
|
39
|
+
private updateBets;
|
|
40
|
+
private updateBetsStatus;
|
|
41
|
+
private updateBetSlipShortInfo;
|
|
42
|
+
private updateMaxLimitInfo;
|
|
43
|
+
updateBet(settingUid: string): void;
|
|
44
|
+
private updateSpecialBetOdd;
|
|
45
|
+
private updateBetSliPAmount;
|
|
46
|
+
sendUpdates(): void;
|
|
47
|
+
subscribeBettingBetSlipCounter({ uid, callback, }: SubscribeBettingBetSlipCounterProps): void;
|
|
48
|
+
subscribeSelectedOdd(props: SubscribeSelectedOdd): void;
|
|
49
|
+
subscribeBetSlipBets(props: SubscribeBetSlipBaseProps): void;
|
|
50
|
+
subscribeBetSlipStatus(props: SubscribeBetSlipBaseProps): void;
|
|
51
|
+
subscribeBetSlipShortInfo(props: SubscribeBetSlipBaseProps): void;
|
|
52
|
+
subscribeBetSlipMaxToWin(props: SubscribeBetSlipMaxToWinProps): void;
|
|
53
|
+
subscribeSpecialBetOdd(props: SubscribeSpecialBetOdd): void;
|
|
54
|
+
subscribeBetSlipBetsAmount({ uid, callback, }: Omit<SubscribeBetSlipBaseProps, 'betUid'>): void;
|
|
55
|
+
unsubscribeBetSlipEntities(uid: string): void;
|
|
56
|
+
}
|