@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.
- package/LICENSE +19 -0
- package/README.md +86 -0
- package/dist/channels/accounts.d.ts +11 -0
- package/dist/channels/metrics.d.ts +8 -0
- package/dist/channels/position.d.ts +13 -0
- package/dist/channels/users.d.ts +38 -0
- package/dist/common/constants/category.constant.d.ts +30 -0
- package/dist/common/constants/category.constant.js +31 -0
- package/dist/common/constants/communication.constant.d.ts +52 -0
- package/dist/common/constants/communication.constant.js +85 -0
- package/dist/common/constants/email.constant.d.ts +4 -0
- package/dist/common/constants/email.constant.js +7 -0
- package/dist/common/constants/filter.constants.d.ts +1 -0
- package/dist/common/constants/filter.constants.js +6 -0
- package/dist/common/constants/index.d.ts +15 -0
- package/dist/common/constants/index.js +79 -0
- package/dist/common/constants/kyc.constant.d.ts +42 -0
- package/dist/common/constants/kyc.constant.js +43 -0
- package/dist/common/constants/listStatus.constants.d.ts +2 -0
- package/dist/common/constants/listStatus.constants.js +19 -0
- package/dist/common/constants/methods.constant.d.ts +43 -0
- package/dist/common/constants/methods.constant.js +84 -0
- package/dist/common/constants/passwordRule.constants.d.ts +4 -0
- package/dist/common/constants/passwordRule.constants.js +7 -0
- package/dist/common/constants/program.constants.d.ts +2 -0
- package/dist/common/constants/program.constants.js +31 -0
- package/dist/common/constants/propAccount.constant.d.ts +8 -0
- package/dist/common/constants/propAccount.constant.js +11 -0
- package/dist/common/constants/site-settings.constants.d.ts +40 -0
- package/dist/common/constants/site-settings.constants.js +10 -0
- package/dist/common/constants/store.constants.d.ts +1 -0
- package/dist/common/constants/store.constants.js +7 -0
- package/dist/common/constants/supportTicket.constant.d.ts +11 -0
- package/dist/common/constants/supportTicket.constant.js +14 -0
- package/dist/common/constants/tradingPlatform.constants.d.ts +4 -0
- package/dist/common/constants/tradingPlatform.constants.js +7 -0
- package/dist/common/constants/transaction.constant.d.ts +16 -0
- package/dist/common/constants/transaction.constant.js +19 -0
- package/dist/common/constants/type.constants.d.ts +5 -0
- package/dist/common/constants/type.constants.js +28 -0
- package/dist/common/constants/withdraw.constant.d.ts +1 -0
- package/dist/common/constants/withdraw.constant.js +7 -0
- package/dist/common/types/addon.type.d.ts +30 -0
- package/dist/common/types/category.type.d.ts +8 -0
- package/dist/common/types/common.type.d.ts +3 -0
- package/dist/common/types/communication.type.d.ts +51 -0
- package/dist/common/types/coupon.type.d.ts +27 -0
- package/dist/common/types/email.type.d.ts +8 -0
- package/dist/common/types/fundingSource.type.d.ts +80 -0
- package/dist/common/types/ibs.type.d.ts +15 -0
- package/dist/common/types/index.d.ts +16 -0
- package/dist/common/types/kyc.type.d.ts +52 -0
- package/dist/common/types/liveNotification.type.d.ts +10 -0
- package/dist/common/types/news.type.d.ts +17 -0
- package/dist/common/types/notification.types.d.ts +30 -0
- package/dist/common/types/passwordRule.type.d.ts +16 -0
- package/dist/common/types/paymentMethod/blockbee.type.d.ts +27 -0
- package/dist/common/types/paymentMethod/index.d.ts +2 -0
- package/dist/common/types/paymentMethod/match2pay.type.d.ts +27 -0
- package/dist/common/types/product.type.d.ts +63 -0
- package/dist/common/types/siteSetting.type.d.ts +77 -0
- package/dist/common/types/wallet.type.d.ts +36 -0
- package/dist/common/use-utils/data/countriesWithCurrencies.d.ts +7 -0
- package/dist/common/use-utils/data/dragonpayBank.d.ts +6 -0
- package/dist/common/use-utils/data/help2pay_banks.d.ts +7 -0
- package/dist/common/use-utils/data/listCryptoCurrencies.d.ts +5 -0
- package/dist/common/use-utils/data/regions.d.ts +16 -0
- package/dist/common/use-utils/data/widgets.d.ts +4 -0
- package/dist/common/use-utils/error-handlers/index.d.ts +1 -0
- package/dist/common/use-utils/helpers/color.helpers.d.ts +2 -0
- package/dist/common/use-utils/helpers/color.helpers.js +19 -0
- package/dist/common/use-utils/helpers/currency.helpers.d.ts +25 -0
- package/dist/common/use-utils/helpers/currency.helpers.js +762 -0
- package/dist/common/use-utils/helpers/date.helpers.d.ts +8 -0
- package/dist/common/use-utils/helpers/date.helpers.js +64 -0
- package/dist/common/use-utils/helpers/kyc.helpers.d.ts +22 -0
- package/dist/common/use-utils/helpers/kyc.helpers.js +165 -0
- package/dist/common/use-utils/helpers/misc.helpers.d.ts +45 -0
- package/dist/common/use-utils/helpers/misc.helpers.js +141 -0
- package/dist/common/use-utils/helpers/number.helpers.d.ts +11 -0
- package/dist/common/use-utils/helpers/number.helpers.js +76 -0
- package/dist/common/use-utils/helpers/passwordRule.helpers.d.ts +5 -0
- package/dist/common/use-utils/helpers/passwordRule.helpers.js +31 -0
- package/dist/common/use-utils/helpers/schema.helpers.d.ts +2 -0
- package/dist/common/use-utils/helpers/schema.helpers.js +2036 -0
- package/dist/common/use-utils/helpers/string.helpers.d.ts +7 -0
- package/dist/common/use-utils/helpers/string.helpers.js +38 -0
- package/dist/common/use-utils/helpers/transaction.helpers.d.ts +8 -0
- package/dist/common/use-utils/helpers/transaction.helpers.js +44 -0
- package/dist/common/use-utils/schemas/fundingMethod.schema.d.ts +1313 -0
- package/dist/common/use-utils/validators/index.d.ts +4 -0
- package/dist/common/use-utils/validators/index.js +8 -0
- package/dist/index-6dV6pxDN.js +334 -0
- package/dist/index-BTVWGSPO.js +2897 -0
- package/dist/index.d.ts +1763 -0
- package/dist/index.js +10326 -0
- package/dist/regions-Dsypl2zG.js +18768 -0
- package/dist/services/ClientSDK/account/index.d.ts +57 -0
- package/dist/services/ClientSDK/activityLog/index.d.ts +6 -0
- package/dist/services/ClientSDK/auth/index.d.ts +21 -0
- package/dist/services/ClientSDK/auth/types.d.ts +11 -0
- package/dist/services/ClientSDK/captcha/index.d.ts +5 -0
- package/dist/services/ClientSDK/category/index.d.ts +9 -0
- package/dist/services/ClientSDK/client/index.d.ts +15 -0
- package/dist/services/ClientSDK/commissionProfile/index.d.ts +10 -0
- package/dist/services/ClientSDK/contact/index.d.ts +9 -0
- package/dist/services/ClientSDK/content/index.d.ts +18 -0
- package/dist/services/ClientSDK/contentType/index.d.ts +6 -0
- package/dist/services/ClientSDK/conversionRate/index.d.ts +7 -0
- package/dist/services/ClientSDK/coupon/index.d.ts +15 -0
- package/dist/services/ClientSDK/coupon/type.d.ts +35 -0
- package/dist/services/ClientSDK/department/index.d.ts +10 -0
- package/dist/services/ClientSDK/devices/index.d.ts +6 -0
- package/dist/services/ClientSDK/emailLayout/index.d.ts +10 -0
- package/dist/services/ClientSDK/emailTemplate/index.d.ts +15 -0
- package/dist/services/ClientSDK/employee/index.d.ts +15 -0
- package/dist/services/ClientSDK/folder/index.d.ts +12 -0
- package/dist/services/ClientSDK/fundingSource/index.d.ts +17 -0
- package/dist/services/ClientSDK/gamificationCampaign/index.d.ts +9 -0
- package/dist/services/ClientSDK/ib/index.d.ts +26 -0
- package/dist/services/ClientSDK/index.d.ts +60 -0
- package/dist/services/ClientSDK/kycs/index.d.ts +18 -0
- package/dist/services/ClientSDK/lead/index.d.ts +13 -0
- package/dist/services/ClientSDK/metric/index.d.ts +11 -0
- package/dist/services/ClientSDK/metric/type.d.ts +171 -0
- package/dist/services/ClientSDK/news/index.d.ts +14 -0
- package/dist/services/ClientSDK/note/index.d.ts +8 -0
- package/dist/services/ClientSDK/notificationCenter/NotificationCenter.types.d.ts +24 -0
- package/dist/services/ClientSDK/notificationCenter/index.d.ts +20 -0
- package/dist/services/ClientSDK/payment/index.d.ts +27 -0
- package/dist/services/ClientSDK/persona/index.d.ts +12 -0
- package/dist/services/ClientSDK/product/index.d.ts +12 -0
- package/dist/services/ClientSDK/productAttribute/index.d.ts +9 -0
- package/dist/services/ClientSDK/propAccount/index.d.ts +59 -0
- package/dist/services/ClientSDK/purchase/index.d.ts +13 -0
- package/dist/services/ClientSDK/purchase/type.d.ts +66 -0
- package/dist/services/ClientSDK/reportFilters/index.d.ts +9 -0
- package/dist/services/ClientSDK/request/index.d.ts +38 -0
- package/dist/services/ClientSDK/roleSet/index.d.ts +8 -0
- package/dist/services/ClientSDK/silt/index.d.ts +5 -0
- package/dist/services/ClientSDK/siteSetting/index.d.ts +16 -0
- package/dist/services/ClientSDK/sumsub/index.d.ts +6 -0
- package/dist/services/ClientSDK/support/index.d.ts +16 -0
- package/dist/services/ClientSDK/tradeBattle/index.d.ts +30 -0
- package/dist/services/ClientSDK/tradeBattle/tradeBattle.type.d.ts +119 -0
- package/dist/services/ClientSDK/tradeServer/index.d.ts +12 -0
- package/dist/services/ClientSDK/transaction/index.d.ts +9 -0
- package/dist/services/ClientSDK/user/index.d.ts +40 -0
- package/dist/services/ClientSDK/veriff/index.d.ts +7 -0
- package/dist/services/ClientSDK/voip/index.d.ts +5 -0
- package/dist/services/ClientSDK/wallet/index.d.ts +18 -0
- package/dist/services/EmailServiceTestSDK/index.d.ts +7 -0
- package/dist/services/EmailServiceTestSDK/message/index.d.ts +6 -0
- package/dist/services/PoolTradingSDK/index.d.ts +11 -0
- package/dist/services/PoolTradingSDK/investWallet/index.d.ts +16 -0
- package/dist/services/PoolTradingSDK/poolProfile/index.d.ts +46 -0
- package/dist/services/ReportSDK/index.d.ts +28 -0
- package/dist/services/base.d.ts +29 -0
- package/dist/stores/account.d.ts +191 -0
- package/dist/stores/activityLog.d.ts +7 -0
- package/dist/stores/addon.d.ts +11 -0
- package/dist/stores/advertising.d.ts +155 -0
- package/dist/stores/auth.d.ts +39 -0
- package/dist/stores/battleNotification.d.ts +6 -0
- package/dist/stores/captcha.d.ts +3 -0
- package/dist/stores/category.d.ts +15 -0
- package/dist/stores/client.d.ts +16 -0
- package/dist/stores/commissionProfile.d.ts +12 -0
- package/dist/stores/contact.d.ts +9 -0
- package/dist/stores/content.d.ts +222 -0
- package/dist/stores/contentType.d.ts +10 -0
- package/dist/stores/contentV2.d.ts +160 -0
- package/dist/stores/conversionRate.d.ts +9 -0
- package/dist/stores/coupon.d.ts +30 -0
- package/dist/stores/department.d.ts +7 -0
- package/dist/stores/devices.d.ts +8 -0
- package/dist/stores/employee.d.ts +12 -0
- package/dist/stores/folder.d.ts +15 -0
- package/dist/stores/fundingSource.d.ts +46 -0
- package/dist/stores/gamificationCampaign.d.ts +10 -0
- package/dist/stores/ib.d.ts +22 -0
- package/dist/stores/index.d.ts +1761 -0
- package/dist/stores/investWallet.d.ts +92 -0
- package/dist/stores/kycs.d.ts +16 -0
- package/dist/stores/lead.d.ts +13 -0
- package/dist/stores/liveNotification.d.ts +6 -0
- package/dist/stores/metric.d.ts +24 -0
- package/dist/stores/metricsV2.d.ts +28 -0
- package/dist/stores/news.d.ts +15 -0
- package/dist/stores/notes.d.ts +16 -0
- package/dist/stores/notification.d.ts +6 -0
- package/dist/stores/notificationCenter.d.ts +20 -0
- package/dist/stores/payment.d.ts +25 -0
- package/dist/stores/poolProfile.d.ts +117 -0
- package/dist/stores/poolTrading.d.ts +7 -0
- package/dist/stores/product.d.ts +31 -0
- package/dist/stores/productAttribute.d.ts +10 -0
- package/dist/stores/propAccount.d.ts +48 -0
- package/dist/stores/purchases.d.ts +23 -0
- package/dist/stores/report.d.ts +19 -0
- package/dist/stores/reportFilter.d.ts +9 -0
- package/dist/stores/request.d.ts +39 -0
- package/dist/stores/roleSet.d.ts +7 -0
- package/dist/stores/siteSetting.d.ts +103 -0
- package/dist/stores/support.d.ts +33 -0
- package/dist/stores/tradeBattle.d.ts +51 -0
- package/dist/stores/tradeServer.d.ts +12 -0
- package/dist/stores/transaction.d.ts +8 -0
- package/dist/stores/user.d.ts +30 -0
- package/dist/stores/wallet.d.ts +53 -0
- package/dist/utils/axiosTiming.d.ts +12 -0
- package/dist/utils/cookies.d.ts +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/routeCompression.d.ts +19 -0
- package/dist/utils/store.d.ts +12 -0
- package/package.json +74 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
export interface JoinTradeBattleRequest {
|
|
2
|
+
items: {
|
|
3
|
+
product_uuid: string;
|
|
4
|
+
specs?: {
|
|
5
|
+
platform?: string;
|
|
6
|
+
};
|
|
7
|
+
variation_index?: number;
|
|
8
|
+
}[];
|
|
9
|
+
currency: string;
|
|
10
|
+
coupon_codes?: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface JoinTradeBattleResponse {
|
|
13
|
+
id: number;
|
|
14
|
+
uuid: string;
|
|
15
|
+
user_id: number;
|
|
16
|
+
email: string;
|
|
17
|
+
items: {
|
|
18
|
+
specs: any;
|
|
19
|
+
product_uuid: string;
|
|
20
|
+
variation_index: number;
|
|
21
|
+
}[];
|
|
22
|
+
final_price: any;
|
|
23
|
+
currency: string;
|
|
24
|
+
state: string;
|
|
25
|
+
personal_info: any;
|
|
26
|
+
proceeded_at: any;
|
|
27
|
+
completed_at: any;
|
|
28
|
+
created_at: string;
|
|
29
|
+
updated_at: string;
|
|
30
|
+
reason: any;
|
|
31
|
+
additional_info: any;
|
|
32
|
+
}
|
|
33
|
+
export interface TradeBattleBody {
|
|
34
|
+
id?: number;
|
|
35
|
+
uuid?: string;
|
|
36
|
+
name: string;
|
|
37
|
+
category_uuid: string;
|
|
38
|
+
state: string;
|
|
39
|
+
settings: TradeBattleSettings;
|
|
40
|
+
variations: {
|
|
41
|
+
variations: {
|
|
42
|
+
name: string;
|
|
43
|
+
payments: Record<string, number>;
|
|
44
|
+
account_size: number;
|
|
45
|
+
}[];
|
|
46
|
+
}[];
|
|
47
|
+
}
|
|
48
|
+
export interface TradeBattleSettings {
|
|
49
|
+
name: string;
|
|
50
|
+
type: string;
|
|
51
|
+
prize: Prize[];
|
|
52
|
+
status: string;
|
|
53
|
+
start_date: string;
|
|
54
|
+
end_date: string;
|
|
55
|
+
leverage: number;
|
|
56
|
+
platform: string;
|
|
57
|
+
started_at?: any;
|
|
58
|
+
description?: string;
|
|
59
|
+
account_size: number;
|
|
60
|
+
account_type: string;
|
|
61
|
+
completed_at?: any;
|
|
62
|
+
min_attendees: number;
|
|
63
|
+
max_entry_time: string;
|
|
64
|
+
account_currency: string;
|
|
65
|
+
max_reentry_time: string;
|
|
66
|
+
max_time_to_comment: string;
|
|
67
|
+
created_by: number;
|
|
68
|
+
time_to_publish?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface Prize {
|
|
71
|
+
to: number;
|
|
72
|
+
from: number;
|
|
73
|
+
amount: number;
|
|
74
|
+
total_amount: number;
|
|
75
|
+
prize_currency: string;
|
|
76
|
+
}
|
|
77
|
+
export interface PurchaseNowRequest {
|
|
78
|
+
personal_info: {
|
|
79
|
+
address?: string;
|
|
80
|
+
city?: string;
|
|
81
|
+
country?: string;
|
|
82
|
+
email?: string;
|
|
83
|
+
first_name?: string;
|
|
84
|
+
last_name?: string;
|
|
85
|
+
phone?: string;
|
|
86
|
+
zip_code?: string;
|
|
87
|
+
nick_name?: string;
|
|
88
|
+
};
|
|
89
|
+
coupon_codes: string[];
|
|
90
|
+
payment_method: string;
|
|
91
|
+
payment_method_id: number | string;
|
|
92
|
+
payment_type: string;
|
|
93
|
+
to_currency: string;
|
|
94
|
+
}
|
|
95
|
+
export interface PurchaseNowResponse extends PurchaseNowRequest {
|
|
96
|
+
}
|
|
97
|
+
export interface TradeHistoryParams {
|
|
98
|
+
account_ids: string[];
|
|
99
|
+
server: string;
|
|
100
|
+
from_date?: string;
|
|
101
|
+
to_date?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface TradeBattleActionRequest {
|
|
104
|
+
user_id: string;
|
|
105
|
+
request_type?: string;
|
|
106
|
+
params_fields: {
|
|
107
|
+
product_id: string;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export interface TradeBattleCommentRequest {
|
|
111
|
+
user_id: string;
|
|
112
|
+
request_type?: string;
|
|
113
|
+
params_fields: {
|
|
114
|
+
product_id: string;
|
|
115
|
+
account_id: string;
|
|
116
|
+
server: string;
|
|
117
|
+
comment: string;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Base } from '../../base';
|
|
2
|
+
|
|
3
|
+
export declare class TradeServer extends Base {
|
|
4
|
+
fetchTradeServers(name?: string[]): Promise<any>;
|
|
5
|
+
getTradeServer(id: number): Promise<any>;
|
|
6
|
+
createTradeServer(payload: any): Promise<any>;
|
|
7
|
+
updateTradeServer(id: number, payload: any): Promise<any>;
|
|
8
|
+
deleteTradeServer(id: number, payload: any): Promise<any>;
|
|
9
|
+
getCategories(name: string): Promise<any>;
|
|
10
|
+
sendTradeServerOtp(issue_method: string, server_id: number): Promise<any>;
|
|
11
|
+
verifyOtpRetrievePassword(code: string, server_id: number): Promise<any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Base } from '../../base';
|
|
2
|
+
|
|
3
|
+
export declare class Transaction extends Base {
|
|
4
|
+
getTransactionsAggregatedAmount(params: any): Promise<any>;
|
|
5
|
+
getSumDeposit(params: any): Promise<any>;
|
|
6
|
+
getSumWithdrawal(params: any): Promise<any>;
|
|
7
|
+
fetchTransactions(filter: object): Promise<any>;
|
|
8
|
+
getSumWithdrawalFromWallet(params: any): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Base } from '../../base';
|
|
2
|
+
|
|
3
|
+
export declare class User extends Base {
|
|
4
|
+
changePassword(data: any): Promise<any>;
|
|
5
|
+
resendPasswordResetEmail(user_id: number): Promise<any>;
|
|
6
|
+
resetUserPassword(user_id: number, data: any): Promise<any>;
|
|
7
|
+
getReferralReward(user_id: number): Promise<any>;
|
|
8
|
+
precheckChangeEmail(data: {
|
|
9
|
+
email: string;
|
|
10
|
+
}): Promise<any>;
|
|
11
|
+
changeEmail(data: any): Promise<any>;
|
|
12
|
+
getGoogleAuthUri(): Promise<any>;
|
|
13
|
+
updateTwoFASetting(data: any): Promise<any>;
|
|
14
|
+
uploadProfilePicture(data: any): Promise<any>;
|
|
15
|
+
fetchUsersUsingIDs(ids: number[]): Promise<any>;
|
|
16
|
+
getUserByEmail(email: string): Promise<any>;
|
|
17
|
+
updateUser(user_id: number, payload: any): Promise<any>;
|
|
18
|
+
getWidgetSettings(): Promise<any>;
|
|
19
|
+
updateWidgetSettings(payload: any): Promise<any>;
|
|
20
|
+
tradingCentralHandshakeUrl(payload: any): Promise<any>;
|
|
21
|
+
getWidgetData(payload: any): Promise<any>;
|
|
22
|
+
getPropAccountWidgetData(payload: any): Promise<any>;
|
|
23
|
+
getProfilePictures(payload: any): Promise<any>;
|
|
24
|
+
getAuthenticatorState(email: string, issue_method: string): Promise<any>;
|
|
25
|
+
setPassword(data: any): Promise<any>;
|
|
26
|
+
trackingEvent(data: any): Promise<any>;
|
|
27
|
+
sendContactSupportMessage(data: {
|
|
28
|
+
email: string;
|
|
29
|
+
message: string;
|
|
30
|
+
}): Promise<any>;
|
|
31
|
+
processDataFromCampaignLandingPage(data: any): Promise<any>;
|
|
32
|
+
sendOtpToEmail(data: {
|
|
33
|
+
email: string;
|
|
34
|
+
issue_method: string;
|
|
35
|
+
}): Promise<any>;
|
|
36
|
+
verifyOtpAndSignIn(data: {
|
|
37
|
+
email: string;
|
|
38
|
+
otp_code: string;
|
|
39
|
+
}): Promise<any>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Base } from '../../base';
|
|
2
|
+
|
|
3
|
+
export declare class Wallet extends Base {
|
|
4
|
+
fetchWallets(filter: object): Promise<any>;
|
|
5
|
+
fetchOneWallet(id: number): Promise<any>;
|
|
6
|
+
fetchWalletBalanceChanges(ids: number[]): Promise<any>;
|
|
7
|
+
setMainWallet(id: number): Promise<any>;
|
|
8
|
+
fetchWalletsUsingIDs(ids: number[]): Promise<any>;
|
|
9
|
+
bulkUpdateWalletsState(payload: any): Promise<any>;
|
|
10
|
+
updateWallet(wallet_id: number, payload: any): Promise<any>;
|
|
11
|
+
updateWalletComment(id: number, payload: any): Promise<any>;
|
|
12
|
+
recalculateWalletBalance(id: number): Promise<any>;
|
|
13
|
+
fetchWalletFundingHistory(payload: any): Promise<any>;
|
|
14
|
+
fetchWalletPublicInfoByEmail(email: string): Promise<any>;
|
|
15
|
+
getWalletPublicInfo(email: string): Promise<any>;
|
|
16
|
+
fetchDetachedInvestWallets(): Promise<any>;
|
|
17
|
+
fetchFundingByWallet(walletId: number): Promise<any>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Base, Config } from '../base';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
|
|
4
|
+
declare class EmailServiceTestSDK extends Base {
|
|
5
|
+
constructor(config: Config, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
|
|
6
|
+
}
|
|
7
|
+
export default EmailServiceTestSDK;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Base, Config } from '../base';
|
|
2
|
+
import { InvestWallet } from './investWallet';
|
|
3
|
+
import { PoolProfile } from './poolProfile';
|
|
4
|
+
import { AxiosInstance } from 'axios';
|
|
5
|
+
|
|
6
|
+
declare class PoolTradingSDK extends Base {
|
|
7
|
+
constructor(config: Config, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
|
|
8
|
+
}
|
|
9
|
+
interface PoolTradingSDK extends InvestWallet, PoolProfile {
|
|
10
|
+
}
|
|
11
|
+
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,46 @@
|
|
|
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_exact_match, 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_exact_match: any;
|
|
12
|
+
is_mam: any;
|
|
13
|
+
currency: any;
|
|
14
|
+
runtime: any;
|
|
15
|
+
growth_range_from: any;
|
|
16
|
+
growth_range_to: any;
|
|
17
|
+
}, sort_by?: any): Promise<any>;
|
|
18
|
+
getPoolProfile(id: number): Promise<any>;
|
|
19
|
+
updatePoolProfile(id: number, payload: any): Promise<any>;
|
|
20
|
+
updatePoolProfileAdmin(id: number, payload: any): Promise<any>;
|
|
21
|
+
getPoolPositions(params: {
|
|
22
|
+
server: string;
|
|
23
|
+
login: number;
|
|
24
|
+
page: number;
|
|
25
|
+
size: number;
|
|
26
|
+
order_by?: {
|
|
27
|
+
[key: string]: string;
|
|
28
|
+
};
|
|
29
|
+
state?: 'open' | 'closed';
|
|
30
|
+
}): Promise<any>;
|
|
31
|
+
getWidgetData(profile_id: number, chart_name: string): Promise<any>;
|
|
32
|
+
getAccountSummary(profile_id: number): Promise<any>;
|
|
33
|
+
getPoolProfileDeals(payload: any): Promise<any>;
|
|
34
|
+
countDeals(payload: any): Promise<any>;
|
|
35
|
+
getProfilePositions(payload: any): Promise<any>;
|
|
36
|
+
countPositions(payload: any): Promise<any>;
|
|
37
|
+
checkDuplicatePoolName(name: string): Promise<any>;
|
|
38
|
+
getPositionsInvestWallet(payload: any): Promise<any>;
|
|
39
|
+
getCountPositionInvestWallet(idWalletId: string, state: string): Promise<any>;
|
|
40
|
+
generateTodayReport(poolId: number): Promise<any>;
|
|
41
|
+
exportFundManagerDetails(params: {
|
|
42
|
+
pool_id: number;
|
|
43
|
+
start_date?: string;
|
|
44
|
+
end_date?: string;
|
|
45
|
+
}): Promise<any>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Base, Config } from '../base';
|
|
2
|
+
import { AxiosInstance } from 'axios';
|
|
3
|
+
|
|
4
|
+
export declare class Report extends Base {
|
|
5
|
+
}
|
|
6
|
+
declare class ReportSDK extends Base {
|
|
7
|
+
constructor(config: Config, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
|
|
8
|
+
downloadProfitLossReport(payload: any): Promise<any>;
|
|
9
|
+
downloadVolumeReport(payload: any): Promise<any>;
|
|
10
|
+
downloadTopTradingReport(payload: any): Promise<any>;
|
|
11
|
+
downloadTopTradersReport(payload: any): Promise<any>;
|
|
12
|
+
downloadTransactionsReport(payload: any): Promise<any>;
|
|
13
|
+
downloadDPWPITRReport(payload: any): Promise<any>;
|
|
14
|
+
downloadIBCommissionTransactionsReport(payload: any): Promise<any>;
|
|
15
|
+
downloadLeadsAndClientsReport(payload: any): Promise<any>;
|
|
16
|
+
downloadNewLeadsDailyReport(payload: any): Promise<any>;
|
|
17
|
+
downloadReferAFriendReport(payload: any): Promise<any>;
|
|
18
|
+
downloadIBDetailedTradingPerAccReport(payload: any): Promise<any>;
|
|
19
|
+
downloadIBTotalDetailedTradingInfoReport(payload: any): Promise<any>;
|
|
20
|
+
downloadIBTotalTradedVolumeReport(payload: any): Promise<any>;
|
|
21
|
+
downloadIBSummaryReport(payload: any): Promise<any>;
|
|
22
|
+
downloadIBReport(payload: any): Promise<any>;
|
|
23
|
+
downloadWalletDetailsReport(payload: any): Promise<any>;
|
|
24
|
+
downloadTotalIBCommissionReport(payload: any): Promise<any>;
|
|
25
|
+
}
|
|
26
|
+
interface ReportSDK {
|
|
27
|
+
}
|
|
28
|
+
export default ReportSDK;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AxiosResponse, AxiosInstance, AxiosError } from 'axios';
|
|
2
|
+
|
|
3
|
+
export type Config = {
|
|
4
|
+
base_url: string;
|
|
5
|
+
client_id: string;
|
|
6
|
+
ws_url: string;
|
|
7
|
+
};
|
|
8
|
+
export declare abstract class Base {
|
|
9
|
+
saveToLocalStorage: boolean;
|
|
10
|
+
access_token: string;
|
|
11
|
+
device_id: string;
|
|
12
|
+
device_ip: string;
|
|
13
|
+
config: Config;
|
|
14
|
+
axiosInstance: AxiosInstance;
|
|
15
|
+
private requestInterceptorId?;
|
|
16
|
+
constructor(config: Config, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
|
|
17
|
+
private setData;
|
|
18
|
+
private getAxiosInstance;
|
|
19
|
+
setResponseInterceptors(onFulfilled?: (response: AxiosResponse) => AxiosResponse<any>, onRejected?: (error: AxiosError) => Promise<AxiosError>): void;
|
|
20
|
+
setRequestInterceptors(getAuthData: () => {
|
|
21
|
+
access_token?: string;
|
|
22
|
+
device_id?: string;
|
|
23
|
+
device_ip?: string;
|
|
24
|
+
}): void;
|
|
25
|
+
updateToken(token: string, saveToLocalStorage?: boolean): void;
|
|
26
|
+
updateDeviceId(device_id: string): void;
|
|
27
|
+
updateDeviceIp(device_ip: string): void;
|
|
28
|
+
protected request<T>(endpoint: string, options?: any): Promise<AxiosResponse<T>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
export declare const useAccountStore: import('pinia').StoreDefinition<"account", {
|
|
2
|
+
accounts: any[];
|
|
3
|
+
accountHistory: {};
|
|
4
|
+
selected_account: {};
|
|
5
|
+
fundingHistory: {};
|
|
6
|
+
openTrades: {};
|
|
7
|
+
mtDeals: any[];
|
|
8
|
+
totalDeals: number;
|
|
9
|
+
positions: any[];
|
|
10
|
+
totalPositions: number;
|
|
11
|
+
options: string;
|
|
12
|
+
accountsIndexMap: {};
|
|
13
|
+
accountMetricByDeal: any[];
|
|
14
|
+
columnsTrade: any;
|
|
15
|
+
}, {
|
|
16
|
+
liveAccounts(state: {
|
|
17
|
+
accounts: any[];
|
|
18
|
+
accountHistory: {};
|
|
19
|
+
selected_account: {};
|
|
20
|
+
fundingHistory: {};
|
|
21
|
+
openTrades: {};
|
|
22
|
+
mtDeals: any[];
|
|
23
|
+
totalDeals: number;
|
|
24
|
+
positions: any[];
|
|
25
|
+
totalPositions: number;
|
|
26
|
+
options: string;
|
|
27
|
+
accountsIndexMap: {};
|
|
28
|
+
accountMetricByDeal: any[];
|
|
29
|
+
columnsTrade: any;
|
|
30
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
31
|
+
accounts: any[];
|
|
32
|
+
accountHistory: {};
|
|
33
|
+
selected_account: {};
|
|
34
|
+
fundingHistory: {};
|
|
35
|
+
openTrades: {};
|
|
36
|
+
mtDeals: any[];
|
|
37
|
+
totalDeals: number;
|
|
38
|
+
positions: any[];
|
|
39
|
+
totalPositions: number;
|
|
40
|
+
options: string;
|
|
41
|
+
accountsIndexMap: {};
|
|
42
|
+
accountMetricByDeal: any[];
|
|
43
|
+
columnsTrade: any;
|
|
44
|
+
}>): any[];
|
|
45
|
+
demoAccounts(state: {
|
|
46
|
+
accounts: any[];
|
|
47
|
+
accountHistory: {};
|
|
48
|
+
selected_account: {};
|
|
49
|
+
fundingHistory: {};
|
|
50
|
+
openTrades: {};
|
|
51
|
+
mtDeals: any[];
|
|
52
|
+
totalDeals: number;
|
|
53
|
+
positions: any[];
|
|
54
|
+
totalPositions: number;
|
|
55
|
+
options: string;
|
|
56
|
+
accountsIndexMap: {};
|
|
57
|
+
accountMetricByDeal: any[];
|
|
58
|
+
columnsTrade: any;
|
|
59
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
60
|
+
accounts: any[];
|
|
61
|
+
accountHistory: {};
|
|
62
|
+
selected_account: {};
|
|
63
|
+
fundingHistory: {};
|
|
64
|
+
openTrades: {};
|
|
65
|
+
mtDeals: any[];
|
|
66
|
+
totalDeals: number;
|
|
67
|
+
positions: any[];
|
|
68
|
+
totalPositions: number;
|
|
69
|
+
options: string;
|
|
70
|
+
accountsIndexMap: {};
|
|
71
|
+
accountMetricByDeal: any[];
|
|
72
|
+
columnsTrade: any;
|
|
73
|
+
}>): any[];
|
|
74
|
+
poolLiveAccounts(state: {
|
|
75
|
+
accounts: any[];
|
|
76
|
+
accountHistory: {};
|
|
77
|
+
selected_account: {};
|
|
78
|
+
fundingHistory: {};
|
|
79
|
+
openTrades: {};
|
|
80
|
+
mtDeals: any[];
|
|
81
|
+
totalDeals: number;
|
|
82
|
+
positions: any[];
|
|
83
|
+
totalPositions: number;
|
|
84
|
+
options: string;
|
|
85
|
+
accountsIndexMap: {};
|
|
86
|
+
accountMetricByDeal: any[];
|
|
87
|
+
columnsTrade: any;
|
|
88
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
89
|
+
accounts: any[];
|
|
90
|
+
accountHistory: {};
|
|
91
|
+
selected_account: {};
|
|
92
|
+
fundingHistory: {};
|
|
93
|
+
openTrades: {};
|
|
94
|
+
mtDeals: any[];
|
|
95
|
+
totalDeals: number;
|
|
96
|
+
positions: any[];
|
|
97
|
+
totalPositions: number;
|
|
98
|
+
options: string;
|
|
99
|
+
accountsIndexMap: {};
|
|
100
|
+
accountMetricByDeal: any[];
|
|
101
|
+
columnsTrade: any;
|
|
102
|
+
}>): any[];
|
|
103
|
+
accountFundingHistory(state: {
|
|
104
|
+
accounts: any[];
|
|
105
|
+
accountHistory: {};
|
|
106
|
+
selected_account: {};
|
|
107
|
+
fundingHistory: {};
|
|
108
|
+
openTrades: {};
|
|
109
|
+
mtDeals: any[];
|
|
110
|
+
totalDeals: number;
|
|
111
|
+
positions: any[];
|
|
112
|
+
totalPositions: number;
|
|
113
|
+
options: string;
|
|
114
|
+
accountsIndexMap: {};
|
|
115
|
+
accountMetricByDeal: any[];
|
|
116
|
+
columnsTrade: any;
|
|
117
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
118
|
+
accounts: any[];
|
|
119
|
+
accountHistory: {};
|
|
120
|
+
selected_account: {};
|
|
121
|
+
fundingHistory: {};
|
|
122
|
+
openTrades: {};
|
|
123
|
+
mtDeals: any[];
|
|
124
|
+
totalDeals: number;
|
|
125
|
+
positions: any[];
|
|
126
|
+
totalPositions: number;
|
|
127
|
+
options: string;
|
|
128
|
+
accountsIndexMap: {};
|
|
129
|
+
accountMetricByDeal: any[];
|
|
130
|
+
columnsTrade: any;
|
|
131
|
+
}>): {};
|
|
132
|
+
closedDeals(): (formatMoney: any, digits: any) => any;
|
|
133
|
+
openPositions(): (formatMoney: any, digits: any) => any;
|
|
134
|
+
getColumnsTrade(state: {
|
|
135
|
+
accounts: any[];
|
|
136
|
+
accountHistory: {};
|
|
137
|
+
selected_account: {};
|
|
138
|
+
fundingHistory: {};
|
|
139
|
+
openTrades: {};
|
|
140
|
+
mtDeals: any[];
|
|
141
|
+
totalDeals: number;
|
|
142
|
+
positions: any[];
|
|
143
|
+
totalPositions: number;
|
|
144
|
+
options: string;
|
|
145
|
+
accountsIndexMap: {};
|
|
146
|
+
accountMetricByDeal: any[];
|
|
147
|
+
columnsTrade: any;
|
|
148
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
149
|
+
accounts: any[];
|
|
150
|
+
accountHistory: {};
|
|
151
|
+
selected_account: {};
|
|
152
|
+
fundingHistory: {};
|
|
153
|
+
openTrades: {};
|
|
154
|
+
mtDeals: any[];
|
|
155
|
+
totalDeals: number;
|
|
156
|
+
positions: any[];
|
|
157
|
+
totalPositions: number;
|
|
158
|
+
options: string;
|
|
159
|
+
accountsIndexMap: {};
|
|
160
|
+
accountMetricByDeal: any[];
|
|
161
|
+
columnsTrade: any;
|
|
162
|
+
}>): any;
|
|
163
|
+
}, {
|
|
164
|
+
fetchAccounts(page: any, size: any, filter: any, order_by: any, skipPullTrading?: boolean): Promise<any>;
|
|
165
|
+
fetchOneAccount(account_id: number): Promise<any>;
|
|
166
|
+
fetchOpenTrades(account_id: number): Promise<any>;
|
|
167
|
+
listPositions(account_id: number, position_type: string, symbol?: string): Promise<any>;
|
|
168
|
+
fetchAccountHistory(server: string, account_ids: number[], from_date: string, to_date: string): Promise<any>;
|
|
169
|
+
fetchAccountFundingHistory(account_id: any, dateFrom: any, dateTo: any): Promise<any>;
|
|
170
|
+
changeLeverage(account_id: number): Promise<any>;
|
|
171
|
+
resetPassword(account_id: number): Promise<any>;
|
|
172
|
+
depositDemo(account_id: number): Promise<any>;
|
|
173
|
+
resetBalance(account_id: number): Promise<any>;
|
|
174
|
+
getAccountSummary(payload: any): Promise<any>;
|
|
175
|
+
getDeals(payload: any): Promise<any>;
|
|
176
|
+
countDeals(payload: any): Promise<any>;
|
|
177
|
+
exportDeals(payload: any): Promise<any>;
|
|
178
|
+
getPostions(payload: any): Promise<any>;
|
|
179
|
+
countPositions(payload: any): Promise<any>;
|
|
180
|
+
getMostProfitablePairs(account_id: any): Promise<any>;
|
|
181
|
+
getProfitLossHistory(account_id: number, payload: any): Promise<any>;
|
|
182
|
+
getOverallROI(account_id: number): Promise<any>;
|
|
183
|
+
getAccountBalanceToCompareDate(payload: any): Promise<any>;
|
|
184
|
+
loadColumnsFromStorage(): void;
|
|
185
|
+
updateColumnsTrade(payload: string[]): void;
|
|
186
|
+
getWithdrawableAccounts(payload: {
|
|
187
|
+
server: string;
|
|
188
|
+
logins: number[];
|
|
189
|
+
}): Promise<any>;
|
|
190
|
+
getAccountMetricByLastDeals(ids: number[]): Promise<any>;
|
|
191
|
+
}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useActivityLogStore: import('pinia').StoreDefinition<"activity_log", {
|
|
2
|
+
activity_log_ids: any[];
|
|
3
|
+
activity_logs: any[];
|
|
4
|
+
}, {}, {
|
|
5
|
+
getActivityLogIds(content_type: string, content_id: number, message: string): Promise<any>;
|
|
6
|
+
getActivityLogs(content_type: string, content_id: number, message: string, page: number, size: number): Promise<any>;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAddon, IAddonCategory } from '../common/types/addon.type';
|
|
2
|
+
|
|
3
|
+
export declare const useAddonStore: import('pinia').StoreDefinition<"addon", {
|
|
4
|
+
categories: IAddonCategory[];
|
|
5
|
+
}, {
|
|
6
|
+
getCategories(): IAddonCategory[];
|
|
7
|
+
getAllAddons(): IAddon[];
|
|
8
|
+
getAddonStatus: () => (addon: IAddon, currency?: string) => string;
|
|
9
|
+
}, {
|
|
10
|
+
fetchAddonsByCategoryIds(categoryIds: number[]): Promise<any>;
|
|
11
|
+
}>;
|