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.
Files changed (227) hide show
  1. package/README.md +0 -0
  2. package/dist/bundle.js +1 -0
  3. package/dist/lib/binary/constants/modules.d.ts +2 -0
  4. package/dist/lib/binary/constants/modules.js +685 -0
  5. package/dist/lib/binary/constants/requests.d.ts +2 -0
  6. package/dist/lib/binary/constants/requests.js +3065 -0
  7. package/dist/lib/binary/constants/scheme.d.ts +2 -0
  8. package/dist/lib/binary/constants/scheme.js +1548 -0
  9. package/dist/lib/binary/index.d.ts +81 -0
  10. package/dist/lib/binary/types.d.ts +287 -0
  11. package/dist/lib/binary/types.js +159 -0
  12. package/dist/lib/constants/pagination.d.ts +1 -0
  13. package/dist/lib/constants/pagination.js +4 -0
  14. package/dist/lib/index.d.ts +3 -0
  15. package/dist/lib/service/experimental/index.d.ts +16 -0
  16. package/dist/lib/service/experimental/instaNews/index.d.ts +12 -0
  17. package/dist/lib/service/experimental/instaNews/types.d.ts +9 -0
  18. package/dist/lib/service/experimental/instaNews/types.js +2 -0
  19. package/dist/lib/service/experimental/jackpots/index.d.ts +21 -0
  20. package/dist/lib/service/experimental/jackpots/types.d.ts +38 -0
  21. package/dist/lib/service/experimental/jackpots/types.js +2 -0
  22. package/dist/lib/service/experimental/push/index.d.ts +7 -0
  23. package/dist/lib/service/experimental/service/index.d.ts +12 -0
  24. package/dist/lib/service/experimental/types.d.ts +21 -0
  25. package/dist/lib/service/experimental/types.js +2 -0
  26. package/dist/lib/service/moneyResponse/index.d.ts +8 -0
  27. package/dist/lib/service/moneyResponse/types.d.ts +101 -0
  28. package/dist/lib/service/moneyResponse/types.js +59 -0
  29. package/dist/lib/service/observable/index.d.ts +19 -0
  30. package/dist/lib/service/observable/type.d.ts +17 -0
  31. package/dist/lib/service/observable/type.js +2 -0
  32. package/dist/lib/service/observableEntity/index.d.ts +14 -0
  33. package/dist/lib/service/observableEntity/types.d.ts +7 -0
  34. package/dist/lib/service/observableEntity/types.js +2 -0
  35. package/dist/lib/service/responseAdapter/adapters.d.ts +80 -0
  36. package/dist/lib/service/responseAdapter/adapters.js +113 -0
  37. package/dist/lib/service/responseAdapter/constants.d.ts +1 -0
  38. package/dist/lib/service/responseAdapter/constants.js +4 -0
  39. package/dist/lib/service/responseAdapter/index.d.ts +41 -0
  40. package/dist/lib/service/responseAdapter/services/index.d.ts +12 -0
  41. package/dist/lib/service/responseAdapter/services/types.d.ts +7 -0
  42. package/dist/lib/service/responseAdapter/services/types.js +2 -0
  43. package/dist/lib/service/responseAdapter/types.d.ts +164 -0
  44. package/dist/lib/service/responseAdapter/types.js +12 -0
  45. package/dist/lib/service/responseAdapter/utils.d.ts +27 -0
  46. package/dist/lib/service/responseAdapter/utils.js +63 -0
  47. package/dist/lib/socket/index.d.ts +253 -0
  48. package/dist/lib/socket/methodTypes.d.ts +23 -0
  49. package/dist/lib/socket/methodTypes.js +2 -0
  50. package/dist/lib/socket/services.d.ts +39 -0
  51. package/dist/lib/socket/services.js +115 -0
  52. package/dist/lib/socket/types.d.ts +297 -0
  53. package/dist/lib/socket/types.js +83 -0
  54. package/dist/lib/store/betting/entities/betslip/index.d.ts +56 -0
  55. package/dist/lib/store/betting/entities/betslip/types.d.ts +200 -0
  56. package/dist/lib/store/betting/entities/betslip/types.js +62 -0
  57. package/dist/lib/store/betting/entities/categories/index.d.ts +20 -0
  58. package/dist/lib/store/betting/entities/categories/types.d.ts +41 -0
  59. package/dist/lib/store/betting/entities/categories/types.js +2 -0
  60. package/dist/lib/store/betting/entities/events/index.d.ts +41 -0
  61. package/dist/lib/store/betting/entities/events/live/index.d.ts +56 -0
  62. package/dist/lib/store/betting/entities/events/live/types.d.ts +116 -0
  63. package/dist/lib/store/betting/entities/events/live/types.js +2 -0
  64. package/dist/lib/store/betting/entities/events/prematch/index.d.ts +44 -0
  65. package/dist/lib/store/betting/entities/events/prematch/types.d.ts +66 -0
  66. package/dist/lib/store/betting/entities/events/prematch/types.js +2 -0
  67. package/dist/lib/store/betting/entities/events/top/index.d.ts +7 -0
  68. package/dist/lib/store/betting/entities/events/top/types.d.ts +5 -0
  69. package/dist/lib/store/betting/entities/events/top/types.js +2 -0
  70. package/dist/lib/store/betting/entities/events/types.d.ts +255 -0
  71. package/dist/lib/store/betting/entities/events/types.js +84 -0
  72. package/dist/lib/store/betting/entities/events/utils.d.ts +11 -0
  73. package/dist/lib/store/betting/entities/events/utils.js +184 -0
  74. package/dist/lib/store/betting/entities/markets/index.d.ts +22 -0
  75. package/dist/lib/store/betting/entities/markets/types.d.ts +115 -0
  76. package/dist/lib/store/betting/entities/markets/types.js +22 -0
  77. package/dist/lib/store/betting/entities/sports/index.d.ts +20 -0
  78. package/dist/lib/store/betting/entities/sports/types.d.ts +62 -0
  79. package/dist/lib/store/betting/entities/sports/types.js +37 -0
  80. package/dist/lib/store/betting/entities/tickets/index.d.ts +26 -0
  81. package/dist/lib/store/betting/entities/tickets/types.d.ts +105 -0
  82. package/dist/lib/store/betting/entities/tickets/types.js +16 -0
  83. package/dist/lib/store/betting/entities/tournaments/index.d.ts +30 -0
  84. package/dist/lib/store/betting/entities/tournaments/types.d.ts +69 -0
  85. package/dist/lib/store/betting/entities/tournaments/types.js +2 -0
  86. package/dist/lib/store/betting/index.d.ts +45 -0
  87. package/dist/lib/store/betting/services/constants.d.ts +1 -0
  88. package/dist/lib/store/betting/services/constants.js +11 -0
  89. package/dist/lib/store/betting/services/index.d.ts +311 -0
  90. package/dist/lib/store/betting/services/types.d.ts +42 -0
  91. package/dist/lib/store/betting/services/types.js +9 -0
  92. package/dist/lib/store/betting/services/utils.d.ts +6 -0
  93. package/dist/lib/store/betting/services/utils.js +73 -0
  94. package/dist/lib/store/betting/types.d.ts +44 -0
  95. package/dist/lib/store/betting/types.js +2 -0
  96. package/dist/lib/store/casino/entities/casinoTournaments/index.d.ts +43 -0
  97. package/dist/lib/store/casino/entities/casinoTournaments/service/constants.d.ts +2 -0
  98. package/dist/lib/store/casino/entities/casinoTournaments/service/constants.js +11 -0
  99. package/dist/lib/store/casino/entities/casinoTournaments/service/index.d.ts +18 -0
  100. package/dist/lib/store/casino/entities/casinoTournaments/types.d.ts +134 -0
  101. package/dist/lib/store/casino/entities/casinoTournaments/types.js +10 -0
  102. package/dist/lib/store/casino/entities/categories/index.d.ts +33 -0
  103. package/dist/lib/store/casino/entities/categories/types.d.ts +152 -0
  104. package/dist/lib/store/casino/entities/categories/types.js +23 -0
  105. package/dist/lib/store/casino/entities/games/index.d.ts +32 -0
  106. package/dist/lib/store/casino/entities/games/types.d.ts +128 -0
  107. package/dist/lib/store/casino/entities/games/types.js +17 -0
  108. package/dist/lib/store/casino/entities/jackpots/constants.d.ts +14 -0
  109. package/dist/lib/store/casino/entities/jackpots/constants.js +17 -0
  110. package/dist/lib/store/casino/entities/jackpots/index.d.ts +23 -0
  111. package/dist/lib/store/casino/entities/jackpots/types.d.ts +48 -0
  112. package/dist/lib/store/casino/entities/jackpots/types.js +9 -0
  113. package/dist/lib/store/casino/entities/lastWinners/index.d.ts +23 -0
  114. package/dist/lib/store/casino/entities/lastWinners/types.d.ts +14 -0
  115. package/dist/lib/store/casino/entities/lastWinners/types.js +2 -0
  116. package/dist/lib/store/casino/entities/providers/index.d.ts +32 -0
  117. package/dist/lib/store/casino/entities/providers/types.d.ts +45 -0
  118. package/dist/lib/store/casino/entities/providers/types.js +2 -0
  119. package/dist/lib/store/casino/index.d.ts +30 -0
  120. package/dist/lib/store/casino/services/constants.d.ts +4 -0
  121. package/dist/lib/store/casino/services/constants.js +22 -0
  122. package/dist/lib/store/casino/services/index.d.ts +67 -0
  123. package/dist/lib/store/casino/types.d.ts +50 -0
  124. package/dist/lib/store/casino/types.js +27 -0
  125. package/dist/lib/store/lottery/entities/freeCash/index.d.ts +20 -0
  126. package/dist/lib/store/lottery/entities/freeCash/types.d.ts +34 -0
  127. package/dist/lib/store/lottery/entities/freeCash/types.js +2 -0
  128. package/dist/lib/store/lottery/entities/history/index.d.ts +19 -0
  129. package/dist/lib/store/lottery/entities/history/types.d.ts +49 -0
  130. package/dist/lib/store/lottery/entities/history/types.js +16 -0
  131. package/dist/lib/store/lottery/entities/instantCash/index.d.ts +20 -0
  132. package/dist/lib/store/lottery/entities/instantCash/types.d.ts +22 -0
  133. package/dist/lib/store/lottery/entities/instantCash/types.js +2 -0
  134. package/dist/lib/store/lottery/index.d.ts +27 -0
  135. package/dist/lib/store/lottery/services/index.d.ts +24 -0
  136. package/dist/lib/store/lottery/types.d.ts +53 -0
  137. package/dist/lib/store/lottery/types.js +9 -0
  138. package/dist/lib/store/notifications/types.d.ts +17 -0
  139. package/dist/lib/store/notifications/types.js +21 -0
  140. package/dist/lib/store/operations/entities/activeBonuses/index.d.ts +18 -0
  141. package/dist/lib/store/operations/entities/activeBonuses/types.d.ts +8 -0
  142. package/dist/lib/store/operations/entities/activeBonuses/types.js +3 -0
  143. package/dist/lib/store/operations/entities/availableBonuses/index.d.ts +18 -0
  144. package/dist/lib/store/operations/entities/availableBonuses/types.d.ts +8 -0
  145. package/dist/lib/store/operations/entities/availableBonuses/types.js +3 -0
  146. package/dist/lib/store/operations/entities/cashBonuses/index.d.ts +49 -0
  147. package/dist/lib/store/operations/entities/cashBonuses/types.d.ts +3 -0
  148. package/dist/lib/store/operations/entities/cashBonuses/types.js +2 -0
  149. package/dist/lib/store/operations/entities/casinoHistory/index.d.ts +18 -0
  150. package/dist/lib/store/operations/entities/casinoHistory/types.d.ts +15 -0
  151. package/dist/lib/store/operations/entities/casinoHistory/types.js +2 -0
  152. package/dist/lib/store/operations/entities/payments/index.d.ts +31 -0
  153. package/dist/lib/store/operations/entities/referralOperations/index.d.ts +11 -0
  154. package/dist/lib/store/operations/entities/tournaments/constants.d.ts +2 -0
  155. package/dist/lib/store/operations/entities/tournaments/constants.js +8 -0
  156. package/dist/lib/store/operations/entities/tournaments/index.d.ts +24 -0
  157. package/dist/lib/store/operations/entities/tournaments/types.d.ts +9 -0
  158. package/dist/lib/store/operations/entities/tournaments/types.js +2 -0
  159. package/dist/lib/store/operations/entities/vipClub/cosntants.d.ts +3 -0
  160. package/dist/lib/store/operations/entities/vipClub/cosntants.js +21 -0
  161. package/dist/lib/store/operations/entities/vipClub/index.d.ts +64 -0
  162. package/dist/lib/store/operations/entities/vipClub/types.d.ts +31 -0
  163. package/dist/lib/store/operations/entities/vipClub/types.js +2 -0
  164. package/dist/lib/store/operations/index.d.ts +49 -0
  165. package/dist/lib/store/operations/services/index.d.ts +17 -0
  166. package/dist/lib/store/operations/types.d.ts +245 -0
  167. package/dist/lib/store/operations/types.js +80 -0
  168. package/dist/lib/store/operations/utils.d.ts +3 -0
  169. package/dist/lib/store/operations/utils.js +65 -0
  170. package/dist/lib/store/user/constants.d.ts +31 -0
  171. package/dist/lib/store/user/constants.js +1173 -0
  172. package/dist/lib/store/user/entities/avatar/constants.d.ts +2 -0
  173. package/dist/lib/store/user/entities/avatar/constants.js +75 -0
  174. package/dist/lib/store/user/entities/avatar/index.d.ts +28 -0
  175. package/dist/lib/store/user/entities/avatar/types.d.ts +30 -0
  176. package/dist/lib/store/user/entities/avatar/types.js +2 -0
  177. package/dist/lib/store/user/entities/balance/index.d.ts +25 -0
  178. package/dist/lib/store/user/entities/balance/types.d.ts +29 -0
  179. package/dist/lib/store/user/entities/balance/types.js +2 -0
  180. package/dist/lib/store/user/entities/bonusWheel/constants.d.ts +1 -0
  181. package/dist/lib/store/user/entities/bonusWheel/constants.js +7 -0
  182. package/dist/lib/store/user/entities/bonusWheel/index.d.ts +17 -0
  183. package/dist/lib/store/user/entities/bonusWheel/types.d.ts +7 -0
  184. package/dist/lib/store/user/entities/bonusWheel/types.js +2 -0
  185. package/dist/lib/store/user/entities/daily/index.d.ts +20 -0
  186. package/dist/lib/store/user/entities/daily/types.d.ts +21 -0
  187. package/dist/lib/store/user/entities/daily/types.js +2 -0
  188. package/dist/lib/store/user/entities/favorites/constants.d.ts +2 -0
  189. package/dist/lib/store/user/entities/favorites/constants.js +32 -0
  190. package/dist/lib/store/user/entities/favorites/index.d.ts +27 -0
  191. package/dist/lib/store/user/entities/favorites/types.d.ts +122 -0
  192. package/dist/lib/store/user/entities/favorites/types.js +2 -0
  193. package/dist/lib/store/user/entities/hamster/constant.d.ts +10 -0
  194. package/dist/lib/store/user/entities/hamster/constant.js +39 -0
  195. package/dist/lib/store/user/entities/hamster/index.d.ts +21 -0
  196. package/dist/lib/store/user/entities/hamster/types.d.ts +28 -0
  197. package/dist/lib/store/user/entities/hamster/types.js +2 -0
  198. package/dist/lib/store/user/entities/lootBox/constants.d.ts +8 -0
  199. package/dist/lib/store/user/entities/lootBox/constants.js +26 -0
  200. package/dist/lib/store/user/entities/lootBox/index.d.ts +39 -0
  201. package/dist/lib/store/user/entities/lootBox/types.d.ts +10 -0
  202. package/dist/lib/store/user/entities/lootBox/types.js +2 -0
  203. package/dist/lib/store/user/entities/promoCode/index.d.ts +8 -0
  204. package/dist/lib/store/user/entities/promoCode/type.d.ts +19 -0
  205. package/dist/lib/store/user/entities/promoCode/type.js +15 -0
  206. package/dist/lib/store/user/entities/referral/index.d.ts +30 -0
  207. package/dist/lib/store/user/entities/referral/types.d.ts +26 -0
  208. package/dist/lib/store/user/entities/referral/types.js +8 -0
  209. package/dist/lib/store/user/index.d.ts +59 -0
  210. package/dist/lib/store/user/services/index.d.ts +31 -0
  211. package/dist/lib/store/user/services/types.d.ts +4 -0
  212. package/dist/lib/store/user/services/types.js +2 -0
  213. package/dist/lib/store/user/services/utils.d.ts +4 -0
  214. package/dist/lib/store/user/services/utils.js +10 -0
  215. package/dist/lib/store/user/types.d.ts +270 -0
  216. package/dist/lib/store/user/types.js +180 -0
  217. package/dist/lib/store/user/utils.d.ts +4 -0
  218. package/dist/lib/store/user/utils.js +22 -0
  219. package/dist/lib/utils/betting.d.ts +4 -0
  220. package/dist/lib/utils/betting.js +93 -0
  221. package/dist/lib/utils/casino.d.ts +1 -0
  222. package/dist/lib/utils/casino.js +6 -0
  223. package/dist/lib/utils/pagination.d.ts +2 -0
  224. package/dist/lib/utils/pagination.js +25 -0
  225. package/dist/lib/utils/shader.d.ts +16 -0
  226. package/dist/lib/utils/shader.js +27 -0
  227. package/package.json +63 -0
