@eaera-com/client-sdk 0.0.1383

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +1 -0
  3. package/dist/account/index.d.ts +56 -0
  4. package/dist/activity_log/index.d.ts +6 -0
  5. package/dist/auth/index.d.ts +20 -0
  6. package/dist/auth/types.d.ts +11 -0
  7. package/dist/base.d.ts +29 -0
  8. package/dist/captcha/index.d.ts +5 -0
  9. package/dist/category/index.d.ts +9 -0
  10. package/dist/channels/accounts.d.ts +11 -0
  11. package/dist/channels/metrics.d.ts +8 -0
  12. package/dist/channels/position.d.ts +13 -0
  13. package/dist/channels/users.d.ts +34 -0
  14. package/dist/client/index.d.ts +16 -0
  15. package/dist/client_sdk.d.ts +60 -0
  16. package/dist/commission_profile/index.d.ts +10 -0
  17. package/dist/common/constants/category.constant.d.ts +31 -0
  18. package/dist/common/constants/communication.constant.d.ts +7 -0
  19. package/dist/common/constants/index.d.ts +8 -0
  20. package/dist/common/constants/listStatus.constants.d.ts +2 -0
  21. package/dist/common/constants/methods.constant.d.ts +39 -0
  22. package/dist/common/constants/site-settings.constants.d.ts +5 -0
  23. package/dist/common/constants/store.constants.d.ts +1 -0
  24. package/dist/common/constants/supportTicket.constant.d.ts +4 -0
  25. package/dist/common/constants/type.constants.d.ts +2 -0
  26. package/dist/common/index.d.ts +2 -0
  27. package/dist/common/types/addon.types.d.ts +34 -0
  28. package/dist/common/types/category.types.d.ts +6 -0
  29. package/dist/common/types/communication.types.d.ts +1 -0
  30. package/dist/common/types/email.types.d.ts +1 -0
  31. package/dist/common/types/index.d.ts +6 -0
  32. package/dist/common/types/liveNotification.types.d.ts +10 -0
  33. package/dist/common/types/site-setting.d.ts +73 -0
  34. package/dist/common/use-utils/data/countriesWithCurrencies.d.ts +7 -0
  35. package/dist/common/use-utils/data/dragonpayBank.d.ts +6 -0
  36. package/dist/common/use-utils/data/help2pay_banks.d.ts +7 -0
  37. package/dist/common/use-utils/data/listCryptoCurrencies.d.ts +5 -0
  38. package/dist/common/use-utils/data/regions.d.ts +16 -0
  39. package/dist/common/use-utils/data/widgets.d.ts +4 -0
  40. package/dist/common/use-utils/index.d.ts +69 -0
  41. package/dist/common/use-utils/schema/fundingMethod.schema.d.ts +1016 -0
  42. package/dist/common/use-utils/validators/index.d.ts +1 -0
  43. package/dist/contact/index.d.ts +9 -0
  44. package/dist/content/index.d.ts +17 -0
  45. package/dist/content_type/index.d.ts +8 -0
  46. package/dist/conversion_rate/index.d.ts +7 -0
  47. package/dist/coupon/index.d.ts +14 -0
  48. package/dist/coupon/type.d.ts +35 -0
  49. package/dist/department/index.d.ts +10 -0
  50. package/dist/devices/index.d.ts +6 -0
  51. package/dist/ecommerce/category.d.ts +9 -0
  52. package/dist/ecommerce/coupon.d.ts +16 -0
  53. package/dist/ecommerce/index.d.ts +16 -0
  54. package/dist/ecommerce/product.d.ts +12 -0
  55. package/dist/ecommerce/product_attribute.d.ts +9 -0
  56. package/dist/ecommerce/purchases.d.ts +13 -0
  57. package/dist/email-layout/index.d.ts +10 -0
  58. package/dist/email-template/index.d.ts +15 -0
  59. package/dist/employee/index.d.ts +15 -0
  60. package/dist/folder/index.d.ts +12 -0
  61. package/dist/funding-source/index.d.ts +10 -0
  62. package/dist/gamification_campaign/index.d.ts +9 -0
  63. package/dist/ib/index.d.ts +24 -0
  64. package/dist/index.d.ts +1510 -0
  65. package/dist/index.js +35135 -0
  66. package/dist/kycs/index.d.ts +18 -0
  67. package/dist/lead/index.d.ts +13 -0
  68. package/dist/metric/index.d.ts +7 -0
  69. package/dist/news/index.d.ts +14 -0
  70. package/dist/news/news.type.d.ts +17 -0
  71. package/dist/note/index.d.ts +8 -0
  72. package/dist/notification-center/NotificationCenter.types.d.ts +24 -0
  73. package/dist/notification-center/index.d.ts +20 -0
  74. package/dist/payment/index.d.ts +22 -0
  75. package/dist/pool_trading/index.d.ts +13 -0
  76. package/dist/pool_trading/invest_wallet.d.ts +16 -0
  77. package/dist/pool_trading/pool_profile.d.ts +45 -0
  78. package/dist/product/index.d.ts +12 -0
  79. package/dist/product_attribute/index.d.ts +9 -0
  80. package/dist/prop_account/index.d.ts +55 -0
  81. package/dist/purchase/index.d.ts +13 -0
  82. package/dist/purchase/type.d.ts +66 -0
  83. package/dist/report/index.d.ts +28 -0
  84. package/dist/report-filters/index.d.ts +9 -0
  85. package/dist/request/index.d.ts +38 -0
  86. package/dist/role_set/index.d.ts +8 -0
  87. package/dist/silt/index.d.ts +5 -0
  88. package/dist/site-setting/index.d.ts +16 -0
  89. package/dist/stores/account.d.ts +180 -0
  90. package/dist/stores/activity_log.d.ts +7 -0
  91. package/dist/stores/addon.d.ts +11 -0
  92. package/dist/stores/auth.d.ts +37 -0
  93. package/dist/stores/battle_notification.d.ts +6 -0
  94. package/dist/stores/captcha.d.ts +3 -0
  95. package/dist/stores/category.d.ts +15 -0
  96. package/dist/stores/client.d.ts +17 -0
  97. package/dist/stores/commission_profile.d.ts +12 -0
  98. package/dist/stores/contact.d.ts +9 -0
  99. package/dist/stores/content-type.d.ts +10 -0
  100. package/dist/stores/content-v2.d.ts +160 -0
  101. package/dist/stores/content.d.ts +216 -0
  102. package/dist/stores/conversion_rate.d.ts +9 -0
  103. package/dist/stores/coupon.d.ts +26 -0
  104. package/dist/stores/department.d.ts +7 -0
  105. package/dist/stores/devices.d.ts +8 -0
  106. package/dist/stores/employee.d.ts +12 -0
  107. package/dist/stores/folder.d.ts +15 -0
  108. package/dist/stores/funding-source.d.ts +29 -0
  109. package/dist/stores/gamification_campaign.d.ts +10 -0
  110. package/dist/stores/ib.d.ts +19 -0
  111. package/dist/stores/index.d.ts +1506 -0
  112. package/dist/stores/invest_wallet.d.ts +92 -0
  113. package/dist/stores/kycs.d.ts +16 -0
  114. package/dist/stores/lead.d.ts +13 -0
  115. package/dist/stores/live-notification.d.ts +6 -0
  116. package/dist/stores/metric.d.ts +21 -0
  117. package/dist/stores/news.d.ts +15 -0
  118. package/dist/stores/notes.d.ts +16 -0
  119. package/dist/stores/notification-center.d.ts +20 -0
  120. package/dist/stores/notification.d.ts +6 -0
  121. package/dist/stores/payment.d.ts +12 -0
  122. package/dist/stores/pool-trading.d.ts +7 -0
  123. package/dist/stores/pool_profile.d.ts +116 -0
  124. package/dist/stores/product.d.ts +27 -0
  125. package/dist/stores/product_attribute.d.ts +10 -0
  126. package/dist/stores/prop_account.d.ts +45 -0
  127. package/dist/stores/purchases.d.ts +23 -0
  128. package/dist/stores/report_filter.d.ts +9 -0
  129. package/dist/stores/request.d.ts +39 -0
  130. package/dist/stores/role_set.d.ts +7 -0
  131. package/dist/stores/site-setting.d.ts +98 -0
  132. package/dist/stores/support.d.ts +33 -0
  133. package/dist/stores/trade-server.d.ts +12 -0
  134. package/dist/stores/trade_battle.d.ts +51 -0
  135. package/dist/stores/transaction.d.ts +8 -0
  136. package/dist/stores/user.d.ts +26 -0
  137. package/dist/stores/wallet.d.ts +57 -0
  138. package/dist/sumsub/index.d.ts +6 -0
  139. package/dist/support/index.d.ts +16 -0
  140. package/dist/trade-server/index.d.ts +12 -0
  141. package/dist/trade_battle/index.d.ts +30 -0
  142. package/dist/trade_battle/tradeBattle.type.d.ts +119 -0
  143. package/dist/transaction/index.d.ts +9 -0
  144. package/dist/user/index.d.ts +40 -0
  145. package/dist/utils/index.d.ts +4 -0
  146. package/dist/utils/route-compression.d.ts +17 -0
  147. package/dist/utils/store.d.ts +12 -0
  148. package/dist/voip/index.d.ts +5 -0
  149. package/dist/wallet/index.d.ts +18 -0
  150. package/package.json +58 -0
