@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,17 @@
|
|
|
1
|
+
export interface CreateNewsRequest {
|
|
2
|
+
title: string;
|
|
3
|
+
content?: string;
|
|
4
|
+
state: 'draft' | 'public';
|
|
5
|
+
banner_image?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface CreateNewsDraft {
|
|
8
|
+
state: 'draft';
|
|
9
|
+
}
|
|
10
|
+
export interface GetNewsPayload {
|
|
11
|
+
content_types: 'news';
|
|
12
|
+
state?: 'draft' | 'public';
|
|
13
|
+
from_time?: string;
|
|
14
|
+
to_time?: string;
|
|
15
|
+
page?: number;
|
|
16
|
+
per?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EmailTemplateType } from './email.type';
|
|
2
|
+
|
|
3
|
+
export interface NotificationTemplate {
|
|
4
|
+
id: number;
|
|
5
|
+
icon: string;
|
|
6
|
+
state: string;
|
|
7
|
+
title: string;
|
|
8
|
+
type: EmailTemplateType;
|
|
9
|
+
content: string;
|
|
10
|
+
bindings: string[];
|
|
11
|
+
language: string;
|
|
12
|
+
attachment: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
description: string;
|
|
16
|
+
short_name: string;
|
|
17
|
+
attachment_urls: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface Notification {
|
|
20
|
+
notification_template_id: number;
|
|
21
|
+
send_for: number[];
|
|
22
|
+
state: 'sent' | 'scheduled';
|
|
23
|
+
time_sent?: string;
|
|
24
|
+
recipient_type: 'user' | 'account';
|
|
25
|
+
notification_template: NotificationTemplate;
|
|
26
|
+
created_at?: string;
|
|
27
|
+
updated_at?: string;
|
|
28
|
+
user_id?: number;
|
|
29
|
+
id?: number;
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PASSWORD_RULE_CONDITION_NAME } from '../constants';
|
|
2
|
+
|
|
3
|
+
export type PasswordRuleCondition = {
|
|
4
|
+
name: typeof PASSWORD_RULE_CONDITION_NAME.REGEX;
|
|
5
|
+
value: string;
|
|
6
|
+
} | {
|
|
7
|
+
name: typeof PASSWORD_RULE_CONDITION_NAME.MIN_CHARS;
|
|
8
|
+
value: number;
|
|
9
|
+
};
|
|
10
|
+
export interface PasswordRule {
|
|
11
|
+
name: string;
|
|
12
|
+
rules: PasswordRuleCondition[];
|
|
13
|
+
state: boolean;
|
|
14
|
+
is_optional: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type ValueName = (typeof PASSWORD_RULE_CONDITION_NAME)[keyof typeof PASSWORD_RULE_CONDITION_NAME];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IBlockbeeCurrency {
|
|
2
|
+
currency: string;
|
|
3
|
+
ticker: string;
|
|
4
|
+
label: string;
|
|
5
|
+
logo: string | null;
|
|
6
|
+
minimum_transaction_coin: string | null;
|
|
7
|
+
fee_percent: string | null;
|
|
8
|
+
network_fee_estimation: string | null;
|
|
9
|
+
supports_withdrawal: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IBlockbeeCurrencyOption {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
logo: string | null;
|
|
15
|
+
supports_withdrawal: boolean;
|
|
16
|
+
fee_percent: string | null;
|
|
17
|
+
minimum_transaction_coin: string | null;
|
|
18
|
+
network_fee_estimation: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface IBlockbeeEstimate {
|
|
21
|
+
estimated_coin_amount: string;
|
|
22
|
+
ticker: string;
|
|
23
|
+
exchange_rate: string;
|
|
24
|
+
from_amount: string;
|
|
25
|
+
from_currency: string;
|
|
26
|
+
to_currency: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface IMatch2PayCurrency {
|
|
2
|
+
currency: string;
|
|
3
|
+
ticker: string;
|
|
4
|
+
label: string;
|
|
5
|
+
logo: string | null;
|
|
6
|
+
minimum_transaction_coin: string | null;
|
|
7
|
+
fee_percent: string | null;
|
|
8
|
+
network_fee_estimation: string | null;
|
|
9
|
+
supports_withdrawal: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IMatch2PayCurrencyOption {
|
|
12
|
+
label: string;
|
|
13
|
+
value: string;
|
|
14
|
+
logo: string | null;
|
|
15
|
+
supports_withdrawal: boolean;
|
|
16
|
+
fee_percent: string | null;
|
|
17
|
+
minimum_transaction_coin: string | null;
|
|
18
|
+
network_fee_estimation: string | null;
|
|
19
|
+
}
|
|
20
|
+
export interface IMatch2PayEstimate {
|
|
21
|
+
estimated_coin_amount: string;
|
|
22
|
+
ticker: string;
|
|
23
|
+
exchange_rate: string;
|
|
24
|
+
from_amount: string;
|
|
25
|
+
from_currency: string;
|
|
26
|
+
to_currency: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export type PlatformProgramSettingsType = 'fixed' | 'percentage';
|
|
2
|
+
export type PlatformProgramSettingsValue = number | Record<string, number>;
|
|
3
|
+
export type PlatformProgramSettingsCountryOp = 'all' | 'include' | 'exclude';
|
|
4
|
+
export interface IProgramPlatformSettings {
|
|
5
|
+
name: string;
|
|
6
|
+
paid: boolean;
|
|
7
|
+
type?: PlatformProgramSettingsType;
|
|
8
|
+
value?: PlatformProgramSettingsValue;
|
|
9
|
+
country_op?: PlatformProgramSettingsCountryOp;
|
|
10
|
+
countries?: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface IVariation {
|
|
13
|
+
account_size: number;
|
|
14
|
+
payments: {
|
|
15
|
+
[currencyCode: string]: number;
|
|
16
|
+
};
|
|
17
|
+
activation_fee: {
|
|
18
|
+
[currencyCode: string]: number;
|
|
19
|
+
};
|
|
20
|
+
reset_fee: {
|
|
21
|
+
[currencyCode: string]: number;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface IProgramsVariationSettings {
|
|
25
|
+
name: string;
|
|
26
|
+
account_type?: string;
|
|
27
|
+
monthly_subscription?: boolean;
|
|
28
|
+
addon_categories?: string[];
|
|
29
|
+
addon_category_ids?: number[];
|
|
30
|
+
variations: IVariation[];
|
|
31
|
+
}
|
|
32
|
+
export interface IProgramSettings {
|
|
33
|
+
program_id?: string;
|
|
34
|
+
name: string;
|
|
35
|
+
state?: 'enabled' | 'disabled';
|
|
36
|
+
variations: IProgramsVariationSettings[];
|
|
37
|
+
category_uuid?: string;
|
|
38
|
+
settings: {
|
|
39
|
+
name?: string;
|
|
40
|
+
paid: boolean;
|
|
41
|
+
platforms: IProgramPlatformSettings[];
|
|
42
|
+
activation_fee_enabled?: boolean;
|
|
43
|
+
reset_fee_enabled?: boolean;
|
|
44
|
+
payment_currencies: string[];
|
|
45
|
+
order: number;
|
|
46
|
+
long_description?: string;
|
|
47
|
+
short_description?: string;
|
|
48
|
+
description_checkboxes?: string[];
|
|
49
|
+
info_link?: string;
|
|
50
|
+
terms_link?: string;
|
|
51
|
+
privacy_link?: string;
|
|
52
|
+
tnc_checkboxes?: string[];
|
|
53
|
+
category_uuid?: string;
|
|
54
|
+
program_id?: string;
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export interface IStaticsCompetition {
|
|
58
|
+
program_id: string | number;
|
|
59
|
+
program_name: string;
|
|
60
|
+
active_accounts: number;
|
|
61
|
+
failed_accounts: number;
|
|
62
|
+
total_accounts: number;
|
|
63
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 interface IPayoutRulesSettings {
|
|
63
|
+
type: 'Instant' | 'Daily' | 'Weekly' | 'Monthly';
|
|
64
|
+
server: string;
|
|
65
|
+
refund_at: {
|
|
66
|
+
min?: number;
|
|
67
|
+
hour?: number;
|
|
68
|
+
mday?: number;
|
|
69
|
+
wday?: number;
|
|
70
|
+
};
|
|
71
|
+
account_types: string[];
|
|
72
|
+
account_type_op: 'All' | 'Include' | 'Exclude';
|
|
73
|
+
commission_profile_op?: 'All' | 'Include' | 'Exclude';
|
|
74
|
+
commission_profiles?: number[];
|
|
75
|
+
rebate_type?: 'All' | 'Direct' | 'Passive';
|
|
76
|
+
ib_commission_type?: 'All' | 'Override' | 'Fix' | 'Flex';
|
|
77
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CurrencyType, WalletCategory } from './category.type';
|
|
2
|
+
|
|
3
|
+
export interface Wallet {
|
|
4
|
+
id: number;
|
|
5
|
+
owner_id: number;
|
|
6
|
+
owner_type: string;
|
|
7
|
+
balance: string;
|
|
8
|
+
currency: string;
|
|
9
|
+
created_at: string;
|
|
10
|
+
updated_at: string;
|
|
11
|
+
amount_locked: string;
|
|
12
|
+
state: string;
|
|
13
|
+
wallet_info: {};
|
|
14
|
+
auto_transfer: boolean;
|
|
15
|
+
category: WalletCategory;
|
|
16
|
+
user_full_name: string;
|
|
17
|
+
user_email: string;
|
|
18
|
+
user_phone_number: string;
|
|
19
|
+
user_country: string;
|
|
20
|
+
is_funded: boolean;
|
|
21
|
+
user_am_id: number;
|
|
22
|
+
comment: null;
|
|
23
|
+
label: string;
|
|
24
|
+
wallet_type: string;
|
|
25
|
+
is_client: null;
|
|
26
|
+
available: string;
|
|
27
|
+
available_withdraw: string;
|
|
28
|
+
total_locked_amount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface Currency {
|
|
31
|
+
can_create_invest_wallet: boolean;
|
|
32
|
+
currency: string;
|
|
33
|
+
enabled: boolean;
|
|
34
|
+
title: string;
|
|
35
|
+
type: CurrencyType;
|
|
36
|
+
}
|
|
@@ -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 @@
|
|
|
1
|
+
export declare const handleError: (err: any, messageDefault?: string) => string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const c = (r, n) => {
|
|
2
|
+
const o = (t) => [
|
|
3
|
+
parseInt(t.slice(1, 3), 16),
|
|
4
|
+
parseInt(t.slice(3, 5), 16),
|
|
5
|
+
parseInt(t.slice(5, 7), 16)
|
|
6
|
+
], e = (t) => `#${t.map((s) => Math.round(s).toString(16).padStart(2, "0")).join("")}`, a = o(r).map((t) => t + (255 - t) * (n / 100)).map((t) => Math.min(t, 255));
|
|
7
|
+
return e(a);
|
|
8
|
+
}, i = (r, n) => {
|
|
9
|
+
const o = (t) => [
|
|
10
|
+
parseInt(t.slice(1, 3), 16),
|
|
11
|
+
parseInt(t.slice(3, 5), 16),
|
|
12
|
+
parseInt(t.slice(5, 7), 16)
|
|
13
|
+
], e = (t) => `#${t.map((s) => Math.round(s).toString(16).padStart(2, "0")).join("")}`, a = o(r).map((t) => t - t * (n / 100)).map((t) => Math.max(t, 0));
|
|
14
|
+
return e(a);
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
i as darken,
|
|
18
|
+
c as lighten
|
|
19
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const formatMoney: (amount: number, decimalCount?: number, { decimal, thousands, prefix, suffix, }?: {
|
|
2
|
+
decimal?: string;
|
|
3
|
+
thousands?: string;
|
|
4
|
+
prefix?: string;
|
|
5
|
+
suffix?: string;
|
|
6
|
+
}) => string;
|
|
7
|
+
export declare const formatCompactMoney: (value: number) => string;
|
|
8
|
+
export declare const currencySymbol: (name: any) => string;
|
|
9
|
+
export declare const currencyTitle: (name: string | undefined | null) => string;
|
|
10
|
+
export declare const currencyByCountry: (countryCode: string) => string;
|
|
11
|
+
export declare const getAllSymbolsFromCountries: () => string[];
|
|
12
|
+
export declare const getCountriesWithCurrencies: () => {
|
|
13
|
+
currency: string;
|
|
14
|
+
abbreviation: string;
|
|
15
|
+
label: string;
|
|
16
|
+
symbol: string;
|
|
17
|
+
}[];
|
|
18
|
+
export declare const getCurrencyFromAllCountries: () => {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
export declare const getListCryptoCurrencies: () => {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|