@@ -0,0 +1,164 @@
1
+ import { Ticket } from 'store/betting/entities/tickets/types';
2
+ import { ERequestIds, ICurrency, ITopEvent } from '../../binary/types';
3
+ import { Operation } from '../../store/operations/types';
4
+ import { LotteryResponseHistoryTicket, LotteryTicket } from 'store/lottery/types';
5
+ import { ResponseHistoryTicket } from 'store/lottery/entities/history/types';
6
+ import { BettingSettings } from 'store/betting/types';
7
+ import { CasinoHistoryBet } from 'store/operations/entities/casinoHistory/types';
8
+ export declare enum EKYCStatus {
9
+ NotVerified = 0,
10
+ NeedKYC = 1,
11
+ Pending = 2,
12
+ Accepted = 3,
13
+ Rejected = 4,
14
+ Ignore = 5
15
+ }
16
+ export type AdaptedCasinoGameOperationsProps = {
17
+ requestId: number;
18
+ operationLength: number;
19
+ operations: {
20
+ [indx: number]: {
21
+ operation: CasinoHistoryBet;
22
+ };
23
+ };
24
+ };
25
+ export type HandlePaymentOperationsProps = {
26
+ requestId: ERequestIds;
27
+ operations: {
28
+ [inx: number]: {
29
+ operation: Operation;
30
+ };
31
+ };
32
+ };
33
+ export type DecodeBetSlipResponse = {
34
+ requestId: ERequestIds;
35
+ } & ({
36
+ isCouponError: true;
37
+ } | {
38
+ bets: ResponseBet[];
39
+ tickets: Ticket[];
40
+ balance: DecodeBalanceUpdate;
41
+ });
42
+ export type DecodeBalanceUpdate = {
43
+ bonusBalance: number;
44
+ deposit: number;
45
+ inGameBalance: number;
46
+ inGameBonusBalance: number;
47
+ inGameTotoBalance: number;
48
+ loyaltyLvl: number;
49
+ loyaltyWager: number;
50
+ mainBalance: number;
51
+ points: number;
52
+ successDepositCnt: number;
53
+ };
54
+ export type ResponseBet = {
55
+ inx: number;
56
+ isError: true;
57
+ };
58
+ export type HandleBetHistoryProps = {
59
+ requestId: ERequestIds;
60
+ betHistory: Ticket[];
61
+ };
62
+ export type LotteryTicketsResponse = {
63
+ requestId: ERequestIds;
64
+ lotteries: {
65
+ [id: number]: LotteryTicket;
66
+ };
67
+ };
68
+ type ReadTotalDeposit = {
69
+ dayDeposit: number;
70
+ monthDeposit: number;
71
+ needRolled: number;
72
+ rolledWithTax: number;
73
+ weekDeposit: number;
74
+ };
75
+ type BalanceInfoResponse = {
76
+ bonusBalance: number;
77
+ deposit: number;
78
+ inGameBalance: number;
79
+ inGameBonusBalance: number;
80
+ inGameTotoBalance: number;
81
+ loyaltyLvl: number;
82
+ loyaltyWager: number;
83
+ mainBalance: number;
84
+ points: number;
85
+ successDepositCnt: number;
86
+ };
87
+ export type HandleHistoryTickets = {
88
+ totalDeposit: ReadTotalDeposit;
89
+ balanceInfo: BalanceInfoResponse;
90
+ requestId: ERequestIds;
91
+ tickets: {
92
+ [inx: number]: LotteryResponseHistoryTicket;
93
+ };
94
+ };
95
+ export type HandleBuyTicketLotteryResponse = {
96
+ response: number;
97
+ requestId: ERequestIds;
98
+ };
99
+ export type HandleHistoryLotteryTickets = {
100
+ requestId: ERequestIds.LotteryHistoryTicket;
101
+ tickets: {
102
+ [inx: number]: ResponseHistoryTicket;
103
+ };
104
+ };
105
+ export type HandleOperationsUpdateProps = {
106
+ balanceInfo: BalanceInfoResponse;
107
+ operations: {
108
+ [inx: number]: {
109
+ operation: unknown;
110
+ };
111
+ };
112
+ requestId: number;
113
+ totalDeposit: ReadTotalDeposit;
114
+ };
115
+ export type HandleTicketResultSummaryProps = {
116
+ requestId: number;
117
+ id: number;
118
+ settlementOdd: number;
119
+ summary: string;
120
+ status: number;
121
+ };
122
+ export type HandleTicketResultProps = {
123
+ requestId: number;
124
+ id: number;
125
+ payout: number;
126
+ points: number;
127
+ bonusBalance: number;
128
+ status: number;
129
+ acceptedOdd: number;
130
+ settlementOdd: number;
131
+ balance: BalanceInfoResponse;
132
+ };
133
+ export type HandleAdditionalUserInfoProps = {
134
+ availableOperationDates: {
135
+ [inx: number]: {
136
+ timestamp: number;
137
+ };
138
+ };
139
+ availableTicketDates: {
140
+ [inx: number]: {
141
+ timestamp: number;
142
+ };
143
+ };
144
+ balance: BalanceInfoResponse;
145
+ bonusPackInfo: any;
146
+ casinoDates: any;
147
+ currentOperations: {
148
+ [indx: number]: {
149
+ timestamp: Operation;
150
+ };
151
+ };
152
+ inGameTickets: any[];
153
+ requestId: number;
154
+ totalDeposit: any;
155
+ };
156
+ export type HandleBackOfficeResponse = {
157
+ backOfficeSettings: BackOfficeSettings;
158
+ };
159
+ export type BackOfficeSettings = {
160
+ registrationCurrencies: ICurrency[];
161
+ topEvents: ITopEvent[];
162
+ settings: BettingSettings;
163
+ };
164
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EKYCStatus = void 0;
4
+ var EKYCStatus;
5
+ (function (EKYCStatus) {
6
+ EKYCStatus[EKYCStatus["NotVerified"] = 0] = "NotVerified";
7
+ EKYCStatus[EKYCStatus["NeedKYC"] = 1] = "NeedKYC";
8
+ EKYCStatus[EKYCStatus["Pending"] = 2] = "Pending";
9
+ EKYCStatus[EKYCStatus["Accepted"] = 3] = "Accepted";
10
+ EKYCStatus[EKYCStatus["Rejected"] = 4] = "Rejected";
11
+ EKYCStatus[EKYCStatus["Ignore"] = 5] = "Ignore";
12
+ })(EKYCStatus || (exports.EKYCStatus = EKYCStatus = {}));
@@ -0,0 +1,27 @@
1
+ import { ResponseHistoryTicket } from 'store/lottery/entities/history/types';
2
+ import { AdaptedCasinoTournamentProps, InitialTournaments } from 'store/casino/entities/casinoTournaments/types';
3
+ export declare const adaptedBalance: (balance: any) => any;
4
+ export declare const adaptedUserPermissions: ({ bonusPackInfo, isVerificationIgnored, verificationStatus, }: any) => {
5
+ isBonusBan: boolean;
6
+ isBetsPause: boolean;
7
+ minDepOdd: number;
8
+ isLoginBan: boolean;
9
+ isWithdrawalBan: boolean;
10
+ isWithDrawalPostponed: boolean;
11
+ isCashOutBan: boolean;
12
+ verificationStatus: any;
13
+ };
14
+ export declare const adaptedBonusPackInfo: (bonusPackInfo: any) => {
15
+ isBonusBan: boolean;
16
+ isBetsPause: boolean;
17
+ minDepOdd: number;
18
+ isLoginBan: boolean;
19
+ isWithdrawalBan: boolean;
20
+ isWithDrawalPostponed: boolean;
21
+ isCashOutBan: boolean;
22
+ verificationStatus: any;
23
+ };
24
+ export declare const adaptedLotteryTickets: (tickets: {
25
+ [inx: number]: ResponseHistoryTicket;
26
+ }) => ResponseHistoryTicket[];
27
+ export declare const adaptedCasinoTournament: (result: AdaptedCasinoTournamentProps) => InitialTournaments;
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.adaptedCasinoTournament = exports.adaptedLotteryTickets = exports.adaptedBonusPackInfo = exports.adaptedUserPermissions = exports.adaptedBalance = void 0;
4
+ const types_1 = require("./types");
5
+ const types_2 = require("store/casino/entities/casinoTournaments/types");
6
+ const adaptedBalance = (balance) => (Object.assign(Object.assign({}, balance), { loyaltyWager: balance.loyaltyWager / 100, successDepositCnt: balance.successDepositCnt, inGameBalance: balance.inGameBalance / 100, inGameBonusBalance: balance.inGameBonusBalance / 100, inGameTotoBalance: balance.inGameTotoBalance / 100, points: balance.points / 100, deposit: balance.deposit / 100,
7
+ // bonusBalance: balance.bonusBalance / 100, -- betting
8
+ bonusBalance: balance.inGameTotoBalance / 100, mainBalance: balance.mainBalance / 100 }));
9
+ exports.adaptedBalance = adaptedBalance;
10
+ const adaptedUserPermissions = ({ bonusPackInfo, isVerificationIgnored, verificationStatus, }) => ({
11
+ isBonusBan: Boolean(bonusPackInfo.isBonusBan),
12
+ isBetsPause: Boolean(bonusPackInfo.isBetsPause),
13
+ minDepOdd: bonusPackInfo.minDepOdd * 0.25,
14
+ isLoginBan: Boolean(bonusPackInfo.isLoginBan),
15
+ isWithdrawalBan: Boolean(bonusPackInfo.isWithdrawalBan),
16
+ isWithDrawalPostponed: Boolean(bonusPackInfo.isWithDrawalPostponed),
17
+ isCashOutBan: Boolean(bonusPackInfo.isCashOutBan),
18
+ verificationStatus: isVerificationIgnored
19
+ ? types_1.EKYCStatus.Ignore
20
+ : verificationStatus,
21
+ });
22
+ exports.adaptedUserPermissions = adaptedUserPermissions;
23
+ const adaptedBonusPackInfo = (bonusPackInfo) => {
24
+ const { isVerificationIgnored, verificationStatus } = bonusPackInfo;
25
+ return (0, exports.adaptedUserPermissions)({
26
+ bonusPackInfo,
27
+ isVerificationIgnored,
28
+ verificationStatus,
29
+ });
30
+ };
31
+ exports.adaptedBonusPackInfo = adaptedBonusPackInfo;
32
+ const adaptedLotteryTickets = (tickets) => Object.values(tickets).map(({ ticket }) => (Object.assign(Object.assign({}, ticket), { amount: ticket.amount / 100, bets: ticket.bets.map((b) => (Object.assign(Object.assign({}, b), { payout: b.payout / 100, saleDate: b.saleDate * 1000 }))) })));
33
+ exports.adaptedLotteryTickets = adaptedLotteryTickets;
34
+ const adaptedCasinoTournament = (result) => {
35
+ let activeTournaments = null;
36
+ // TODO
37
+ const finishedTournaments = {}; // TODO
38
+ Object.values(result.tournaments).forEach(({ tournament }) => {
39
+ const { startDate, endDate,
40
+ // @ts-ignore
41
+ players = [], amount, status, id, } = tournament;
42
+ const data = {
43
+ id,
44
+ status,
45
+ startDate: startDate * 1000,
46
+ endDate: endDate * 1000,
47
+ amount: amount / 100,
48
+ };
49
+ const adaptedPlayers = players.map((p) => (Object.assign(Object.assign({}, p), { rolled: p.rolled / 100, payout: p.payout / 100, payoutBonus: p.payoutBonus / 100 })));
50
+ const tournamentInfo = Object.assign(Object.assign({}, data), { players: adaptedPlayers, playerLength: adaptedPlayers.length });
51
+ if (types_2.ECasinoTournamentStatus.Active === status) {
52
+ // this.activeTournament.updateActiveTournamentInfo(data, adaptedPlayers);
53
+ activeTournaments = tournamentInfo;
54
+ return true;
55
+ }
56
+ finishedTournaments[tournament.id] = tournamentInfo;
57
+ });
58
+ return {
59
+ activeTournaments,
60
+ finishedTournaments,
61
+ };
62
+ };
63
+ exports.adaptedCasinoTournament = adaptedCasinoTournament;
@@ -0,0 +1,253 @@
1
+ import { ESocketCallbackStep, ISocketSettings, SocketInterface, TBettingSettings, TCasinoSettings } from './types';
2
+ import { ResponseAdapter } from '../service/responseAdapter';
3
+ import { SubscribeSportInfoBySportIdProps, SubscribeSportsProps } from '../store/betting/entities/sports/types';
4
+ import { SubscribeCountryInfoProps, SubscribeMinDepositInfoProps, SubscribeUserCurrencyInfoProps, SubscribeUserStateProps } from '../store/user/types';
5
+ import { ReadModuleKeys, ReadModuleType } from '../binary/types';
6
+ import { CashOutTicketProps, SubscribeComposeTransactionsProps } from './methodTypes';
7
+ import { SubscribeBettingStatusProps } from '../store/betting/types';
8
+ import { SubscribeBettingTopTournamentsProps, SubscribeBettingTournamentsByCategoryIdOrSportIdProps, SubscribeBettingTournamentsByIdProps } from '../store/betting/entities/tournaments/types';
9
+ import { SubscribeBettingEventsByTournamentIdProps, SubscribeBettingTopEventsProps, SubscribeEventDetailsMarketTabs, SubscribeEventDetailsMarketsByGroupIdProps, SubscribeEventShortInfoProps, SubscribeLineEntitiesProps, SubscribeOdd, SubscribeEventEntitiesProps } from '../store/betting/entities/events/types';
10
+ import { SubscriberCategoriesProps, SubscriberCategoryProps } from '../store/betting/entities/categories/types';
11
+ import { SubscribeLiveScoreProps } from 'store/betting/entities/events/live/types';
12
+ import { AddBetProps, RemoveBetProps, SetBetSlipStakeProps, SubscribeBetSlipBaseProps, SubscribeBetSlipMaxToWinProps, SubscribeBettingBetSlipCounterProps, SubscribeSelectedOdd, SubscribeSpecialBetOdd } from '../store/betting/entities/betslip/types';
13
+ import { SubscribeCasinoCategoriesHomePageProps, SubscribeCasinoCategoriesProps, SubscribeCasinoSubCategoriesProps } from 'store/casino/entities/categories/types';
14
+ import { SubscribeCasinoGameInfoSetting, SubscribeCasinoGameSetting, SubscribeCasinoProviderGamesSetting, SubscribeGameDemoModeProps } from 'store/casino/entities/games/types';
15
+ import { ObservableProviderGameCountSetting, ObservableProviderInfoSetting, ObservableProvidersSetting } from 'store/casino/entities/providers/types';
16
+ import { PrepareFavoriteEntitiesForSavingProps, SubscribeFavoriteGameProps, SubscribeFavoriteGamesProps } from 'store/user/entities/favorites/types';
17
+ import { SocketServices } from './services';
18
+ import { SubscribeHistoryTicketsInfoProps, SubscribeTicketInfoProps, SubscribeTicketsProps } from 'store/betting/entities/tickets/types';
19
+ import { SubscribeCasinoLastWinnersProps } from 'store/casino/entities/lastWinners/types';
20
+ import { SubscribeFreeCashTickets } from 'store/lottery/entities/freeCash/types';
21
+ import { SubscribeInstantTickets } from 'store/lottery/entities/instantCash/types';
22
+ import { SubscribeBuyTicketInfoProps } from 'store/lottery/types';
23
+ import { SubscribeLotteryAvailableForBuyingProps, SubscribeLotteryHistoryProps } from 'store/lottery/entities/history/types';
24
+ import { ExperimentalFeatures } from 'service/experimental';
25
+ import { BaseObservableSubscriber } from 'service/observable/type';
26
+ import { AvatarType, BuyAvatarProps } from 'store/user/entities/avatar/types';
27
+ import { BuyHeroAvatar } from 'store/user/entities/hamster/types';
28
+ import { UpdateVipClubEntityKey } from 'store/operations/entities/vipClub/types';
29
+ import { CashBonusChannelType } from 'store/operations/entities/cashBonuses/types';
30
+ import { JackpotSettings } from 'store/casino/entities/jackpots/types';
31
+ import { CasinoHistoryGamesSubscriber } from 'store/operations/entities/casinoHistory/types';
32
+ export declare class Socket implements SocketInterface {
33
+ socketServices: SocketServices;
34
+ initialSettings: ISocketSettings;
35
+ delayedSubscribes: (() => boolean)[];
36
+ socketUrl: string;
37
+ appType: number;
38
+ language: string;
39
+ scheme: any;
40
+ updateSocketStatus: (t: ESocketCallbackStep) => void;
41
+ decodedDataCallback: any;
42
+ webSocket: null | WebSocket;
43
+ _transport: null | ResponseAdapter;
44
+ casinoSettings: TCasinoSettings;
45
+ bettingSettings: TBettingSettings;
46
+ experimentalFeatures: ExperimentalFeatures;
47
+ _socketStatus: ESocketCallbackStep;
48
+ decodeTasks: {
49
+ key: string;
50
+ result: any;
51
+ }[];
52
+ constructor(settings: ISocketSettings);
53
+ set socketStatus(s: ESocketCallbackStep);
54
+ get socketStatus(): ESocketCallbackStep;
55
+ set transport(transport: ResponseAdapter);
56
+ get transport(): ResponseAdapter;
57
+ sendDecodeDataInfo(decodeFn: (key: string, result: any) => void): (key: string, result: any) => void;
58
+ init(): void;
59
+ onOpen(): void;
60
+ onMessage(event: {
61
+ data: Iterable<number>;
62
+ }): void;
63
+ onClose(): void;
64
+ onError(): void;
65
+ sendCommand(key: string, data: {
66
+ [key: string]: string | number | any[];
67
+ }): void;
68
+ getSpecificScheme(key: ReadModuleKeys): ReadModuleType[];
69
+ decode(stream: Uint8Array, step: number): void;
70
+ subscribeEntity(method: () => boolean): boolean;
71
+ logout(): void;
72
+ subscribeCountryInfo(props: SubscribeCountryInfoProps): boolean;
73
+ subscribeMinDepOdd(props: SubscribeMinDepositInfoProps): boolean;
74
+ subscribeUserCurrencyInfo(props: SubscribeUserCurrencyInfoProps): boolean;
75
+ subscribeUserState(props: SubscribeUserStateProps): boolean;
76
+ subscribeUserInfo(props: SubscribeUserStateProps): boolean;
77
+ unsubscribeUserEntity(uid: string): boolean;
78
+ subscribeBalanceInfo(props: BaseObservableSubscriber): boolean;
79
+ subscribeBonusBalanceCoins(props: BaseObservableSubscriber): boolean;
80
+ unsubscribeBalanceEntity(uid: string): boolean;
81
+ subscribeJackpotsEntity(props: BaseObservableSubscriber & JackpotSettings): boolean;
82
+ unsubscribeJackpotsEntity(uid: string): boolean;
83
+ subscribeCasinoCategories(props: SubscribeCasinoCategoriesProps): boolean;
84
+ subscribeCasinoSubCategories(props: SubscribeCasinoSubCategoriesProps): boolean;
85
+ subscribeCasinoGames(props: SubscribeCasinoGameSetting): boolean;
86
+ unsubscribeCasinoGames(uid: string): boolean;
87
+ subscribeCasinoGameInfo(props: SubscribeCasinoGameInfoSetting): boolean;
88
+ unsubscribeCasinoGameInfo(uid: string): boolean;
89
+ subscribeProviderGames(props: SubscribeCasinoProviderGamesSetting): boolean;
90
+ unsubscribeProviderGames(uid: string): boolean;
91
+ subscribeGameDemoMode(props: SubscribeGameDemoModeProps): boolean;
92
+ unsubscribeGameDemoMode(uid: string): boolean;
93
+ subscribeCasinoProviders(data: BaseObservableSubscriber | ObservableProvidersSetting | ObservableProviderInfoSetting | ObservableProviderGameCountSetting): boolean;
94
+ unsubscribeCasinoProviders(uid: string): boolean;
95
+ subscribeCasinoCategoryInfo(props: any): boolean;
96
+ unsubscribeCasinoCategoryEntity(uid: string): boolean;
97
+ subscribeCasinoCategoriesHomePage(props: SubscribeCasinoCategoriesHomePageProps): boolean;
98
+ subscribeCasinoLastWinners(props: SubscribeCasinoLastWinnersProps): boolean;
99
+ unsubscribeCasinoLastWinnerEntities(uid: string): boolean;
100
+ subscribeCasinoBattles(props: BaseObservableSubscriber & {
101
+ isFinished: boolean;
102
+ }): boolean;
103
+ unsubscribeCasinoBattles(uid: string): boolean;
104
+ subscribeCasinoGameHistory(props: CasinoHistoryGamesSubscriber): boolean;
105
+ unsubscribeCasinoGameHistory(uid: string): boolean;
106
+ subscribeTransactions(props: SubscribeComposeTransactionsProps): boolean;
107
+ unsubscribeTransactions(uid: string): boolean;
108
+ subscribeVipClubEntities(props: BaseObservableSubscriber & UpdateVipClubEntityKey): boolean;
109
+ unsubscribeVipClubEntities(uid: string): boolean;
110
+ subscribeVipClubOperations(props: BaseObservableSubscriber & UpdateVipClubEntityKey): boolean;
111
+ unsubscribeVipClubOperations(uid: string): boolean;
112
+ subscribeBonuses(props: BaseObservableSubscriber & {
113
+ isActive: boolean;
114
+ }): boolean;
115
+ unsubscribeBonuses({ uid, isActive }: {
116
+ uid: string;
117
+ isActive: boolean;
118
+ }): boolean;
119
+ subscribeCashBonuses(props: BaseObservableSubscriber & {
120
+ channelType?: CashBonusChannelType;
121
+ }): boolean;
122
+ unsubscribeCashBonuses(uid: string): boolean;
123
+ subscribeTournamentBonuses(props: BaseObservableSubscriber & {
124
+ isActive?: boolean;
125
+ }): boolean;
126
+ unsubscribeTournamentBonuses(uid: string): boolean;
127
+ saveToFavoriteEntities(props: PrepareFavoriteEntitiesForSavingProps): boolean;
128
+ subscribeIsFavoriteGame(props: SubscribeFavoriteGameProps): boolean;
129
+ subscribeFavoriteGames(props: SubscribeFavoriteGamesProps): boolean;
130
+ unsubscribeFavoriteEntity(uid: string): boolean;
131
+ handleSaveUserAvatar(info: AvatarType | null): boolean;
132
+ handleBuyAvatar(info: BuyAvatarProps): boolean;
133
+ handleBuyHero(info: BuyHeroAvatar): boolean;
134
+ subscribeUserAvatar(props: BaseObservableSubscriber): boolean;
135
+ subscribeUserAvatars(props: BaseObservableSubscriber): boolean;
136
+ unsubscribeAvatar(uid: string): boolean;
137
+ subscribeLotteryFreeCash(props: SubscribeFreeCashTickets): boolean;
138
+ unsubscribeLotteryFreeCash(uid: string): boolean;
139
+ subscribeLotteryInstantCash(props: SubscribeInstantTickets): boolean;
140
+ unsubscribeLotteryInstantCashEntity(uid: string): boolean;
141
+ subscribeBuyTicketInfo(props: SubscribeBuyTicketInfoProps): boolean;
142
+ unsubscribeBuyTicketInfo(uid: string): boolean;
143
+ subscribeLotteryHistory(props: SubscribeLotteryHistoryProps): boolean;
144
+ subscribeLotteryAvailableForBuying(props: SubscribeLotteryAvailableForBuyingProps): boolean;
145
+ unsubscribeLotteriesHistoryEntities(uid: string): boolean;
146
+ subscribeBettingStatus(data: SubscribeBettingStatusProps): boolean;
147
+ unsubscribeBettingStatus(uid: string): boolean;
148
+ subscribeBettingSettingsStatus(data: SubscribeBettingStatusProps): boolean;
149
+ unsubscribeBettingSettingsStatus(uid: string): boolean;
150
+ subscribeBettingTopTournaments(data: SubscribeBettingTopTournamentsProps): boolean;
151
+ unsubscribeBettingTopTournaments(uid: string): boolean;
152
+ subscribeBettingTournamentsByCategoryIdOrSportId(props: SubscribeBettingTournamentsByCategoryIdOrSportIdProps): boolean;
153
+ unsubscribeBettingTournamentsByCategoryIdOrSportId(uid: string): boolean;
154
+ subscribeBettingTournamentById(props: SubscribeBettingTournamentsByIdProps): boolean;
155
+ unsubscribeBettingTournamentById(uid: string): boolean;
156
+ subscribeBettingTopEvents(data: SubscribeBettingTopEventsProps): boolean;
157
+ unsubscribeBettingTopEvents(uid: string): boolean;
158
+ subscribeSports(props: SubscribeSportsProps): boolean;
159
+ unsubscribeSportEntities(uid: string): boolean;
160
+ subscribeSportInfoBySportId(props: SubscribeSportInfoBySportIdProps): boolean;
161
+ subscribeBettingCategories(props: SubscriberCategoriesProps): boolean;
162
+ unsubscribeBettingCategories(uid: string): boolean;
163
+ subscribeCategoryById(props: SubscriberCategoryProps): boolean;
164
+ unsubscribeCategoryById(uid: string): boolean;
165
+ subscribeEventsByTournamentId(props: SubscribeBettingEventsByTournamentIdProps): boolean;
166
+ unsubscribeEventsByTournamentId(uid: string): boolean;
167
+ subscribeOdd(props: SubscribeOdd): boolean;
168
+ unsubscribeOdd(uid: string, isPrematch: boolean): boolean;
169
+ subscribeEventEntities(props: SubscribeEventEntitiesProps): boolean;
170
+ unsubscribeEventEntities(uid: string, isPrematch: boolean): boolean;
171
+ subscribeShortEventInfo(props: SubscribeEventShortInfoProps): boolean;
172
+ unsubscribeShortEventInfo(uid: string, isPrematch: boolean): boolean;
173
+ subscribeEventDetailsMarketTabs(props: SubscribeEventDetailsMarketTabs): boolean;
174
+ unsubscribeEventDetailsMarketTabs(uid: string, isPrematch: boolean): boolean;
175
+ subscribeEventDetailsMarketsByGroupId(props: SubscribeEventDetailsMarketsByGroupIdProps): boolean;
176
+ unsubscribeEventDetailsMarketsByGroupId(uid: string, isPrematch: boolean): boolean;
177
+ subscribeEventScore(props: SubscribeLiveScoreProps): boolean;
178
+ unsubscribeEventScore(uid: string): boolean;
179
+ subscribeFilterMarkets(props: any): boolean;
180
+ unsubscribeFilterMarkets(uid: string): boolean;
181
+ subscribeFilterMarketNames(props: any): boolean;
182
+ unsubscribeFilterMarketNames(uid: string): boolean;
183
+ subscribeLineEntities(props: SubscribeLineEntitiesProps): boolean;
184
+ unsubscribeLineEntities(uid: string, isPrematch: boolean): boolean;
185
+ subscribeCashOutTickets(props: SubscribeTicketsProps): boolean;
186
+ subscribeInGameLiveTickets(props: SubscribeTicketsProps): boolean;
187
+ subscribeInGameTickets(props: SubscribeTicketsProps): boolean;
188
+ subscribeTicketInfo(props: SubscribeTicketInfoProps): boolean;
189
+ subscribeHistoryTickets(props: SubscribeHistoryTicketsInfoProps): boolean;
190
+ unsubscribeTicketsEntity(uid: string): boolean;
191
+ ticketCashOut(props: CashOutTicketProps): boolean;
192
+ subscribeBettingBetSlipCounter(props: SubscribeBettingBetSlipCounterProps): boolean;
193
+ subscribeSelectedOdd(props: SubscribeSelectedOdd): boolean;
194
+ subscribeBetSlipBets(props: SubscribeBetSlipBaseProps): boolean;
195
+ subscribeBetSlipStatus(props: SubscribeBetSlipBaseProps): boolean;
196
+ subscribeBetSlipShortInfo(props: SubscribeBetSlipBaseProps): boolean;
197
+ subscribeBetSlipMaxToWin(props: SubscribeBetSlipMaxToWinProps): boolean;
198
+ subscribeSpecialBetOdd(props: SubscribeSpecialBetOdd): boolean;
199
+ subscribeBetSlipBetsAmount(props: Omit<SubscribeBetSlipBaseProps, 'betUid'>): boolean;
200
+ unsubscribeBetSlipEntities(uid: string): boolean;
201
+ addBet(props: AddBetProps): boolean;
202
+ removeBet(props: RemoveBetProps): boolean;
203
+ removeAllBets(): boolean;
204
+ setBetSlipStake(props: SetBetSlipStakeProps): boolean;
205
+ placeBetSlip(): boolean;
206
+ acceptErrors(): boolean;
207
+ setSystemRang(rang: number): boolean;
208
+ subscribeReferralLink(props: BaseObservableSubscriber): boolean;
209
+ subscribeReferralBalance(props: BaseObservableSubscriber): boolean;
210
+ subscribeReferralClient(props: BaseObservableSubscriber): boolean;
211
+ referralWithdraw(amount: number): boolean;
212
+ unsubscribeReferralEntity(uid: string): boolean;
213
+ getLootBoxResult(amount: number): false | {
214
+ isError: boolean;
215
+ prize: number;
216
+ isWin: boolean;
217
+ description: string;
218
+ isRealMoney?: undefined;
219
+ } | {
220
+ isWin: boolean;
221
+ prize: number;
222
+ description: string;
223
+ isRealMoney: boolean;
224
+ isError?: undefined;
225
+ } | {
226
+ isWin: boolean;
227
+ prize: number;
228
+ isRealMoney: boolean;
229
+ isError?: undefined;
230
+ description?: undefined;
231
+ } | {
232
+ prize: number;
233
+ isWin: boolean;
234
+ isError?: undefined;
235
+ description?: undefined;
236
+ isRealMoney?: undefined;
237
+ };
238
+ getLootBoxGameSettings(): false | import("../store/user/entities/lootBox/types").LootBoxGameSettings;
239
+ getWheelItems(): number[];
240
+ getWheelResult(): {
241
+ value: number;
242
+ result: number;
243
+ };
244
+ boostEnergy(): boolean;
245
+ changeCoins(sellCoins: number, receiveCoins: number): boolean;
246
+ subscribeHamster(props: BaseObservableSubscriber): boolean;
247
+ unsubscribeHamster(uid: string): boolean;
248
+ setActiveDailyTask(id: string): boolean;
249
+ subscribeDailyTasks(props: BaseObservableSubscriber): boolean;
250
+ subscribeActiveDailyTask(props: BaseObservableSubscriber): boolean;
251
+ unsubscribeDailyTasks(uid: string): boolean;
252
+ handleActivateCode(code: string): boolean;
253
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseObservableSubscriber } from 'service/observable/type';
2
+ import { Operation, TransactionFilterType } from 'store/operations/types';
3
+ export type SubscribeComposeTransactionsProps = BaseObservableSubscriber & {
4
+ range: [number, number];
5
+ types: TransactionFilterType[];
6
+ withGameInfo?: boolean;
7
+ };
8
+ export type GetCasinoGameResponse = {
9
+ providerName: string;
10
+ providerId: number;
11
+ id: number;
12
+ imageUrl: string;
13
+ name: string;
14
+ };
15
+ export type GetAvailableBonusesResponse = {
16
+ bonusOnDeposit: Operation[];
17
+ freeSpins: Operation[];
18
+ };
19
+ export type CashOutTicketProps = {
20
+ ticketId: number;
21
+ outputStake: number;
22
+ remainingStake: number;
23
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ import { Socket } from './';
2
+ import { CashOutTicketProps } from './methodTypes';
3
+ import { ERequestIds } from 'binary/types';
4
+ export declare class SocketServices {
5
+ parent: Socket;
6
+ constructor(parent: Socket);
7
+ getPlaceBetData(): {
8
+ requestId: number;
9
+ ticketId: number;
10
+ outputStake: number;
11
+ remainingStake: number;
12
+ expressStake: number;
13
+ cashoutChangeTypeSetting: number;
14
+ couponData: number;
15
+ device: number;
16
+ betBuilderBetsNumber: number;
17
+ betBuilderStake: number;
18
+ balanceType: number;
19
+ betBuilderOdd: number;
20
+ ordinarLength: number;
21
+ systemRang: number;
22
+ systemStake: number;
23
+ stake: number;
24
+ oddChangesType: number;
25
+ isTinder: number;
26
+ isAlternativeStakeAllowed: number;
27
+ byte: number;
28
+ ordinarBets: any[];
29
+ betBuilderBets: any;
30
+ };
31
+ getCashOutTicketInfo(props: CashOutTicketProps): {
32
+ requestId: ERequestIds;
33
+ ticketId: number;
34
+ outputStake: number;
35
+ remainingStake: number;
36
+ cashoutChangeTypeSetting: number;
37
+ typeMultiBet: number;
38
+ };
39
+ }