@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.
- package/LICENSE +19 -0
- package/README.md +1 -0
- package/dist/account/index.d.ts +56 -0
- package/dist/activity_log/index.d.ts +6 -0
- package/dist/auth/index.d.ts +20 -0
- package/dist/auth/types.d.ts +11 -0
- package/dist/base.d.ts +29 -0
- package/dist/captcha/index.d.ts +5 -0
- package/dist/category/index.d.ts +9 -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 +34 -0
- package/dist/client/index.d.ts +16 -0
- package/dist/client_sdk.d.ts +60 -0
- package/dist/commission_profile/index.d.ts +10 -0
- package/dist/common/constants/category.constant.d.ts +31 -0
- package/dist/common/constants/communication.constant.d.ts +7 -0
- package/dist/common/constants/index.d.ts +8 -0
- package/dist/common/constants/listStatus.constants.d.ts +2 -0
- package/dist/common/constants/methods.constant.d.ts +39 -0
- package/dist/common/constants/site-settings.constants.d.ts +5 -0
- package/dist/common/constants/store.constants.d.ts +1 -0
- package/dist/common/constants/supportTicket.constant.d.ts +4 -0
- package/dist/common/constants/type.constants.d.ts +2 -0
- package/dist/common/index.d.ts +2 -0
- package/dist/common/types/addon.types.d.ts +34 -0
- package/dist/common/types/category.types.d.ts +6 -0
- package/dist/common/types/communication.types.d.ts +1 -0
- package/dist/common/types/email.types.d.ts +1 -0
- package/dist/common/types/index.d.ts +6 -0
- package/dist/common/types/liveNotification.types.d.ts +10 -0
- package/dist/common/types/site-setting.d.ts +73 -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/index.d.ts +69 -0
- package/dist/common/use-utils/schema/fundingMethod.schema.d.ts +1016 -0
- package/dist/common/use-utils/validators/index.d.ts +1 -0
- package/dist/contact/index.d.ts +9 -0
- package/dist/content/index.d.ts +17 -0
- package/dist/content_type/index.d.ts +8 -0
- package/dist/conversion_rate/index.d.ts +7 -0
- package/dist/coupon/index.d.ts +14 -0
- package/dist/coupon/type.d.ts +35 -0
- package/dist/department/index.d.ts +10 -0
- package/dist/devices/index.d.ts +6 -0
- package/dist/ecommerce/category.d.ts +9 -0
- package/dist/ecommerce/coupon.d.ts +16 -0
- package/dist/ecommerce/index.d.ts +16 -0
- package/dist/ecommerce/product.d.ts +12 -0
- package/dist/ecommerce/product_attribute.d.ts +9 -0
- package/dist/ecommerce/purchases.d.ts +13 -0
- package/dist/email-layout/index.d.ts +10 -0
- package/dist/email-template/index.d.ts +15 -0
- package/dist/employee/index.d.ts +15 -0
- package/dist/folder/index.d.ts +12 -0
- package/dist/funding-source/index.d.ts +10 -0
- package/dist/gamification_campaign/index.d.ts +9 -0
- package/dist/ib/index.d.ts +24 -0
- package/dist/index.d.ts +1510 -0
- package/dist/index.js +35135 -0
- package/dist/kycs/index.d.ts +18 -0
- package/dist/lead/index.d.ts +13 -0
- package/dist/metric/index.d.ts +7 -0
- package/dist/news/index.d.ts +14 -0
- package/dist/news/news.type.d.ts +17 -0
- package/dist/note/index.d.ts +8 -0
- package/dist/notification-center/NotificationCenter.types.d.ts +24 -0
- package/dist/notification-center/index.d.ts +20 -0
- package/dist/payment/index.d.ts +22 -0
- package/dist/pool_trading/index.d.ts +13 -0
- package/dist/pool_trading/invest_wallet.d.ts +16 -0
- package/dist/pool_trading/pool_profile.d.ts +45 -0
- package/dist/product/index.d.ts +12 -0
- package/dist/product_attribute/index.d.ts +9 -0
- package/dist/prop_account/index.d.ts +55 -0
- package/dist/purchase/index.d.ts +13 -0
- package/dist/purchase/type.d.ts +66 -0
- package/dist/report/index.d.ts +28 -0
- package/dist/report-filters/index.d.ts +9 -0
- package/dist/request/index.d.ts +38 -0
- package/dist/role_set/index.d.ts +8 -0
- package/dist/silt/index.d.ts +5 -0
- package/dist/site-setting/index.d.ts +16 -0
- package/dist/stores/account.d.ts +180 -0
- package/dist/stores/activity_log.d.ts +7 -0
- package/dist/stores/addon.d.ts +11 -0
- package/dist/stores/auth.d.ts +37 -0
- package/dist/stores/battle_notification.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 +17 -0
- package/dist/stores/commission_profile.d.ts +12 -0
- package/dist/stores/contact.d.ts +9 -0
- package/dist/stores/content-type.d.ts +10 -0
- package/dist/stores/content-v2.d.ts +160 -0
- package/dist/stores/content.d.ts +216 -0
- package/dist/stores/conversion_rate.d.ts +9 -0
- package/dist/stores/coupon.d.ts +26 -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/funding-source.d.ts +29 -0
- package/dist/stores/gamification_campaign.d.ts +10 -0
- package/dist/stores/ib.d.ts +19 -0
- package/dist/stores/index.d.ts +1506 -0
- package/dist/stores/invest_wallet.d.ts +92 -0
- package/dist/stores/kycs.d.ts +16 -0
- package/dist/stores/lead.d.ts +13 -0
- package/dist/stores/live-notification.d.ts +6 -0
- package/dist/stores/metric.d.ts +21 -0
- package/dist/stores/news.d.ts +15 -0
- package/dist/stores/notes.d.ts +16 -0
- package/dist/stores/notification-center.d.ts +20 -0
- package/dist/stores/notification.d.ts +6 -0
- package/dist/stores/payment.d.ts +12 -0
- package/dist/stores/pool-trading.d.ts +7 -0
- package/dist/stores/pool_profile.d.ts +116 -0
- package/dist/stores/product.d.ts +27 -0
- package/dist/stores/product_attribute.d.ts +10 -0
- package/dist/stores/prop_account.d.ts +45 -0
- package/dist/stores/purchases.d.ts +23 -0
- package/dist/stores/report_filter.d.ts +9 -0
- package/dist/stores/request.d.ts +39 -0
- package/dist/stores/role_set.d.ts +7 -0
- package/dist/stores/site-setting.d.ts +98 -0
- package/dist/stores/support.d.ts +33 -0
- package/dist/stores/trade-server.d.ts +12 -0
- package/dist/stores/trade_battle.d.ts +51 -0
- package/dist/stores/transaction.d.ts +8 -0
- package/dist/stores/user.d.ts +26 -0
- package/dist/stores/wallet.d.ts +57 -0
- package/dist/sumsub/index.d.ts +6 -0
- package/dist/support/index.d.ts +16 -0
- package/dist/trade-server/index.d.ts +12 -0
- package/dist/trade_battle/index.d.ts +30 -0
- package/dist/trade_battle/tradeBattle.type.d.ts +119 -0
- package/dist/transaction/index.d.ts +9 -0
- package/dist/user/index.d.ts +40 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/route-compression.d.ts +17 -0
- package/dist/utils/store.d.ts +12 -0
- package/dist/voip/index.d.ts +5 -0
- package/dist/wallet/index.d.ts +18 -0
- package/package.json +58 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { COMPETITION_STATE } from '../constants/index';
|
|
2
|
+
import { FormatEmailType } from '../types/email.types';
|
|
3
|
+
|
|
4
|
+
import * as validators from './validators/index';
|
|
5
|
+
export declare class UseUtilsSDK {
|
|
6
|
+
formatMoney(amount: number, decimalCount?: number, { decimal, thousands, prefix, suffix, }?: {
|
|
7
|
+
decimal?: string;
|
|
8
|
+
thousands?: string;
|
|
9
|
+
prefix?: string;
|
|
10
|
+
suffix?: string;
|
|
11
|
+
}): string;
|
|
12
|
+
getRegions(): {
|
|
13
|
+
countryName: string;
|
|
14
|
+
countryShortCode: string;
|
|
15
|
+
value: string;
|
|
16
|
+
regions: ({
|
|
17
|
+
name: string;
|
|
18
|
+
shortCode?: undefined;
|
|
19
|
+
} | {
|
|
20
|
+
name: string;
|
|
21
|
+
shortCode: string;
|
|
22
|
+
})[];
|
|
23
|
+
label: string;
|
|
24
|
+
languages: string;
|
|
25
|
+
dialling_code: string;
|
|
26
|
+
}[];
|
|
27
|
+
lighten(color: string, percent: number): string;
|
|
28
|
+
darken(color: string, percent: number): string;
|
|
29
|
+
currencySymbol(name: any): string;
|
|
30
|
+
currencyTitle(name: string | undefined | null): string;
|
|
31
|
+
currencyByCountry(countryCode: string): string;
|
|
32
|
+
getAllSymbolsFromCountries(): string[];
|
|
33
|
+
roundByDecimalCount(num: number, decimalCount?: number): number;
|
|
34
|
+
roundOff(num: number, decimalCount: number): number;
|
|
35
|
+
roundUp(num: number, decimalCount: number): number;
|
|
36
|
+
formatTimeOfDay(date: Date): string;
|
|
37
|
+
formatDateWithClientTimezone: (date: string, format?: string) => string;
|
|
38
|
+
numberWithSeparator(amount: string | number): string;
|
|
39
|
+
formattedNumberToRealNumber(numberString: string | number): number;
|
|
40
|
+
capitalizeFirstLetter(string: string, sep?: string, joinSep?: string): string;
|
|
41
|
+
kebabCase(str?: string): string;
|
|
42
|
+
snakeCase(str?: string): string;
|
|
43
|
+
isEmpty(value: any): boolean;
|
|
44
|
+
debounce: <T extends (...args: any[]) => void>(fn: T, delay: number) => (...args: Parameters<T>) => void;
|
|
45
|
+
getListWidgetsRuleMetrics: () => {
|
|
46
|
+
component: string;
|
|
47
|
+
name: string;
|
|
48
|
+
}[];
|
|
49
|
+
getComponentWidgetRuleMetrics: (name: string) => string;
|
|
50
|
+
formatTimeWithTz: (timezone: string, dateTime: any, formatType?: "date" | "time" | "date-time" | "time-ampm" | "time-hour" | "date-time-ampm" | "date-long" | "full") => string;
|
|
51
|
+
getCountriesWithCurrencies(): {
|
|
52
|
+
currency: string;
|
|
53
|
+
abbreviation: string;
|
|
54
|
+
label: string;
|
|
55
|
+
symbol: string;
|
|
56
|
+
}[];
|
|
57
|
+
getListCryptoCurrencies(): {
|
|
58
|
+
label: string;
|
|
59
|
+
value: string;
|
|
60
|
+
}[];
|
|
61
|
+
getCompetitionStatus(startDate: string, endDate: string): COMPETITION_STATE;
|
|
62
|
+
maskEmail(email: string, type?: FormatEmailType): string;
|
|
63
|
+
getValidators(): typeof validators;
|
|
64
|
+
formatInputAmount(input: string, formatJapaneseNumber?: boolean): string;
|
|
65
|
+
formatNumberWithSuffix(num: number): string;
|
|
66
|
+
getRank(num: number): string;
|
|
67
|
+
mergePullTradingData(accounts: any[], content_type?: 'accounts' | 'prop_accounts'): Promise<any[]>;
|
|
68
|
+
}
|
|
69
|
+
export default UseUtilsSDK;
|