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,255 @@
1
+ import { PageMarketInfo } from '../markets/types';
2
+ import { ESports } from '../sports/types';
3
+ import { LiveEvent, LiveEventsShortEventView } from './live/types';
4
+ import { PrematchEvent, PrematchShortEventView } from './prematch/types';
5
+ export declare enum EStatusEvent {
6
+ Unknown = -2,
7
+ WithoutLines = -1,
8
+ Prematch = 0,
9
+ Live = 1,
10
+ Suspended = 2,
11
+ Ended = 3,
12
+ Closed = 4,
13
+ Canceled = 5,
14
+ Interrupted = 6,
15
+ Postponed = 7,
16
+ Abandoned = 8,
17
+ Delayed = 9
18
+ }
19
+ export declare enum EActiveTeam {
20
+ Unknown = "unknown",
21
+ Home = "home",
22
+ Away = "away"
23
+ }
24
+ export declare enum EStatusLine {
25
+ BetStop = -1,
26
+ Delete = 0,
27
+ Avalibale = 1
28
+ }
29
+ export type ReturnTopEventType = {
30
+ uid: string;
31
+ sportId: number;
32
+ homeName: string;
33
+ homeId: number;
34
+ awayId: number;
35
+ awayName: string;
36
+ timeStart: number;
37
+ id: string;
38
+ isLive: boolean;
39
+ };
40
+ export declare enum EventProviderId {
41
+ Radar = 1,
42
+ Genius = 2,
43
+ Solution = 3,
44
+ Lsports = 4,
45
+ BetBazar = 5
46
+ }
47
+ export interface EventLine {
48
+ activeOutcomeIds: number[];
49
+ blockedStatus: boolean;
50
+ eventUid: string;
51
+ id: number;
52
+ lineTypeRadar: number;
53
+ lineUid: string;
54
+ marketId: number;
55
+ outcomeIds: number[];
56
+ outcomeName: string[];
57
+ outcomeNumber: number[];
58
+ outcomeOdds: number[];
59
+ outcomeTeam: string[];
60
+ radarTournamentId: number;
61
+ specValues: string[];
62
+ status: EStatusLine;
63
+ type: number;
64
+ uid: string;
65
+ compoundKey?: string;
66
+ }
67
+ export type UpdateEvents = {
68
+ prematchEvents: PrematchEvent[];
69
+ liveEvents: LiveEvent[];
70
+ };
71
+ export type SettingEventsObservable = {
72
+ [uid: string]: SettingEventObservable;
73
+ };
74
+ type SettingEventObservable = {
75
+ tournamentId: number;
76
+ isPrematch: boolean;
77
+ time: number | null;
78
+ };
79
+ export declare enum RospisTabs {
80
+ 'Top' = -2,
81
+ 'BetBuilder' = -1,
82
+ 'All' = 0,
83
+ 'Additional' = 1,
84
+ 'Cards' = 2,
85
+ 'Corners' = 3,
86
+ 'Frames' = 4,
87
+ 'Games' = 5,
88
+ 'Goals' = 6,
89
+ 'Halves' = 7,
90
+ 'Holes' = 8,
91
+ 'Innings' = 9,
92
+ 'Intervals' = 10,
93
+ 'Main_Markets' = 11,
94
+ 'Overs' = 12,
95
+ 'Periods' = 13,
96
+ 'Players' = 14,
97
+ 'Points' = 15,
98
+ 'Quarters' = 16,
99
+ 'Sets' = 17,
100
+ 'Tries' = 18,
101
+ '1stHalf' = 19,
102
+ '180s' = 20,
103
+ '2ndHalf' = 21,
104
+ 'Statistics' = 22,
105
+ 'YellowCards' = 23,
106
+ 'Maps' = 24
107
+ }
108
+ export declare enum IGrow {
109
+ Fixed = 0,
110
+ Horizontal = 1,
111
+ Vertical = 2
112
+ }
113
+ export declare enum ERospisStaticTab {
114
+ All = -99,
115
+ Favorite = -98,
116
+ BetBuilder = -1
117
+ }
118
+ export type ObservableSettingsType = {
119
+ [key: string]: EventObservableSettingType;
120
+ };
121
+ export type ScoreSubscriberSetting = {
122
+ eventUid: string;
123
+ isScore: true;
124
+ sportId: ESports;
125
+ };
126
+ export type LinesByMarketIdSubscriberSetting = {
127
+ isLinesByMarketId: true;
128
+ eventUid: string;
129
+ marketId: number;
130
+ outcomes?: number[];
131
+ isShowMore: boolean;
132
+ isFirstMarket?: boolean;
133
+ isSpecial: boolean;
134
+ };
135
+ export type LinesByComboMarketIdSubscriberSetting = {
136
+ isLinesByComboMarketId: true;
137
+ eventUid: string;
138
+ comboMarketId: number;
139
+ };
140
+ export type LinesCounterByEventUidSubscriberSetting = {
141
+ isLineCounter: true;
142
+ eventUid: string;
143
+ };
144
+ export type ShortEventSubscriberSetting = {
145
+ isEventOnly: boolean;
146
+ eventUid: string;
147
+ };
148
+ export type ShortLineSubscriberSetting = {
149
+ isLineOnly: boolean;
150
+ eventUid: string;
151
+ lineUid: string;
152
+ outcomeId: number;
153
+ };
154
+ export type TabsEventDetailsSubscriberSetting = {
155
+ isEventOnly: boolean;
156
+ isEventMarketsTab: boolean;
157
+ eventUid: string;
158
+ sportId: number;
159
+ };
160
+ export type ContentEventDetailsSubscriberSetting = {
161
+ isEventOnly: boolean;
162
+ isMarketsByGroupId: boolean;
163
+ activeGroupId: number;
164
+ sportId: number;
165
+ eventUid: string;
166
+ };
167
+ export type EventObservableSettingType = ShortEventSubscriberSetting | TabsEventDetailsSubscriberSetting | ContentEventDetailsSubscriberSetting | LinesByMarketIdSubscriberSetting | ShortLineSubscriberSetting | ScoreSubscriberSetting | LinesCounterByEventUidSubscriberSetting | LinesByComboMarketIdSubscriberSetting;
168
+ export type SubscribeBettingTopEventsProps = {
169
+ uid: string;
170
+ callback: (status: ReturnTopEventType[]) => void;
171
+ };
172
+ export type SubscribeBettingEventsByTournamentIdProps = {
173
+ uid: string;
174
+ tournamentId: number;
175
+ isPrematch: boolean;
176
+ time: number | null;
177
+ callback: (info: PrematchShortEventView[]) => void;
178
+ };
179
+ export type SubscribeOdd = {
180
+ uid: string;
181
+ isPrematch: boolean;
182
+ outcomeId: number;
183
+ lineUid: string;
184
+ eventUid: string;
185
+ callback: (status: OddSubscriberResponse) => void;
186
+ };
187
+ export type OddSubscriberResponse = {
188
+ odd: number;
189
+ status: string;
190
+ };
191
+ export type OddResponse = {
192
+ isShowMore: boolean;
193
+ isSpecial: boolean;
194
+ outcomes: number[];
195
+ lineUid: string;
196
+ marketId: number;
197
+ eventUid: string;
198
+ specValue: string;
199
+ odds: number[];
200
+ };
201
+ export type SubscribeEventEntitiesProps = {
202
+ uid: string;
203
+ callback: (d: any) => void;
204
+ eventUid: string;
205
+ marketId?: number;
206
+ isComboMarket?: boolean;
207
+ isPrematch?: boolean;
208
+ comboMarketId?: number;
209
+ isLinesByComboMarketId?: boolean;
210
+ isLineCounter?: boolean;
211
+ };
212
+ export type ReturnShortEventInfoProps = PrematchShortEventView | LiveEventsShortEventView | null;
213
+ export type SubscribeEventShortInfoProps = {
214
+ eventUid: string;
215
+ uid: string;
216
+ isPrematch: boolean;
217
+ callback: (event: PrematchShortEventView | LiveEventsShortEventView | null) => void;
218
+ };
219
+ export type ReturnEventDetailsMarketTabs = {
220
+ value: number;
221
+ label: string;
222
+ };
223
+ export type SubscribeEventDetailsMarketTabs = {
224
+ isPrematch: boolean;
225
+ uid: string;
226
+ sportId: number;
227
+ eventUid: string;
228
+ callback: (d: ReturnEventDetailsMarketTabs[]) => void;
229
+ };
230
+ export type ReturnEventDetailsMarketsByGroupIdProps = PageMarketInfo & {
231
+ availableMarketIds: number[];
232
+ };
233
+ export type SubscribeEventDetailsMarketsByGroupIdProps = {
234
+ isPrematch: boolean;
235
+ uid: string;
236
+ eventUid: string;
237
+ groupId: number;
238
+ sportId: number;
239
+ callback: (d: ReturnEventDetailsMarketsByGroupIdProps[]) => void;
240
+ };
241
+ export type ReturnSubscribeLineEntitiesProps = {
242
+ favoriteTeam: string;
243
+ marketName: string;
244
+ homeName: string;
245
+ awayName: string;
246
+ };
247
+ export type SubscribeLineEntitiesProps = {
248
+ uid: string;
249
+ callback: (d: ReturnSubscribeLineEntitiesProps) => void;
250
+ eventUid: string;
251
+ lineUid: string;
252
+ outcomeId: number;
253
+ isPrematch: boolean;
254
+ };
255
+ export {};
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERospisStaticTab = exports.IGrow = exports.RospisTabs = exports.EventProviderId = exports.EStatusLine = exports.EActiveTeam = exports.EStatusEvent = void 0;
4
+ var EStatusEvent;
5
+ (function (EStatusEvent) {
6
+ EStatusEvent[EStatusEvent["Unknown"] = -2] = "Unknown";
7
+ EStatusEvent[EStatusEvent["WithoutLines"] = -1] = "WithoutLines";
8
+ EStatusEvent[EStatusEvent["Prematch"] = 0] = "Prematch";
9
+ EStatusEvent[EStatusEvent["Live"] = 1] = "Live";
10
+ EStatusEvent[EStatusEvent["Suspended"] = 2] = "Suspended";
11
+ EStatusEvent[EStatusEvent["Ended"] = 3] = "Ended";
12
+ EStatusEvent[EStatusEvent["Closed"] = 4] = "Closed";
13
+ EStatusEvent[EStatusEvent["Canceled"] = 5] = "Canceled";
14
+ EStatusEvent[EStatusEvent["Interrupted"] = 6] = "Interrupted";
15
+ EStatusEvent[EStatusEvent["Postponed"] = 7] = "Postponed";
16
+ EStatusEvent[EStatusEvent["Abandoned"] = 8] = "Abandoned";
17
+ EStatusEvent[EStatusEvent["Delayed"] = 9] = "Delayed";
18
+ })(EStatusEvent || (exports.EStatusEvent = EStatusEvent = {}));
19
+ var EActiveTeam;
20
+ (function (EActiveTeam) {
21
+ EActiveTeam["Unknown"] = "unknown";
22
+ EActiveTeam["Home"] = "home";
23
+ EActiveTeam["Away"] = "away";
24
+ })(EActiveTeam || (exports.EActiveTeam = EActiveTeam = {}));
25
+ var EStatusLine;
26
+ (function (EStatusLine) {
27
+ EStatusLine[EStatusLine["BetStop"] = -1] = "BetStop";
28
+ EStatusLine[EStatusLine["Delete"] = 0] = "Delete";
29
+ EStatusLine[EStatusLine["Avalibale"] = 1] = "Avalibale";
30
+ })(EStatusLine || (exports.EStatusLine = EStatusLine = {}));
31
+ // TYPES
32
+ var EventProviderId;
33
+ (function (EventProviderId) {
34
+ EventProviderId[EventProviderId["Radar"] = 1] = "Radar";
35
+ EventProviderId[EventProviderId["Genius"] = 2] = "Genius";
36
+ EventProviderId[EventProviderId["Solution"] = 3] = "Solution";
37
+ EventProviderId[EventProviderId["Lsports"] = 4] = "Lsports";
38
+ EventProviderId[EventProviderId["BetBazar"] = 5] = "BetBazar";
39
+ })(EventProviderId || (exports.EventProviderId = EventProviderId = {}));
40
+ var RospisTabs;
41
+ (function (RospisTabs) {
42
+ RospisTabs[RospisTabs["Top"] = -2] = "Top";
43
+ RospisTabs[RospisTabs["BetBuilder"] = -1] = "BetBuilder";
44
+ RospisTabs[RospisTabs["All"] = 0] = "All";
45
+ RospisTabs[RospisTabs["Additional"] = 1] = "Additional";
46
+ RospisTabs[RospisTabs["Cards"] = 2] = "Cards";
47
+ RospisTabs[RospisTabs["Corners"] = 3] = "Corners";
48
+ RospisTabs[RospisTabs["Frames"] = 4] = "Frames";
49
+ RospisTabs[RospisTabs["Games"] = 5] = "Games";
50
+ RospisTabs[RospisTabs["Goals"] = 6] = "Goals";
51
+ RospisTabs[RospisTabs["Halves"] = 7] = "Halves";
52
+ RospisTabs[RospisTabs["Holes"] = 8] = "Holes";
53
+ RospisTabs[RospisTabs["Innings"] = 9] = "Innings";
54
+ RospisTabs[RospisTabs["Intervals"] = 10] = "Intervals";
55
+ RospisTabs[RospisTabs["Main_Markets"] = 11] = "Main_Markets";
56
+ RospisTabs[RospisTabs["Overs"] = 12] = "Overs";
57
+ RospisTabs[RospisTabs["Periods"] = 13] = "Periods";
58
+ RospisTabs[RospisTabs["Players"] = 14] = "Players";
59
+ RospisTabs[RospisTabs["Points"] = 15] = "Points";
60
+ RospisTabs[RospisTabs["Quarters"] = 16] = "Quarters";
61
+ RospisTabs[RospisTabs["Sets"] = 17] = "Sets";
62
+ RospisTabs[RospisTabs["Tries"] = 18] = "Tries";
63
+ RospisTabs[RospisTabs["1stHalf"] = 19] = "1stHalf";
64
+ RospisTabs[RospisTabs["180s"] = 20] = "180s";
65
+ RospisTabs[RospisTabs["2ndHalf"] = 21] = "2ndHalf";
66
+ RospisTabs[RospisTabs["Statistics"] = 22] = "Statistics";
67
+ RospisTabs[RospisTabs["YellowCards"] = 23] = "YellowCards";
68
+ RospisTabs[RospisTabs["Maps"] = 24] = "Maps";
69
+ // MOVE FROM ELONBET.COM
70
+ // 'BetBuilder', // do not change the order
71
+ // 'Top', //do not change the order | activeGroupId for sheme
72
+ })(RospisTabs || (exports.RospisTabs = RospisTabs = {}));
73
+ var IGrow;
74
+ (function (IGrow) {
75
+ IGrow[IGrow["Fixed"] = 0] = "Fixed";
76
+ IGrow[IGrow["Horizontal"] = 1] = "Horizontal";
77
+ IGrow[IGrow["Vertical"] = 2] = "Vertical";
78
+ })(IGrow || (exports.IGrow = IGrow = {}));
79
+ var ERospisStaticTab;
80
+ (function (ERospisStaticTab) {
81
+ ERospisStaticTab[ERospisStaticTab["All"] = -99] = "All";
82
+ ERospisStaticTab[ERospisStaticTab["Favorite"] = -98] = "Favorite";
83
+ ERospisStaticTab[ERospisStaticTab["BetBuilder"] = -1] = "BetBuilder";
84
+ })(ERospisStaticTab || (exports.ERospisStaticTab = ERospisStaticTab = {}));
@@ -0,0 +1,11 @@
1
+ import { LiveEvent, LiveEventsShortEventView } from './live/types';
2
+ import { PrematchEvent, PrematchShortEventView } from './prematch/types';
3
+ export declare const getEventEntity: (event: any) => any;
4
+ export declare const getTournamentKey: (lineTypeRadar: number, id: number) => string | number;
5
+ export declare const getEventKeyTypeLine: (lineTypeRadar: number, id: number) => string | number;
6
+ export declare const getPrematchShortView: (e: PrematchEvent) => PrematchShortEventView & {
7
+ compareKey: string;
8
+ };
9
+ export declare const getLiveEventShortView: (e: LiveEvent) => LiveEventsShortEventView & {
10
+ compareKey: string;
11
+ };
@@ -0,0 +1,184 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLiveEventShortView = exports.getPrematchShortView = exports.getEventKeyTypeLine = exports.getTournamentKey = exports.getEventEntity = void 0;
4
+ const types_1 = require("./types");
5
+ const getGameScoreBySports = ({ sportId, mainScore, gameScore }) => {
6
+ switch (sportId) {
7
+ case 1034:
8
+ return +gameScore === 50 ? 'A' : gameScore;
9
+ default:
10
+ return mainScore;
11
+ }
12
+ };
13
+ const getEventEntity = (event) => ({
14
+ awayEjected: event.awayEjected || 0,
15
+ awayGameScore: getGameScoreBySports({
16
+ sportId: event.sportId,
17
+ mainScore: event.awayMainScore,
18
+ gameScore: event.awayGameScore,
19
+ }),
20
+ awayName: event.awayName,
21
+ awayId: event.awayId,
22
+ awayMainScore: event.awayMainScore,
23
+ awayCorners: event.awayCorners,
24
+ awayRedCards: event.awayRedCards,
25
+ awayYellowCards: event.awayYellow,
26
+ criketAwayDismissals: event.away_dismissals || 0,
27
+ criketHomeDismissals: event.home_dismissals || 0,
28
+ cricketInnings: event.innings || 0,
29
+ videoId: event.videoId,
30
+ willBeLive: Boolean(event.willBeLive),
31
+ homeEjected: event.homeEjected || 0,
32
+ homeGameScore: getGameScoreBySports({
33
+ sportId: event.sportId,
34
+ mainScore: event.homeMainScore,
35
+ gameScore: event.homeGameScore,
36
+ }),
37
+ homeName: event.homeName,
38
+ homeId: event.homeId,
39
+ homeMainScore: event.homeMainScore,
40
+ homeCorners: event.homeCorners,
41
+ homeRedCards: event.homeRedCards,
42
+ homeYellowCards: event.homeYellow,
43
+ scores: event.scores,
44
+ activeTeam: event.activeTeam || types_1.EActiveTeam.Unknown,
45
+ period: event.period,
46
+ position: event.position,
47
+ // match status
48
+ matchStatus: event.matchStatus,
49
+ matchTime: event.matchTime,
50
+ matchStatusId: event.matchStatusId,
51
+ // time
52
+ remainingTime: event.remainingTime,
53
+ remainingTimeInPeriod: event.remainingTimeInPeriod,
54
+ stopTime: event.stopTime,
55
+ stoppageTime: event.stoppageTime,
56
+ stopPageTimeAnnounced: event.stopPageTimeAnnounced,
57
+ timeStart: event.timeStart,
58
+ overtime: event.overtime,
59
+ status: event.status,
60
+ // Static
61
+ sportId: event.sportId,
62
+ categoryId: event.categoryId,
63
+ tournamentId: event.tournamentId,
64
+ });
65
+ exports.getEventEntity = getEventEntity;
66
+ const getTournamentKey = (lineTypeRadar, id) => {
67
+ // 0 sr:match: //1 - sr:race_event(sr:stage) //2 - sr:simple_tournament //3 sr:season (sr : tournament) //4 sr:race_tournament //5 vf:match //6 vf:season (vf:tournament:)
68
+ // 7 - vbl:match //8 - vto:match //9 - vbl:season : (vbl:tournament) //10 - vto:season (vto:tournament) //11 vdr:match //12 vhc:match //13 vti:match // 14 wns:match//
69
+ // 15 vdr:season : (vdr:tournament) //16 vhc:season (vhc:tournament:) //17 vti:season : (vti:tournament) //18 wns:season (wns:tournament: //19 ssln_eventtion
70
+ // 0 sr:tournament //1 sr:race_tournament: //2 sr:simple_tournament: //3 vf:tournament: //4 vbl:tournament // 5 vto:tournament// 6 vdr:tournament //7 vhc:tournament: //8 vti:tournament //9 wns:tournament: //10 ssln-tournament
71
+ switch (lineTypeRadar) {
72
+ case 2:
73
+ return '02' + id;
74
+ case 3:
75
+ return '00' + id; // BetRadar
76
+ case 4:
77
+ return '01' + id;
78
+ case 6:
79
+ return '03' + id;
80
+ case 9:
81
+ return '04' + id;
82
+ case 10:
83
+ return '05' + id;
84
+ case 15:
85
+ return '06' + id;
86
+ case 16:
87
+ return '07' + id;
88
+ case 17:
89
+ return '08' + id;
90
+ case 18:
91
+ return '09' + id;
92
+ case 19:
93
+ return '10' + id; // SSLN
94
+ case 20:
95
+ return '11' + id; // BetGenius
96
+ case 21:
97
+ return '13' + id; // LSport
98
+ case 22:
99
+ return '14' + id; // BetBazar
100
+ default:
101
+ return id;
102
+ }
103
+ };
104
+ exports.getTournamentKey = getTournamentKey;
105
+ // EVENTS UID
106
+ const getEventKeyTypeLine = (lineTypeRadar, id) => {
107
+ switch (lineTypeRadar) {
108
+ case 0:
109
+ return '00' + id;
110
+ case 1:
111
+ return '01' + id;
112
+ case 5:
113
+ return '03' + id;
114
+ case 7:
115
+ return '04' + id;
116
+ case 8:
117
+ return '05' + id;
118
+ case 11:
119
+ return '06' + id;
120
+ case 12:
121
+ return '07' + id;
122
+ case 13:
123
+ return '08' + id;
124
+ case 15:
125
+ return '09' + id;
126
+ case 19:
127
+ return '10' + id;
128
+ case 20:
129
+ return '11' + id;
130
+ case 21:
131
+ return '13' + id;
132
+ case 2:
133
+ return '14' + id;
134
+ case 3:
135
+ return '15' + id;
136
+ case 4:
137
+ return '16' + id;
138
+ case 6:
139
+ return '17' + id;
140
+ case 9:
141
+ return '18' + id;
142
+ case 10:
143
+ return '19' + id;
144
+ case 14:
145
+ return '20' + id;
146
+ case 16:
147
+ return '21' + id;
148
+ case 17:
149
+ return '22' + id;
150
+ case 18:
151
+ return '23' + id;
152
+ case 22:
153
+ return '14' + id;
154
+ default:
155
+ return id;
156
+ }
157
+ };
158
+ exports.getEventKeyTypeLine = getEventKeyTypeLine;
159
+ const getPrematchShortView = (e) => ({
160
+ homeName: e.homeName,
161
+ awayName: e.awayName,
162
+ lines: e.counterLines,
163
+ tournamentId: e.tournamentId,
164
+ categoryId: e.categoryId,
165
+ uid: e.uid,
166
+ id: e.uid,
167
+ timeStart: e.timeStart,
168
+ sportId: e.sportId,
169
+ compareKey: `${e.uid}_${e.status}_${e.blockedStatus}`,
170
+ });
171
+ exports.getPrematchShortView = getPrematchShortView;
172
+ const getLiveEventShortView = (e) => ({
173
+ homeName: e.homeName,
174
+ awayName: e.awayName,
175
+ lines: e.counterLines,
176
+ tournamentId: e.tournamentId,
177
+ categoryId: e.categoryId,
178
+ uid: e.uid,
179
+ id: e.uid,
180
+ currentTime: e.timeStart,
181
+ sportId: e.sportId,
182
+ compareKey: `${e.uid}_${e.status}_${e.blockedStatus}`,
183
+ });
184
+ exports.getLiveEventShortView = getLiveEventShortView;
@@ -0,0 +1,22 @@
1
+ import { Observable } from 'service/observable';
2
+ import { ComboMarketsInfo, ObservableSettings, RospisInfo, SubscribeFilterMarketNamesProps, SubscribeFilterMarketsProps, TMarkets } from './types';
3
+ export declare class BettingMarkets {
4
+ observableMarkets: Observable;
5
+ observableSettings: ObservableSettings;
6
+ markets: TMarkets;
7
+ comboBoxes: ComboMarketsInfo;
8
+ isFirstData: boolean;
9
+ rospisInfo: RospisInfo | null;
10
+ constructor();
11
+ setRospisInfo(info: RospisInfo): void;
12
+ updateMarkets(markets: TMarkets, marketList: ComboMarketsInfo): void;
13
+ setMarkets(markets: TMarkets, marketList: ComboMarketsInfo): void;
14
+ private sendMarkets;
15
+ private sendMarketNames;
16
+ sendUpdates(): void;
17
+ subscribeFilterMarkets(props: SubscribeFilterMarketsProps): void;
18
+ unsubscribeFilterMarkets(uid: string): void;
19
+ subscribeFilterMarketNames(props: SubscribeFilterMarketNamesProps): void;
20
+ unsubscribeFilterMarketNames(uid: string): void;
21
+ reset(): void;
22
+ }
@@ -0,0 +1,115 @@
1
+ import { ComboMarket } from '../../../../binary/types';
2
+ export type TMarkets = {
3
+ [id: number]: Market;
4
+ };
5
+ export type ComboMarketsInfo = {
6
+ comboLive: {
7
+ [sportId: number | EDefaultMarketId]: ComboMarket[];
8
+ };
9
+ comboPrematch: {
10
+ [sportId: number | EDefaultMarketId]: ComboMarket[];
11
+ };
12
+ allMarkets: {
13
+ [id: number]: ComboMarket;
14
+ };
15
+ };
16
+ export type Market = {
17
+ id: number;
18
+ lineType: number;
19
+ name: string;
20
+ objectId: number;
21
+ outcomeIds: number[];
22
+ outcomeName: string[];
23
+ provider: number;
24
+ specifierNames: string[];
25
+ specifierNumber: number;
26
+ type: number;
27
+ variableText: string;
28
+ variant: number;
29
+ };
30
+ export declare enum EDefaultMarketId {
31
+ DEFAULT = 999
32
+ }
33
+ export type RospisInfo = {
34
+ marketMatrix: Matrix;
35
+ pageMarkets: PageMarketInfo[];
36
+ };
37
+ export interface PageMarketInfo {
38
+ sortId: number;
39
+ cellHeight: number;
40
+ cellKol: number;
41
+ cellRow: number;
42
+ cellWidth: number;
43
+ column: number;
44
+ groupId: number;
45
+ grow: number;
46
+ id: number;
47
+ specificView: MarketSpecificView;
48
+ isLive: boolean;
49
+ marketIds: {
50
+ [marketId: number]: PageMarket;
51
+ };
52
+ matrix: PageMatrix[];
53
+ name: string;
54
+ numCell: number;
55
+ numKolBand1: number;
56
+ numKolBand2: number;
57
+ numRowBand1: number;
58
+ numRowBand2: number;
59
+ kolBand1: string[];
60
+ kolBand2: string[];
61
+ rowBand1: string[];
62
+ rowBand2: string[];
63
+ sportId: number;
64
+ typeBand: number;
65
+ }
66
+ export interface PageMarket {
67
+ marketId: number;
68
+ specIndex: number;
69
+ specValue: string;
70
+ }
71
+ export declare enum EVisible {
72
+ visible = 0,
73
+ UnVisible = 1
74
+ }
75
+ export interface PageMatrix {
76
+ isDouble: number;
77
+ outcomeId: number;
78
+ text: string;
79
+ visible: EVisible;
80
+ }
81
+ export declare enum MarketSpecificView {
82
+ Base = 0,
83
+ HandicapWithTwoWay = 1,
84
+ HandicapWithThreeWay = 2,
85
+ TotalWithTwoWay = 3,
86
+ TotalWithTrheeWay = 4,
87
+ CorrectScore = 5,
88
+ ALL = 6
89
+ }
90
+ export type Matrix = {
91
+ [marketId: number]: string[];
92
+ };
93
+ export type ObservableSettings = {
94
+ [uid: string]: ObservableMarketsSetting | ObservableMarketNameSetting;
95
+ };
96
+ export type ObservableMarketsSetting = {
97
+ isMarkets: true;
98
+ sportId: number;
99
+ isPrematch: boolean;
100
+ };
101
+ export type ObservableMarketNameSetting = {
102
+ isMarketName: true;
103
+ marketId: number;
104
+ };
105
+ export type SubscribeFilterMarketsProps = {
106
+ uid: string;
107
+ sportId: number;
108
+ isPrematch: boolean;
109
+ callback: (a: any) => void;
110
+ };
111
+ export type SubscribeFilterMarketNamesProps = {
112
+ uid: string;
113
+ marketId: number;
114
+ callback: (a: any) => void;
115
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketSpecificView = exports.EVisible = exports.EDefaultMarketId = void 0;
4
+ var EDefaultMarketId;
5
+ (function (EDefaultMarketId) {
6
+ EDefaultMarketId[EDefaultMarketId["DEFAULT"] = 999] = "DEFAULT";
7
+ })(EDefaultMarketId || (exports.EDefaultMarketId = EDefaultMarketId = {}));
8
+ var EVisible;
9
+ (function (EVisible) {
10
+ EVisible[EVisible["visible"] = 0] = "visible";
11
+ EVisible[EVisible["UnVisible"] = 1] = "UnVisible";
12
+ })(EVisible || (exports.EVisible = EVisible = {}));
13
+ var MarketSpecificView;
14
+ (function (MarketSpecificView) {
15
+ MarketSpecificView[MarketSpecificView["Base"] = 0] = "Base";
16
+ MarketSpecificView[MarketSpecificView["HandicapWithTwoWay"] = 1] = "HandicapWithTwoWay";
17
+ MarketSpecificView[MarketSpecificView["HandicapWithThreeWay"] = 2] = "HandicapWithThreeWay";
18
+ MarketSpecificView[MarketSpecificView["TotalWithTwoWay"] = 3] = "TotalWithTwoWay";
19
+ MarketSpecificView[MarketSpecificView["TotalWithTrheeWay"] = 4] = "TotalWithTrheeWay";
20
+ MarketSpecificView[MarketSpecificView["CorrectScore"] = 5] = "CorrectScore";
21
+ MarketSpecificView[MarketSpecificView["ALL"] = 6] = "ALL";
22
+ })(MarketSpecificView || (exports.MarketSpecificView = MarketSpecificView = {}));