@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
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2026 EAERA. All rights reserved.
2
+
3
+ Redistribution and use of this software in source and binary forms, with or
4
+ without modification, are NOT permitted except as expressly provided in
5
+ writing by EAERA. Installing and running this package from the public npm
6
+ registry for the purpose of building applications that interact with EAERA
7
+ services is permitted.
8
+
9
+ THIS SOFTWARE IS PROVIDED BY EAERA "AS IS" AND ANY EXPRESS OR IMPLIED
10
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
12
+ EVENT SHALL EAERA BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
13
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF
14
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
+
16
+ NOTE: This license text is a placeholder pending final legal review. The
17
+ package will be published to the public npm registry; consult EAERA legal
18
+ before changing this file or switching to an open-source license (MIT /
19
+ Apache-2.0).
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # client-sdk
@@ -0,0 +1,56 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Account extends Base {
4
+ fetchAccounts(filter: object): Promise<any>;
5
+ fetchOneAccount(account_id: number): Promise<any>;
6
+ fetchOpenTrades(account_id: number): Promise<any>;
7
+ fetchMtAccountHistory(server: string, account_ids: number[], from_date: string, to_date: string): Promise<any>;
8
+ fetchMtDeals(server: string, account_ids: number[], from_time: string, to_time: string): Promise<any>;
9
+ listPositions(account_id: number, position_type: string, symbol: string): Promise<any>;
10
+ fetchAccountsUsingIDs(ids: number[]): Promise<any>;
11
+ bulkUpdateAccountsState(payload: any): Promise<any>;
12
+ bulkRestoreAccountsState(payload: any): Promise<any>;
13
+ updateAccountTradingState(account_id: number, payload: any): Promise<any>;
14
+ updateAccount(account_id: number, payload: any): Promise<any>;
15
+ updateAccountComment(id: number, payload: any): Promise<any>;
16
+ changeAccountLeverage(id: number, { new_leverage }: {
17
+ new_leverage: any;
18
+ }): Promise<any>;
19
+ updateAccountType(id: number, { account_type }: {
20
+ account_type: any;
21
+ }): Promise<any>;
22
+ updateAccountGroup(id: number, { group_name, account_type }: {
23
+ group_name: any;
24
+ account_type: any;
25
+ }): Promise<any>;
26
+ manualChangeAccountPassword(id: number, payload: {
27
+ new_password: string;
28
+ role?: 'investor' | 'master';
29
+ }): Promise<any>;
30
+ resetBalance(id: number): Promise<any>;
31
+ getAccountSummary(payload: any): Promise<any>;
32
+ getDeals(payload: any): Promise<any>;
33
+ countDeals(payload: any): Promise<any>;
34
+ exportDeals(payload: any): Promise<any>;
35
+ getPostions(payload: any): Promise<any>;
36
+ countPositions(payload: any): Promise<any>;
37
+ getMostProfitablePairs(account_id: number): Promise<any>;
38
+ getProfitLossHistory(account_id: number, payload: any): Promise<any>;
39
+ getOverallROI(account_id: number): Promise<any>;
40
+ getAccountBalanceToCompareDate(payload: any): Promise<any>;
41
+ getTradeHistoryByBattleOrAccount(payload: {
42
+ account_ids: string[];
43
+ server: string;
44
+ from_date?: string;
45
+ to_date?: string;
46
+ }): Promise<any>;
47
+ getRanking(payload: {
48
+ product_id: any;
49
+ }): Promise<any>;
50
+ getWithdrawableAccounts(payload: {
51
+ server: string;
52
+ logins: number[];
53
+ }): Promise<any>;
54
+ pullAccountTradingData(payload?: any): Promise<any>;
55
+ getAccountMetricByLastDeals(ids: number[]): Promise<any>;
56
+ }
@@ -0,0 +1,6 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class ActivityLog extends Base {
4
+ getActivityLogIds(content_type: string, content_id: number, message: string): Promise<any>;
5
+ getActivityLogs(ids: number[]): Promise<any>;
6
+ }
@@ -0,0 +1,20 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Auth extends Base {
4
+ register(user_data: any): Promise<any>;
5
+ loginUsingDevice(email: string): Promise<any>;
6
+ registerNewDevice(email: string): Promise<any>;
7
+ login(payload: any): Promise<any>;
8
+ login_as(payload: any): Promise<any>;
9
+ login_external_provider(provider: string, payload: any): Promise<any>;
10
+ logout(): Promise<any>;
11
+ send_otp(data: any): Promise<any>;
12
+ verify_otp(issue_method: string, otp: string): Promise<any>;
13
+ webauthn_send_otp(email: string): Promise<any>;
14
+ webauthn_verify_otp(email: string, otp: string, challenge: any, credential: any): Promise<any>;
15
+ me(): Promise<any>;
16
+ call(name: string, ...p: any): Promise<any>;
17
+ forgotPassword(payload: any): Promise<any>;
18
+ updatePassword(payload: any): Promise<any>;
19
+ getIPGeolocation(): Promise<any>;
20
+ }
@@ -0,0 +1,11 @@
1
+ export declare type registration_data = {
2
+ email: string;
3
+ client_id: string;
4
+ };
5
+ export declare type registrationResponse = {
6
+ access_token: string;
7
+ refresh_token: string;
8
+ token_type: string;
9
+ expried_time: number;
10
+ created_at: number;
11
+ };
package/dist/base.d.ts ADDED
@@ -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 const setToken: (klass: typeof Base, token: string) => void;
9
+ export declare abstract class Base {
10
+ static saveToLocalStorage: boolean;
11
+ static access_token: string;
12
+ static device_id: string;
13
+ static device_ip: string;
14
+ static config: Config;
15
+ static axiosInstance: AxiosInstance;
16
+ static onAccessTokenUpdated?: (access_token: string) => void;
17
+ constructor(config: Config, saveToLocalStorage?: boolean, onAccessTokenUpdated?: (access_token: string) => void, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
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): void;
26
+ updateDeviceId(device_id: string): void;
27
+ updateDeviceIp(device_ip: string): void;
28
+ protected request<T>(endpoint: string, options?: any): Promise<T>;
29
+ }
@@ -0,0 +1,5 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Captcha extends Base {
4
+ verifyRecaptcha(captchaToken: string): Promise<any>;
5
+ }
@@ -0,0 +1,9 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Category extends Base {
4
+ getCategoryByCategory(): Promise<any>;
5
+ getCategoryByUUID(uuid: any): Promise<any>;
6
+ createCategory(payload: any): Promise<any>;
7
+ updateCategory(uuid: any, payload: any): Promise<any>;
8
+ deleteCategory(uuid: any): Promise<any>;
9
+ }
@@ -0,0 +1,11 @@
1
+ import { Channel } from '@anycable/web';
2
+
3
+ declare class AccountChannel extends Channel {
4
+ static identifier: string;
5
+ private accountStore;
6
+ private battleStore;
7
+ handleAccountEvent(event: any): void;
8
+ handleRealtimeUpdate(event: any): void;
9
+ receive(message: any): void;
10
+ }
11
+ export default AccountChannel;
@@ -0,0 +1,8 @@
1
+ import { Channel } from '@anycable/web';
2
+
3
+ export default class AccountMetricChannel extends Channel {
4
+ static identifier: string;
5
+ receive(message: {
6
+ [key: string]: any;
7
+ }): void;
8
+ }
@@ -0,0 +1,13 @@
1
+ import { Channel } from '@anycable/web';
2
+ import { IPositionInvestWallet } from 'src/stores/pool_profile';
3
+
4
+ declare class PositionChannel extends Channel {
5
+ static identifier: string;
6
+ handleAccountPositionEvent(event: any): void;
7
+ handleInvestWalletPositionEvent(event: {
8
+ event_type: string;
9
+ positions: IPositionInvestWallet[];
10
+ }): void;
11
+ receive(message: any): void;
12
+ }
13
+ export default PositionChannel;
@@ -0,0 +1,34 @@
1
+ import { Channel } from '@anycable/web';
2
+
3
+ declare class UserChannel extends Channel {
4
+ static identifier: string;
5
+ handleWalletEvent(event: any): void;
6
+ handleTransactionEvent(event: any): void;
7
+ handleProfileChangeEvent(event: any): void;
8
+ handleKycEvent(event: any): void;
9
+ handleInvestWalletEvent(event: any): void;
10
+ handlePoolProfileEvent(event: any): void;
11
+ handleInvestDealEvent(event: any): void;
12
+ handleAccountEvent(event: any): void;
13
+ handleDataRequestStore(keyType: string, newData: any, key: string, createdEvent?: boolean): Promise<void>;
14
+ handleUserRequestEvent(event: any): void;
15
+ handlePropAccountEvent(event: any): void;
16
+ handlePropAccountEquityEvent(event: any): void;
17
+ handlePropAccountMetricEvent(event: any): void;
18
+ handlePurchaseEvent(event: any): void;
19
+ handlePaymentEvent(event: any): void;
20
+ handleMachineTranslatedEvent(event: any): void;
21
+ updateContentCombine(key: string, newData: any, listKeyCombine: string[]): void;
22
+ updateContentNormal(key: string, newData: any): void;
23
+ updateContentLastUpdate(context: any): void;
24
+ handleContent(message: any): void;
25
+ updateNotificationUser(message: any): void;
26
+ handleDailyDrawdownThreshold(event: any): void;
27
+ handlePropAccountOnUpdate(event: any): void;
28
+ handleSupportTicketEvent(event: any): void;
29
+ handleNoteEvent(event: any): void;
30
+ receive(message: any): void;
31
+ watch(user_ids: any): void;
32
+ unwatch(user_ids: any): void;
33
+ }
34
+ export default UserChannel;
@@ -0,0 +1,16 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Client extends Base {
4
+ countClients(): Promise<any>;
5
+ updateClient(id: number, payload: any): Promise<any>;
6
+ countFundedClients(): Promise<any>;
7
+ countActiveClients(payload?: any): Promise<any>;
8
+ updateClientSummaryComment(id: number, payload: any): Promise<any>;
9
+ bulkUpdateClientsState(payload: any): Promise<any>;
10
+ bulkRestoreClientsState(payload: any): Promise<any>;
11
+ countDailyHistoryClients(payload: any): Promise<any>;
12
+ assignClientToAM(payload: any): Promise<any>;
13
+ unassignClientFromAM(payload: any): Promise<any>;
14
+ getCountHasActivePropAcc(): Promise<any>;
15
+ sumEquityByClient(payload: any): Promise<any>;
16
+ }
@@ -0,0 +1,60 @@
1
+ import { Base, Config } from './base';
2
+ import { Auth } from './auth';
3
+ import { Content } from './content';
4
+ import { Client } from './client';
5
+ import { Lead } from './lead';
6
+ import { Account } from './account';
7
+ import { PropAccount } from './prop_account';
8
+ import { Wallet } from './wallet';
9
+ import { Request } from './request';
10
+ import { FundingSource } from './funding-source';
11
+ import { SiteSetting } from './site-setting';
12
+ import { Kycs } from './kycs';
13
+ import { Metric } from './metric';
14
+ import { User } from './user';
15
+ import { TradeServer } from './trade-server';
16
+ import { Devices } from './devices';
17
+ import { Support } from './support';
18
+ import { Transaction } from './transaction';
19
+ import { EmailLayout } from './email-layout';
20
+ import { EmailTemplate } from './email-template';
21
+ import { ConversionRate } from './conversion_rate';
22
+ import { CommissionProfile } from './commission_profile';
23
+ import { Note } from './note';
24
+ import { RoleSet } from './role_set';
25
+ import { IB } from './ib';
26
+ import { Department } from './department';
27
+ import { ReportFilters } from './report-filters';
28
+ import { Employee } from './employee';
29
+ import { ActivityLog } from './activity_log';
30
+ import { Report } from './report';
31
+ import { Sumsub } from './sumsub';
32
+ import { Silt } from './silt';
33
+ import { Folder } from './folder';
34
+ import { ContentType } from './content_type';
35
+ import { GamificationCampaign } from './gamification_campaign';
36
+ import { Payment } from './payment';
37
+ import { Voip } from './voip';
38
+ import { TradeBattle } from './trade_battle';
39
+ import { News } from './news';
40
+ import { Contact } from './contact';
41
+ import { Captcha } from './captcha';
42
+ import { Purchase } from './purchase';
43
+ import { default as NotificationCenter } from './notification-center';
44
+ import { Category } from './category';
45
+ import { ProductAttribute } from './product_attribute';
46
+ import { Product } from './product';
47
+ import { AxiosInstance } from 'axios';
48
+ import { Coupon } from './coupon';
49
+
50
+ declare class EaeraClientSDK extends Base {
51
+ purchase: Purchase;
52
+ coupon: Coupon;
53
+ constructor(config: Config, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
54
+ private static _instance;
55
+ static getInstance(config?: Config | null, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance): EaeraClientSDK;
56
+ static createCableInstance(base_url: string, access_token: string): Cable;
57
+ }
58
+ interface EaeraClientSDK extends Auth, Content, Client, Lead, Account, PropAccount, Wallet, Request, FundingSource, SiteSetting, Kycs, Metric, User, TradeServer, Devices, Transaction, Support, EmailLayout, ConversionRate, EmailTemplate, Note, RoleSet, CommissionProfile, Department, ReportFilters, Employee, IB, ActivityLog, Sumsub, Silt, Report, ContentType, GamificationCampaign, Folder, Voip, TradeBattle, NotificationCenter, News, Contact, Payment, Captcha, Category, ProductAttribute, Product {
59
+ }
60
+ export default EaeraClientSDK;
@@ -0,0 +1,10 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class CommissionProfile extends Base {
4
+ getAllCommissionProfiles(): Promise<any>;
5
+ getCommissionProfileDetailInfo(id: number): Promise<any>;
6
+ createCommissionProfile(payload: any): Promise<any>;
7
+ cloneCommissionProfile(id: number, payload: any): Promise<any>;
8
+ updateCommissionProfile(id: number, payload: any): Promise<any>;
9
+ deleteCommissionProfile(id: number): Promise<any>;
10
+ }
@@ -0,0 +1,31 @@
1
+ declare const CATEGORY_NAME: {
2
+ readonly PROP_ACCOUNT: "prop_account";
3
+ readonly TRADING_COMPETITION: "trading_competition";
4
+ readonly PROP_TRADING_COMPETITION: "prop_trading_competition";
5
+ readonly LEVERAGED_ACCOUNT: "leveraged";
6
+ };
7
+ declare const PROP_ACCOUNT_RULES: {
8
+ readonly ACCOUNT_RULES: "account_rules";
9
+ readonly COMPETITION_ACCOUNT_RULES: "competition_account_rules";
10
+ readonly LEVERAGED_ACCOUNT_RULES: "leveraged_account_rules";
11
+ };
12
+ declare const ACCOUNT_PURPOSE: {
13
+ readonly PROP_TRADING: "prop_trading";
14
+ readonly COMPETITION: "competition";
15
+ };
16
+ declare enum COMPETITION_STATE {
17
+ UPCOMING = "upcoming",
18
+ ONGOING = "ongoing",
19
+ FINISHED = "finished"
20
+ }
21
+ declare const CATEGORY_NAME_FOLDER: {
22
+ readonly CERTIFICATE_TEMPLATE: "certificate_template";
23
+ readonly APPLE_PAY: "apple_pay";
24
+ };
25
+ declare const CATEGORY_NAME_WALLET: {
26
+ REWARD: string;
27
+ INVESTMENT: string;
28
+ FIAT: string;
29
+ ALL: string;
30
+ };
31
+ export { CATEGORY_NAME, PROP_ACCOUNT_RULES, ACCOUNT_PURPOSE, COMPETITION_STATE, CATEGORY_NAME_FOLDER, CATEGORY_NAME_WALLET, };
@@ -0,0 +1,7 @@
1
+ import { ActiveNameTab } from '../types/communication.types';
2
+
3
+ export declare const ACTIVENAMETAB: {
4
+ NOTIFICATION: ActiveNameTab;
5
+ EMAIL: ActiveNameTab;
6
+ CONTACTS: ActiveNameTab;
7
+ };
@@ -0,0 +1,8 @@
1
+ export * from './category.constant';
2
+ export * from './listStatus.constants';
3
+ export * from './store.constants';
4
+ export * from './type.constants';
5
+ export * from './communication.constant';
6
+ export * from './methods.constant';
7
+ export * from './supportTicket.constant';
8
+ export * from './site-settings.constants';
@@ -0,0 +1,2 @@
1
+ export declare const LIST_STATUS_UPDATE_DATA_REQUEST: string[];
2
+ export declare const LIST_STATUS_FINISH_REQUEST: string[];
@@ -0,0 +1,39 @@
1
+ export declare const BANK_TRANSFER_METHODS_NAME: {
2
+ INTERNATIONAL_BANK: string;
3
+ LOCAL_BANK: string;
4
+ };
5
+ export declare const PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES: {
6
+ CHAINXPAY: string;
7
+ };
8
+ export type PspKey = keyof typeof PSP_CONSTANT_NAMES;
9
+ export declare const PSP_CONSTANT_NAMES: {
10
+ crypto_wallet: string;
11
+ crypto_wallet_manual: string;
12
+ help2pay: string;
13
+ international_bankwire: string;
14
+ local_bankwire: string;
15
+ payment_asia: string;
16
+ sticpay: string;
17
+ peska: string;
18
+ zotapay: string;
19
+ dragonpay: string;
20
+ paypal: string;
21
+ coinpayments: string;
22
+ b2binpay: string;
23
+ visa_master_card: string;
24
+ coinsbuy: string;
25
+ confirmo: string;
26
+ unlimit: string;
27
+ unlimit_cryptochill: string;
28
+ now_payments: string;
29
+ local_method: string;
30
+ chainxpay: string;
31
+ tickpay_fiat: string;
32
+ tickpay_crypto: string;
33
+ d24: string;
34
+ limepay: string;
35
+ bankwire: string;
36
+ unipay: string;
37
+ noifx: string;
38
+ };
39
+ export declare const PSP_WITH_DYNAMIC_SUFFIX: string[];
@@ -0,0 +1,5 @@
1
+ declare const enum COST_TYPE_PLATFORM_PROGRAM {
2
+ FIXED = "fixed",
3
+ PERCENTAGE = "percentage"
4
+ }
5
+ export { COST_TYPE_PLATFORM_PROGRAM };
@@ -0,0 +1 @@
1
+ export declare const REQUEST_STORE: Record<string, string>;
@@ -0,0 +1,4 @@
1
+ export declare const SUPPORT_TICKET_EVENT_NAMES: {
2
+ AFTER_REPLIED: string;
3
+ AFTER_CLOSED: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export declare const COMPARE_TYPE: Record<string, string>;
2
+ export declare const CURRENCY_TYPE: Record<string, string>;
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './types';
@@ -0,0 +1,34 @@
1
+ export declare enum AddonType {
2
+ Fixed = "fixed",
3
+ Percentage = "percentage",
4
+ None = "none"
5
+ }
6
+ export interface IAddonCategory {
7
+ id: number;
8
+ name: string;
9
+ order: number;
10
+ condition: 'single' | 'multiple';
11
+ state: 'enabled' | 'disabled';
12
+ addons: IAddon[];
13
+ created_at: string;
14
+ updated_at: string;
15
+ }
16
+ export interface IAddon {
17
+ category_id: number;
18
+ cost_type: AddonType;
19
+ cost_value: {
20
+ [key: string]: number;
21
+ } | number;
22
+ description: string;
23
+ id: number;
24
+ name: string;
25
+ order: number;
26
+ state: 'enabled' | 'disabled';
27
+ type: AddonType;
28
+ value: number;
29
+ created_at: string;
30
+ updated_at: string;
31
+ }
32
+ export interface IAddonCategoryContent extends IAddonCategory {
33
+ ct_id: number;
34
+ }
@@ -0,0 +1,6 @@
1
+ import { CATEGORY_NAME, ACCOUNT_PURPOSE, PROP_ACCOUNT_RULES, CATEGORY_NAME_WALLET } from 'src/common/constants/category.constant';
2
+
3
+ export type CategoryName = (typeof CATEGORY_NAME)[keyof typeof CATEGORY_NAME];
4
+ export type PropAccountRule = (typeof PROP_ACCOUNT_RULES)[keyof typeof PROP_ACCOUNT_RULES];
5
+ export type AccountPurpose = (typeof ACCOUNT_PURPOSE)[keyof typeof ACCOUNT_PURPOSE];
6
+ export type WalletCategory = (typeof CATEGORY_NAME_WALLET)[keyof typeof CATEGORY_NAME_WALLET];
@@ -0,0 +1 @@
1
+ export type ActiveNameTab = 'notification' | 'email' | 'contacts';
@@ -0,0 +1 @@
1
+ export type FormatEmailType = "first-last" | "first2-last2" | "keep-first-hide-rest";
@@ -0,0 +1,6 @@
1
+ export * from './category.types';
2
+ export * from './liveNotification.types';
3
+ export * from './communication.types';
4
+ export * from './email.types';
5
+ export * from './site-setting';
6
+ export * from './addon.types';
@@ -0,0 +1,10 @@
1
+ export interface NotificationType {
2
+ id: number;
3
+ status: string;
4
+ requestType: string;
5
+ event: string;
6
+ hasBeenShown: boolean;
7
+ }
8
+ export interface NotificationState {
9
+ notifications: NotificationType[];
10
+ }
@@ -0,0 +1,73 @@
1
+ export declare enum SiteName {
2
+ Main = "Main",
3
+ BackOffice = "Back Office",
4
+ ClientPortal = "Client Portal"
5
+ }
6
+ export interface CompanySettings {
7
+ sites: [
8
+ {
9
+ site_name: SiteName.Main;
10
+ site_domain: string;
11
+ },
12
+ {
13
+ site_name: SiteName.BackOffice;
14
+ site_domain: string;
15
+ },
16
+ {
17
+ site_name: SiteName.ClientPortal;
18
+ site_domain: string;
19
+ }
20
+ ];
21
+ offices: any[];
22
+ registration_number: string;
23
+ languages: string[];
24
+ time_zone: string;
25
+ app_api_url: string;
26
+ company_logo: string;
27
+ company_name: string;
28
+ company_site: string;
29
+ file_library: {
30
+ file_url: string;
31
+ file_name: string;
32
+ }[];
33
+ company_phone: string;
34
+ main_currency: string;
35
+ support_email: string;
36
+ company_wallet: string;
37
+ platform_links: {
38
+ platform: string;
39
+ platform_link: string;
40
+ platform_name: string;
41
+ platform_state: boolean;
42
+ }[];
43
+ style_settings: {
44
+ info: string;
45
+ error: string;
46
+ light: string;
47
+ danger: string;
48
+ primary: string;
49
+ success: string;
50
+ warning: string;
51
+ };
52
+ company_favicon: string;
53
+ legal_documents: {
54
+ state: boolean;
55
+ document_url: string;
56
+ document_name: string;
57
+ }[];
58
+ default_language: string;
59
+ company_logo_dark: string;
60
+ client_active_threshold: number;
61
+ }
62
+ export type PlatformProgramSettingsType = 'fixed' | 'percentage';
63
+ type PlatformProgramSettingsValue = number | Record<string, number>;
64
+ type PlatformProgramSettingsCountryOp = 'all' | 'include' | 'exclude';
65
+ export interface IProgramPlatformSettings {
66
+ name: string;
67
+ paid: boolean;
68
+ type?: PlatformProgramSettingsType;
69
+ value?: PlatformProgramSettingsValue;
70
+ country_op?: PlatformProgramSettingsCountryOp;
71
+ countries?: string[];
72
+ }
73
+ export {};
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ currency: string;
3
+ abbreviation: string;
4
+ label: string;
5
+ symbol: string;
6
+ }[];
7
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ name: string;
3
+ code: string;
4
+ currency: string;
5
+ }[];
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ declare const _default: {
2
+ currency: string;
3
+ code: string;
4
+ name: string;
5
+ country: string;
6
+ }[];
7
+ export default _default;
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ label: string;
3
+ value: string;
4
+ }[];
5
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare const _default: {
2
+ countryName: string;
3
+ countryShortCode: string;
4
+ value: string;
5
+ regions: ({
6
+ name: string;
7
+ shortCode?: undefined;
8
+ } | {
9
+ name: string;
10
+ shortCode: string;
11
+ })[];
12
+ label: string;
13
+ languages: string;
14
+ dialling_code: string;
15
+ }[];
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare const ruleMetricsWidgets: {
2
+ component: string;
3
+ name: string;
4
+ }[];