@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,92 @@
1
+ export declare const useInvestWalletStore: import('pinia').StoreDefinition<"invest_wallet", {
2
+ investWallets: any[];
3
+ selectedWallet: {};
4
+ poolSummary: {};
5
+ investWalletsProfitLoss: {
6
+ profit: {
7
+ [key: string | number]: any;
8
+ };
9
+ loss: {
10
+ [key: string | number]: any;
11
+ };
12
+ pl: {
13
+ [key: string | number]: any;
14
+ };
15
+ };
16
+ }, {
17
+ getInvestWalletById: (state: {
18
+ investWallets: any[];
19
+ selectedWallet: {};
20
+ poolSummary: {};
21
+ investWalletsProfitLoss: {
22
+ profit: {
23
+ [key: string | number]: any;
24
+ };
25
+ loss: {
26
+ [key: string | number]: any;
27
+ };
28
+ pl: {
29
+ [key: string | number]: any;
30
+ };
31
+ };
32
+ } & import('pinia').PiniaCustomStateProperties<{
33
+ investWallets: any[];
34
+ selectedWallet: {};
35
+ poolSummary: {};
36
+ investWalletsProfitLoss: {
37
+ profit: {
38
+ [key: string | number]: any;
39
+ };
40
+ loss: {
41
+ [key: string | number]: any;
42
+ };
43
+ pl: {
44
+ [key: string | number]: any;
45
+ };
46
+ };
47
+ }>) => (id: number) => any;
48
+ getInvestWalletsByFilterAndOrder: (state: {
49
+ investWallets: any[];
50
+ selectedWallet: {};
51
+ poolSummary: {};
52
+ investWalletsProfitLoss: {
53
+ profit: {
54
+ [key: string | number]: any;
55
+ };
56
+ loss: {
57
+ [key: string | number]: any;
58
+ };
59
+ pl: {
60
+ [key: string | number]: any;
61
+ };
62
+ };
63
+ } & import('pinia').PiniaCustomStateProperties<{
64
+ investWallets: any[];
65
+ selectedWallet: {};
66
+ poolSummary: {};
67
+ investWalletsProfitLoss: {
68
+ profit: {
69
+ [key: string | number]: any;
70
+ };
71
+ loss: {
72
+ [key: string | number]: any;
73
+ };
74
+ pl: {
75
+ [key: string | number]: any;
76
+ };
77
+ };
78
+ }>) => (filter: any, order: any) => any[];
79
+ }, {
80
+ fetchInvestWallets(params: any): Promise<unknown>;
81
+ fetchOneInvestWallet(id: number): Promise<any>;
82
+ fetchPoolSummaryWallet(params: any): Promise<any>;
83
+ fetchInvestWalletProfitLoss(ids?: number[], from_time?: Date, to_time?: Date): Promise<any>;
84
+ fetchProfitLossHistory(params: any): Promise<any>;
85
+ createInvestWallet(data: any): Promise<any>;
86
+ transferOutInvestWallet(id: number, amount: number, destination_id: number): Promise<any>;
87
+ partialClosePosition(position_id: number, invest_wallet_id: string): Promise<any>;
88
+ fetchInvestDeals(params: object): Promise<any>;
89
+ fetchAttachedWallets(params: object): Promise<any>;
90
+ getTotalInvestWallet(): Promise<any>;
91
+ getInvestWalletBalanceChanges(params: object): Promise<any>;
92
+ }>;
@@ -0,0 +1,16 @@
1
+ export declare const useKycStore: import('pinia').StoreDefinition<"kyc", {
2
+ kycs: any[];
3
+ selected_kyc: {};
4
+ }, {}, {
5
+ fetchKycs(page: any, size: any, filter: any, order_by: any): Promise<any>;
6
+ updateKycs(id: any, payload: any): Promise<unknown>;
7
+ findOrInitializeKyc(payload: any): Promise<unknown>;
8
+ uploadDocument(id: any, payload: any): Promise<unknown>;
9
+ updateExtraData(id: any, payload: any): Promise<unknown>;
10
+ uploadIdImage(id: any, payload: any): Promise<unknown>;
11
+ uploadAddressImage(id: any, payload: any): Promise<unknown>;
12
+ uploadPotraitImage(id: any, payload: any): Promise<unknown>;
13
+ approveKyc(id: any, payload: any): Promise<unknown>;
14
+ rejectKyc(id: any, payload: any): Promise<unknown>;
15
+ bulkRejectKyc(payload: any): Promise<unknown>;
16
+ }>;
@@ -0,0 +1,13 @@
1
+ export declare const useLeadStore: import('pinia').StoreDefinition<"lead", {
2
+ lead: any;
3
+ leads: any[];
4
+ leadCount: number;
5
+ fundedLeadCount: number;
6
+ activeLeadCount: number;
7
+ dailyHistoryLeadCount: any[];
8
+ }, {}, {
9
+ fetchLeadsCount(): Promise<any>;
10
+ fetchLeads(page: any, size: any, filter: any, order_by: any): Promise<any>;
11
+ countDailyHistoryLeads(payload: any): Promise<any>;
12
+ activateImportedLead(id: number): Promise<any>;
13
+ }>;
@@ -0,0 +1,6 @@
1
+ import { NotificationState, NotificationType } from '../common/types/liveNotification.types';
2
+
3
+ export declare const useLiveNotificationStore: import('pinia').StoreDefinition<"live_notification", NotificationState, {}, {
4
+ clearLiveNotifications(): void;
5
+ addLiveNotification(notification: NotificationType): void;
6
+ }>;
@@ -0,0 +1,21 @@
1
+ export declare const useMetricStore: import('pinia').StoreDefinition<"metric", {
2
+ accountMetricByDealFields: string[];
3
+ metricData: any[];
4
+ propAccountMetricData: any[];
5
+ latestMetricData: {};
6
+ }, {
7
+ metricDataByLogin(): (login: string, server: string) => any;
8
+ getLatestMetricDataByMetricName(): (metric_name: string) => any;
9
+ }, {
10
+ setMetricData(data: any, fields: any): void;
11
+ queryMetric(payload: any, isNoFields?: boolean): Promise<any>;
12
+ queryMetricByTimetamp(payload: any): Promise<any>;
13
+ queryLatestMetric(payload: {
14
+ metric_name: string;
15
+ server_logins: {
16
+ server: string;
17
+ login: string;
18
+ }[];
19
+ fields: string[];
20
+ }): Promise<any>;
21
+ }>;
@@ -0,0 +1,15 @@
1
+ import { CreateNewsRequest, CreateNewsDraft, GetNewsPayload } from '../news/news.type';
2
+
3
+ export declare const useNewsStore: import('pinia').StoreDefinition<"news_store", {
4
+ newsData: any[];
5
+ }, {}, {
6
+ createNews(payload: {
7
+ news: CreateNewsRequest;
8
+ } | CreateNewsDraft): Promise<any>;
9
+ updateNews(id: string | number, payload: {
10
+ news: CreateNewsRequest;
11
+ }): Promise<any>;
12
+ destroyNews(id: string | number): Promise<any>;
13
+ uploadBannerImage(id: any, payload: any): Promise<any>;
14
+ getNews(payload: GetNewsPayload): Promise<any>;
15
+ }>;
@@ -0,0 +1,16 @@
1
+ export declare const useNotesStore: import('pinia').StoreDefinition<"notes", {}, {}, {
2
+ createNotes(payload: {
3
+ object_id: number;
4
+ object_type: string;
5
+ subject: string;
6
+ entry_strategy?: string;
7
+ exit_strategy?: string;
8
+ comments?: string;
9
+ tags?: string;
10
+ opening_the_trade?: File | any;
11
+ closing_the_trade?: File | any;
12
+ extra_data?: any;
13
+ } | any, options?: any): Promise<unknown>;
14
+ putNotes(payload: any, options?: any): Promise<unknown>;
15
+ deleteNotes(ids: any): Promise<unknown>;
16
+ }>;
@@ -0,0 +1,20 @@
1
+ import { SendNotificationRequest } from '../notification-center/NotificationCenter.types';
2
+
3
+ export declare const useNotificationCenter: import('pinia').StoreDefinition<"notification_center", {
4
+ notifications: any[];
5
+ unreadCount: number;
6
+ notificationsUnread: any[];
7
+ }, {}, {
8
+ createNotificationTemplate(payload: FormData): Promise<any>;
9
+ updateNotificationTemplate(payload: FormData, id: string | number): Promise<any>;
10
+ updateNotificationTemplateState(id: string | number, state: "enable" | "disable"): Promise<any>;
11
+ deleteNotificationTemplate(id: string | number): Promise<any>;
12
+ sendNotification(payload: SendNotificationRequest): Promise<any>;
13
+ updateNotification(payload: SendNotificationRequest, id: string | number): Promise<any>;
14
+ deleteNotification(id: string | number): Promise<any>;
15
+ deleteNotificationuser(id: string | number): Promise<any>;
16
+ markAsRead(ids: number[]): Promise<any>;
17
+ fetchCountNotificationUnread(): Promise<any>;
18
+ fetchNotificationsUnread(page: number, size: number, filter: any, order_by: any): Promise<any>;
19
+ addNotificationUnread(notification: any): void;
20
+ }>;
@@ -0,0 +1,6 @@
1
+ export declare const useNotificationStore: import('pinia').StoreDefinition<"notification", {
2
+ notifications: any[];
3
+ }, {}, {
4
+ clearNotifications(): void;
5
+ addNotification(notification: any): void;
6
+ }>;
@@ -0,0 +1,12 @@
1
+ export declare const usePaymentStore: import('pinia').StoreDefinition<"payment", {
2
+ listPayments: any[];
3
+ }, {}, {
4
+ payments(payload: any): Promise<any>;
5
+ createPayment(payload: any): Promise<any>;
6
+ uploadProofOfPayment(payload: any): Promise<any>;
7
+ approvePayment(payload: any): Promise<any>;
8
+ rejectPayment(payload: any): Promise<any>;
9
+ autoCompleted(payload: any): Promise<any>;
10
+ sumTotalDepositWithdrawal(payload: any): Promise<any>;
11
+ getFundingSummaries(payload: any): Promise<any>;
12
+ }>;
@@ -0,0 +1,7 @@
1
+ export declare const usePoolTradingStore: import('pinia').StoreDefinition<"pool-trading", {
2
+ selected_invest_wallet: {};
3
+ transactionPeriod: {};
4
+ }, {
5
+ invest_wallets(): any[];
6
+ investWalletTransactions(): any[];
7
+ }, {}>;
@@ -0,0 +1,116 @@
1
+ export interface IPositionInvestWallet {
2
+ Server?: string;
3
+ Login?: number;
4
+ Symbol?: string;
5
+ Action?: number;
6
+ Digits?: number;
7
+ DigitsCurrency?: number;
8
+ ContractSize?: number;
9
+ PositionId?: number;
10
+ ExternalId?: string;
11
+ TimeCreate?: string;
12
+ TimeUpdate?: string;
13
+ PriceOpen?: number;
14
+ PriceCurrent?: number;
15
+ PriceSL?: number;
16
+ PriceTP?: number;
17
+ Volume?: number;
18
+ Profit?: number;
19
+ Storage?: number;
20
+ RateProfit?: number;
21
+ RateMargin?: number;
22
+ ExpertId?: number;
23
+ ExpertPositionId?: number;
24
+ Comment?: string;
25
+ Dealer?: number;
26
+ ActivationMode?: number;
27
+ ActivationTime?: string;
28
+ ActivationPrice?: number;
29
+ ActivationFlags?: number;
30
+ Reason?: number;
31
+ State?: number;
32
+ }
33
+ export declare const usePoolProfileStore: import('pinia').StoreDefinition<"pool_profile", {
34
+ poolProfileIds: any[];
35
+ poolProfiles: any[];
36
+ poolProfileLastFetchedAt: any;
37
+ poolProfileFilterAndOrder: string;
38
+ selectedPoolProfile: {};
39
+ poolProfileLeaderboard: any[];
40
+ mtDeals: any[];
41
+ totalDeals: number;
42
+ positions: any[];
43
+ totalPositions: number;
44
+ positionsStateOpenLiveUpdate: IPositionInvestWallet[];
45
+ poolProfileLiveUpdate: {};
46
+ }, {
47
+ getFilter(): any;
48
+ getOrder(): any;
49
+ poolProfilesTotalCount(): any;
50
+ closedDeals(): (server: any, formatMoney: any) => any;
51
+ openPositions(): (server: any, formatMoney: any) => any;
52
+ }, {
53
+ reorderAndFilterPoolProfiles(): void;
54
+ insertOrUpdatePoolProfile(poolProfile: any): void;
55
+ updatePoolProfile(id: number, data: any): Promise<any>;
56
+ updatePoolProfileAdmin(id: number, data: any): Promise<any>;
57
+ fetchPoolProfile(id: number): Promise<any>;
58
+ fetchPoolProfileById(pool_id: number, setStore?: {
59
+ isSetStore?: boolean;
60
+ props?: {
61
+ investWallet?: any;
62
+ state?: "open" | "closed";
63
+ };
64
+ }): Promise<any>;
65
+ fetchPoolProfileIDsInTimeRange(from_time?: Date, to_time?: Date, filter?: any, order?: any): Promise<any>;
66
+ fetchPoolProfiles(page: any, size: any, filter?: any, order_by?: any, profile_ids?: any[]): Promise<any>;
67
+ fetchPoolProfileLeaderboard({ server, logins, profile_ids, name_like, is_mam, currency, runtime, growth_range_from, growth_range_to, }: {
68
+ server: any;
69
+ logins: any;
70
+ profile_ids: any;
71
+ name_like: any;
72
+ is_mam: any;
73
+ currency: any;
74
+ runtime: any;
75
+ growth_range_from: any;
76
+ growth_range_to: any;
77
+ }, sort_by: any): Promise<any>;
78
+ getWidgetData(profile_id: number, chart_name: string): Promise<unknown>;
79
+ getAccountSummary(profile_id: number): Promise<unknown>;
80
+ getPoolProfileDeals(payload: any): Promise<unknown>;
81
+ countDeals(payload: any): Promise<unknown>;
82
+ getProfilePositions(payload: any): Promise<unknown>;
83
+ countPositions(payload: any): Promise<unknown>;
84
+ checkDuplicatePoolName(name: string): Promise<unknown>;
85
+ getPositionsInvestWallet({ payload, }: {
86
+ payload: {
87
+ investWalletId: string;
88
+ symbol?: string[];
89
+ trade_action?: string[];
90
+ from_time?: string;
91
+ to_time?: string;
92
+ page: number;
93
+ size: number;
94
+ order_by?: string;
95
+ order_direction?: string;
96
+ };
97
+ }): Promise<unknown>;
98
+ getCountPositionInvestWallet(idWallet: string, state: string): Promise<unknown>;
99
+ updatePositionListSocketInvestWallet(payload: IPositionInvestWallet[]): void;
100
+ getPoolPositions(params: {
101
+ server: string;
102
+ login: number;
103
+ page: number;
104
+ size: number;
105
+ order_by?: {
106
+ [key: string]: string;
107
+ };
108
+ state?: "open" | "closed";
109
+ }): Promise<unknown>;
110
+ updatePoolProfileLiveUpdate(payload: any): void;
111
+ exportFundManagerDetails(params: {
112
+ pool_id: number;
113
+ start_date?: string;
114
+ end_date?: string;
115
+ }): Promise<unknown>;
116
+ }>;
@@ -0,0 +1,27 @@
1
+ import { CategoryName } from 'src/common/types/category.types';
2
+
3
+ export declare const useProductStore: import('pinia').StoreDefinition<"product", {
4
+ products: any[];
5
+ selectedProduct: {};
6
+ categorizedProducts: {
7
+ prop_account: any[];
8
+ trading_competition: any[];
9
+ prop_trading_competition: any[];
10
+ leveraged: any[];
11
+ };
12
+ }, {
13
+ productsTotalCount(): number;
14
+ propTradingCompetitionProducts(): {
15
+ upcoming: any;
16
+ ongoing: any;
17
+ finished: any;
18
+ };
19
+ }, {
20
+ fetchProducts(payload?: any, isChangeStore?: boolean, categoryName?: CategoryName, isFetchContent?: boolean): Promise<any>;
21
+ fetchProductByUUID(uuid: string, isEcommereService?: boolean): Promise<any>;
22
+ fetchLevelByProduct(product_uuid: string, product_level: any, isEcommereService?: boolean): Promise<any>;
23
+ createProduct(payload: any, isEcommereService?: boolean): Promise<any>;
24
+ createProductAndVariation(payload: any, isEcommereService?: boolean): Promise<any>;
25
+ updateProduct(id: string | number, payload: any): Promise<any>;
26
+ deleteProduct(id: string | number): Promise<any>;
27
+ }>;
@@ -0,0 +1,10 @@
1
+ export declare const useProductAttributeStore: import('pinia').StoreDefinition<"product_attribute", {
2
+ product_attributes: any[];
3
+ selectedProductAttribute: {};
4
+ }, {}, {
5
+ fetchProductAttributes(isEcommereService?: boolean): Promise<any>;
6
+ fetchProductAttributeByUUID(uuid: number, isEcommereService?: boolean): Promise<any>;
7
+ createProductAttribute(payload: any, isEcommereService?: boolean): Promise<any>;
8
+ updateProductAttribute(uuid: number, payload: any, isEcommereService?: boolean): Promise<any>;
9
+ deleteProductAttribute(uuid: number, isEcommereService?: boolean): Promise<any>;
10
+ }>;
@@ -0,0 +1,45 @@
1
+ export declare const usePropAccountStore: import('pinia').StoreDefinition<"prop_account", {
2
+ prop_accounts: any[];
3
+ accountHistory: {};
4
+ selected_account: {};
5
+ fundingHistory: {};
6
+ openTrades: {};
7
+ positions: any[];
8
+ totalPositions: number;
9
+ options: string;
10
+ accountsIndexMap: {};
11
+ defaultFields: string[];
12
+ metricData: any[];
13
+ countMetricData: number;
14
+ rankingMetricData: any[];
15
+ countRankingMetricData: number;
16
+ equities: any[];
17
+ accountMetricByDeal: any[];
18
+ maxBalanceEquity: number;
19
+ dailyDrawdownThresholds: any[];
20
+ accountOnUpdate: any[];
21
+ }, {
22
+ closedPositions(): (server: any, formatMoney: any) => any;
23
+ }, {
24
+ fetchAccounts(page: any, size: any, filter: any, order_by: any, with_attachments?: boolean, skipPullTrading?: boolean): Promise<any>;
25
+ getPositions(payload: any): Promise<any>;
26
+ countPositions(payload: any): Promise<any>;
27
+ recalculateAccountMetrics(account_ids: any): Promise<any>;
28
+ getPublicAccountsInfo(payload: any): Promise<any>;
29
+ propAccountMostTradedAsset(payload: any): Promise<any>;
30
+ propAccountsMetrics(payload: any): Promise<any>;
31
+ propAccountMetricsCount(payload: any): Promise<any>;
32
+ getAccountMetricByLastDeal(ids: number[]): Promise<any>;
33
+ fetchDailyDrawdowmThresholdMetric(payload: any): Promise<any>;
34
+ fetchDailyDrawdownThresholds(payload: any): Promise<any>;
35
+ fetchAccountOnUpdate(payload: any): Promise<any>;
36
+ changeInvestorAccountPassword(payload: {
37
+ id: number;
38
+ password: string;
39
+ }): Promise<any>;
40
+ changePropAccountPassword(payload: {
41
+ id: number;
42
+ new_password: string;
43
+ role: "master" | "investor" | null;
44
+ }): Promise<any>;
45
+ }>;
@@ -0,0 +1,23 @@
1
+ import { PurchaseNowPayload, CreatePurchasePayload, CalculatePurchasePayload } from '../purchase/type';
2
+
3
+ export declare const usePurchasesStore: import('pinia').StoreDefinition<"purchases", {
4
+ purchases: any[];
5
+ selectedPurchase: {};
6
+ purchasedInfo: Record<string, any> | null;
7
+ }, {}, {
8
+ fetchPurchases(payload?: {
9
+ page?: number;
10
+ size?: number;
11
+ filter?: any;
12
+ order_by?: any;
13
+ from_time?: any;
14
+ to_time?: any;
15
+ }): Promise<unknown>;
16
+ calculatePurchase(payload: CalculatePurchasePayload): Promise<any>;
17
+ createPurchase(payload: CreatePurchasePayload): Promise<CreatePurchasePayload | null>;
18
+ updatePurchase(id: string | number, payload: any): Promise<any>;
19
+ purchaseNow(purchaseId: number, payload: PurchaseNowPayload): Promise<any>;
20
+ purchaseNowAnonymous(payload: PurchaseNowPayload): Promise<any>;
21
+ getPurchaseByUUID(uuid: string): Promise<any>;
22
+ createPurchaseForRequest(request_id: string): Promise<any>;
23
+ }>;
@@ -0,0 +1,9 @@
1
+ export declare const useReportFilterStore: import('pinia').StoreDefinition<"report_filters", {
2
+ report_filters: any[];
3
+ }, {}, {
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,39 @@
1
+ export declare const useRequestStore: import('pinia').StoreDefinition<"request", {
2
+ requests: any[];
3
+ selected_request: {};
4
+ verification: any[];
5
+ paymentMethod: {};
6
+ }, {}, {
7
+ fetchRequests(request_types: string[] | string, page: number, size: number, filter: object, order_by: object): Promise<any>;
8
+ fetchOneRequest(request_id: number): Promise<any>;
9
+ createRequest(payload: any, options?: any): Promise<any>;
10
+ createWalletRequest(payload: any): Promise<any>;
11
+ createAccountRequest(payload: any, request_type: string): Promise<any>;
12
+ createDepositRequest(payload: any): Promise<any>;
13
+ createDemoDepositRequest(payload: any): Promise<any>;
14
+ createWithdrawalRequest(payload: any): Promise<any>;
15
+ createTransferRequest(payload: any): Promise<any>;
16
+ createLeadImportRequest(payload: any): Promise<any>;
17
+ changeLeverage(account_id: number, payload: any, request_type: string): Promise<any>;
18
+ resetPassword(account_id: number): Promise<any>;
19
+ uploadPaymentProof(request_id: number, payload: any): Promise<any>;
20
+ importLeadFile(request_id: number, payload: any): Promise<any>;
21
+ importIBFile(request_id: number, payload: any): Promise<any>;
22
+ uploadTradingReports(request_id: number, payload: any): Promise<any>;
23
+ cancelRequest(request_id: number): Promise<any>;
24
+ depositPSP(payload: any): Promise<any>;
25
+ withdrawPSP(payload: any): Promise<any>;
26
+ callPaymentMethodFunc(payload: any): Promise<any>;
27
+ approveRequest(request_id: number): Promise<any>;
28
+ rejectRequest(request_id: number, payload: any): Promise<any>;
29
+ bulkApproveRequest(ids: number[]): Promise<any>;
30
+ bulkRejectRequest(payload: any): Promise<any>;
31
+ reprocessRequest(request_id: number): Promise<any>;
32
+ updateThenApproveRequest(request_id: number, params_fields: any): Promise<any>;
33
+ updateExtraData(id: any, payload: any): Promise<unknown>;
34
+ reviewKycDocument(id: any, payload: any): Promise<unknown>;
35
+ undoKycDocument(id: any, payload: any): Promise<unknown>;
36
+ reactivateTradingAccount(payload: any, user_id: number): Promise<unknown>;
37
+ disableTradingAccount(payload: any, user_id: number): Promise<unknown>;
38
+ generateTodayReport(poolId: number): Promise<unknown>;
39
+ }>;
@@ -0,0 +1,7 @@
1
+ export declare const useRoleSetStore: import('pinia').StoreDefinition<"role_sets", {}, {}, {
2
+ fetchRoles(page: any, size: any, filter: any, order_by: any): Promise<any>;
3
+ createRole(payload: any): Promise<any>;
4
+ updateRole(id: number, payload: any): Promise<any>;
5
+ deleteRole(id: number): Promise<any>;
6
+ cloneRole(id: number): Promise<any>;
7
+ }>;
@@ -0,0 +1,98 @@
1
+ import { CompanySettings, SiteName } from '../common/types/site-setting';
2
+
3
+ export interface IMyObject {
4
+ [key: string]: any;
5
+ }
6
+ export interface ISiteSetting {
7
+ site_settings: {
8
+ settings: IMyObject;
9
+ children: {
10
+ company: {
11
+ settings: CompanySettings;
12
+ [key: string]: any;
13
+ };
14
+ email_settings: IMyObject;
15
+ trading_platforms: IMyObject;
16
+ account_setup: IMyObject;
17
+ transaction_settings: IMyObject;
18
+ country_settings: IMyObject;
19
+ translations: IMyObject;
20
+ registration_and_kyc: IMyObject;
21
+ partner_setting: IMyObject;
22
+ wallet_setup: IMyObject;
23
+ widget_iframe_settings: IMyObject;
24
+ reports: IMyObject;
25
+ pool_trading: IMyObject;
26
+ ib_create_settings: IMyObject;
27
+ reject_reason_settings: IMyObject;
28
+ coupon_setting: IMyObject;
29
+ copy_trading_integration: IMyObject;
30
+ nationality_settings: IMyObject;
31
+ client_data_write_mode_configuration_settings: IMyObject;
32
+ app_products: IMyObject;
33
+ prop_account_giveaway_settings: IMyObject;
34
+ referral_settings: IMyObject;
35
+ };
36
+ };
37
+ time_offset: IMyObject;
38
+ machine_translation: IMyObject;
39
+ }
40
+ export declare const useSiteSettingStore: import('pinia').StoreDefinition<"site-setting", ISiteSetting, {
41
+ settingsByPath(): (path: string[]) => any;
42
+ fieldFromSetting(): (setting_path: any, index_path: any) => any;
43
+ countrySettings(): any;
44
+ tradingPlatformsChildrenSettings(): any[];
45
+ liveServers(): any;
46
+ demoServers(): any;
47
+ battleServers(): any;
48
+ allServers(): any;
49
+ accountTypes(): (server: any) => any;
50
+ accountRules(): (server: any) => any;
51
+ accountCurrencies(): (server: any) => any;
52
+ accountLeverageTypes(): (server: any) => any;
53
+ accountPromotions(): (server: any) => any;
54
+ storageSettings(): (server: any) => any;
55
+ companySettings(): CompanySettings;
56
+ getCompanySites(): Record<SiteName, string> | undefined;
57
+ currencyDigitSettings(): (server: any) => any;
58
+ reportSettings(): any;
59
+ getAvailabledFiatAndCryptoCurrencies(): (isByType?: boolean) => any[] | {
60
+ fiat: any;
61
+ crypto: any;
62
+ };
63
+ getCurrencyDigit(): (currency: string) => any;
64
+ availableCountries(): {
65
+ countryName: string;
66
+ countryShortCode: string;
67
+ value: string;
68
+ regions: ({
69
+ name: string;
70
+ shortCode?: undefined;
71
+ } | {
72
+ name: string;
73
+ shortCode: string;
74
+ })[];
75
+ label: string;
76
+ languages: string;
77
+ dialling_code: string;
78
+ }[];
79
+ traderReferral(): any;
80
+ traderReferralSettings(): any;
81
+ }, {
82
+ set_settings({ path, data }: {
83
+ path: string[];
84
+ data: any;
85
+ }): void;
86
+ fetchSiteSettings(path: string[], recursive?: boolean): Promise<any>;
87
+ fetchPublicSiteSettings(path: string[], recursive?: boolean): Promise<any>;
88
+ updateSettings(path: string[], data: any, overwrite?: boolean): Promise<unknown>;
89
+ createSetting(path: string[], data: any, short_name: string): Promise<unknown>;
90
+ deleteSetting(path: string[]): Promise<unknown>;
91
+ uploadAttachment(path: string[], payload: any): Promise<unknown>;
92
+ testEmail(payload: string): Promise<unknown>;
93
+ syncAccountGroupConfigs(server: string): Promise<unknown>;
94
+ syncSymbolConfigs(server: string): Promise<unknown>;
95
+ getServerTimeOffset(server: string): Promise<unknown>;
96
+ getMachineTranslation(payload: any): Promise<unknown>;
97
+ getWidgetIframeSettings(): Promise<unknown>;
98
+ }>;
@@ -0,0 +1,33 @@
1
+ export declare const useSupportStore: import('pinia').StoreDefinition<"support", {
2
+ supportTickets: any[];
3
+ selectedTicket: {};
4
+ timeFilter: string;
5
+ }, {
6
+ getOpenSupportTickets: (state: {
7
+ supportTickets: any[];
8
+ selectedTicket: {};
9
+ timeFilter: string;
10
+ } & import('pinia').PiniaCustomStateProperties<{
11
+ supportTickets: any[];
12
+ selectedTicket: {};
13
+ timeFilter: string;
14
+ }>) => any[];
15
+ getClosedSupportTickets: (state: {
16
+ supportTickets: any[];
17
+ selectedTicket: {};
18
+ timeFilter: string;
19
+ } & import('pinia').PiniaCustomStateProperties<{
20
+ supportTickets: any[];
21
+ selectedTicket: {};
22
+ timeFilter: string;
23
+ }>) => any[];
24
+ }, {
25
+ fetchSupportTickets({ owner_id, state }: any): Promise<any>;
26
+ fetchSingleSupportTicket(id: string | number): Promise<any>;
27
+ createTicket(payload: any): Promise<unknown>;
28
+ updateTicket(payload: any, id: string | number): Promise<unknown>;
29
+ messageSupportTicket(payload: any, id: string | number): Promise<unknown>;
30
+ closeSupportTicket(id: string | number): Promise<unknown>;
31
+ updateTimeFilter(filter: string): void;
32
+ updateStateTicket(state: string): void;
33
+ }>;