@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,103 @@
|
|
|
1
|
+
import { CompanySettings, SiteName } from '../common/types/siteSetting.type';
|
|
2
|
+
import { PasswordRule } from '../common/types/passwordRule.type';
|
|
3
|
+
|
|
4
|
+
export interface IMyObject {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export interface ISiteSetting {
|
|
8
|
+
site_settings: {
|
|
9
|
+
settings: IMyObject;
|
|
10
|
+
children: {
|
|
11
|
+
company: {
|
|
12
|
+
settings: CompanySettings;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
email_settings: IMyObject;
|
|
16
|
+
trading_platforms: IMyObject;
|
|
17
|
+
account_setup: IMyObject;
|
|
18
|
+
transaction_settings: IMyObject;
|
|
19
|
+
country_settings: IMyObject;
|
|
20
|
+
translations: IMyObject;
|
|
21
|
+
registration_and_kyc: IMyObject;
|
|
22
|
+
partner_setting: IMyObject;
|
|
23
|
+
wallet_setup: IMyObject;
|
|
24
|
+
widget_iframe_settings: IMyObject;
|
|
25
|
+
reports: IMyObject;
|
|
26
|
+
pool_trading: IMyObject;
|
|
27
|
+
ib_create_settings: IMyObject;
|
|
28
|
+
reject_reason_settings: IMyObject;
|
|
29
|
+
coupon_setting: IMyObject;
|
|
30
|
+
copy_trading_integration: IMyObject;
|
|
31
|
+
nationality_settings: IMyObject;
|
|
32
|
+
client_data_write_mode_configuration_settings: IMyObject;
|
|
33
|
+
app_products: IMyObject;
|
|
34
|
+
prop_account_giveaway_settings: IMyObject;
|
|
35
|
+
referral_settings: IMyObject;
|
|
36
|
+
prop_account_setup: IMyObject;
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
time_offset: IMyObject;
|
|
41
|
+
machine_translation: IMyObject;
|
|
42
|
+
}
|
|
43
|
+
export declare const useSiteSettingStore: import('pinia').StoreDefinition<"site-setting", ISiteSetting, {
|
|
44
|
+
settingsByPath(): (path: string[]) => any;
|
|
45
|
+
fieldFromSetting(): (setting_path: any, index_path: any) => any;
|
|
46
|
+
countrySettings(): any;
|
|
47
|
+
tradingPlatformsChildrenSettings(): any[];
|
|
48
|
+
liveServers(): any;
|
|
49
|
+
demoServers(): any;
|
|
50
|
+
battleServers(): any;
|
|
51
|
+
allServers(): any;
|
|
52
|
+
accountTypes(): (server: any) => any;
|
|
53
|
+
accountRules(): (server: any) => any;
|
|
54
|
+
accountCurrencies(): (server: any) => any;
|
|
55
|
+
accountLeverageTypes(): (server: any) => any;
|
|
56
|
+
accountPromotions(): (server: any) => any;
|
|
57
|
+
storageSettings(): (server: any) => any;
|
|
58
|
+
companySettings(): CompanySettings;
|
|
59
|
+
walletSetupCurrency(): any;
|
|
60
|
+
getCompanySites(): Record<SiteName, string> | undefined;
|
|
61
|
+
currencyDigitSettings(): (server: any) => any;
|
|
62
|
+
reportSettings(): any;
|
|
63
|
+
getAvailabledFiatAndCryptoCurrencies(): (isByType?: boolean, filterByEnabled?: boolean) => any[] | {
|
|
64
|
+
fiat: any;
|
|
65
|
+
crypto: any;
|
|
66
|
+
};
|
|
67
|
+
getCurrencyDigit(): (currency: string) => any;
|
|
68
|
+
availableCountries(): {
|
|
69
|
+
countryName: string;
|
|
70
|
+
countryShortCode: string;
|
|
71
|
+
value: string;
|
|
72
|
+
regions: ({
|
|
73
|
+
name: string;
|
|
74
|
+
shortCode?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
name: string;
|
|
77
|
+
shortCode: string;
|
|
78
|
+
})[];
|
|
79
|
+
label: string;
|
|
80
|
+
languages: string;
|
|
81
|
+
dialling_code: string;
|
|
82
|
+
}[];
|
|
83
|
+
traderReferral(): any;
|
|
84
|
+
traderReferralSettings(): any;
|
|
85
|
+
getEnabledPasswordRules(): PasswordRule[];
|
|
86
|
+
}, {
|
|
87
|
+
set_settings({ path, data }: {
|
|
88
|
+
path: string[];
|
|
89
|
+
data: any;
|
|
90
|
+
}): void;
|
|
91
|
+
fetchSiteSettings(path: string[], recursive?: boolean): Promise<any>;
|
|
92
|
+
fetchPublicSiteSettings(path: string[], recursive?: boolean): Promise<any>;
|
|
93
|
+
updateSettings(path: string[], data: any, overwrite?: boolean): Promise<unknown>;
|
|
94
|
+
createSetting(path: string[], data: any, short_name: string): Promise<unknown>;
|
|
95
|
+
deleteSetting(path: string[]): Promise<unknown>;
|
|
96
|
+
uploadAttachment(path: string[], payload: any): Promise<unknown>;
|
|
97
|
+
testEmail(payload: string): Promise<unknown>;
|
|
98
|
+
syncAccountGroupConfigs(server: string): Promise<unknown>;
|
|
99
|
+
syncSymbolConfigs(server: string): Promise<unknown>;
|
|
100
|
+
getServerTimeOffset(server: string): Promise<unknown>;
|
|
101
|
+
getMachineTranslation(payload: any): Promise<unknown>;
|
|
102
|
+
getWidgetIframeSettings(): Promise<unknown>;
|
|
103
|
+
}>;
|
|
@@ -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
|
+
}>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PurchaseNowResponse, TradeBattleBody, TradeBattleActionRequest, TradeHistoryParams, TradeBattleCommentRequest } from '../services/ClientSDK/tradeBattle/tradeBattle.type';
|
|
2
|
+
import { AxiosResponse } from 'axios';
|
|
3
|
+
import { CreatePurchasePayload, PurchaseData, PurchaseNowPayload } from 'src/services/ClientSDK/purchase/type';
|
|
4
|
+
|
|
5
|
+
type AxiosPromise<T> = Promise<AxiosResponse<T>>;
|
|
6
|
+
export interface TradeBattleStates {
|
|
7
|
+
tradeBattlesList: TradeBattleBody[];
|
|
8
|
+
requestConfig?: TradeBattleActionRequest;
|
|
9
|
+
}
|
|
10
|
+
export declare const useTradeBattleStore: import('pinia').StoreDefinition<"trade_battle", TradeBattleStates, {}, {
|
|
11
|
+
createTradeBattle(payload: TradeBattleBody): AxiosPromise<TradeBattleBody>;
|
|
12
|
+
editTradeBattle(payload: TradeBattleBody, uuid: string): AxiosPromise<TradeBattleBody>;
|
|
13
|
+
joinTradeBattle(payload: CreatePurchasePayload): AxiosPromise<PurchaseData>;
|
|
14
|
+
reJoinBattle(payload: CreatePurchasePayload): AxiosPromise<PurchaseData>;
|
|
15
|
+
purchaseNow(data: PurchaseNowPayload, purchase_id: number): AxiosPromise<PurchaseNowResponse>;
|
|
16
|
+
getTradeBattleList({ state, category_uuid, isChangeStore, }: {
|
|
17
|
+
state?: string;
|
|
18
|
+
category_uuid: string;
|
|
19
|
+
isChangeStore?: boolean;
|
|
20
|
+
}): AxiosPromise<TradeBattleBody[]>;
|
|
21
|
+
startBattle({ request_type, ...rest }: TradeBattleActionRequest): Promise<any>;
|
|
22
|
+
completeBattle({ request_type, ...rest }: TradeBattleActionRequest): Promise<any>;
|
|
23
|
+
cancelBattle({ request_type, ...rest }: TradeBattleActionRequest): Promise<any>;
|
|
24
|
+
commentBattle({ request_type, ...rest }: TradeBattleCommentRequest): Promise<any>;
|
|
25
|
+
getTradeHistoryByBattleOrAccount(payload: TradeHistoryParams): Promise<any>;
|
|
26
|
+
getRanking(payload: {
|
|
27
|
+
product_id: any;
|
|
28
|
+
}): Promise<any>;
|
|
29
|
+
getTradedLot(id: string, payload?: {
|
|
30
|
+
from_date: string;
|
|
31
|
+
to_date: string;
|
|
32
|
+
}): Promise<any>;
|
|
33
|
+
getYesterdayAccountBalance(payload: {
|
|
34
|
+
product_id: any;
|
|
35
|
+
logins?: any;
|
|
36
|
+
}): Promise<any>;
|
|
37
|
+
getBattleNicknameAndProfile(payload: {
|
|
38
|
+
product_id: any;
|
|
39
|
+
logins?: any;
|
|
40
|
+
}): Promise<any>;
|
|
41
|
+
getCurrentAttendees(state?: string): Promise<any>;
|
|
42
|
+
getRankingForAccounts(): Promise<any>;
|
|
43
|
+
checkNickNameAccount(payload: {
|
|
44
|
+
nick_name: any;
|
|
45
|
+
}): Promise<any>;
|
|
46
|
+
getListAccountBattle(payload: any): Promise<any>;
|
|
47
|
+
fetchListBattleForRanking(payload: any): Promise<any>;
|
|
48
|
+
exportDealCSV(payload: any): Promise<any>;
|
|
49
|
+
exportCustom(payload: any, headers: any, responseType?: any): Promise<any>;
|
|
50
|
+
}>;
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const useTradeServerStore: import('pinia').StoreDefinition<"tradeServer", {
|
|
2
|
+
tradeServers: any[];
|
|
3
|
+
}, {}, {
|
|
4
|
+
fetchTradeServers(payload?: any): 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(payload: any): Promise<any>;
|
|
10
|
+
sendOtpPasswordTradeServer(server_id: number): Promise<unknown>;
|
|
11
|
+
verifyOtpRetrievePassword(code: string, server_id: number): Promise<unknown>;
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const useTransactionStore: import('pinia').StoreDefinition<"transaction", {
|
|
2
|
+
transactions: any[];
|
|
3
|
+
transactionPeriod: {};
|
|
4
|
+
}, {
|
|
5
|
+
walletTransactions(): any;
|
|
6
|
+
}, {
|
|
7
|
+
fetchTransactions(page: any, size: any, filter: any, order_by: any): Promise<any>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const useUserStore: import('pinia').StoreDefinition<"user", {
|
|
2
|
+
users: any[];
|
|
3
|
+
selectedUser: any;
|
|
4
|
+
}, {}, {
|
|
5
|
+
changePassword(payload: any): Promise<unknown>;
|
|
6
|
+
precheckChangeEmail(payload: any): Promise<unknown>;
|
|
7
|
+
changeEmail(payload: any): Promise<unknown>;
|
|
8
|
+
getGoogleAuthUri(): Promise<unknown>;
|
|
9
|
+
updateTwoFASetting(payload: any): Promise<unknown>;
|
|
10
|
+
uploadProfilePicture(payload: any): Promise<unknown>;
|
|
11
|
+
profileChange(payload: any): Promise<unknown>;
|
|
12
|
+
updateUser(user_id: number, payload: any): Promise<unknown>;
|
|
13
|
+
getWidgetSettings(): Promise<unknown>;
|
|
14
|
+
updateWidgetSettings(payload: any): Promise<unknown>;
|
|
15
|
+
tradingCentralHandshakeUrl(payload: any): Promise<unknown>;
|
|
16
|
+
getWidgetData(payload: any): Promise<unknown>;
|
|
17
|
+
getProfilePictures(payload: any): Promise<unknown>;
|
|
18
|
+
setPassword(payload: any): Promise<unknown>;
|
|
19
|
+
getReferralReward(payload: any): Promise<unknown>;
|
|
20
|
+
sendContactSupportMessage(payload: {
|
|
21
|
+
email: string;
|
|
22
|
+
message: string;
|
|
23
|
+
}): Promise<unknown>;
|
|
24
|
+
processDataFromCampaignLandingPage(payload: any): Promise<unknown>;
|
|
25
|
+
sendOtpToEmail(payload: {
|
|
26
|
+
email: string;
|
|
27
|
+
issue_method: string;
|
|
28
|
+
}): Promise<unknown>;
|
|
29
|
+
updateSelectedUser(user: any): void;
|
|
30
|
+
}>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { WalletCategory } from '../common/types/category.type';
|
|
2
|
+
|
|
3
|
+
export declare const useWalletStore: import('pinia').StoreDefinition<"wallet", {
|
|
4
|
+
wallets: any[];
|
|
5
|
+
walletBalanceChanges: {};
|
|
6
|
+
selected_wallet: {};
|
|
7
|
+
walletDWPeriod: {};
|
|
8
|
+
walletDeposit: {};
|
|
9
|
+
walletWithdrawal: {};
|
|
10
|
+
walletTransferIn: {};
|
|
11
|
+
walletTransferOut: {};
|
|
12
|
+
fundingHistory: {};
|
|
13
|
+
referral_wallet_id: any;
|
|
14
|
+
}, {
|
|
15
|
+
getCategoryWallet: (state: {
|
|
16
|
+
wallets: any[];
|
|
17
|
+
walletBalanceChanges: {};
|
|
18
|
+
selected_wallet: {};
|
|
19
|
+
walletDWPeriod: {};
|
|
20
|
+
walletDeposit: {};
|
|
21
|
+
walletWithdrawal: {};
|
|
22
|
+
walletTransferIn: {};
|
|
23
|
+
walletTransferOut: {};
|
|
24
|
+
fundingHistory: {};
|
|
25
|
+
referral_wallet_id: any;
|
|
26
|
+
} & import('pinia').PiniaCustomStateProperties<{
|
|
27
|
+
wallets: any[];
|
|
28
|
+
walletBalanceChanges: {};
|
|
29
|
+
selected_wallet: {};
|
|
30
|
+
walletDWPeriod: {};
|
|
31
|
+
walletDeposit: {};
|
|
32
|
+
walletWithdrawal: {};
|
|
33
|
+
walletTransferIn: {};
|
|
34
|
+
walletTransferOut: {};
|
|
35
|
+
fundingHistory: {};
|
|
36
|
+
referral_wallet_id: any;
|
|
37
|
+
}>) => (category?: WalletCategory) => any[];
|
|
38
|
+
}, {
|
|
39
|
+
fetchWallets(page: any, size: any, filter: any, order_by: any): Promise<any>;
|
|
40
|
+
fetchOneWallet(wallet_id: number): Promise<any>;
|
|
41
|
+
fetchWalletBalanceChanges(ids?: number[]): Promise<any>;
|
|
42
|
+
getWalletSumDeposit(id: any): Promise<any>;
|
|
43
|
+
getWalletSumWithdrawal(id: any): Promise<any>;
|
|
44
|
+
getWalletSumTransferIn(id: any): Promise<any>;
|
|
45
|
+
getWalletSumTransferOut(id: any): Promise<any>;
|
|
46
|
+
setMainWallet(wallet_id: number): Promise<any>;
|
|
47
|
+
fetchWalletFundingHistory(payload: any): Promise<any>;
|
|
48
|
+
fetchWalletPublicInfoByEmail(email: string): Promise<any>;
|
|
49
|
+
getWalletPublicInfo(email: string): Promise<any>;
|
|
50
|
+
fetchDetachedInvestWallets(): Promise<any>;
|
|
51
|
+
fetchAllWalletsByCategory(category: string): Promise<any>;
|
|
52
|
+
fetchFundingByWallet(walletId: number): Promise<any>;
|
|
53
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
3
|
+
export interface TimedAxiosConfig extends AxiosRequestConfig {
|
|
4
|
+
__t0?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function shouldSampleAxios(): boolean;
|
|
7
|
+
export declare function formatUrl(config: AxiosRequestConfig): string;
|
|
8
|
+
export declare function elapsedMs(config: AxiosRequestConfig): string;
|
|
9
|
+
export declare function stampAxiosRequest(config: AxiosRequestConfig): void;
|
|
10
|
+
export declare function logAxiosSuccess(config: AxiosRequestConfig, status: number): void;
|
|
11
|
+
export declare function logAxiosError(error: any): void;
|
|
12
|
+
export declare function createTimedAxiosInstance(baseURL: string): AxiosInstance;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCookie: (name: any) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function applyMixins(derivedCtor: any, baseCtors: any[]): void;
|
|
2
|
+
export declare function getDeviceID(hardwareOnly?: boolean, saveToLocalStorage?: boolean): string;
|
|
3
|
+
export declare function getDeviceIP(): Promise<string>;
|
|
4
|
+
export declare function formatMethodName(name: string): string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const routeMap: {
|
|
2
|
+
st: string;
|
|
3
|
+
rp: string;
|
|
4
|
+
co: string;
|
|
5
|
+
d: string;
|
|
6
|
+
r: string;
|
|
7
|
+
rw: string;
|
|
8
|
+
t: string;
|
|
9
|
+
c: string;
|
|
10
|
+
l: string;
|
|
11
|
+
i: string;
|
|
12
|
+
s: string;
|
|
13
|
+
e: string;
|
|
14
|
+
p: string;
|
|
15
|
+
n: string;
|
|
16
|
+
tb: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function compressRoutes(routesString: any, separator?: string): any;
|
|
19
|
+
export declare function decompressRoutes(compressedRoutesString: any, separator?: string): any;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function handleCompareFilterObject(obj1: any, obj2: any): boolean;
|
|
2
|
+
export declare function getFilterObject(store: any, key: string): any;
|
|
3
|
+
export declare function updateExistingRequest(store: any, key: string, newData: any, index: number): void;
|
|
4
|
+
export declare function addNewRequest(contentStore: any, requestStore: any, key: string, keyType: string, newData: any, isCreatedEvent: boolean): Promise<void>;
|
|
5
|
+
export declare function handleDataNewRequest(data: any, id: number, clientSDK: any): Promise<void>;
|
|
6
|
+
export declare function handleAddNewRequest(key: string, store: any, newData: any): void;
|
|
7
|
+
export declare function handleRemoveLastRequest(key: string, keyType: string, contentStore: any, requestStore: any): void;
|
|
8
|
+
export declare function removeExistingRequest(key: string, store: any, index: number): void;
|
|
9
|
+
export declare function handleAddContent(store: any, key: string, listPageSize: any, newData: any): void;
|
|
10
|
+
export declare function handleUpdateContent(store: any, key: string, index: number, newData: any): void;
|
|
11
|
+
export declare function handleRemoveExistingContent(store: any, key: string, index: number): void;
|
|
12
|
+
export declare function checkKeyExistingInList(stringKey: string, key: string): boolean;
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "module",
|
|
3
|
+
"name": "@eaera-com/client-sdk-v1",
|
|
4
|
+
"version": "0.2.108",
|
|
5
|
+
"main": "./dist/index.umd.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.umd.cjs"
|
|
12
|
+
},
|
|
13
|
+
"./use-utils/helpers/*": {
|
|
14
|
+
"import": "./dist/common/use-utils/helpers/*.js",
|
|
15
|
+
"require": "./dist/common/use-utils/helpers/*.js"
|
|
16
|
+
},
|
|
17
|
+
"./use-utils/validators": {
|
|
18
|
+
"import": "./dist/common/use-utils/validators/index.js",
|
|
19
|
+
"require": "./dist/common/use-utils/validators/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./constants/*": {
|
|
22
|
+
"import": "./dist/common/constants/*.js",
|
|
23
|
+
"require": "./dist/common/constants/*.js"
|
|
24
|
+
},
|
|
25
|
+
"./types/*": {
|
|
26
|
+
"import": "./dist/common/types/*.js",
|
|
27
|
+
"require": "./dist/common/types/*.js"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
31
|
+
"repository": {
|
|
32
|
+
"url": "https://github.com/eaera-com/client-sdk",
|
|
33
|
+
"type": "git"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@anycable/core": "^0.7.11",
|
|
40
|
+
"@anycable/web": "^0.7.3",
|
|
41
|
+
"@github/webauthn-json": "^2.1.1",
|
|
42
|
+
"@pinia/nuxt": "^0.11.2",
|
|
43
|
+
"axios": "^1.4.0",
|
|
44
|
+
"pinia": "3.0.3",
|
|
45
|
+
"pinia-plugin-persist": "^1.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@commitlint/cli": "^20.2.0",
|
|
49
|
+
"@commitlint/config-conventional": "^20.2.0",
|
|
50
|
+
"@pinia-plugin-persistedstate/nuxt": "^1.2.1",
|
|
51
|
+
"pinia-plugin-persistedstate": "^4.5.0",
|
|
52
|
+
"husky": "^9.1.7",
|
|
53
|
+
"lint-staged": "^15.2.10",
|
|
54
|
+
"moment": "^2.29.4",
|
|
55
|
+
"moment-timezone": "^0.5.45",
|
|
56
|
+
"prettier": "^3.4.1",
|
|
57
|
+
"typescript": "^5.2.2",
|
|
58
|
+
"vite": "^7.0.0",
|
|
59
|
+
"vite-plugin-dts": "^3.5.2"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"pinia": "3.0.3",
|
|
63
|
+
"vue": "3.5.17"
|
|
64
|
+
},
|
|
65
|
+
"lint-staged": {
|
|
66
|
+
"*.{js,vue,ts,html,css,scss,json}": "prettier --write"
|
|
67
|
+
},
|
|
68
|
+
"engines": {
|
|
69
|
+
"node": ">=20"
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"build": "rm -rf dist && vite build"
|
|
73
|
+
}
|
|
74
|
+
}
|