@eaera-com/client-sdk 0.0.1383

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 (150) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +1 -0
  3. package/dist/account/index.d.ts +56 -0
  4. package/dist/activity_log/index.d.ts +6 -0
  5. package/dist/auth/index.d.ts +20 -0
  6. package/dist/auth/types.d.ts +11 -0
  7. package/dist/base.d.ts +29 -0
  8. package/dist/captcha/index.d.ts +5 -0
  9. package/dist/category/index.d.ts +9 -0
  10. package/dist/channels/accounts.d.ts +11 -0
  11. package/dist/channels/metrics.d.ts +8 -0
  12. package/dist/channels/position.d.ts +13 -0
  13. package/dist/channels/users.d.ts +34 -0
  14. package/dist/client/index.d.ts +16 -0
  15. package/dist/client_sdk.d.ts +60 -0
  16. package/dist/commission_profile/index.d.ts +10 -0
  17. package/dist/common/constants/category.constant.d.ts +31 -0
  18. package/dist/common/constants/communication.constant.d.ts +7 -0
  19. package/dist/common/constants/index.d.ts +8 -0
  20. package/dist/common/constants/listStatus.constants.d.ts +2 -0
  21. package/dist/common/constants/methods.constant.d.ts +39 -0
  22. package/dist/common/constants/site-settings.constants.d.ts +5 -0
  23. package/dist/common/constants/store.constants.d.ts +1 -0
  24. package/dist/common/constants/supportTicket.constant.d.ts +4 -0
  25. package/dist/common/constants/type.constants.d.ts +2 -0
  26. package/dist/common/index.d.ts +2 -0
  27. package/dist/common/types/addon.types.d.ts +34 -0
  28. package/dist/common/types/category.types.d.ts +6 -0
  29. package/dist/common/types/communication.types.d.ts +1 -0
  30. package/dist/common/types/email.types.d.ts +1 -0
  31. package/dist/common/types/index.d.ts +6 -0
  32. package/dist/common/types/liveNotification.types.d.ts +10 -0
  33. package/dist/common/types/site-setting.d.ts +73 -0
  34. package/dist/common/use-utils/data/countriesWithCurrencies.d.ts +7 -0
  35. package/dist/common/use-utils/data/dragonpayBank.d.ts +6 -0
  36. package/dist/common/use-utils/data/help2pay_banks.d.ts +7 -0
  37. package/dist/common/use-utils/data/listCryptoCurrencies.d.ts +5 -0
  38. package/dist/common/use-utils/data/regions.d.ts +16 -0
  39. package/dist/common/use-utils/data/widgets.d.ts +4 -0
  40. package/dist/common/use-utils/index.d.ts +69 -0
  41. package/dist/common/use-utils/schema/fundingMethod.schema.d.ts +1016 -0
  42. package/dist/common/use-utils/validators/index.d.ts +1 -0
  43. package/dist/contact/index.d.ts +9 -0
  44. package/dist/content/index.d.ts +17 -0
  45. package/dist/content_type/index.d.ts +8 -0
  46. package/dist/conversion_rate/index.d.ts +7 -0
  47. package/dist/coupon/index.d.ts +14 -0
  48. package/dist/coupon/type.d.ts +35 -0
  49. package/dist/department/index.d.ts +10 -0
  50. package/dist/devices/index.d.ts +6 -0
  51. package/dist/ecommerce/category.d.ts +9 -0
  52. package/dist/ecommerce/coupon.d.ts +16 -0
  53. package/dist/ecommerce/index.d.ts +16 -0
  54. package/dist/ecommerce/product.d.ts +12 -0
  55. package/dist/ecommerce/product_attribute.d.ts +9 -0
  56. package/dist/ecommerce/purchases.d.ts +13 -0
  57. package/dist/email-layout/index.d.ts +10 -0
  58. package/dist/email-template/index.d.ts +15 -0
  59. package/dist/employee/index.d.ts +15 -0
  60. package/dist/folder/index.d.ts +12 -0
  61. package/dist/funding-source/index.d.ts +10 -0
  62. package/dist/gamification_campaign/index.d.ts +9 -0
  63. package/dist/ib/index.d.ts +24 -0
  64. package/dist/index.d.ts +1510 -0
  65. package/dist/index.js +35135 -0
  66. package/dist/kycs/index.d.ts +18 -0
  67. package/dist/lead/index.d.ts +13 -0
  68. package/dist/metric/index.d.ts +7 -0
  69. package/dist/news/index.d.ts +14 -0
  70. package/dist/news/news.type.d.ts +17 -0
  71. package/dist/note/index.d.ts +8 -0
  72. package/dist/notification-center/NotificationCenter.types.d.ts +24 -0
  73. package/dist/notification-center/index.d.ts +20 -0
  74. package/dist/payment/index.d.ts +22 -0
  75. package/dist/pool_trading/index.d.ts +13 -0
  76. package/dist/pool_trading/invest_wallet.d.ts +16 -0
  77. package/dist/pool_trading/pool_profile.d.ts +45 -0
  78. package/dist/product/index.d.ts +12 -0
  79. package/dist/product_attribute/index.d.ts +9 -0
  80. package/dist/prop_account/index.d.ts +55 -0
  81. package/dist/purchase/index.d.ts +13 -0
  82. package/dist/purchase/type.d.ts +66 -0
  83. package/dist/report/index.d.ts +28 -0
  84. package/dist/report-filters/index.d.ts +9 -0
  85. package/dist/request/index.d.ts +38 -0
  86. package/dist/role_set/index.d.ts +8 -0
  87. package/dist/silt/index.d.ts +5 -0
  88. package/dist/site-setting/index.d.ts +16 -0
  89. package/dist/stores/account.d.ts +180 -0
  90. package/dist/stores/activity_log.d.ts +7 -0
  91. package/dist/stores/addon.d.ts +11 -0
  92. package/dist/stores/auth.d.ts +37 -0
  93. package/dist/stores/battle_notification.d.ts +6 -0
  94. package/dist/stores/captcha.d.ts +3 -0
  95. package/dist/stores/category.d.ts +15 -0
  96. package/dist/stores/client.d.ts +17 -0
  97. package/dist/stores/commission_profile.d.ts +12 -0
  98. package/dist/stores/contact.d.ts +9 -0
  99. package/dist/stores/content-type.d.ts +10 -0
  100. package/dist/stores/content-v2.d.ts +160 -0
  101. package/dist/stores/content.d.ts +216 -0
  102. package/dist/stores/conversion_rate.d.ts +9 -0
  103. package/dist/stores/coupon.d.ts +26 -0
  104. package/dist/stores/department.d.ts +7 -0
  105. package/dist/stores/devices.d.ts +8 -0
  106. package/dist/stores/employee.d.ts +12 -0
  107. package/dist/stores/folder.d.ts +15 -0
  108. package/dist/stores/funding-source.d.ts +29 -0
  109. package/dist/stores/gamification_campaign.d.ts +10 -0
  110. package/dist/stores/ib.d.ts +19 -0
  111. package/dist/stores/index.d.ts +1506 -0
  112. package/dist/stores/invest_wallet.d.ts +92 -0
  113. package/dist/stores/kycs.d.ts +16 -0
  114. package/dist/stores/lead.d.ts +13 -0
  115. package/dist/stores/live-notification.d.ts +6 -0
  116. package/dist/stores/metric.d.ts +21 -0
  117. package/dist/stores/news.d.ts +15 -0
  118. package/dist/stores/notes.d.ts +16 -0
  119. package/dist/stores/notification-center.d.ts +20 -0
  120. package/dist/stores/notification.d.ts +6 -0
  121. package/dist/stores/payment.d.ts +12 -0
  122. package/dist/stores/pool-trading.d.ts +7 -0
  123. package/dist/stores/pool_profile.d.ts +116 -0
  124. package/dist/stores/product.d.ts +27 -0
  125. package/dist/stores/product_attribute.d.ts +10 -0
  126. package/dist/stores/prop_account.d.ts +45 -0
  127. package/dist/stores/purchases.d.ts +23 -0
  128. package/dist/stores/report_filter.d.ts +9 -0
  129. package/dist/stores/request.d.ts +39 -0
  130. package/dist/stores/role_set.d.ts +7 -0
  131. package/dist/stores/site-setting.d.ts +98 -0
  132. package/dist/stores/support.d.ts +33 -0
  133. package/dist/stores/trade-server.d.ts +12 -0
  134. package/dist/stores/trade_battle.d.ts +51 -0
  135. package/dist/stores/transaction.d.ts +8 -0
  136. package/dist/stores/user.d.ts +26 -0
  137. package/dist/stores/wallet.d.ts +57 -0
  138. package/dist/sumsub/index.d.ts +6 -0
  139. package/dist/support/index.d.ts +16 -0
  140. package/dist/trade-server/index.d.ts +12 -0
  141. package/dist/trade_battle/index.d.ts +30 -0
  142. package/dist/trade_battle/tradeBattle.type.d.ts +119 -0
  143. package/dist/transaction/index.d.ts +9 -0
  144. package/dist/user/index.d.ts +40 -0
  145. package/dist/utils/index.d.ts +4 -0
  146. package/dist/utils/route-compression.d.ts +17 -0
  147. package/dist/utils/store.d.ts +12 -0
  148. package/dist/voip/index.d.ts +5 -0
  149. package/dist/wallet/index.d.ts +18 -0
  150. package/package.json +58 -0
