@eaera-com/client-sdk-v1 0.2.108

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 (216) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +86 -0
  3. package/dist/channels/accounts.d.ts +11 -0
  4. package/dist/channels/metrics.d.ts +8 -0
  5. package/dist/channels/position.d.ts +13 -0
  6. package/dist/channels/users.d.ts +38 -0
  7. package/dist/common/constants/category.constant.d.ts +30 -0
  8. package/dist/common/constants/category.constant.js +31 -0
  9. package/dist/common/constants/communication.constant.d.ts +52 -0
  10. package/dist/common/constants/communication.constant.js +85 -0
  11. package/dist/common/constants/email.constant.d.ts +4 -0
  12. package/dist/common/constants/email.constant.js +7 -0
  13. package/dist/common/constants/filter.constants.d.ts +1 -0
  14. package/dist/common/constants/filter.constants.js +6 -0
  15. package/dist/common/constants/index.d.ts +15 -0
  16. package/dist/common/constants/index.js +79 -0
  17. package/dist/common/constants/kyc.constant.d.ts +42 -0
  18. package/dist/common/constants/kyc.constant.js +43 -0
  19. package/dist/common/constants/listStatus.constants.d.ts +2 -0
  20. package/dist/common/constants/listStatus.constants.js +19 -0
  21. package/dist/common/constants/methods.constant.d.ts +43 -0
  22. package/dist/common/constants/methods.constant.js +84 -0
  23. package/dist/common/constants/passwordRule.constants.d.ts +4 -0
  24. package/dist/common/constants/passwordRule.constants.js +7 -0
  25. package/dist/common/constants/program.constants.d.ts +2 -0
  26. package/dist/common/constants/program.constants.js +31 -0
  27. package/dist/common/constants/propAccount.constant.d.ts +8 -0
  28. package/dist/common/constants/propAccount.constant.js +11 -0
  29. package/dist/common/constants/site-settings.constants.d.ts +40 -0
  30. package/dist/common/constants/site-settings.constants.js +10 -0
  31. package/dist/common/constants/store.constants.d.ts +1 -0
  32. package/dist/common/constants/store.constants.js +7 -0
  33. package/dist/common/constants/supportTicket.constant.d.ts +11 -0
  34. package/dist/common/constants/supportTicket.constant.js +14 -0
  35. package/dist/common/constants/tradingPlatform.constants.d.ts +4 -0
  36. package/dist/common/constants/tradingPlatform.constants.js +7 -0
  37. package/dist/common/constants/transaction.constant.d.ts +16 -0
  38. package/dist/common/constants/transaction.constant.js +19 -0
  39. package/dist/common/constants/type.constants.d.ts +5 -0
  40. package/dist/common/constants/type.constants.js +28 -0
  41. package/dist/common/constants/withdraw.constant.d.ts +1 -0
  42. package/dist/common/constants/withdraw.constant.js +7 -0
  43. package/dist/common/types/addon.type.d.ts +30 -0
  44. package/dist/common/types/category.type.d.ts +8 -0
  45. package/dist/common/types/common.type.d.ts +3 -0
  46. package/dist/common/types/communication.type.d.ts +51 -0
  47. package/dist/common/types/coupon.type.d.ts +27 -0
  48. package/dist/common/types/email.type.d.ts +8 -0
  49. package/dist/common/types/fundingSource.type.d.ts +80 -0
  50. package/dist/common/types/ibs.type.d.ts +15 -0
  51. package/dist/common/types/index.d.ts +16 -0
  52. package/dist/common/types/kyc.type.d.ts +52 -0
  53. package/dist/common/types/liveNotification.type.d.ts +10 -0
  54. package/dist/common/types/news.type.d.ts +17 -0
  55. package/dist/common/types/notification.types.d.ts +30 -0
  56. package/dist/common/types/passwordRule.type.d.ts +16 -0
  57. package/dist/common/types/paymentMethod/blockbee.type.d.ts +27 -0
  58. package/dist/common/types/paymentMethod/index.d.ts +2 -0
  59. package/dist/common/types/paymentMethod/match2pay.type.d.ts +27 -0
  60. package/dist/common/types/product.type.d.ts +63 -0
  61. package/dist/common/types/siteSetting.type.d.ts +77 -0
  62. package/dist/common/types/wallet.type.d.ts +36 -0
  63. package/dist/common/use-utils/data/countriesWithCurrencies.d.ts +7 -0
  64. package/dist/common/use-utils/data/dragonpayBank.d.ts +6 -0
  65. package/dist/common/use-utils/data/help2pay_banks.d.ts +7 -0
  66. package/dist/common/use-utils/data/listCryptoCurrencies.d.ts +5 -0
  67. package/dist/common/use-utils/data/regions.d.ts +16 -0
  68. package/dist/common/use-utils/data/widgets.d.ts +4 -0
  69. package/dist/common/use-utils/error-handlers/index.d.ts +1 -0
  70. package/dist/common/use-utils/helpers/color.helpers.d.ts +2 -0
  71. package/dist/common/use-utils/helpers/color.helpers.js +19 -0
  72. package/dist/common/use-utils/helpers/currency.helpers.d.ts +25 -0
  73. package/dist/common/use-utils/helpers/currency.helpers.js +762 -0
  74. package/dist/common/use-utils/helpers/date.helpers.d.ts +8 -0
  75. package/dist/common/use-utils/helpers/date.helpers.js +64 -0
  76. package/dist/common/use-utils/helpers/kyc.helpers.d.ts +22 -0
  77. package/dist/common/use-utils/helpers/kyc.helpers.js +165 -0
  78. package/dist/common/use-utils/helpers/misc.helpers.d.ts +45 -0
  79. package/dist/common/use-utils/helpers/misc.helpers.js +141 -0
  80. package/dist/common/use-utils/helpers/number.helpers.d.ts +11 -0
  81. package/dist/common/use-utils/helpers/number.helpers.js +76 -0
  82. package/dist/common/use-utils/helpers/passwordRule.helpers.d.ts +5 -0
  83. package/dist/common/use-utils/helpers/passwordRule.helpers.js +31 -0
  84. package/dist/common/use-utils/helpers/schema.helpers.d.ts +2 -0
  85. package/dist/common/use-utils/helpers/schema.helpers.js +2036 -0
  86. package/dist/common/use-utils/helpers/string.helpers.d.ts +7 -0
  87. package/dist/common/use-utils/helpers/string.helpers.js +38 -0
  88. package/dist/common/use-utils/helpers/transaction.helpers.d.ts +8 -0
  89. package/dist/common/use-utils/helpers/transaction.helpers.js +44 -0
  90. package/dist/common/use-utils/schemas/fundingMethod.schema.d.ts +1313 -0
  91. package/dist/common/use-utils/validators/index.d.ts +4 -0
  92. package/dist/common/use-utils/validators/index.js +8 -0
  93. package/dist/index-6dV6pxDN.js +334 -0
  94. package/dist/index-BTVWGSPO.js +2897 -0
  95. package/dist/index.d.ts +1763 -0
  96. package/dist/index.js +10326 -0
  97. package/dist/regions-Dsypl2zG.js +18768 -0
  98. package/dist/services/ClientSDK/account/index.d.ts +57 -0
  99. package/dist/services/ClientSDK/activityLog/index.d.ts +6 -0
  100. package/dist/services/ClientSDK/auth/index.d.ts +21 -0
  101. package/dist/services/ClientSDK/auth/types.d.ts +11 -0
  102. package/dist/services/ClientSDK/captcha/index.d.ts +5 -0
  103. package/dist/services/ClientSDK/category/index.d.ts +9 -0
  104. package/dist/services/ClientSDK/client/index.d.ts +15 -0
  105. package/dist/services/ClientSDK/commissionProfile/index.d.ts +10 -0
  106. package/dist/services/ClientSDK/contact/index.d.ts +9 -0
  107. package/dist/services/ClientSDK/content/index.d.ts +18 -0
  108. package/dist/services/ClientSDK/contentType/index.d.ts +6 -0
  109. package/dist/services/ClientSDK/conversionRate/index.d.ts +7 -0
  110. package/dist/services/ClientSDK/coupon/index.d.ts +15 -0
  111. package/dist/services/ClientSDK/coupon/type.d.ts +35 -0
  112. package/dist/services/ClientSDK/department/index.d.ts +10 -0
  113. package/dist/services/ClientSDK/devices/index.d.ts +6 -0
  114. package/dist/services/ClientSDK/emailLayout/index.d.ts +10 -0
  115. package/dist/services/ClientSDK/emailTemplate/index.d.ts +15 -0
  116. package/dist/services/ClientSDK/employee/index.d.ts +15 -0
  117. package/dist/services/ClientSDK/folder/index.d.ts +12 -0
  118. package/dist/services/ClientSDK/fundingSource/index.d.ts +17 -0
  119. package/dist/services/ClientSDK/gamificationCampaign/index.d.ts +9 -0
  120. package/dist/services/ClientSDK/ib/index.d.ts +26 -0
  121. package/dist/services/ClientSDK/index.d.ts +60 -0
  122. package/dist/services/ClientSDK/kycs/index.d.ts +18 -0
  123. package/dist/services/ClientSDK/lead/index.d.ts +13 -0
  124. package/dist/services/ClientSDK/metric/index.d.ts +11 -0
  125. package/dist/services/ClientSDK/metric/type.d.ts +171 -0
  126. package/dist/services/ClientSDK/news/index.d.ts +14 -0
  127. package/dist/services/ClientSDK/note/index.d.ts +8 -0
  128. package/dist/services/ClientSDK/notificationCenter/NotificationCenter.types.d.ts +24 -0
  129. package/dist/services/ClientSDK/notificationCenter/index.d.ts +20 -0
  130. package/dist/services/ClientSDK/payment/index.d.ts +27 -0
  131. package/dist/services/ClientSDK/persona/index.d.ts +12 -0
  132. package/dist/services/ClientSDK/product/index.d.ts +12 -0
  133. package/dist/services/ClientSDK/productAttribute/index.d.ts +9 -0
  134. package/dist/services/ClientSDK/propAccount/index.d.ts +59 -0
  135. package/dist/services/ClientSDK/purchase/index.d.ts +13 -0
  136. package/dist/services/ClientSDK/purchase/type.d.ts +66 -0
  137. package/dist/services/ClientSDK/reportFilters/index.d.ts +9 -0
  138. package/dist/services/ClientSDK/request/index.d.ts +38 -0
  139. package/dist/services/ClientSDK/roleSet/index.d.ts +8 -0
  140. package/dist/services/ClientSDK/silt/index.d.ts +5 -0
  141. package/dist/services/ClientSDK/siteSetting/index.d.ts +16 -0
  142. package/dist/services/ClientSDK/sumsub/index.d.ts +6 -0
  143. package/dist/services/ClientSDK/support/index.d.ts +16 -0
  144. package/dist/services/ClientSDK/tradeBattle/index.d.ts +30 -0
  145. package/dist/services/ClientSDK/tradeBattle/tradeBattle.type.d.ts +119 -0
  146. package/dist/services/ClientSDK/tradeServer/index.d.ts +12 -0
  147. package/dist/services/ClientSDK/transaction/index.d.ts +9 -0
  148. package/dist/services/ClientSDK/user/index.d.ts +40 -0
  149. package/dist/services/ClientSDK/veriff/index.d.ts +7 -0
  150. package/dist/services/ClientSDK/voip/index.d.ts +5 -0
  151. package/dist/services/ClientSDK/wallet/index.d.ts +18 -0
  152. package/dist/services/EmailServiceTestSDK/index.d.ts +7 -0
  153. package/dist/services/EmailServiceTestSDK/message/index.d.ts +6 -0
  154. package/dist/services/PoolTradingSDK/index.d.ts +11 -0
  155. package/dist/services/PoolTradingSDK/investWallet/index.d.ts +16 -0
  156. package/dist/services/PoolTradingSDK/poolProfile/index.d.ts +46 -0
  157. package/dist/services/ReportSDK/index.d.ts +28 -0
  158. package/dist/services/base.d.ts +29 -0
  159. package/dist/stores/account.d.ts +191 -0
  160. package/dist/stores/activityLog.d.ts +7 -0
  161. package/dist/stores/addon.d.ts +11 -0
  162. package/dist/stores/advertising.d.ts +155 -0
  163. package/dist/stores/auth.d.ts +39 -0
  164. package/dist/stores/battleNotification.d.ts +6 -0
  165. package/dist/stores/captcha.d.ts +3 -0
  166. package/dist/stores/category.d.ts +15 -0
  167. package/dist/stores/client.d.ts +16 -0
  168. package/dist/stores/commissionProfile.d.ts +12 -0
  169. package/dist/stores/contact.d.ts +9 -0
  170. package/dist/stores/content.d.ts +222 -0
  171. package/dist/stores/contentType.d.ts +10 -0
  172. package/dist/stores/contentV2.d.ts +160 -0
  173. package/dist/stores/conversionRate.d.ts +9 -0
  174. package/dist/stores/coupon.d.ts +30 -0
  175. package/dist/stores/department.d.ts +7 -0
  176. package/dist/stores/devices.d.ts +8 -0
  177. package/dist/stores/employee.d.ts +12 -0
  178. package/dist/stores/folder.d.ts +15 -0
  179. package/dist/stores/fundingSource.d.ts +46 -0
  180. package/dist/stores/gamificationCampaign.d.ts +10 -0
  181. package/dist/stores/ib.d.ts +22 -0
  182. package/dist/stores/index.d.ts +1761 -0
  183. package/dist/stores/investWallet.d.ts +92 -0
  184. package/dist/stores/kycs.d.ts +16 -0
  185. package/dist/stores/lead.d.ts +13 -0
  186. package/dist/stores/liveNotification.d.ts +6 -0
  187. package/dist/stores/metric.d.ts +24 -0
  188. package/dist/stores/metricsV2.d.ts +28 -0
  189. package/dist/stores/news.d.ts +15 -0
  190. package/dist/stores/notes.d.ts +16 -0
  191. package/dist/stores/notification.d.ts +6 -0
  192. package/dist/stores/notificationCenter.d.ts +20 -0
  193. package/dist/stores/payment.d.ts +25 -0
  194. package/dist/stores/poolProfile.d.ts +117 -0
  195. package/dist/stores/poolTrading.d.ts +7 -0
  196. package/dist/stores/product.d.ts +31 -0
  197. package/dist/stores/productAttribute.d.ts +10 -0
  198. package/dist/stores/propAccount.d.ts +48 -0
  199. package/dist/stores/purchases.d.ts +23 -0
  200. package/dist/stores/report.d.ts +19 -0
  201. package/dist/stores/reportFilter.d.ts +9 -0
  202. package/dist/stores/request.d.ts +39 -0
  203. package/dist/stores/roleSet.d.ts +7 -0
  204. package/dist/stores/siteSetting.d.ts +103 -0
  205. package/dist/stores/support.d.ts +33 -0
  206. package/dist/stores/tradeBattle.d.ts +51 -0
  207. package/dist/stores/tradeServer.d.ts +12 -0
  208. package/dist/stores/transaction.d.ts +8 -0
  209. package/dist/stores/user.d.ts +30 -0
  210. package/dist/stores/wallet.d.ts +53 -0
  211. package/dist/utils/axiosTiming.d.ts +12 -0
  212. package/dist/utils/cookies.d.ts +1 -0
  213. package/dist/utils/index.d.ts +4 -0
  214. package/dist/utils/routeCompression.d.ts +19 -0
  215. package/dist/utils/store.d.ts +12 -0
  216. package/package.json +74 -0