@@ -0,0 +1,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,51 @@
1
+ import { PurchaseNowResponse, TradeBattleBody, TradeBattleActionRequest, TradeHistoryParams, TradeBattleCommentRequest } from '../trade_battle/tradeBattle.type';
2
+ import { AxiosResponse } from 'axios';
3
+ import { CreatePurchasePayload, PurchaseData, PurchaseNowPayload } from 'src/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,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,26 @@
1
+ export declare const useUserStore: import('pinia').StoreDefinition<"user", {}, {}, {
2
+ changePassword(payload: any): Promise<unknown>;
3
+ precheckChangeEmail(payload: any): Promise<unknown>;
4
+ changeEmail(payload: any): Promise<unknown>;
5
+ getGoogleAuthUri(): Promise<unknown>;
6
+ updateTwoFASetting(payload: any): Promise<unknown>;
7
+ uploadProfilePicture(payload: any): Promise<unknown>;
8
+ profileChange(payload: any): Promise<unknown>;
9
+ updateUser(user_id: number, payload: any): Promise<unknown>;
10
+ getWidgetSettings(): Promise<unknown>;
11
+ updateWidgetSettings(payload: any): Promise<unknown>;
12
+ tradingCentralHandshakeUrl(payload: any): Promise<unknown>;
13
+ getWidgetData(payload: any): Promise<unknown>;
14
+ getProfilePictures(payload: any): Promise<unknown>;
15
+ setPassword(payload: any): Promise<unknown>;
16
+ getReferralReward(payload: any): Promise<unknown>;
17
+ sendContactSupportMessage(payload: {
18
+ email: string;
19
+ message: string;
20
+ }): Promise<unknown>;
21
+ processDataFromUnbounce(payload: any): Promise<unknown>;
22
+ sendOtpToEmail(payload: {
23
+ email: string;
24
+ issue_method: string;
25
+ }): Promise<unknown>;
26
+ }>;
@@ -0,0 +1,57 @@
1
+ import { WalletCategory } from '../common/types/index';
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
+ categoryWallet: any[];
15
+ }, {
16
+ getCategoryWallet: (state: {
17
+ wallets: any[];
18
+ walletBalanceChanges: {};
19
+ selected_wallet: {};
20
+ walletDWPeriod: {};
21
+ walletDeposit: {};
22
+ walletWithdrawal: {};
23
+ walletTransferIn: {};
24
+ walletTransferOut: {};
25
+ fundingHistory: {};
26
+ referral_wallet_id: any;
27
+ categoryWallet: any[];
28
+ } & import('pinia').PiniaCustomStateProperties<{
29
+ wallets: any[];
30
+ walletBalanceChanges: {};
31
+ selected_wallet: {};
32
+ walletDWPeriod: {};
33
+ walletDeposit: {};
34
+ walletWithdrawal: {};
35
+ walletTransferIn: {};
36
+ walletTransferOut: {};
37
+ fundingHistory: {};
38
+ referral_wallet_id: any;
39
+ categoryWallet: any[];
40
+ }>) => (category?: WalletCategory) => any[];
41
+ }, {
42
+ fetchWallets(page: any, size: any, filter: any, order_by: any): Promise<any>;
43
+ fetchWalletByCategory(filter: any): Promise<any>;
44
+ fetchOneWallet(wallet_id: number): Promise<any>;
45
+ fetchWalletBalanceChanges(ids?: number[]): Promise<any>;
46
+ getWalletSumDeposit(id: any): Promise<any>;
47
+ getWalletSumWithdrawal(id: any): Promise<any>;
48
+ getWalletSumTransferIn(id: any): Promise<any>;
49
+ getWalletSumTransferOut(id: any): Promise<any>;
50
+ setMainWallet(wallet_id: number): Promise<any>;
51
+ fetchWalletFundingHistory(payload: any): Promise<any>;
52
+ fetchWalletPublicInfoByEmail(email: string): Promise<any>;
53
+ getWalletPublicInfo(email: string): Promise<any>;
54
+ fetchDetachedInvestWallets(): Promise<any>;
55
+ fetchAllWalletsByCategory(category: string): Promise<any>;
56
+ fetchFundingByWallet(walletId: number): Promise<any>;
57
+ }>;
@@ -0,0 +1,6 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Sumsub extends Base {
4
+ getSumsubAccessToken(): Promise<any>;
5
+ getSumsubApplicantDocStatus(applicantId: string): Promise<any>;
6
+ }
@@ -0,0 +1,16 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Support extends Base {
4
+ fetchSupportTickets(type: string, { owner_id, state }: {
5
+ owner_id: any;
6
+ state: any;
7
+ }): Promise<any>;
8
+ fetchSingleSupportTicket(id: string | number): Promise<any>;
9
+ createTicket(data: any): Promise<any>;
10
+ updateTicket(data: any, id: string | number): Promise<any>;
11
+ messageSupportTicket(data: any, id: string | number): Promise<any>;
12
+ closeSupportTicket(id: string | number): Promise<any>;
13
+ bulkAssignSupportTickets(payload: any): Promise<any>;
14
+ bulkCloseSupportTickets(payload: any): Promise<any>;
15
+ countSupportTickets(): Promise<any>;
16
+ }
@@ -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,30 @@
1
+ import { Base } from '../base';
2
+ import { TradeHistoryParams } from './tradeBattle.type';
3
+
4
+ export declare class TradeBattle extends Base {
5
+ getTradeHistoryByBattleOrAccount(payload: TradeHistoryParams): Promise<any>;
6
+ getRanking(payload: {
7
+ product_id: any;
8
+ }): Promise<any>;
9
+ getTradedLot(id: string, payload?: {
10
+ from_date: string;
11
+ to_date: string;
12
+ }): Promise<any>;
13
+ getYesterdayAccountBalance(payload: {
14
+ product_id: any;
15
+ logins?: any;
16
+ }): Promise<any>;
17
+ getBattleNicknameAndProfile(payload: {
18
+ product_id: any;
19
+ logins?: any;
20
+ }): Promise<any>;
21
+ getCurrentAttendees(state?: string): Promise<any>;
22
+ getRankingForAccounts(): Promise<any>;
23
+ checkNickNameAccount(payload: {
24
+ nick_name: any;
25
+ }): Promise<any>;
26
+ getListAccountBattle(payload: any): Promise<any>;
27
+ fetchListBattleForRanking(payload: any): Promise<any>;
28
+ exportDealCSV(payload: any): Promise<any>;
29
+ exportCustom(payload: any, headers: any, responseType?: any): Promise<any>;
30
+ }
@@ -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,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
+ processDataFromUnbounce(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,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,17 @@
1
+ export declare const routeMap: {
2
+ st: string;
3
+ rp: string;
4
+ co: string;
5
+ d: string;
6
+ r: string;
7
+ t: string;
8
+ c: string;
9
+ l: string;
10
+ i: string;
11
+ s: string;
12
+ e: string;
13
+ p: string;
14
+ n: string;
15
+ };
16
+ export declare function compressRoutes(routesString: any, separator?: string): any;
17
+ 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): 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;
@@ -0,0 +1,5 @@
1
+ import { Base } from '../base';
2
+
3
+ export declare class Voip extends Base {
4
+ make_call(payload: any): Promise<any>;
5
+ }
@@ -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
+ }
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "type": "module",
3
+ "name": "@eaera-com/client-sdk",
4
+ "version": "0.0.1383",
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
+ },
14
+ "license": "SEE LICENSE IN LICENSE",
15
+ "repository": {
16
+ "url": "https://github.com/eaera-com/client-sdk",
17
+ "type": "git"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "dependencies": {
23
+ "@anycable/core": "^0.7.11",
24
+ "@anycable/web": "^0.7.3",
25
+ "@github/webauthn-json": "^2.1.1",
26
+ "@pinia/nuxt": "^0.4.11",
27
+ "axios": "^1.4.0",
28
+ "pinia": "^2.1.6",
29
+ "pinia-plugin-persist": "^1.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "@commitlint/cli": "^20.2.0",
33
+ "@commitlint/config-conventional": "^20.2.0",
34
+ "@pinia-plugin-persistedstate/nuxt": "^1.1.1",
35
+ "pinia-plugin-persistedstate": "^3.2.0",
36
+ "husky": "^9.1.7",
37
+ "lint-staged": "^15.2.10",
38
+ "moment": "^2.29.4",
39
+ "moment-timezone": "^0.5.45",
40
+ "prettier": "^3.4.1",
41
+ "typescript": "^5.0.4",
42
+ "vite": "^4.4.9",
43
+ "vite-plugin-dts": "^3.5.2"
44
+ },
45
+ "peerDependencies": {
46
+ "pinia": "^2.1.6",
47
+ "vue": "^3.4.21"
48
+ },
49
+ "lint-staged": {
50
+ "*.{js,vue,ts,html,css,scss,json}": "prettier --write"
51
+ },
52
+ "engines": {
53
+ "node": ">=20"
54
+ },
55
+ "scripts": {
56
+ "build": "rm -rf dist && vite build"
57
+ }
58
+ }