@@ -0,0 +1,18 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Kycs extends Base {
4
+ uploadDocument(id: any, payload: any): Promise<any>;
5
+ fetchKycs(payload: any): Promise<any>;
6
+ updateKycs(id: any, payload: any): Promise<any>;
7
+ find_or_initialize(payload: any): Promise<any>;
8
+ reviewKycDocument(id: any, payload: any): Promise<any>;
9
+ updateExtraData(id: any, payload: any): Promise<any>;
10
+ undoKycDocument(id: any, payload: any): Promise<any>;
11
+ uploadIdImage(id: any, payload: any): Promise<any>;
12
+ uploadAddressImage(id: any, payload: any): Promise<any>;
13
+ uploadPotraitImage(id: any, payload: any): Promise<any>;
14
+ approveKyc(id: any, payload: any): Promise<any>;
15
+ rejectKyc(id: any, payload: any): Promise<any>;
16
+ countKycs(payload: any): Promise<any>;
17
+ bulkRejectKyc(payload: any): Promise<any>;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Lead extends Base {
4
+ countLeads(): Promise<any>;
5
+ updateLead(id: number, payload: any): Promise<any>;
6
+ updateLeadSummaryComment(id: number, payload: any): Promise<any>;
7
+ bulkUpdateLeadsState(payload: any): Promise<any>;
8
+ bulkRestoreLeadsState(payload: any): Promise<any>;
9
+ countDailyHistoryLeads(payload: any): Promise<any>;
10
+ assignLeadToAM(payload: any): Promise<any>;
11
+ unassignLeadFromAM(payload: any): Promise<any>;
12
+ activateImportedLead(id: number): Promise<any>;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Metric extends Base {
4
+ queryMetric(payload: any): Promise<any>;
5
+ queryMetricByTimetamp(payload: any): Promise<any>;
6
+ queryLatestMetric(payload: any): Promise<any>;
7
+ }
@@ -0,0 +1,14 @@
1
+ import { Base } from '../base';
2
+ import { CreateNewsDraft, CreateNewsRequest, GetNewsPayload } from './news.type';
3
+
4
+ export declare class News extends Base {
5
+ createNews(payload: {
6
+ news: CreateNewsRequest;
7
+ } | CreateNewsDraft): Promise<any>;
8
+ updateNews(id: string | number, payload: {
9
+ news: CreateNewsRequest;
10
+ }): Promise<any>;
11
+ destroyNews(id: string | number): Promise<any>;
12
+ uploadBannerImage(id: any, payload: any): Promise<any>;
13
+ getNews(payload: GetNewsPayload): Promise<any>;
14
+ }
@@ -0,0 +1,17 @@
1
+ export interface CreateNewsRequest {
2
+ title: string;
3
+ content?: string;
4
+ state: 'draft' | 'public';
5
+ banner_image?: string;
6
+ }
7
+ export interface CreateNewsDraft {
8
+ state: 'draft';
9
+ }
10
+ export interface GetNewsPayload {
11
+ content_types: 'news';
12
+ state?: 'draft' | 'public';
13
+ from_time?: string;
14
+ to_time?: string;
15
+ page?: number;
16
+ per?: number;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Note extends Base {
4
+ createNotes(payload: any, options?: any): Promise<any>;
5
+ updateNotes(id: any, payload: any): Promise<any>;
6
+ putNotes(payload: any, options?: any): Promise<any>;
7
+ deleteNotes(ids: any): Promise<any>;
8
+ }
@@ -0,0 +1,24 @@
1
+ export interface NotificationTemplate {
2
+ title: string;
3
+ language?: string;
4
+ bindings?: string;
5
+ icon?: string;
6
+ description?: string;
7
+ attachment_urls?: string[];
8
+ content?: string;
9
+ }
10
+ export interface NotificationTemplateRequest {
11
+ notification_template: NotificationTemplate;
12
+ }
13
+ export interface NotificationTemplateStateRequest {
14
+ state: 'enable' | 'disable';
15
+ }
16
+ export interface SendNotificationRequest {
17
+ notification: {
18
+ notification_template_id: number;
19
+ time_sent?: string;
20
+ send_for: number[];
21
+ state: 'sent' | 'scheduled';
22
+ recipient_type: 'user' | 'account';
23
+ };
24
+ }
@@ -0,0 +1,20 @@
1
+ import { Base, Config } from '../base';
2
+ import { SendNotificationRequest } from './NotificationCenter.types';
3
+
4
+ declare class NotificationCenter extends Base {
5
+ constructor(config: Config);
6
+ createNotificationTemplate(payload: FormData): Promise<any>;
7
+ updateNotificationTemplate(payload: FormData, id: string | number): Promise<any>;
8
+ updateNotificationTemplateState({ id, state, }: {
9
+ id: string | number;
10
+ state: 'enable' | 'disable';
11
+ }): Promise<any>;
12
+ deleteNotificationTemplate(id: string | number): Promise<any>;
13
+ sendNotification(payload: SendNotificationRequest): Promise<any>;
14
+ updateNotifications(payload: SendNotificationRequest, id: string | number): Promise<any>;
15
+ deleteNotification(id: string | number): Promise<any>;
16
+ deleteNotificationUser(id: string | number): Promise<any>;
17
+ markAsRead(ids: number[]): Promise<any>;
18
+ fetchCountNotificationUnread(): Promise<any>;
19
+ }
20
+ export default NotificationCenter;
@@ -0,0 +1,22 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Payment extends Base {
4
+ payments(payload: any): Promise<any>;
5
+ createPayment(payload: any): Promise<any>;
6
+ uploadProofOfPaymentPaymentTable(payload: any): Promise<any>;
7
+ getAvailableCurrency(payload: {
8
+ payment_method: string;
9
+ }): Promise<any>;
10
+ estimateAmount(payload: {
11
+ [key: string]: any;
12
+ }): Promise<any>;
13
+ getPaymentStatus(payload: any): Promise<any>;
14
+ approvePayment(payload: any): Promise<any>;
15
+ rejectPayment(payload: any): Promise<any>;
16
+ getXamaxData(payload: any): Promise<any>;
17
+ getCountPayments(payload: any): Promise<any>;
18
+ getSumPayments(payload: any): Promise<any>;
19
+ autoCompleted(payload: any): Promise<any>;
20
+ sumTotalDepositWithdrawal(payload: any): Promise<any>;
21
+ getFundingSummaries(payload: any): Promise<any>;
22
+ }
@@ -0,0 +1,13 @@
1
+ import { Base, Config } from '../base';
2
+ import { InvestWallet } from './invest_wallet';
3
+ import { PoolProfile } from './pool_profile';
4
+ import { AxiosInstance } from 'axios';
5
+
6
+ declare class PoolTradingSDK extends Base {
7
+ constructor(config: Config, saveToLocalStorage?: boolean, onAccessTokenUpdated?: (access_token: string) => void, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
8
+ private static _instance;
9
+ static getInstance(config?: Config | null, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance): PoolTradingSDK;
10
+ }
11
+ interface PoolTradingSDK extends InvestWallet, PoolProfile {
12
+ }
13
+ export default PoolTradingSDK;
@@ -0,0 +1,16 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class InvestWallet extends Base {
4
+ createInvestWallet(payload: any): Promise<any>;
5
+ getInvestWallets(params: object): Promise<any>;
6
+ getInvestWalletProfitLoss(ids: number[], from_time: any, to_time: any): Promise<any>;
7
+ fetchProfitLossHistory(params: any): Promise<any>;
8
+ getInvestWallet(id: number): Promise<any>;
9
+ getPoolSummaryWallet(params?: any): Promise<any>;
10
+ transferOutInvestWallet(id: number, amount: number, destination_id: number): Promise<any>;
11
+ partialClosePosition(position_id: number, invest_wallet_id: string): Promise<any>;
12
+ getInvestDeals(params: object): Promise<any>;
13
+ getAttachedWallets(params: object): Promise<any>;
14
+ getTotalInvestWallet(): Promise<any>;
15
+ getInvestWalletBalanceChanges(params: object): Promise<any>;
16
+ }
@@ -0,0 +1,45 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class PoolProfile extends Base {
4
+ getPoolProfileIds(params: object): Promise<any>;
5
+ getPoolProfiles(ids: [number]): Promise<any>;
6
+ getPoolProfileLeaderboard({ server, logins, profile_ids, name_like, is_mam, currency, runtime, growth_range_from, growth_range_to, }: {
7
+ server: any;
8
+ logins: any;
9
+ profile_ids: any;
10
+ name_like: any;
11
+ is_mam: any;
12
+ currency: any;
13
+ runtime: any;
14
+ growth_range_from: any;
15
+ growth_range_to: any;
16
+ }, sort_by?: any): Promise<any>;
17
+ getPoolProfile(id: number): Promise<any>;
18
+ updatePoolProfile(id: number, payload: any): Promise<any>;
19
+ updatePoolProfileAdmin(id: number, payload: any): Promise<any>;
20
+ getPoolPositions(params: {
21
+ server: string;
22
+ login: number;
23
+ page: number;
24
+ size: number;
25
+ order_by?: {
26
+ [key: string]: string;
27
+ };
28
+ state?: 'open' | 'closed';
29
+ }): Promise<any>;
30
+ getWidgetData(profile_id: number, chart_name: string): Promise<any>;
31
+ getAccountSummary(profile_id: number): Promise<any>;
32
+ getPoolProfileDeals(payload: any): Promise<any>;
33
+ countDeals(payload: any): Promise<any>;
34
+ getProfilePositions(payload: any): Promise<any>;
35
+ countPositions(payload: any): Promise<any>;
36
+ checkDuplicatePoolName(name: string): Promise<any>;
37
+ getPositionsInvestWallet(payload: any): Promise<any>;
38
+ getCountPositionInvestWallet(idWalletId: string, state: string): Promise<any>;
39
+ generateTodayReport(poolId: number): Promise<any>;
40
+ exportFundManagerDetails(params: {
41
+ pool_id: number;
42
+ start_date?: string;
43
+ end_date?: string;
44
+ }): Promise<any>;
45
+ }
@@ -0,0 +1,12 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Product extends Base {
4
+ getProducts(payload: any): Promise<any>;
5
+ getProductByUUID(uuid: any): Promise<any>;
6
+ getLevelByProduct(product_uuid: string, product_level: any): Promise<any>;
7
+ createProduct(payload: any): Promise<any>;
8
+ updateProduct(uuid: any, payload: any): Promise<any>;
9
+ deleteProduct(uuid: any): Promise<any>;
10
+ createProductAndVariation(payload: any): Promise<any>;
11
+ updateProductState(uuid: any, state: any, payload: any): Promise<any>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class ProductAttribute extends Base {
4
+ getProductAttributes(): Promise<any>;
5
+ getProductAttributeByUUID(uuid: any): Promise<any>;
6
+ createProductAttribute(payload: any): Promise<any>;
7
+ updateProductAttribute(uuid: any, payload: any): Promise<any>;
8
+ deleteProductAttribute(uuid: any): Promise<any>;
9
+ }
@@ -0,0 +1,55 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class PropAccount extends Base {
4
+ fetchPropAccounts(filter: object): Promise<any>;
5
+ pullPropAccountTradingData(payload?: any): Promise<any>;
6
+ fetchOnePropAccount(account_id: number): Promise<any>;
7
+ fetchOpenTrades(account_id: number): Promise<any>;
8
+ fetchMtPropAccountHistory(server: string, account_ids: number[], from_date: string, to_date: string): Promise<any>;
9
+ fetchMtDeals(server: string, account_ids: number[], from_time: string, to_time: string): Promise<any>;
10
+ listPositions(account_id: number, position_type: string, symbol: string): Promise<any>;
11
+ fetchPropAccountsUsingIDs(ids: number[]): Promise<any>;
12
+ bulkUpdatePropAccountsState(payload: any): Promise<any>;
13
+ bulkRestorePropAccountsState(payload: any): Promise<any>;
14
+ updatePropAccountTradingState(account_id: number, payload: any): Promise<any>;
15
+ updatePropAccount(account_id: number, payload: any): Promise<any>;
16
+ updatePropAccountComment(id: number, payload: any): Promise<any>;
17
+ changePropAccountLeverage(id: number, { new_leverage }: {
18
+ new_leverage: any;
19
+ }): Promise<any>;
20
+ updatePropAccountType(id: number, { account_type }: {
21
+ account_type: any;
22
+ }): Promise<any>;
23
+ updatePropAccountGroup(id: number, { group_name, account_type }: {
24
+ group_name: any;
25
+ account_type: any;
26
+ }): Promise<any>;
27
+ manualChangePropAccountPassword(id: number, { new_password }: {
28
+ new_password: any;
29
+ }): Promise<any>;
30
+ changeInvestorPassword({ id, new_password, }: {
31
+ id: number;
32
+ new_password: string;
33
+ }): Promise<any>;
34
+ changePropAccountPassword({ id, new_password, role, }: {
35
+ id: number;
36
+ new_password: string;
37
+ role: 'master' | 'investor' | null;
38
+ }): Promise<{
39
+ login: string;
40
+ }>;
41
+ getPropAccountSummary(payload: any): Promise<any>;
42
+ getPropPostions(payload: any): Promise<any>;
43
+ countPropPositions(payload: any): Promise<any>;
44
+ recheckConditions(payload: any): Promise<any>;
45
+ recalculateAccountMetrics(payload: any): Promise<any>;
46
+ getPublicAccountsInfo(payload: any): Promise<any>;
47
+ propAccountMostTradedAsset(payload: any): Promise<any>;
48
+ propAccountWithLatestActivity(payload: any): Promise<any>;
49
+ propAccountsMetrics(payload: any): Promise<any>;
50
+ propAccountMetricsCount(payload: any): Promise<any>;
51
+ getAccountMetricByLastDeal(ids: number[]): Promise<any>;
52
+ resetAlert(id: number): Promise<any>;
53
+ fetchPropAccountGrowth(id: number, on_closed_trade: boolean): Promise<any>;
54
+ fetchPropAccountMonthlyGains(id: number): Promise<any>;
55
+ }
@@ -0,0 +1,13 @@
1
+ import { AxiosResponse } from 'axios';
2
+ import { Base } from '../base';
3
+ import { PurchaseNowPayload, PurchaseData, CreatePurchasePayload, CalculatePurchasePayload } from './type';
4
+
5
+ export declare class Purchase extends Base {
6
+ calculatePrice(payload: CalculatePurchasePayload): Promise<AxiosResponse<any>>;
7
+ purchaseNow(purchaseId: number, payload: PurchaseNowPayload): Promise<AxiosResponse<any>>;
8
+ purchaseNowAnonymous(payload: PurchaseNowPayload): Promise<AxiosResponse<any>>;
9
+ createPurchase(payload: CreatePurchasePayload): Promise<AxiosResponse<PurchaseData>>;
10
+ updatePurchase(id: string | number, payload: any): Promise<AxiosResponse<any>>;
11
+ getPurchaseByUUID(uuid: string): Promise<AxiosResponse<PurchaseData>>;
12
+ createPurchaseForRequest(request_id: string): Promise<AxiosResponse<PurchaseData>>;
13
+ }
@@ -0,0 +1,66 @@
1
+ export interface CalculatePurchasePayload extends CreatePurchasePayload {
2
+ coupon_codes: string[];
3
+ }
4
+ export interface CreatePurchasePayload {
5
+ currency: string;
6
+ items: {
7
+ product_uuid: string;
8
+ specs: {
9
+ platform: string;
10
+ [key: string]: any;
11
+ };
12
+ variation_index: number;
13
+ }[];
14
+ }
15
+ export interface PurchaseData {
16
+ id: number;
17
+ state: string;
18
+ user_id: number;
19
+ reason: unknown;
20
+ personal_info: Record<string, any> | null;
21
+ additional_info: Record<string, any> | null;
22
+ currency: string | null;
23
+ email: string;
24
+ final_price: unknown;
25
+ items: {
26
+ product_uuid: string;
27
+ specs: {
28
+ platform: string;
29
+ [key: string]: any;
30
+ };
31
+ variation_index: number;
32
+ }[];
33
+ created_at: string | null;
34
+ completed_at: string | null;
35
+ updated_at: string | null;
36
+ proceeded_at: string | null;
37
+ }
38
+ export interface PurchaseNowPayload {
39
+ id: number;
40
+ personal_info: {
41
+ first_name: string;
42
+ last_name: string;
43
+ email: string;
44
+ phone: string;
45
+ country: string;
46
+ city: string;
47
+ address: string;
48
+ zip_code: string;
49
+ };
50
+ coupon_codes: string[];
51
+ company_bank: {
52
+ name: string;
53
+ currency: string;
54
+ };
55
+ additional_info: {
56
+ program_name: string;
57
+ account_size: number;
58
+ landing_page_url?: string;
59
+ utm_params?: {
60
+ [key: string]: any;
61
+ };
62
+ };
63
+ purchaseType: string;
64
+ payment_method_id: number;
65
+ payment_method: string;
66
+ }
@@ -0,0 +1,28 @@
1
+ import { Base, Config } from '../base';
2
+
3
+ export declare class Report extends Base {
4
+ }
5
+ declare class ReportSDK extends Base {
6
+ constructor(config: Config, saveToLocalStorage?: boolean);
7
+ private static _instance;
8
+ static getInstance(config?: null | Config, saveToLocalStorage?: boolean): ReportSDK;
9
+ downloadProfitLossReport(payload: any): Promise<any>;
10
+ downloadVolumeReport(payload: any): Promise<any>;
11
+ downloadTopTradingReport(payload: any): Promise<any>;
12
+ downloadTopTradersReport(payload: any): Promise<any>;
13
+ downloadTransactionsReport(payload: any): Promise<any>;
14
+ downloadDPWPITRReport(payload: any): Promise<any>;
15
+ downloadIBCommissionTransactionsReport(payload: any): Promise<any>;
16
+ downloadLeadsAndClientsReport(payload: any): Promise<any>;
17
+ downloadNewLeadsDailyReport(payload: any): Promise<any>;
18
+ downloadReferAFriendReport(payload: any): Promise<any>;
19
+ downloadIBDetailedTradingPerAccReport(payload: any): Promise<any>;
20
+ downloadIBTotalDetailedTradingInfoReport(payload: any): Promise<any>;
21
+ downloadIBTotalTradedVolumeReport(payload: any): Promise<any>;
22
+ downloadIBSummaryReport(payload: any): Promise<any>;
23
+ downloadIBReport(payload: any): Promise<any>;
24
+ downloadWalletDetailsReport(payload: any): Promise<any>;
25
+ }
26
+ interface ReportSDK {
27
+ }
28
+ export default ReportSDK;
@@ -0,0 +1,9 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class ReportFilters extends Base {
4
+ getReportFilter(): Promise<any>;
5
+ getReportFilterById(id: any): Promise<any>;
6
+ createReportFilter(payload: any): Promise<any>;
7
+ updateReportFilter(id: any, payload: any): Promise<any>;
8
+ deleteReportFilter(id: any): Promise<any>;
9
+ }
@@ -0,0 +1,38 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Request extends Base {
4
+ createRequest(payload: any, options: any): Promise<any>;
5
+ createWalletRequest(payload: any): Promise<any>;
6
+ createAccountRequest(payload: any, request_type: string): Promise<any>;
7
+ createDepositRequest(payload: any): Promise<any>;
8
+ createDemoDeposit(payload: any): Promise<any>;
9
+ createWithdrawalRequest(payload: any): Promise<any>;
10
+ profileChange(payload: any): Promise<any>;
11
+ createTransferRequest(payload: any): Promise<any>;
12
+ createLeadImportRequest(payload: any): Promise<any>;
13
+ changeLeverage(account_id: number, payload: any, request_type: string): Promise<any>;
14
+ resetPassword(account_id: number): Promise<any>;
15
+ fetchOneRequest(request_id: number): Promise<any>;
16
+ uploadProofOfPayment(request_id: number, payload: any): Promise<any>;
17
+ importLeadFile(request_id: number, payload: any): Promise<any>;
18
+ importIBFile(request_id: number, payload: any): Promise<any>;
19
+ uploadTradingReports(request_id: number, payload: any): Promise<any>;
20
+ approveRequest(request_id: number): Promise<any>;
21
+ rejectRequest(request_id: number, payload: any): Promise<any>;
22
+ reprocessRequest(request_id: number): Promise<any>;
23
+ cancelRequest(request_id: number): Promise<any>;
24
+ bulkApproveRequest(ids: number[]): Promise<any>;
25
+ bulkRejectRequest(payload: any): Promise<any>;
26
+ updateThenApproveRequest(request_id: number, { params_fields }: {
27
+ params_fields: any;
28
+ }): Promise<any>;
29
+ depositPSP(payload: any): Promise<any>;
30
+ withdrawPSP(payload: any): Promise<any>;
31
+ callPaymentMethodFunc(payload: any): Promise<any>;
32
+ getPendingNumber(request_types: any): Promise<any>;
33
+ countRequests(payload: any): Promise<any>;
34
+ createReactivateAccountRequest(payload: any, user_id: number): Promise<any>;
35
+ createDisableAccountRequest(payload: any, user_id: number): Promise<any>;
36
+ createReactivatePropAccountRequest(payload: any): Promise<any>;
37
+ createDisablePropAccountRequest(payload: any): Promise<any>;
38
+ }
@@ -0,0 +1,8 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class RoleSet extends Base {
4
+ createRole(payload: any): Promise<any>;
5
+ updateRole(id: any, payload: any): Promise<any>;
6
+ deleteRole(id: any): Promise<any>;
7
+ cloneRole(id: any): Promise<any>;
8
+ }
@@ -0,0 +1,5 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Silt extends Base {
4
+ getVerificationUrl(): Promise<any>;
5
+ }
@@ -0,0 +1,16 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class SiteSetting extends Base {
4
+ fetchSiteSettings(path: string[], recursive?: boolean): Promise<any>;
5
+ fetchPublicSiteSettings(path: string[], recursive?: boolean): Promise<any>;
6
+ updateSettings(path: string[], data: any, overwrite?: boolean): Promise<any>;
7
+ createSetting(path: string[], data: any, short_name: string): Promise<any>;
8
+ deleteSetting(path: string[]): Promise<any>;
9
+ uploadAttachment(path: string[], payload: any): Promise<any>;
10
+ testEmail(payload: string): Promise<any>;
11
+ syncAccountGroupConfigs(server: string): Promise<any>;
12
+ syncSymbolConfigs(server: string): Promise<any>;
13
+ getServerTimeOffset(server: string): Promise<any>;
14
+ getMachineTranslation(payload: any): Promise<any>;
15
+ getWidgetIframeSettings(): Promise<any>;
16
+ }