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,180 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentChannelType = exports.EPaymentLaunch = exports.ESpecStyle = exports.EPaymentSpecAction = void 0;
4
+ var EPaymentSpecAction;
5
+ (function (EPaymentSpecAction) {
6
+ EPaymentSpecAction[EPaymentSpecAction["Unknown"] = 0] = "Unknown";
7
+ EPaymentSpecAction[EPaymentSpecAction["Shuffle"] = 1] = "Shuffle";
8
+ EPaymentSpecAction[EPaymentSpecAction["ShuffleByDep"] = 2] = "ShuffleByDep";
9
+ })(EPaymentSpecAction || (exports.EPaymentSpecAction = EPaymentSpecAction = {}));
10
+ var ESpecStyle;
11
+ (function (ESpecStyle) {
12
+ ESpecStyle[ESpecStyle["Unknown"] = 0] = "Unknown";
13
+ ESpecStyle[ESpecStyle["Fast"] = 1] = "Fast";
14
+ })(ESpecStyle || (exports.ESpecStyle = ESpecStyle = {}));
15
+ var EPaymentLaunch;
16
+ (function (EPaymentLaunch) {
17
+ EPaymentLaunch[EPaymentLaunch["Frame"] = 1] = "Frame";
18
+ EPaymentLaunch[EPaymentLaunch["Redirect"] = 2] = "Redirect";
19
+ EPaymentLaunch[EPaymentLaunch["Qr"] = 3] = "Qr";
20
+ })(EPaymentLaunch || (exports.EPaymentLaunch = EPaymentLaunch = {}));
21
+ // export type DictionaryTypes = {
22
+ // currency_map_channels: { id_currency: number; id_channel: number }[];
23
+ // payment_systems_channels: TChannel[];
24
+ // payment_systems_limits: TLimit[];
25
+ // };
26
+ // export enum PaymentDirect {
27
+ // Deposit = 1,
28
+ // Withdraw,
29
+ // }
30
+ // export type TLimit = {
31
+ // amount_max: number;
32
+ // amount_min: number;
33
+ // direction: PaymentDirect;
34
+ // id_channel: number;
35
+ // id_currency: number;
36
+ // id_system: number;
37
+ // };
38
+ // export type TChannel = {
39
+ // channel_name: string;
40
+ // fast_pay: number;
41
+ // deps_required: number;
42
+ // has_deposit: number;
43
+ // has_withdraw: number;
44
+ // id_channel: number;
45
+ // id_system: number;
46
+ // is_active: number;
47
+ // is_crypto: number;
48
+ // };
49
+ // export type Payment = {
50
+ // channelName: string;
51
+ // isFast: boolean;
52
+ // id: number;
53
+ // order: number;
54
+ // limit: TLimit;
55
+ // isCrypto: boolean;
56
+ // };
57
+ // export type Withdraw = Payment;
58
+ // export type Payments = {
59
+ // deposit: Payment[];
60
+ // withdraw: Withdraw[];
61
+ // };
62
+ var PaymentChannelType;
63
+ (function (PaymentChannelType) {
64
+ // new Cripto
65
+ PaymentChannelType[PaymentChannelType["BTC"] = 1] = "BTC";
66
+ PaymentChannelType[PaymentChannelType["LTC"] = 2] = "LTC";
67
+ PaymentChannelType[PaymentChannelType["BCH"] = 3] = "BCH";
68
+ PaymentChannelType[PaymentChannelType["ADA"] = 4] = "ADA";
69
+ PaymentChannelType[PaymentChannelType["ETH"] = 5] = "ETH";
70
+ PaymentChannelType[PaymentChannelType["DOGE"] = 6] = "DOGE";
71
+ PaymentChannelType[PaymentChannelType["XRP"] = 7] = "XRP";
72
+ PaymentChannelType[PaymentChannelType["USDTE"] = 9] = "USDTE";
73
+ PaymentChannelType[PaymentChannelType["USDTT"] = 10] = "USDTT";
74
+ PaymentChannelType[PaymentChannelType["BNB"] = 11] = "BNB";
75
+ PaymentChannelType[PaymentChannelType["BNBBSC"] = 13] = "BNBBSC";
76
+ PaymentChannelType[PaymentChannelType["BUSD"] = 14] = "BUSD";
77
+ PaymentChannelType[PaymentChannelType["USDC"] = 17] = "USDC";
78
+ PaymentChannelType[PaymentChannelType["TRX"] = 18] = "TRX";
79
+ PaymentChannelType[PaymentChannelType["DAI"] = 20] = "DAI";
80
+ // End new Cripto
81
+ // TUrkishMPay
82
+ PaymentChannelType[PaymentChannelType["MPayParazula"] = 26] = "MPayParazula";
83
+ PaymentChannelType[PaymentChannelType["MPayPayco"] = 27] = "MPayPayco";
84
+ PaymentChannelType[PaymentChannelType["MPayVCC"] = 28] = "MPayVCC";
85
+ // RUB
86
+ PaymentChannelType[PaymentChannelType["CreditCard"] = 29] = "CreditCard";
87
+ PaymentChannelType[PaymentChannelType["CreditCardFast"] = 30] = "CreditCardFast";
88
+ PaymentChannelType[PaymentChannelType["CreditCardAcquirning"] = 31] = "CreditCardAcquirning";
89
+ PaymentChannelType[PaymentChannelType["VivaroBkash"] = 32] = "VivaroBkash";
90
+ // END RUN
91
+ PaymentChannelType[PaymentChannelType["BKash"] = 41] = "BKash";
92
+ PaymentChannelType[PaymentChannelType["Nagad"] = 42] = "Nagad";
93
+ PaymentChannelType[PaymentChannelType["VivaroNagad"] = 43] = "VivaroNagad";
94
+ PaymentChannelType[PaymentChannelType["BKashFastWellexPayCopy"] = 62] = "BKashFastWellexPayCopy";
95
+ PaymentChannelType[PaymentChannelType["NagadFastWellexPayCopy"] = 63] = "NagadFastWellexPayCopy";
96
+ PaymentChannelType[PaymentChannelType["ApayNagad"] = 64] = "ApayNagad";
97
+ PaymentChannelType[PaymentChannelType["NagadCashX"] = 65] = "NagadCashX";
98
+ PaymentChannelType[PaymentChannelType["BkashXoomPay"] = 69] = "BkashXoomPay";
99
+ PaymentChannelType[PaymentChannelType["BkashCashX"] = 70] = "BkashCashX";
100
+ PaymentChannelType[PaymentChannelType["WithdrawRubSber"] = 71] = "WithdrawRubSber";
101
+ PaymentChannelType[PaymentChannelType["WithdrawRubTinkof"] = 72] = "WithdrawRubTinkof";
102
+ PaymentChannelType[PaymentChannelType["BKashFastWellexPay"] = 75] = "BKashFastWellexPay";
103
+ PaymentChannelType[PaymentChannelType["NagadFastWellexPay"] = 76] = "NagadFastWellexPay";
104
+ PaymentChannelType[PaymentChannelType["NagadWellexPay"] = 77] = "NagadWellexPay";
105
+ PaymentChannelType[PaymentChannelType["BkashWellexPay"] = 78] = "BkashWellexPay";
106
+ PaymentChannelType[PaymentChannelType["WellxpayUpay"] = 79] = "WellxpayUpay";
107
+ PaymentChannelType[PaymentChannelType["WellxpayRocket"] = 80] = "WellxpayRocket";
108
+ // Pakistan
109
+ PaymentChannelType[PaymentChannelType["EasypaisaFast"] = 86] = "EasypaisaFast";
110
+ PaymentChannelType[PaymentChannelType["Easypaisa"] = 87] = "Easypaisa";
111
+ PaymentChannelType[PaymentChannelType["JazzCash"] = 88] = "JazzCash";
112
+ PaymentChannelType[PaymentChannelType["NagadXoomPay"] = 89] = "NagadXoomPay";
113
+ //MPay
114
+ PaymentChannelType[PaymentChannelType["PaparaMPay"] = 91] = "PaparaMPay";
115
+ PaymentChannelType[PaymentChannelType["EFTMPay"] = 92] = "EFTMPay";
116
+ PaymentChannelType[PaymentChannelType["MiniHavaleMpay"] = 93] = "MiniHavaleMpay";
117
+ PaymentChannelType[PaymentChannelType["MefeteMpay"] = 94] = "MefeteMpay";
118
+ PaymentChannelType[PaymentChannelType["MefeteMpayQr"] = 95] = "MefeteMpayQr";
119
+ PaymentChannelType[PaymentChannelType["PopyMpay"] = 97] = "PopyMpay";
120
+ // - Mpay end ( not full )
121
+ PaymentChannelType[PaymentChannelType["Rocket"] = 103] = "Rocket";
122
+ PaymentChannelType[PaymentChannelType["BkashMonetics"] = 126] = "BkashMonetics";
123
+ PaymentChannelType[PaymentChannelType["NagadMonetics"] = 127] = "NagadMonetics";
124
+ PaymentChannelType[PaymentChannelType["OctopayNagad"] = 134] = "OctopayNagad";
125
+ PaymentChannelType[PaymentChannelType["OctopayBKash"] = 135] = "OctopayBKash";
126
+ PaymentChannelType[PaymentChannelType["OctopayUPay"] = 136] = "OctopayUPay";
127
+ PaymentChannelType[PaymentChannelType["OctopayRocket"] = 137] = "OctopayRocket";
128
+ PaymentChannelType[PaymentChannelType["ApayBkash"] = 138] = "ApayBkash";
129
+ PaymentChannelType[PaymentChannelType["UPay"] = 139] = "UPay";
130
+ // INR payments
131
+ PaymentChannelType[PaymentChannelType["INRIMPS"] = 140] = "INRIMPS";
132
+ PaymentChannelType[PaymentChannelType["INRNEFTS"] = 141] = "INRNEFTS";
133
+ PaymentChannelType[PaymentChannelType["INRRGTS"] = 142] = "INRRGTS";
134
+ PaymentChannelType[PaymentChannelType["InrDeposit"] = 144] = "InrDeposit";
135
+ PaymentChannelType[PaymentChannelType["INRWithdrawImp"] = 147] = "INRWithdrawImp";
136
+ PaymentChannelType[PaymentChannelType["MPayCC"] = 148] = "MPayCC";
137
+ PaymentChannelType[PaymentChannelType["MPayFix"] = 149] = "MPayFix";
138
+ PaymentChannelType[PaymentChannelType["PagsmileBoleto"] = 152] = "PagsmileBoleto";
139
+ PaymentChannelType[PaymentChannelType["PagsmileDepositExpress"] = 153] = "PagsmileDepositExpress";
140
+ PaymentChannelType[PaymentChannelType["Lottery"] = 154] = "Lottery";
141
+ PaymentChannelType[PaymentChannelType["PagsmileWalletPicPay"] = 155] = "PagsmileWalletPicPay";
142
+ PaymentChannelType[PaymentChannelType["WalletAme"] = 156] = "WalletAme";
143
+ PaymentChannelType[PaymentChannelType["PixPagsmile"] = 158] = "PixPagsmile";
144
+ // USDT = 188,
145
+ PaymentChannelType[PaymentChannelType["BankTransfer"] = 176] = "BankTransfer";
146
+ PaymentChannelType[PaymentChannelType["NagadApi"] = 180] = "NagadApi";
147
+ // INR DEPOSIT
148
+ PaymentChannelType[PaymentChannelType["INRUpiFast"] = 182] = "INRUpiFast";
149
+ PaymentChannelType[PaymentChannelType["PKRCashmaal"] = 183] = "PKRCashmaal";
150
+ // Turkish
151
+ PaymentChannelType[PaymentChannelType["AnindaHavale"] = 184] = "AnindaHavale";
152
+ PaymentChannelType[PaymentChannelType["HavaleHera"] = 185] = "HavaleHera";
153
+ PaymentChannelType[PaymentChannelType["VipHavale"] = 190] = "VipHavale";
154
+ PaymentChannelType[PaymentChannelType["TurkishPapara"] = 191] = "TurkishPapara";
155
+ PaymentChannelType[PaymentChannelType["TurkishCreditDebit"] = 192] = "TurkishCreditDebit";
156
+ PaymentChannelType[PaymentChannelType["TurkishMefete"] = 193] = "TurkishMefete";
157
+ PaymentChannelType[PaymentChannelType["TurkishExpressHavale"] = 194] = "TurkishExpressHavale";
158
+ PaymentChannelType[PaymentChannelType["TurkishCepBank"] = 196] = "TurkishCepBank";
159
+ PaymentChannelType[PaymentChannelType["TurkishPayFix"] = 198] = "TurkishPayFix";
160
+ PaymentChannelType[PaymentChannelType["Pix"] = 201] = "Pix";
161
+ PaymentChannelType[PaymentChannelType["BankPix"] = 202] = "BankPix";
162
+ PaymentChannelType[PaymentChannelType["TRC"] = 205] = "TRC";
163
+ PaymentChannelType[PaymentChannelType["SOLANA"] = 206] = "SOLANA";
164
+ PaymentChannelType[PaymentChannelType["ERC"] = 207] = "ERC";
165
+ PaymentChannelType[PaymentChannelType["BEP"] = 208] = "BEP";
166
+ PaymentChannelType[PaymentChannelType["BKashFast"] = 211] = "BKashFast";
167
+ // PKR
168
+ PaymentChannelType[PaymentChannelType["PKRJazzcash"] = 212] = "PKRJazzcash";
169
+ PaymentChannelType[PaymentChannelType["PKREasypaisa"] = 216] = "PKREasypaisa";
170
+ PaymentChannelType[PaymentChannelType["MNXSpei"] = 217] = "MNXSpei";
171
+ // GLDN
172
+ PaymentChannelType[PaymentChannelType["GLDNBKash"] = 218] = "GLDNBKash";
173
+ // New methods
174
+ PaymentChannelType[PaymentChannelType["Spei"] = 219] = "Spei";
175
+ PaymentChannelType[PaymentChannelType["CoDi"] = 220] = "CoDi";
176
+ PaymentChannelType[PaymentChannelType["Oxxo"] = 221] = "Oxxo";
177
+ PaymentChannelType[PaymentChannelType["BankTransferTwo"] = 222] = "BankTransferTwo";
178
+ PaymentChannelType[PaymentChannelType["NagadGldn"] = 223] = "NagadGldn";
179
+ PaymentChannelType[PaymentChannelType["CashXAZN"] = 225] = "CashXAZN";
180
+ })(PaymentChannelType || (exports.PaymentChannelType = PaymentChannelType = {}));
@@ -0,0 +1,4 @@
1
+ import { CurrencyInfo, HandleAuthResponseProps, UserInfo } from './types';
2
+ export declare const getAdaptedUserInfo: (result: HandleAuthResponseProps & {
3
+ currencyInfo: CurrencyInfo | null;
4
+ }) => UserInfo;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAdaptedUserInfo = void 0;
4
+ const getAdaptedUserInfo = (result) => {
5
+ var _a, _b;
6
+ return ({
7
+ token: result.accessToken,
8
+ clientId: result.clientId,
9
+ country: result.country,
10
+ currencyId: result.currencyId,
11
+ currencyCode: ((_a = result.currencyInfo) === null || _a === void 0 ? void 0 : _a.shortView) || ((_b = result.currencyInfo) === null || _b === void 0 ? void 0 : _b.code) || 'n-f',
12
+ ratioUSD: result.ratioUSD,
13
+ email: result.email,
14
+ phoneNumber: result.phoneNumber,
15
+ login: result.login,
16
+ name: result.name,
17
+ patronymic: result.patronymic,
18
+ surname: result.surname,
19
+ birthDay: result.birthDay,
20
+ });
21
+ };
22
+ exports.getAdaptedUserInfo = getAdaptedUserInfo;
@@ -0,0 +1,4 @@
1
+ import { EventProviderId } from 'store/betting/entities/events/types';
2
+ export declare const getEventKeyTypeLine: (lineTypeRadar: number, id: string) => string;
3
+ export declare const toFixed: (num: string, fixed?: number) => string;
4
+ export declare const getProviderEnum: (lineTypeRadar: number) => EventProviderId;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProviderEnum = exports.toFixed = exports.getEventKeyTypeLine = void 0;
4
+ const types_1 = require("store/betting/entities/events/types");
5
+ const getEventKeyTypeLine = (lineTypeRadar, id) => {
6
+ // 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:)
7
+ // 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//
8
+ // 15 vdr:season : (vdr:tournament) //16 vhc:season (vhc:tournament:) //17 vti:season : (vti:tournament) //18 wns:season (wns:tournament: //19 ssln_event
9
+ // 0 sr:match// 1 race(sr:stage) // 2 sr:match (simple tournament)//3 vf:match //4 vbl:match //5 vto:match //6 vdr:match //7 vhc:match //8 vti:match//9 wns:match// 10 ssln_event
10
+ switch (lineTypeRadar) {
11
+ case 0:
12
+ return '00' + id;
13
+ case 1:
14
+ return '01' + id;
15
+ case 5:
16
+ return '03' + id;
17
+ case 7:
18
+ return '04' + id;
19
+ case 8:
20
+ return '05' + id;
21
+ case 11:
22
+ return '06' + id;
23
+ case 12:
24
+ return '07' + id;
25
+ case 13:
26
+ return '08' + id;
27
+ case 15:
28
+ return '09' + id;
29
+ case 19:
30
+ return '10' + id;
31
+ case 20:
32
+ return '11' + id;
33
+ case 21:
34
+ return '13' + id;
35
+ case 2:
36
+ return '14' + id;
37
+ case 3:
38
+ return '15' + id;
39
+ case 4:
40
+ return '16' + id;
41
+ case 6:
42
+ return '17' + id;
43
+ case 9:
44
+ return '18' + id;
45
+ case 10:
46
+ return '19' + id;
47
+ case 14:
48
+ return '20' + id;
49
+ case 16:
50
+ return '21' + id;
51
+ case 17:
52
+ return '22' + id;
53
+ case 18:
54
+ return '23' + id;
55
+ case 22:
56
+ return '14' + id;
57
+ }
58
+ };
59
+ exports.getEventKeyTypeLine = getEventKeyTypeLine;
60
+ const toFixed = (num, fixed = 2) => {
61
+ var _a;
62
+ const re = new RegExp(`^-?\\d+(?:.\\d{0,${fixed}})?`);
63
+ const value = ((_a = num.match(re)) === null || _a === void 0 ? void 0 : _a[0]) || num;
64
+ return Number(value).toFixed(2);
65
+ };
66
+ exports.toFixed = toFixed;
67
+ // export const getMiddleValue = (arr: number[]) =>
68
+ // arr.find(
69
+ // (it) => Math.abs(it - 0) === Math.min(...arr.map((it) => Math.abs(it - 0)))
70
+ // );
71
+ // export const isEditedLine = (line: ILine, oldLine: ILine) => {
72
+ // const { outcome_odds, outcome_active } = line;
73
+ // const lineString = JSON.stringify(outcome_odds, outcome_active);
74
+ // return (
75
+ // lineString !== JSON.stringify(oldLine.outcome_odds, oldLine.outcome_active)
76
+ // );
77
+ // };
78
+ const getProviderEnum = (lineTypeRadar) => {
79
+ if (lineTypeRadar === 19) {
80
+ return types_1.EventProviderId.Solution;
81
+ }
82
+ if (lineTypeRadar === 20) {
83
+ return types_1.EventProviderId.Genius;
84
+ }
85
+ if (lineTypeRadar === 21) {
86
+ return types_1.EventProviderId.Lsports;
87
+ }
88
+ if (lineTypeRadar === 22) {
89
+ return types_1.EventProviderId.BetBazar;
90
+ }
91
+ return types_1.EventProviderId.Radar;
92
+ };
93
+ exports.getProviderEnum = getProviderEnum;
@@ -0,0 +1 @@
1
+ export declare const getProviderName: (providerName: string) => string;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getProviderName = void 0;
4
+ // TODO provide for app ( right now i can't import this)
5
+ const getProviderName = (providerName) => providerName.toLowerCase().replaceAll(' ', '').replaceAll("'", '_');
6
+ exports.getProviderName = getProviderName;
@@ -0,0 +1,2 @@
1
+ import { AdaptedGame, CasinoGamesResponse } from '../store/casino/entities/games/types';
2
+ export declare const gamePagination: (page: number, limit: number, data: number[], fn: (id: number) => AdaptedGame | null) => CasinoGamesResponse;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.gamePagination = void 0;
4
+ const gamePagination = (page, limit, data, fn) => {
5
+ const initPage = page === 1 ? 0 : page;
6
+ const startIndex = initPage * limit;
7
+ let compareKey = '';
8
+ let isLastPage = false;
9
+ const totalPages = Math.ceil(data.length / limit); // Total pages calculation
10
+ const games = [];
11
+ for (let i = 0; i < startIndex + limit; i++) {
12
+ const gameId = data[i];
13
+ if (!gameId) {
14
+ isLastPage = true;
15
+ break;
16
+ }
17
+ const game = fn(gameId);
18
+ if (game) {
19
+ compareKey += game.id;
20
+ games.push(game);
21
+ }
22
+ }
23
+ return { isLastPage, games, compareKey, totalPages };
24
+ };
25
+ exports.gamePagination = gamePagination;
@@ -0,0 +1,16 @@
1
+ export declare const isNumber: (value: any) => boolean;
2
+ export declare const getRandomArbitrary: (min: number, max: number) => number;
3
+ export declare const getRandomInt: (min: number, max: number) => number;
4
+ export declare const getRandomMultipleOfFive: (min: number, max: number) => number;
5
+ type GetCurrencyInfoByIdOrNameProps = {
6
+ id?: number;
7
+ name?: string;
8
+ };
9
+ export declare const getCurrencyInfoByIdOrName: ({ id, name, }: GetCurrencyInfoByIdOrNameProps) => {
10
+ id: number;
11
+ code: string;
12
+ name: string;
13
+ shortView: string;
14
+ };
15
+ export declare const getDayOfMonth: (month: number, isFirstDay: boolean) => number;
16
+ export {};
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getDayOfMonth = exports.getCurrencyInfoByIdOrName = exports.getRandomMultipleOfFive = exports.getRandomInt = exports.getRandomArbitrary = exports.isNumber = void 0;
4
+ const constants_1 = require("../store/user/constants");
5
+ const isNumber = (value) => typeof value === 'number' && !isNaN(value);
6
+ exports.isNumber = isNumber;
7
+ const getRandomArbitrary = (min, max) => Math.random() * (max - min) + min;
8
+ exports.getRandomArbitrary = getRandomArbitrary;
9
+ const getRandomInt = (min, max) => {
10
+ min = Math.ceil(min);
11
+ max = Math.floor(max);
12
+ return Math.floor(Math.random() * (max - min + 1)) + min;
13
+ };
14
+ exports.getRandomInt = getRandomInt;
15
+ const getRandomMultipleOfFive = (min, max) => {
16
+ min = Math.ceil(min / 5); // Ensure the minimum is a multiple of 5
17
+ max = Math.floor(max / 5); // Ensure the maximum is a multiple of 5
18
+ return Math.floor(Math.random() * (max - min + 1)) * 5 + min * 5;
19
+ };
20
+ exports.getRandomMultipleOfFive = getRandomMultipleOfFive;
21
+ const getCurrencyInfoByIdOrName = ({ id, name, }) => constants_1.CURRENCIES.find((c) => c.id === id || c.code.toLocaleLowerCase() === name.toLocaleLowerCase());
22
+ exports.getCurrencyInfoByIdOrName = getCurrencyInfoByIdOrName;
23
+ const getDayOfMonth = (month, isFirstDay) => {
24
+ const firstDayOfMonth = new Date(new Date().getFullYear(), month, Number(isFirstDay));
25
+ return firstDayOfMonth.getTime();
26
+ };
27
+ exports.getDayOfMonth = getDayOfMonth;
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "react-memory-optimization",
3
+ "version": "0.0.1",
4
+ "description": "react memory optimization library",
5
+ "sideEffects": false,
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "scripts": {
10
+ "remove":"tsc && find ./dist -name \"index.js\" -type f -delete",
11
+ "format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
12
+ "lint": "tslint -p tsconfig.json",
13
+ "compile": "rm -rf dist/lib && tsc && tsc --build tsconfig.es5.json",
14
+ "build:dev": "rm -rf dist/lib && webpack --mode=development --node-env=development && tsc --build tsconfig.es5.json",
15
+ "dev": "rm -rf dist/lib && tsc && tsc --build tsconfig.es5.json && webpack --watch ",
16
+ "build": "rm -rf dist && rm -rf dist/bundle.js.map && webpack --mode=production --node-env=production && tsc --build tsconfig.es5.json && npm run remove",
17
+ "publish": "npm run build && npm publish",
18
+ "publish:types": "rm -rf dist && tsc --build tsconfig.es5-types.json && cp package-types.json ./dist/package.json && cd dist && rm -rf lib && npm publish",
19
+ "watch": "webpack --watch"
20
+ },
21
+ "author": "Decoder dog npmbuilder@gmail.com",
22
+ "license": "ISC",
23
+ "main": "dist/lib/index.js",
24
+ "module": "dist/lib/bundle.js",
25
+ "devDependencies": {
26
+ "@types/brotli": "^1.3.1",
27
+ "@types/node": "^20.5.4",
28
+ "@types/webpack": "^5.28.2",
29
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
30
+ "@typescript-eslint/parser": "^6.7.5",
31
+ "@webpack-cli/generators": "^3.0.7",
32
+ "clean-webpack-plugin": "^4.0.0",
33
+ "copy-webpack-plugin": "^11.0.0",
34
+ "declaration-bundler-webpack-plugin": "^1.0.3",
35
+ "eslint": "^8.42.0",
36
+ "eslint-config-airbnb": "^19.0.4",
37
+ "eslint-config-prettier": "^8.8.0",
38
+ "eslint-plugin-import": "^2.27.5",
39
+ "eslint-plugin-jsx-a11y": "^6.7.1",
40
+ "eslint-plugin-prettier": "^4.2.1",
41
+ "eslint-plugin-react": "^7.32.2",
42
+ "eslint-plugin-react-hooks": "^4.6.0",
43
+ "nodemon": "^2.0.22",
44
+ "prettier": "^2.8.8",
45
+ "ts-loader": "^9.4.4",
46
+ "ts-node": "^10.9.1",
47
+ "tslint": "^6.1.3",
48
+ "tslint-config-prettier": "^1.18.0",
49
+ "typescript": "^5.1.6",
50
+ "webpack": "^5.88.2",
51
+ "webpack-cli": "^5.1.4",
52
+ "wepack-cli": "^0.0.1-security"
53
+ },
54
+ "peerDependencies": {
55
+ "brotli": "1.3.3"
56
+ },
57
+ "eslintConfig": {
58
+ "extends": [
59
+ "react-app",
60
+ "react-app/jest"
61
+ ]
62
+ }
63
+ }