@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
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,86 @@
|
|
|
1
|
+
# client-sdk-v1
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install @eaera-com/client-sdk-v1
|
|
7
|
+
# or
|
|
8
|
+
yarn add @eaera-com/client-sdk-v1
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Import Constants (Tree-shakeable)
|
|
14
|
+
|
|
15
|
+
For optimal bundle size, import constants directly from specific files:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
// ✅ Recommended: Import from specific files
|
|
19
|
+
import { CATEGORY_NAME } from '@eaera-com/client-sdk-v1/constants/category.constant';
|
|
20
|
+
import { PSP, PSP_TEXT } from '@eaera-com/client-sdk-v1/constants/methods.constant';
|
|
21
|
+
import { TRANSACTION_STATE } from '@eaera-com/client-sdk-v1/constants/transaction.constant';
|
|
22
|
+
import { KYC_STATE } from '@eaera-com/client-sdk-v1/constants/kyc.constant';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Import Types (Tree-shakeable)
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
// ✅ Recommended: Import from specific files
|
|
29
|
+
import { FundingSourcePayload } from '@eaera-com/client-sdk-v1/types/fundingSource.type';
|
|
30
|
+
import { CategoryName } from '@eaera-com/client-sdk-v1/types/category.type';
|
|
31
|
+
import { Wallet, Currency } from '@eaera-com/client-sdk-v1/types/wallet.type';
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Import Utilities
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
// Import helpers
|
|
38
|
+
import { formatCurrency, formatNumber } from '@eaera-com/client-sdk-v1/use-utils/helpers';
|
|
39
|
+
|
|
40
|
+
// Import validators
|
|
41
|
+
import { validateInputAmount } from '@eaera-com/client-sdk-v1/use-utils/validators';
|
|
42
|
+
|
|
43
|
+
// Import full SDK class
|
|
44
|
+
import { UseUtilsSDK } from '@eaera-com/client-sdk-v1/use-utils/sdk';
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Available Subpath Exports
|
|
48
|
+
|
|
49
|
+
### Constants
|
|
50
|
+
|
|
51
|
+
- `constants/category.constant`
|
|
52
|
+
- `constants/communication.constant`
|
|
53
|
+
- `constants/filter.constants`
|
|
54
|
+
- `constants/kyc.constant`
|
|
55
|
+
- `constants/listStatus.constants`
|
|
56
|
+
- `constants/methods.constant`
|
|
57
|
+
- `constants/program.constants`
|
|
58
|
+
- `constants/store.constants`
|
|
59
|
+
- `constants/supportTicket.constant`
|
|
60
|
+
- `constants/transaction.constant`
|
|
61
|
+
- `constants/type.constants`
|
|
62
|
+
- `constants/withdraw.constant`
|
|
63
|
+
|
|
64
|
+
### Types
|
|
65
|
+
|
|
66
|
+
- `types/category.type`
|
|
67
|
+
- `types/communication.type`
|
|
68
|
+
- `types/email.type`
|
|
69
|
+
- `types/fundingSource.type`
|
|
70
|
+
- `types/liveNotification.type`
|
|
71
|
+
- `types/siteSetting.type`
|
|
72
|
+
- `types/wallet.type`
|
|
73
|
+
|
|
74
|
+
### Utilities
|
|
75
|
+
|
|
76
|
+
- `use-utils` - Main utilities SDK
|
|
77
|
+
- `use-utils/helpers` - All helper functions
|
|
78
|
+
- `use-utils/validators` - Validation functions
|
|
79
|
+
- `use-utils/sdk` - Full SDK class
|
|
80
|
+
|
|
81
|
+
## Benefits
|
|
82
|
+
|
|
83
|
+
- ✅ **Tree-shaking**: Only bundle what you import
|
|
84
|
+
- ✅ **Smaller bundle size**: Import specific constants/types instead of everything
|
|
85
|
+
- ✅ **Better performance**: Faster build times and smaller production bundles
|
|
86
|
+
- ✅ **Type-safe**: Full TypeScript support
|
|
@@ -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,13 @@
|
|
|
1
|
+
import { Channel } from '@anycable/web';
|
|
2
|
+
import { IPositionInvestWallet } from 'src/stores/poolProfile';
|
|
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,38 @@
|
|
|
1
|
+
import { Channel } from '@anycable/web';
|
|
2
|
+
|
|
3
|
+
declare class UserChannel extends Channel {
|
|
4
|
+
static identifier: string;
|
|
5
|
+
private _isBackOffice;
|
|
6
|
+
get isBackOffice(): boolean;
|
|
7
|
+
set isBackOffice(value: boolean);
|
|
8
|
+
handleWalletEvent(event: any): void;
|
|
9
|
+
handleTransactionEvent(event: any): void;
|
|
10
|
+
handleProfileChangeEvent(event: any): void;
|
|
11
|
+
handleKycEvent(event: any): void;
|
|
12
|
+
handleInvestWalletEvent(event: any): void;
|
|
13
|
+
handlePoolProfileEvent(event: any): void;
|
|
14
|
+
handleInvestDealEvent(event: any): void;
|
|
15
|
+
handleAccountEvent(event: any): void;
|
|
16
|
+
handleDataRequestStore(keyType: string, newData: any, key: string, createdEvent?: boolean): Promise<void>;
|
|
17
|
+
handleUserRequestEvent(event: any): void;
|
|
18
|
+
handlePropAccountEvent(event: any): void;
|
|
19
|
+
handlePropAccountEquityEvent(event: any): void;
|
|
20
|
+
handlePropAccountMetricEvent(event: any): void;
|
|
21
|
+
handlePurchaseEvent(event: any): void;
|
|
22
|
+
handlePaymentEvent(event: any): void;
|
|
23
|
+
handleMachineTranslatedEvent(event: any): void;
|
|
24
|
+
updateContentCombine(key: string, newData: any, listKeyCombine: string[]): void;
|
|
25
|
+
updateContentNormal(key: string, newData: any): void;
|
|
26
|
+
updateContentLastUpdate(context: any): void;
|
|
27
|
+
handleContent(message: any): void;
|
|
28
|
+
updateNotificationUser(message: any): void;
|
|
29
|
+
handleDailyDrawdownThreshold(event: any): void;
|
|
30
|
+
handlePropAccountOnUpdate(event: any): void;
|
|
31
|
+
handleSupportTicketEvent(event: any): void;
|
|
32
|
+
handleNoteEvent(event: any): void;
|
|
33
|
+
handleAdvertisingEvent(event: any): void;
|
|
34
|
+
receive(message: any): void;
|
|
35
|
+
watch(user_ids: any): void;
|
|
36
|
+
unwatch(user_ids: any): void;
|
|
37
|
+
}
|
|
38
|
+
export default UserChannel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export 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
|
+
export 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
|
+
export declare const ACCOUNT_PURPOSE: {
|
|
13
|
+
readonly PROP_TRADING: "prop_trading";
|
|
14
|
+
readonly COMPETITION: "competition";
|
|
15
|
+
};
|
|
16
|
+
export declare enum COMPETITION_STATE {
|
|
17
|
+
UPCOMING = "upcoming",
|
|
18
|
+
ONGOING = "ongoing",
|
|
19
|
+
FINISHED = "finished"
|
|
20
|
+
}
|
|
21
|
+
export declare const CATEGORY_NAME_FOLDER: {
|
|
22
|
+
readonly CERTIFICATE_TEMPLATE: "certificate_template";
|
|
23
|
+
readonly APPLE_PAY: "apple_pay";
|
|
24
|
+
};
|
|
25
|
+
export declare const CATEGORY_NAME_WALLET: {
|
|
26
|
+
REWARD: string;
|
|
27
|
+
INVESTMENT: string;
|
|
28
|
+
FIAT: string;
|
|
29
|
+
ALL: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const E = {
|
|
2
|
+
PROP_ACCOUNT: "prop_account",
|
|
3
|
+
TRADING_COMPETITION: "trading_competition",
|
|
4
|
+
PROP_TRADING_COMPETITION: "prop_trading_competition",
|
|
5
|
+
LEVERAGED_ACCOUNT: "leveraged"
|
|
6
|
+
}, e = {
|
|
7
|
+
ACCOUNT_RULES: "account_rules",
|
|
8
|
+
COMPETITION_ACCOUNT_RULES: "competition_account_rules",
|
|
9
|
+
LEVERAGED_ACCOUNT_RULES: "leveraged_account_rules"
|
|
10
|
+
}, o = {
|
|
11
|
+
PROP_TRADING: "prop_trading",
|
|
12
|
+
COMPETITION: "competition"
|
|
13
|
+
};
|
|
14
|
+
var t = /* @__PURE__ */ ((_) => (_.UPCOMING = "upcoming", _.ONGOING = "ongoing", _.FINISHED = "finished", _))(t || {});
|
|
15
|
+
const A = {
|
|
16
|
+
CERTIFICATE_TEMPLATE: "certificate_template",
|
|
17
|
+
APPLE_PAY: "apple_pay"
|
|
18
|
+
}, n = {
|
|
19
|
+
REWARD: "reward",
|
|
20
|
+
INVESTMENT: "investment",
|
|
21
|
+
FIAT: "fiat",
|
|
22
|
+
ALL: "all"
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
o as ACCOUNT_PURPOSE,
|
|
26
|
+
E as CATEGORY_NAME,
|
|
27
|
+
A as CATEGORY_NAME_FOLDER,
|
|
28
|
+
n as CATEGORY_NAME_WALLET,
|
|
29
|
+
t as COMPETITION_STATE,
|
|
30
|
+
e as PROP_ACCOUNT_RULES
|
|
31
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ActiveNameTab, AdvertisingCooldown, AdvertisingType } from '../types/communication.type';
|
|
2
|
+
|
|
3
|
+
export declare const ACTIVENAMETAB: {
|
|
4
|
+
NOTIFICATION: ActiveNameTab;
|
|
5
|
+
EMAIL: ActiveNameTab;
|
|
6
|
+
CONTACTS: ActiveNameTab;
|
|
7
|
+
MARKETING: ActiveNameTab;
|
|
8
|
+
};
|
|
9
|
+
export declare const ADVERTISING_PROCESSOR: {
|
|
10
|
+
BANNER: string;
|
|
11
|
+
POPUP: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const ADVERTISING_TYPE: {
|
|
14
|
+
BANNER: string;
|
|
15
|
+
POPUP: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const ADVERTISING_PURPOSE: {
|
|
18
|
+
PROMOTION: string;
|
|
19
|
+
ANNOUNCEMENT: string;
|
|
20
|
+
EVENT: string;
|
|
21
|
+
WARNING_ALERT: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const ADVERTISING_FREQUENCY: {
|
|
24
|
+
EVERY_LOGIN: string;
|
|
25
|
+
ONCE_PER_DAY: string;
|
|
26
|
+
ONCE_ONLY: string;
|
|
27
|
+
};
|
|
28
|
+
export declare const ADVERTISING_STATUS: {
|
|
29
|
+
readonly ENABLED: "enabled";
|
|
30
|
+
readonly DISABLED: "disabled";
|
|
31
|
+
};
|
|
32
|
+
export declare const ADVERTISING_MAX_ENABLED_PER_TYPE = 5;
|
|
33
|
+
export declare const ADVERTISING_PRIORITY_MIN = 1;
|
|
34
|
+
export declare const ADVERTISING_PRIORITY_MAX = 5;
|
|
35
|
+
export declare const ADVERTISING_TYPE_LABELS: Record<AdvertisingType, string>;
|
|
36
|
+
export declare const ADVERTISING_PURPOSE_OPTIONS: {
|
|
37
|
+
value: string;
|
|
38
|
+
label: string;
|
|
39
|
+
}[];
|
|
40
|
+
export declare const ADVERTISING_PURPOSE_LABELS: Record<string, string>;
|
|
41
|
+
export declare const ADVERTISING_FREQUENCY_OPTIONS: {
|
|
42
|
+
value: string;
|
|
43
|
+
label: string;
|
|
44
|
+
}[];
|
|
45
|
+
export declare const ADVERTISING_FREQUENCY_LABELS: Record<string, string>;
|
|
46
|
+
export declare const ADVERTISING_PRIORITY_OPTIONS: {
|
|
47
|
+
value: number;
|
|
48
|
+
label: string;
|
|
49
|
+
}[];
|
|
50
|
+
export declare const ADVERTISING_MAX_FILE_BYTES: number;
|
|
51
|
+
export declare const ADVERTISING_ACCEPTED_IMAGE_TYPES: string[];
|
|
52
|
+
export declare const ADVERTISING_DEFAULT_COOLDOWN: AdvertisingCooldown;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
NOTIFICATION: "notification",
|
|
3
|
+
EMAIL: "email",
|
|
4
|
+
CONTACTS: "contacts",
|
|
5
|
+
MARKETING: "marketing"
|
|
6
|
+
}, i = {
|
|
7
|
+
BANNER: "AdvertisingBanner",
|
|
8
|
+
POPUP: "AdvertisingPopup"
|
|
9
|
+
}, N = {
|
|
10
|
+
BANNER: "advertising_banner",
|
|
11
|
+
POPUP: "advertising_popup"
|
|
12
|
+
}, E = {
|
|
13
|
+
PROMOTION: "promotion",
|
|
14
|
+
ANNOUNCEMENT: "announcement",
|
|
15
|
+
EVENT: "event",
|
|
16
|
+
WARNING_ALERT: "warning_alert"
|
|
17
|
+
}, o = {
|
|
18
|
+
EVERY_LOGIN: "every_login",
|
|
19
|
+
ONCE_PER_DAY: "once_per_day",
|
|
20
|
+
ONCE_ONLY: "once_only"
|
|
21
|
+
}, _ = {
|
|
22
|
+
ENABLED: "enabled",
|
|
23
|
+
DISABLED: "disabled"
|
|
24
|
+
}, A = 5, c = 1, T = 5, R = {
|
|
25
|
+
[N.BANNER]: "communication.marketing.type.banner",
|
|
26
|
+
[N.POPUP]: "communication.marketing.type.popup"
|
|
27
|
+
}, a = [
|
|
28
|
+
{ value: E.PROMOTION, label: "communication.marketing.purpose.promotion" },
|
|
29
|
+
{
|
|
30
|
+
value: E.ANNOUNCEMENT,
|
|
31
|
+
label: "communication.marketing.purpose.announcement"
|
|
32
|
+
},
|
|
33
|
+
{ value: E.EVENT, label: "communication.marketing.purpose.event" },
|
|
34
|
+
{
|
|
35
|
+
value: E.WARNING_ALERT,
|
|
36
|
+
label: "communication.marketing.purpose.warning-alert"
|
|
37
|
+
}
|
|
38
|
+
], r = a.reduce(
|
|
39
|
+
(n, e) => (n[e.value] = e.label, n),
|
|
40
|
+
{}
|
|
41
|
+
), I = [
|
|
42
|
+
{
|
|
43
|
+
value: o.EVERY_LOGIN,
|
|
44
|
+
label: "communication.marketing.frequency.every-login"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
value: o.ONCE_PER_DAY,
|
|
48
|
+
label: "communication.marketing.frequency.once-per-day"
|
|
49
|
+
},
|
|
50
|
+
{ value: o.ONCE_ONLY, label: "communication.marketing.frequency.once-only" }
|
|
51
|
+
], l = I.reduce(
|
|
52
|
+
(n, e) => (n[e.value] = e.label, n),
|
|
53
|
+
{}
|
|
54
|
+
), O = [1, 2, 3, 4, 5].map((n) => ({
|
|
55
|
+
value: n,
|
|
56
|
+
label: String(n)
|
|
57
|
+
})), m = 5 * 1024 * 1024, S = [
|
|
58
|
+
"image/png",
|
|
59
|
+
"image/jpeg",
|
|
60
|
+
"image/gif",
|
|
61
|
+
"image/webp"
|
|
62
|
+
], u = {
|
|
63
|
+
enabled: !1,
|
|
64
|
+
time_seconds: 0
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
t as ACTIVENAMETAB,
|
|
68
|
+
S as ADVERTISING_ACCEPTED_IMAGE_TYPES,
|
|
69
|
+
u as ADVERTISING_DEFAULT_COOLDOWN,
|
|
70
|
+
o as ADVERTISING_FREQUENCY,
|
|
71
|
+
l as ADVERTISING_FREQUENCY_LABELS,
|
|
72
|
+
I as ADVERTISING_FREQUENCY_OPTIONS,
|
|
73
|
+
A as ADVERTISING_MAX_ENABLED_PER_TYPE,
|
|
74
|
+
m as ADVERTISING_MAX_FILE_BYTES,
|
|
75
|
+
T as ADVERTISING_PRIORITY_MAX,
|
|
76
|
+
c as ADVERTISING_PRIORITY_MIN,
|
|
77
|
+
O as ADVERTISING_PRIORITY_OPTIONS,
|
|
78
|
+
i as ADVERTISING_PROCESSOR,
|
|
79
|
+
E as ADVERTISING_PURPOSE,
|
|
80
|
+
r as ADVERTISING_PURPOSE_LABELS,
|
|
81
|
+
a as ADVERTISING_PURPOSE_OPTIONS,
|
|
82
|
+
_ as ADVERTISING_STATUS,
|
|
83
|
+
N as ADVERTISING_TYPE,
|
|
84
|
+
R as ADVERTISING_TYPE_LABELS
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FILTER_OPTIONS: Record<string, string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 './transaction.constant';
|
|
9
|
+
export * from './withdraw.constant';
|
|
10
|
+
export * from './filter.constants';
|
|
11
|
+
export * from './kyc.constant';
|
|
12
|
+
export * from './site-settings.constants';
|
|
13
|
+
export * from './email.constant';
|
|
14
|
+
export * from './propAccount.constant';
|
|
15
|
+
export * from './passwordRule.constants';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ACCOUNT_PURPOSE as _, CATEGORY_NAME as S, CATEGORY_NAME_FOLDER as A, CATEGORY_NAME_WALLET as I, COMPETITION_STATE as R, PROP_ACCOUNT_RULES as P } from "./category.constant.js";
|
|
2
|
+
import { LIST_STATUS_FINISH_REQUEST as N, LIST_STATUS_UPDATE_DATA_REQUEST as C } from "./listStatus.constants.js";
|
|
3
|
+
import { REQUEST_STORE as Y } from "./store.constants.js";
|
|
4
|
+
import { COMPARE_TYPE as o, COUNTRY_OP_TYPE as r, CURRENCY_TYPE as G, FEE_TYPE as L, OP_TYPE as M } from "./type.constants.js";
|
|
5
|
+
import { ACTIVENAMETAB as e, ADVERTISING_ACCEPTED_IMAGE_TYPES as t, ADVERTISING_DEFAULT_COOLDOWN as F, ADVERTISING_FREQUENCY as p, ADVERTISING_FREQUENCY_LABELS as x, ADVERTISING_FREQUENCY_OPTIONS as f, ADVERTISING_MAX_ENABLED_PER_TYPE as m, ADVERTISING_MAX_FILE_BYTES as K, ADVERTISING_PRIORITY_MAX as B, ADVERTISING_PRIORITY_MIN as Q, ADVERTISING_PRIORITY_OPTIONS as H, ADVERTISING_PROCESSOR as W, ADVERTISING_PURPOSE as X, ADVERTISING_PURPOSE_LABELS as g, ADVERTISING_PURPOSE_OPTIONS as s, ADVERTISING_STATUS as a, ADVERTISING_TYPE as b, ADVERTISING_TYPE_LABELS as c } from "./communication.constant.js";
|
|
6
|
+
import { PSP as h, PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES as i, PSP_TEXT as j, PSP_WITH_DYNAMIC_SUFFIX as k, getPspText as l } from "./methods.constant.js";
|
|
7
|
+
import { SUPPORT_TICKET_EVENT_NAMES as q, SUPPORT_TICKET_STATUS as u } from "./supportTicket.constant.js";
|
|
8
|
+
import { TRANSACTION_ACTION_TYPE as w, TRANSACTION_STATE as y } from "./transaction.constant.js";
|
|
9
|
+
import { FOCUSED_INPUT as J } from "./withdraw.constant.js";
|
|
10
|
+
import { FILTER_OPTIONS as $ } from "./filter.constants.js";
|
|
11
|
+
import { DEFAULT_KYC_FORM_SCHEMA as ET, KYC_DOCUMENT_SCHEMA_SHORT_NAMES as _T, KYC_DOCUMENT_STATUSES as ST, KYC_REGISTRATION_ENFORCED_STEPS as AT, KYC_STATE as IT, KYC_STEP_STATUS as RT, KYC_VERIFICATION_TYPE as PT, TOTAL_PROGRESS_KYC_DOCUMENTS as OT } from "./kyc.constant.js";
|
|
12
|
+
import { COST_TYPE_PLATFORM_PROGRAM as CT, CSS_APPLY_TARGET_OPTIONS as UT, IB_COMMISSION_TYPE as YT, PAYOUT_REBATE_TYPE as DT, PAYOUT_RULE_OP as oT, PAYOUT_RULE_TYPE as rT, WEEKLY_DAY as GT } from "./site-settings.constants.js";
|
|
13
|
+
import { EMAIL_TEMPLATE_TYPE as MT } from "./email.constant.js";
|
|
14
|
+
import { PROP_ACCOUNT_TRADING_EVENTS as eT, PROP_ACCOUNT_TRADING_STATUS as tT } from "./propAccount.constant.js";
|
|
15
|
+
import { PASSWORD_RULE_CONDITION_NAME as pT } from "./passwordRule.constants.js";
|
|
16
|
+
export {
|
|
17
|
+
_ as ACCOUNT_PURPOSE,
|
|
18
|
+
e as ACTIVENAMETAB,
|
|
19
|
+
t as ADVERTISING_ACCEPTED_IMAGE_TYPES,
|
|
20
|
+
F as ADVERTISING_DEFAULT_COOLDOWN,
|
|
21
|
+
p as ADVERTISING_FREQUENCY,
|
|
22
|
+
x as ADVERTISING_FREQUENCY_LABELS,
|
|
23
|
+
f as ADVERTISING_FREQUENCY_OPTIONS,
|
|
24
|
+
m as ADVERTISING_MAX_ENABLED_PER_TYPE,
|
|
25
|
+
K as ADVERTISING_MAX_FILE_BYTES,
|
|
26
|
+
B as ADVERTISING_PRIORITY_MAX,
|
|
27
|
+
Q as ADVERTISING_PRIORITY_MIN,
|
|
28
|
+
H as ADVERTISING_PRIORITY_OPTIONS,
|
|
29
|
+
W as ADVERTISING_PROCESSOR,
|
|
30
|
+
X as ADVERTISING_PURPOSE,
|
|
31
|
+
g as ADVERTISING_PURPOSE_LABELS,
|
|
32
|
+
s as ADVERTISING_PURPOSE_OPTIONS,
|
|
33
|
+
a as ADVERTISING_STATUS,
|
|
34
|
+
b as ADVERTISING_TYPE,
|
|
35
|
+
c as ADVERTISING_TYPE_LABELS,
|
|
36
|
+
S as CATEGORY_NAME,
|
|
37
|
+
A as CATEGORY_NAME_FOLDER,
|
|
38
|
+
I as CATEGORY_NAME_WALLET,
|
|
39
|
+
o as COMPARE_TYPE,
|
|
40
|
+
R as COMPETITION_STATE,
|
|
41
|
+
CT as COST_TYPE_PLATFORM_PROGRAM,
|
|
42
|
+
r as COUNTRY_OP_TYPE,
|
|
43
|
+
UT as CSS_APPLY_TARGET_OPTIONS,
|
|
44
|
+
G as CURRENCY_TYPE,
|
|
45
|
+
ET as DEFAULT_KYC_FORM_SCHEMA,
|
|
46
|
+
MT as EMAIL_TEMPLATE_TYPE,
|
|
47
|
+
L as FEE_TYPE,
|
|
48
|
+
$ as FILTER_OPTIONS,
|
|
49
|
+
J as FOCUSED_INPUT,
|
|
50
|
+
YT as IB_COMMISSION_TYPE,
|
|
51
|
+
_T as KYC_DOCUMENT_SCHEMA_SHORT_NAMES,
|
|
52
|
+
ST as KYC_DOCUMENT_STATUSES,
|
|
53
|
+
AT as KYC_REGISTRATION_ENFORCED_STEPS,
|
|
54
|
+
IT as KYC_STATE,
|
|
55
|
+
RT as KYC_STEP_STATUS,
|
|
56
|
+
PT as KYC_VERIFICATION_TYPE,
|
|
57
|
+
N as LIST_STATUS_FINISH_REQUEST,
|
|
58
|
+
C as LIST_STATUS_UPDATE_DATA_REQUEST,
|
|
59
|
+
M as OP_TYPE,
|
|
60
|
+
pT as PASSWORD_RULE_CONDITION_NAME,
|
|
61
|
+
DT as PAYOUT_REBATE_TYPE,
|
|
62
|
+
oT as PAYOUT_RULE_OP,
|
|
63
|
+
rT as PAYOUT_RULE_TYPE,
|
|
64
|
+
P as PROP_ACCOUNT_RULES,
|
|
65
|
+
eT as PROP_ACCOUNT_TRADING_EVENTS,
|
|
66
|
+
tT as PROP_ACCOUNT_TRADING_STATUS,
|
|
67
|
+
h as PSP,
|
|
68
|
+
i as PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES,
|
|
69
|
+
j as PSP_TEXT,
|
|
70
|
+
k as PSP_WITH_DYNAMIC_SUFFIX,
|
|
71
|
+
Y as REQUEST_STORE,
|
|
72
|
+
q as SUPPORT_TICKET_EVENT_NAMES,
|
|
73
|
+
u as SUPPORT_TICKET_STATUS,
|
|
74
|
+
OT as TOTAL_PROGRESS_KYC_DOCUMENTS,
|
|
75
|
+
w as TRANSACTION_ACTION_TYPE,
|
|
76
|
+
y as TRANSACTION_STATE,
|
|
77
|
+
GT as WEEKLY_DAY,
|
|
78
|
+
l as getPspText
|
|
79
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IKycFormSchema } from '../types/kyc.type';
|
|
2
|
+
|
|
3
|
+
export declare const KYC_VERIFICATION_TYPE: {
|
|
4
|
+
ID_CARD: string;
|
|
5
|
+
PASSPORT: string;
|
|
6
|
+
DRIVER_LICENSE: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const KYC_REGISTRATION_ENFORCED_STEPS: {
|
|
9
|
+
PERSONAL_DETAILS: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const KYC_STATE: {
|
|
12
|
+
MISSING_KYC: string;
|
|
13
|
+
MISSING_DOCUMENTS: string;
|
|
14
|
+
DOCUMENT_PENDING: string;
|
|
15
|
+
REQUEST_PENDING: string;
|
|
16
|
+
REJECTED: string;
|
|
17
|
+
APPROVED: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const KYC_DOCUMENT_STATUSES: {
|
|
20
|
+
PENDING: string;
|
|
21
|
+
APPROVED: string;
|
|
22
|
+
REJECTED: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const KYC_DOCUMENT_SCHEMA_SHORT_NAMES: {
|
|
25
|
+
ID: string;
|
|
26
|
+
PORTRAIT: string;
|
|
27
|
+
ADDRESS: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const TOTAL_PROGRESS_KYC_DOCUMENTS: {
|
|
30
|
+
[KYC_DOCUMENT_SCHEMA_SHORT_NAMES.ID]: number;
|
|
31
|
+
[KYC_DOCUMENT_SCHEMA_SHORT_NAMES.PORTRAIT]: number;
|
|
32
|
+
[KYC_DOCUMENT_SCHEMA_SHORT_NAMES.ADDRESS]: number;
|
|
33
|
+
};
|
|
34
|
+
export declare const KYC_STEP_STATUS: {
|
|
35
|
+
LOCKED: string;
|
|
36
|
+
IN_PROGRESS: string;
|
|
37
|
+
COMPLETED: string;
|
|
38
|
+
REJECTED: string;
|
|
39
|
+
APPROVED: string;
|
|
40
|
+
VERIFIED: string;
|
|
41
|
+
};
|
|
42
|
+
export declare const DEFAULT_KYC_FORM_SCHEMA: IKycFormSchema;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const _ = {
|
|
2
|
+
ID_CARD: "id_card",
|
|
3
|
+
PASSPORT: "passport",
|
|
4
|
+
DRIVER_LICENSE: "driver_license"
|
|
5
|
+
}, e = {
|
|
6
|
+
PERSONAL_DETAILS: "personal_details"
|
|
7
|
+
}, S = {
|
|
8
|
+
MISSING_KYC: "missing_kyc",
|
|
9
|
+
MISSING_DOCUMENTS: "missing_documents",
|
|
10
|
+
DOCUMENT_PENDING: "document_pending",
|
|
11
|
+
REQUEST_PENDING: "request_pending",
|
|
12
|
+
REJECTED: "rejected",
|
|
13
|
+
APPROVED: "approved"
|
|
14
|
+
}, T = {
|
|
15
|
+
PENDING: "pending",
|
|
16
|
+
APPROVED: "approved",
|
|
17
|
+
REJECTED: "rejected"
|
|
18
|
+
}, E = {
|
|
19
|
+
ID: "id",
|
|
20
|
+
PORTRAIT: "portrait",
|
|
21
|
+
ADDRESS: "address"
|
|
22
|
+
}, D = {
|
|
23
|
+
[E.ID]: 2,
|
|
24
|
+
[E.PORTRAIT]: 1,
|
|
25
|
+
[E.ADDRESS]: 1
|
|
26
|
+
}, R = {
|
|
27
|
+
LOCKED: "locked",
|
|
28
|
+
IN_PROGRESS: "in_progress",
|
|
29
|
+
COMPLETED: "completed",
|
|
30
|
+
REJECTED: "rejected",
|
|
31
|
+
APPROVED: "approved",
|
|
32
|
+
VERIFIED: "verified"
|
|
33
|
+
}, s = { shortName: "", schema: {} };
|
|
34
|
+
export {
|
|
35
|
+
s as DEFAULT_KYC_FORM_SCHEMA,
|
|
36
|
+
E as KYC_DOCUMENT_SCHEMA_SHORT_NAMES,
|
|
37
|
+
T as KYC_DOCUMENT_STATUSES,
|
|
38
|
+
e as KYC_REGISTRATION_ENFORCED_STEPS,
|
|
39
|
+
S as KYC_STATE,
|
|
40
|
+
R as KYC_STEP_STATUS,
|
|
41
|
+
_ as KYC_VERIFICATION_TYPE,
|
|
42
|
+
D as TOTAL_PROGRESS_KYC_DOCUMENTS
|
|
43
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const e = [
|
|
2
|
+
"approved",
|
|
3
|
+
"completed",
|
|
4
|
+
"failed",
|
|
5
|
+
"processing",
|
|
6
|
+
"rejected",
|
|
7
|
+
"pending",
|
|
8
|
+
"created",
|
|
9
|
+
"enabled",
|
|
10
|
+
"disabled",
|
|
11
|
+
"active",
|
|
12
|
+
"archived",
|
|
13
|
+
"locked",
|
|
14
|
+
"closed"
|
|
15
|
+
], d = ["completed", "failed", "rejected"];
|
|
16
|
+
export {
|
|
17
|
+
d as LIST_STATUS_FINISH_REQUEST,
|
|
18
|
+
e as LIST_STATUS_UPDATE_DATA_REQUEST
|
|
19
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const PSP: {
|
|
2
|
+
readonly CRYPTO_WALLET: "crypto_wallet";
|
|
3
|
+
readonly HELP2PAY: "help2pay";
|
|
4
|
+
readonly PAYMENT_ASIA: "payment_asia";
|
|
5
|
+
readonly STICPAY: "sticpay";
|
|
6
|
+
readonly PESKA: "peska";
|
|
7
|
+
readonly ZOTAPAY: "zotapay";
|
|
8
|
+
readonly DRAGONPAY: "dragonpay";
|
|
9
|
+
readonly PAYPAL: "paypal";
|
|
10
|
+
readonly COINPAYMENTS: "coinpayments";
|
|
11
|
+
readonly B2BINPAY: "b2binpay";
|
|
12
|
+
readonly COINSBUY: "coinsbuy";
|
|
13
|
+
readonly CONFIRMO: "confirmo";
|
|
14
|
+
readonly NOW_PAYMENTS: "now_payments";
|
|
15
|
+
readonly VISA_MASTER_CARD: "visa_master_card";
|
|
16
|
+
readonly UNLIMIT: "unlimit";
|
|
17
|
+
readonly UNLIMIT_CRYPTOCHILL: "unlimit_cryptochill";
|
|
18
|
+
readonly LOCAL_METHOD: "local_method";
|
|
19
|
+
readonly CHAINXPAY: "chainxpay";
|
|
20
|
+
readonly TICKPAY_FIAT: "tickpay_fiat";
|
|
21
|
+
readonly TICKPAY_CRYPTO: "tickpay_crypto";
|
|
22
|
+
readonly D24: "d24";
|
|
23
|
+
readonly LIMEPAY: "limepay";
|
|
24
|
+
readonly BANKWIRE: "bankwire";
|
|
25
|
+
readonly UNIPAY: "unipay";
|
|
26
|
+
readonly NOIFX: "noifx";
|
|
27
|
+
readonly PAYRETAILERS: "pay_retailers";
|
|
28
|
+
readonly BOOMFI: "boomfi";
|
|
29
|
+
readonly INSTAXCHANGE: "instaxchange";
|
|
30
|
+
readonly BLOCKBEE: "blockbee";
|
|
31
|
+
readonly RISE: "rise";
|
|
32
|
+
readonly MATCH2PAY: "match2pay";
|
|
33
|
+
readonly MAXAFI: "maxafi";
|
|
34
|
+
readonly KEPG: "kepg";
|
|
35
|
+
readonly VRFY: "vrfy";
|
|
36
|
+
readonly RAGAPAY: "ragapay";
|
|
37
|
+
};
|
|
38
|
+
export type PspKey = (typeof PSP)[keyof typeof PSP];
|
|
39
|
+
export declare const PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES: readonly ["chainxpay", "instaxchange", "vrfy"];
|
|
40
|
+
export type PspSupportCrossDepositCurrency = (typeof PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES)[keyof typeof PSP_SUPPORT_CROSS_DEPOSIT_CURRENCIES];
|
|
41
|
+
export declare const PSP_TEXT: Record<PspKey, string>;
|
|
42
|
+
export declare const PSP_WITH_DYNAMIC_SUFFIX: string[];
|
|
43
|
+
export declare const getPspText: (key: string) => string;
|