@@ -0,0 +1,84 @@
1
+ const A = {
2
+ CRYPTO_WALLET: "crypto_wallet",
3
+ HELP2PAY: "help2pay",
4
+ PAYMENT_ASIA: "payment_asia",
5
+ STICPAY: "sticpay",
6
+ PESKA: "peska",
7
+ ZOTAPAY: "zotapay",
8
+ DRAGONPAY: "dragonpay",
9
+ PAYPAL: "paypal",
10
+ COINPAYMENTS: "coinpayments",
11
+ B2BINPAY: "b2binpay",
12
+ COINSBUY: "coinsbuy",
13
+ CONFIRMO: "confirmo",
14
+ NOW_PAYMENTS: "now_payments",
15
+ VISA_MASTER_CARD: "visa_master_card",
16
+ UNLIMIT: "unlimit",
17
+ UNLIMIT_CRYPTOCHILL: "unlimit_cryptochill",
18
+ LOCAL_METHOD: "local_method",
19
+ CHAINXPAY: "chainxpay",
20
+ TICKPAY_FIAT: "tickpay_fiat",
21
+ TICKPAY_CRYPTO: "tickpay_crypto",
22
+ D24: "d24",
23
+ LIMEPAY: "limepay",
24
+ BANKWIRE: "bankwire",
25
+ UNIPAY: "unipay",
26
+ NOIFX: "noifx",
27
+ PAYRETAILERS: "pay_retailers",
28
+ BOOMFI: "boomfi",
29
+ INSTAXCHANGE: "instaxchange",
30
+ BLOCKBEE: "blockbee",
31
+ RISE: "rise",
32
+ MATCH2PAY: "match2pay",
33
+ MAXAFI: "maxafi",
34
+ KEPG: "kepg",
35
+ VRFY: "vrfy",
36
+ RAGAPAY: "ragapay"
37
+ }, I = [
38
+ A.CHAINXPAY,
39
+ A.INSTAXCHANGE,
40
+ A.VRFY
41
+ ], P = {
42
+ [A.CRYPTO_WALLET]: "Crypto Wallet",
43
+ [A.HELP2PAY]: "Help2Pay",
44
+ [A.PAYMENT_ASIA]: "Payment Asia",
45
+ [A.STICPAY]: "Sticpay",
46
+ [A.PESKA]: "Peska",
47
+ [A.ZOTAPAY]: "Zotapay",
48
+ [A.DRAGONPAY]: "Dragonpay",
49
+ [A.PAYPAL]: "PayPal",
50
+ [A.COINPAYMENTS]: "Crypto Payment (CoinPayments)",
51
+ [A.B2BINPAY]: "B2BinPay",
52
+ [A.COINSBUY]: "Crypto Payment (Coinsbuy)",
53
+ [A.CONFIRMO]: "Confirmo",
54
+ [A.NOW_PAYMENTS]: "NOWPayments",
55
+ [A.VISA_MASTER_CARD]: "Visa / MasterCard",
56
+ [A.UNLIMIT]: "Unlimit",
57
+ [A.UNLIMIT_CRYPTOCHILL]: "Unlimit (CryptoChill)",
58
+ [A.LOCAL_METHOD]: "Local Method",
59
+ [A.CHAINXPAY]: "ChainXPay",
60
+ [A.TICKPAY_FIAT]: "TickPay (Fiat)",
61
+ [A.TICKPAY_CRYPTO]: "TickPay (Crypto)",
62
+ [A.D24]: "D24",
63
+ [A.LIMEPAY]: "Limepay",
64
+ [A.BANKWIRE]: "International Bank Wire",
65
+ [A.UNIPAY]: "Unipay",
66
+ [A.NOIFX]: "Noifx",
67
+ [A.PAYRETAILERS]: "PayRetailers",
68
+ [A.BOOMFI]: "BoomFi",
69
+ [A.INSTAXCHANGE]: "InstaxChange",
70
+ [A.BLOCKBEE]: "BlockBee",
71
+ [A.RISE]: "Rise",
72
+ [A.MATCH2PAY]: "Match2Pay",
73
+ [A.MAXAFI]: "MaxaFi",
74
+ [A.KEPG]: "KEPG",
75
+ [A.VRFY]: "VRFY",
76
+ [A.RAGAPAY]: "Ragapay"
77
+ }, C = [A.LOCAL_METHOD, A.CRYPTO_WALLET], i = (a) => P[a] ?? a;
78
+ export {
79
+ A as PSP,
80
+ I as PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES,
81
+ P as PSP_TEXT,
82
+ C as PSP_WITH_DYNAMIC_SUFFIX,
83
+ i as getPspText
84
+ };
@@ -0,0 +1,4 @@
1
+ export declare const PASSWORD_RULE_CONDITION_NAME: {
2
+ readonly REGEX: "regex";
3
+ readonly MIN_CHARS: "min-chars";
4
+ };
@@ -0,0 +1,7 @@
1
+ const E = {
2
+ REGEX: "regex",
3
+ MIN_CHARS: "min-chars"
4
+ };
5
+ export {
6
+ E as PASSWORD_RULE_CONDITION_NAME
7
+ };
@@ -0,0 +1,2 @@
1
+ export declare const PAYMENT_METHOD: Record<string, string>;
2
+ export declare const ADDON_TYPE: Record<string, string>;
@@ -0,0 +1,31 @@
1
+ const A = {
2
+ UNLIMIT: "unlimit",
3
+ UNLIMIT_CARD: "unlimit_card",
4
+ UNLIMIT_APPLEPAY: "unlimit_applepay",
5
+ NOW_PAYMENTS: "now_payments",
6
+ PAYPAL: "paypal",
7
+ FANBASIS: "fanbasis",
8
+ LOCAL_METHOD: "local_method",
9
+ STRIPE: "stripe",
10
+ WALLET: "wallet",
11
+ TRIPLEA: "triplea",
12
+ XAMAX_FIAT: "xamax-fiat",
13
+ XAMMAX: "xamax",
14
+ XAMAX_CRYPTO: "xamax-crypto",
15
+ INSTANT: "instant",
16
+ CONFIRMO: "confirmo",
17
+ WORTHY: "worthy",
18
+ NOMUPAY: "nomupay",
19
+ NOMUPAY_GOOGLEPAY: "nomupay_googlepay",
20
+ NOMUPAY_APPLEPAY: "nomupay_applepay",
21
+ BANKWIRE: "bankwire",
22
+ T365: "t365"
23
+ }, a = {
24
+ FIXED: "fixed",
25
+ PERCENTAGE: "percentage",
26
+ NONE: "none"
27
+ };
28
+ export {
29
+ a as ADDON_TYPE,
30
+ A as PAYMENT_METHOD
31
+ };
@@ -0,0 +1,8 @@
1
+ export declare const PROP_ACCOUNT_TRADING_EVENTS: {
2
+ DISABLED: string;
3
+ ENABLED: string;
4
+ };
5
+ export declare const PROP_ACCOUNT_TRADING_STATUS: {
6
+ ENABLED: string;
7
+ DISABLED: string;
8
+ };
@@ -0,0 +1,11 @@
1
+ const t = {
2
+ DISABLED: "content.request_disable_prop_trading",
3
+ ENABLED: "content.request_reactivate_prop_trading"
4
+ }, e = {
5
+ ENABLED: "reactivate",
6
+ DISABLED: "disable"
7
+ };
8
+ export {
9
+ t as PROP_ACCOUNT_TRADING_EVENTS,
10
+ e as PROP_ACCOUNT_TRADING_STATUS
11
+ };
@@ -0,0 +1,40 @@
1
+ declare const enum COST_TYPE_PLATFORM_PROGRAM {
2
+ FIXED = "fixed",
3
+ PERCENTAGE = "percentage"
4
+ }
5
+ export declare enum PAYOUT_RULE_TYPE {
6
+ DAILY = "Daily",
7
+ WEEKLY = "Weekly",
8
+ MONTHLY = "Monthly",
9
+ INSTANT = "Instant"
10
+ }
11
+ export declare enum WEEKLY_DAY {
12
+ SUNDAY = "Sunday",
13
+ MONDAY = "Monday",
14
+ TUESDAY = "Tuesday",
15
+ WEDNESDAY = "Wednesday",
16
+ THURSDAY = "Thursday",
17
+ FRIDAY = "Friday",
18
+ SATURDAY = "Saturday"
19
+ }
20
+ export declare enum PAYOUT_RULE_OP {
21
+ ALL = "All",
22
+ INCLUDE = "Include",
23
+ EXCLUDE = "Exclude"
24
+ }
25
+ export declare enum IB_COMMISSION_TYPE {
26
+ ALL = "All",
27
+ OVERRIDE = "Override",
28
+ FIX = "Fix",
29
+ FLEX = "Flex"
30
+ }
31
+ export declare enum PAYOUT_REBATE_TYPE {
32
+ ALL = "All",
33
+ DIRECT = "Direct",
34
+ PASSIVE = "Passive"
35
+ }
36
+ export { COST_TYPE_PLATFORM_PROGRAM };
37
+ export declare enum CSS_APPLY_TARGET_OPTIONS {
38
+ BACK_OFFICE = "bo",
39
+ CLIENT_PORTAL = "cp"
40
+ }
@@ -0,0 +1,10 @@
1
+ var e = /* @__PURE__ */ ((r) => (r.FIXED = "fixed", r.PERCENTAGE = "percentage", r))(e || {}), a = /* @__PURE__ */ ((r) => (r.DAILY = "Daily", r.WEEKLY = "Weekly", r.MONTHLY = "Monthly", r.INSTANT = "Instant", r))(a || {}), n = /* @__PURE__ */ ((r) => (r.SUNDAY = "Sunday", r.MONDAY = "Monday", r.TUESDAY = "Tuesday", r.WEDNESDAY = "Wednesday", r.THURSDAY = "Thursday", r.FRIDAY = "Friday", r.SATURDAY = "Saturday", r))(n || {}), t = /* @__PURE__ */ ((r) => (r.ALL = "All", r.INCLUDE = "Include", r.EXCLUDE = "Exclude", r))(t || {}), u = /* @__PURE__ */ ((r) => (r.ALL = "All", r.OVERRIDE = "Override", r.FIX = "Fix", r.FLEX = "Flex", r))(u || {}), d = /* @__PURE__ */ ((r) => (r.ALL = "All", r.DIRECT = "Direct", r.PASSIVE = "Passive", r))(d || {}), l = /* @__PURE__ */ ((r) => (r.BACK_OFFICE = "bo", r.CLIENT_PORTAL = "cp", r))(l || {});
2
+ export {
3
+ e as COST_TYPE_PLATFORM_PROGRAM,
4
+ l as CSS_APPLY_TARGET_OPTIONS,
5
+ u as IB_COMMISSION_TYPE,
6
+ d as PAYOUT_REBATE_TYPE,
7
+ t as PAYOUT_RULE_OP,
8
+ a as PAYOUT_RULE_TYPE,
9
+ n as WEEKLY_DAY
10
+ };
@@ -0,0 +1 @@
1
+ export declare const REQUEST_STORE: Record<string, string>;
@@ -0,0 +1,7 @@
1
+ const E = {
2
+ VERIFICATION: "verification",
3
+ REQUESTS: "requests"
4
+ };
5
+ export {
6
+ E as REQUEST_STORE
7
+ };
@@ -0,0 +1,11 @@
1
+ export declare const SUPPORT_TICKET_EVENT_NAMES: {
2
+ AFTER_REPLIED: string;
3
+ AFTER_CLOSED: string;
4
+ };
5
+ export declare const SUPPORT_TICKET_STATUS: {
6
+ new: string[];
7
+ pending: string[];
8
+ replied: string[];
9
+ completed: string[];
10
+ closed: string[];
11
+ };
@@ -0,0 +1,14 @@
1
+ const e = {
2
+ AFTER_REPLIED: "after_replied",
3
+ AFTER_CLOSED: "after_closed"
4
+ }, r = {
5
+ new: ["support.new", "text-success border-green"],
6
+ pending: ["support.pending", "text-warning border-orange"],
7
+ replied: ["support.wait-reply", "text-info border-blue"],
8
+ completed: ["support.completed", "text-success border-green"],
9
+ closed: ["support.closed", "border-grey-button"]
10
+ };
11
+ export {
12
+ e as SUPPORT_TICKET_EVENT_NAMES,
13
+ r as SUPPORT_TICKET_STATUS
14
+ };
@@ -0,0 +1,4 @@
1
+ export declare const TRADING_PLATFORM_CONSTANTS: {
2
+ MT5: string;
3
+ CTRADER: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ const T = {
2
+ MT5: "MT5",
3
+ CTRADER: "Ctrader"
4
+ };
5
+ export {
6
+ T as TRADING_PLATFORM_CONSTANTS
7
+ };
@@ -0,0 +1,16 @@
1
+ export declare const TRANSACTION_ACTION_TYPE: {
2
+ AFFILIATE: string;
3
+ PROP_DEPOSIT: string;
4
+ PURCHASE_PROGRAM: string;
5
+ REFERRAL: string;
6
+ REWARD: string;
7
+ SHARE_PROFIT: string;
8
+ WITHDRAWAL: string;
9
+ WITHDRAW_FROM_PROP_ACCOUNT: string;
10
+ };
11
+ export declare const TRANSACTION_STATE: {
12
+ COMPLETED: string;
13
+ FAILED: string;
14
+ PROCESSING: string;
15
+ NEW: string;
16
+ };
@@ -0,0 +1,19 @@
1
+ const A = {
2
+ AFFILIATE: "affiliate",
3
+ PROP_DEPOSIT: "prop_deposit",
4
+ PURCHASE_PROGRAM: "purchase_program",
5
+ REFERRAL: "referral",
6
+ REWARD: "reward",
7
+ SHARE_PROFIT: "share_profit",
8
+ WITHDRAWAL: "withdrawal",
9
+ WITHDRAW_FROM_PROP_ACCOUNT: "withdraw_from_prop_account"
10
+ }, R = {
11
+ COMPLETED: "completed",
12
+ FAILED: "failed",
13
+ PROCESSING: "processing",
14
+ NEW: "new"
15
+ };
16
+ export {
17
+ A as TRANSACTION_ACTION_TYPE,
18
+ R as TRANSACTION_STATE
19
+ };
@@ -0,0 +1,5 @@
1
+ export declare const COMPARE_TYPE: Record<string, string>;
2
+ export declare const CURRENCY_TYPE: Record<string, string>;
3
+ export declare const FEE_TYPE: Record<string, string>;
4
+ export declare const COUNTRY_OP_TYPE: Record<string, string>;
5
+ export declare const OP_TYPE: Record<string, string>;
@@ -0,0 +1,28 @@
1
+ const E = {
2
+ EQUALS: "equals",
3
+ CONTAINS: "contains",
4
+ IN: "in"
5
+ }, e = {
6
+ FIAT: "fiat",
7
+ CRYPTO: "crypto"
8
+ }, c = {
9
+ FIXED: "Fixed",
10
+ PERCENTAGE: "Percentage",
11
+ NONE: "None",
12
+ BOTH: "Both"
13
+ }, n = {
14
+ ALL: "all",
15
+ INCLUDE: "include",
16
+ EXCLUDE: "exclude"
17
+ }, t = {
18
+ ALL: "all",
19
+ INCLUDE: "include",
20
+ EXCLUDE: "exclude"
21
+ };
22
+ export {
23
+ E as COMPARE_TYPE,
24
+ n as COUNTRY_OP_TYPE,
25
+ e as CURRENCY_TYPE,
26
+ c as FEE_TYPE,
27
+ t as OP_TYPE
28
+ };
@@ -0,0 +1 @@
1
+ export declare const FOCUSED_INPUT: Record<string, string>;
@@ -0,0 +1,7 @@
1
+ const t = {
2
+ FROM_AMOUNT_INPUT: "fromAmountInput",
3
+ ESTIMATED_AMOUNT_INPUT: "estimatedAmountInput"
4
+ };
5
+ export {
6
+ t as FOCUSED_INPUT
7
+ };
@@ -0,0 +1,30 @@
1
+ export type AddonType = 'fixed' | 'percentage' | 'none';
2
+ export interface IAddonCategory {
3
+ id: number;
4
+ name: string;
5
+ order: number;
6
+ condition: 'single' | 'multiple';
7
+ state: 'enabled' | 'disabled';
8
+ addons: IAddon[];
9
+ created_at: string;
10
+ updated_at: string;
11
+ }
12
+ export interface IAddon {
13
+ category_id: number;
14
+ cost_type: AddonType;
15
+ cost_value: {
16
+ [key: string]: number;
17
+ } | number;
18
+ description: string;
19
+ id: number;
20
+ name: string;
21
+ order: number;
22
+ state: 'enabled' | 'disabled';
23
+ type: AddonType;
24
+ value: number;
25
+ created_at: string;
26
+ updated_at: string;
27
+ }
28
+ export interface IAddonCategoryContent extends IAddonCategory {
29
+ ct_id: number;
30
+ }
@@ -0,0 +1,8 @@
1
+ import { CATEGORY_NAME, ACCOUNT_PURPOSE, PROP_ACCOUNT_RULES, CATEGORY_NAME_WALLET } from '../constants/category.constant';
2
+ import { CURRENCY_TYPE } from '../constants/type.constants';
3
+
4
+ export type CategoryName = (typeof CATEGORY_NAME)[keyof typeof CATEGORY_NAME];
5
+ export type PropAccountRule = (typeof PROP_ACCOUNT_RULES)[keyof typeof PROP_ACCOUNT_RULES];
6
+ export type AccountPurpose = (typeof ACCOUNT_PURPOSE)[keyof typeof ACCOUNT_PURPOSE];
7
+ export type WalletCategory = (typeof CATEGORY_NAME_WALLET)[keyof typeof CATEGORY_NAME_WALLET];
8
+ export type CurrencyType = (typeof CURRENCY_TYPE)[keyof typeof CURRENCY_TYPE];
@@ -0,0 +1,3 @@
1
+ export type LooseObject = {
2
+ [key: string]: any;
3
+ };
@@ -0,0 +1,51 @@
1
+ import { ADVERTISING_TYPE, ADVERTISING_PURPOSE, ADVERTISING_FREQUENCY } from '../constants/communication.constant';
2
+
3
+ export type ActiveNameTab = 'notification' | 'email' | 'contacts' | 'marketing';
4
+ export type AdvertisingStatus = 'enabled' | 'disabled';
5
+ export type AdvertisingType = (typeof ADVERTISING_TYPE)[keyof typeof ADVERTISING_TYPE];
6
+ export type AdvertisingPurpose = (typeof ADVERTISING_PURPOSE)[keyof typeof ADVERTISING_PURPOSE];
7
+ export type AdvertisingFrequency = (typeof ADVERTISING_FREQUENCY)[keyof typeof ADVERTISING_FREQUENCY];
8
+ export interface AdvertisingTemplateVariant {
9
+ desktop_url: string;
10
+ tablet_url?: string | null;
11
+ mobile_url?: string | null;
12
+ alt_text: string;
13
+ learn_more?: string | null;
14
+ }
15
+ export interface AdvertisingCooldown {
16
+ enabled: boolean;
17
+ time_seconds: number;
18
+ }
19
+ export interface AdvertisingMetadata {
20
+ title: string;
21
+ status?: AdvertisingStatus;
22
+ purpose: AdvertisingPurpose;
23
+ priority?: number | null;
24
+ start_date?: string | null;
25
+ end_date?: string | null;
26
+ contact_list?: string[];
27
+ templates?: Record<string, AdvertisingTemplateVariant>;
28
+ frequency?: AdvertisingFrequency;
29
+ cooldown?: AdvertisingCooldown;
30
+ }
31
+ export interface AdvertisingItem {
32
+ id: number;
33
+ content_type: AdvertisingType;
34
+ state?: string;
35
+ metadata: AdvertisingMetadata;
36
+ attachments?: any[];
37
+ user_id?: number;
38
+ created_at?: string;
39
+ updated_at?: string;
40
+ }
41
+ export interface AdvertisingPagination {
42
+ page: number;
43
+ page_size: number;
44
+ total: number;
45
+ }
46
+ export interface AdvertisingFetchOptions {
47
+ page?: number;
48
+ page_size?: number;
49
+ filter?: Record<string, any>;
50
+ order_by?: Record<string, any>;
51
+ }
@@ -0,0 +1,27 @@
1
+ export type CouponState = 'enabled' | 'disabled';
2
+ export type EffectType = 'percent_off' | 'amount_off';
3
+ export type CouponEffect = {
4
+ type: EffectType;
5
+ amount: number;
6
+ };
7
+ export type CouponConditions = {
8
+ products: string[];
9
+ is_public: boolean;
10
+ account_sizes: number[] | null;
11
+ payment_method: string[];
12
+ first_purchase_only: boolean;
13
+ };
14
+ export type PublicCoupon = {
15
+ id: number;
16
+ code: string;
17
+ conditions: CouponConditions;
18
+ state: CouponState;
19
+ effects: CouponEffect;
20
+ max_redemptions: number | null;
21
+ max_redemptions_per_client: number | null;
22
+ expired_at: string | null;
23
+ started_at: string | null;
24
+ category: string | null;
25
+ created_at: string;
26
+ updated_at: string;
27
+ };
@@ -0,0 +1,8 @@
1
+ import { EMAIL_TEMPLATE_TYPE } from '../constants';
2
+
3
+ export type FormatEmailType = 'first-last' | 'first2-last2' | 'keep-first-hide-rest' | 'optional';
4
+ export type EmailMaskOptions = {
5
+ start: number;
6
+ count: number;
7
+ };
8
+ export type EmailTemplateType = (typeof EMAIL_TEMPLATE_TYPE)[keyof typeof EMAIL_TEMPLATE_TYPE];
@@ -0,0 +1,80 @@
1
+ export type FeeType = 'Fixed' | 'Percentage' | 'None' | 'Both';
2
+ export type CountryOp = 'all' | 'exclude' | 'include';
3
+ export type IbOp = 'all' | 'include' | 'exclude';
4
+ export type DepositRule = {
5
+ active: boolean;
6
+ fee_type: string;
7
+ percentage: number;
8
+ maximum_amount: number;
9
+ minimum_amount: number;
10
+ processing_time: string;
11
+ fixed_fee_amount: number;
12
+ fixed_fee_currency: string;
13
+ [key: string]: any;
14
+ };
15
+ export type WithdrawalRule = {
16
+ active: boolean;
17
+ fee_type: string;
18
+ percentage: number;
19
+ maximum_amount: number;
20
+ minimum_amount: number;
21
+ processing_time: string;
22
+ fixed_fee_amount: number;
23
+ fixed_fee_currency: string;
24
+ [key: string]: any;
25
+ };
26
+ export type TransactionRule = {
27
+ active: boolean;
28
+ deposit: DepositRule;
29
+ countries: any[];
30
+ country_op: CountryOp;
31
+ ib_ids?: any[];
32
+ ib_op?: IbOp;
33
+ withdrawal: WithdrawalRule;
34
+ _showDetails: boolean;
35
+ payment_method: string;
36
+ company_bank_details: any[];
37
+ [key: string]: any;
38
+ };
39
+ export type FundingSourcePayload = {
40
+ currency: string;
41
+ funding_data: Record<string, any>;
42
+ funding_method: string;
43
+ };
44
+ export type FundingMethodResponse = {
45
+ name: string;
46
+ label: string;
47
+ active: boolean;
48
+ transaction_rules: TransactionRule[];
49
+ order: number;
50
+ };
51
+ export type FundingSourceResponse = {
52
+ id: number;
53
+ funding_method: string;
54
+ funding_id: string;
55
+ funding_data: Record<string, any>;
56
+ created_at: Date;
57
+ updated_at: Date;
58
+ funding_source: string | null;
59
+ state: string;
60
+ currency: string;
61
+ user_id: number;
62
+ };
63
+ export type CreateFundingSourceResponse = {
64
+ funding_source: FundingSourceResponse;
65
+ content: Record<string, any>;
66
+ };
67
+ export type FundingMethodWithRules = {
68
+ file?: string;
69
+ name: string;
70
+ label: string;
71
+ active: boolean;
72
+ transaction_rules: TransactionRule[];
73
+ };
74
+ export type FundingMethodWithSources = {
75
+ name: string;
76
+ label: string;
77
+ active: boolean;
78
+ withdrawalUserGuides: any;
79
+ fundingSources: FundingSourceResponse[];
80
+ };
@@ -0,0 +1,15 @@
1
+ export interface ICommissionDetail {
2
+ currency: string;
3
+ total_commission: number;
4
+ paid_commission: number;
5
+ }
6
+ export interface ITotalSummary {
7
+ target_currency: string;
8
+ from_time: string;
9
+ total_commission_converted: number;
10
+ by_currency: ICommissionDetail[];
11
+ }
12
+ export interface ITotalSummaryParams {
13
+ from_time: string;
14
+ to_time: string;
15
+ }
@@ -0,0 +1,16 @@
1
+ export * from './category.type';
2
+ export * from './liveNotification.type';
3
+ export * from './communication.type';
4
+ export * from './email.type';
5
+ export * from './siteSetting.type';
6
+ export * from './kyc.type';
7
+ export * from './ibs.type';
8
+ export * from './product.type';
9
+ export * from './addon.type';
10
+ export * from './news.type';
11
+ export * from './notification.types';
12
+ export * from './paymentMethod/index';
13
+ export * from './passwordRule.type';
14
+ export type LooseObject = {
15
+ [key: string]: any;
16
+ };
@@ -0,0 +1,52 @@
1
+ export interface IDocumentStepInfoParams {
2
+ documentStatus: string;
3
+ shortName: string;
4
+ currentKyc: ICurrentKyc;
5
+ t: (key: string) => string;
6
+ [key: string]: any;
7
+ }
8
+ export interface IKycSchemasConfig {
9
+ idFirstStep: {
10
+ [key: string]: any;
11
+ };
12
+ idSecondStep: {
13
+ [key: string]: any;
14
+ };
15
+ portrait: {
16
+ [key: string]: any;
17
+ };
18
+ address: {
19
+ [key: string]: any;
20
+ };
21
+ }
22
+ export interface ICurrentKyc {
23
+ state: string;
24
+ data: {
25
+ [key: string]: any;
26
+ } | null;
27
+ schema: {
28
+ kyc_steps: {
29
+ name: string;
30
+ short_name: string;
31
+ schema: {
32
+ [key: string]: any;
33
+ };
34
+ state: string;
35
+ }[];
36
+ documents: {
37
+ name: string;
38
+ short_name: string;
39
+ state: string;
40
+ }[];
41
+ };
42
+ portrait_status: string;
43
+ document_front_status: string;
44
+ address_verification_status: string;
45
+ [key: string]: any;
46
+ }
47
+ export interface IKycFormSchema {
48
+ shortName: string;
49
+ schema: {
50
+ [key: string]: any;
51
+ };
52
+ }
@@ -0,0 +1,10 @@
1
+ export interface NotificationType {
2
+ id: number;
3
+ status: string;
4
+ requestType: string;
5
+ event: string;
6
+ hasBeenShown: boolean;
7
+ }
8
+ export interface NotificationState {
9
+ notifications: NotificationType[];
10
+ }