@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 @@
|
|
|
1
|
+
export declare function validateInputAmount(rule: any, value: any, callback: any, t: (key: string) => string): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Contact extends Base {
|
|
4
|
+
getContactList(): Promise<any>;
|
|
5
|
+
getContactListById(id: any): Promise<any>;
|
|
6
|
+
createContactList(data: any): Promise<any>;
|
|
7
|
+
updateContactList(id: any, data: any): Promise<any>;
|
|
8
|
+
deleteContactList(id: any): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Content extends Base {
|
|
4
|
+
fetchContents(content_types: string | string[], ids: number[], with_attachments?: boolean): Promise<any>;
|
|
5
|
+
fetchContentsV2(content_types: string | string[], page: number, page_size: number, filter: any, order_by: any, joined_columns: string | string[]): Promise<any>;
|
|
6
|
+
fetchContentIDsInTimeRange(content_types: string[], from_time: string, to_time: string, filter: any, order_by: any): Promise<any>;
|
|
7
|
+
call(name: string, ...p: any): Promise<any>;
|
|
8
|
+
exportContents(payload: any): Promise<any>;
|
|
9
|
+
fetchContentsByContentIds(content_type: string, content_ids: number[] | string): Promise<any>;
|
|
10
|
+
transit2(payload: any): Promise<any>;
|
|
11
|
+
fetchContentByUUID(payload: any): Promise<any>;
|
|
12
|
+
getPendingNumberContent(content_types: any): Promise<any>;
|
|
13
|
+
act(payload: any, options: any): Promise<any>;
|
|
14
|
+
createContent(payload: any, params?: any, with_attachments?: boolean): Promise<any>;
|
|
15
|
+
updateContent(payload: any, ct_id: string | number, with_attachments: boolean): Promise<any>;
|
|
16
|
+
deleteContent(ct_id: string | number): Promise<any>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class ContentType extends Base {
|
|
4
|
+
getContentTypes(): Promise<any>;
|
|
5
|
+
getContentTypeByName(name: string): Promise<any>;
|
|
6
|
+
validateWithdrawRuleExpression(expression: string, account_id?: number, content_type?: string): Promise<any>;
|
|
7
|
+
updateContentType(id: string, payload: any): Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class ConversionRate extends Base {
|
|
4
|
+
getConversionRate(from_currency: string, to_currency: string, date?: string): Promise<any>;
|
|
5
|
+
getConversionRates(pairs: any): Promise<any>;
|
|
6
|
+
getCryptoConversionRate(from_currency: string, to_currency: string): Promise<any>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { Base } from '../base';
|
|
3
|
+
import { CouponPayload, RedemptionPayload, RedemptionPayloadAno, RedemptionResponse } from './type';
|
|
4
|
+
|
|
5
|
+
export declare class Coupon extends Base {
|
|
6
|
+
getCoupons(): Promise<void>;
|
|
7
|
+
createCoupon(payload: CouponPayload): Promise<AxiosResponse<any>>;
|
|
8
|
+
updateCoupon(id: string, payload: CouponPayload): Promise<AxiosResponse<any>>;
|
|
9
|
+
enableCoupon(id: string): Promise<any>;
|
|
10
|
+
disableCoupon(id: string): Promise<any>;
|
|
11
|
+
createCouponRedemption(payload: RedemptionPayload): Promise<AxiosResponse<RedemptionResponse>>;
|
|
12
|
+
createCouponRedemptionAnonymous(payload: RedemptionPayloadAno): Promise<AxiosResponse<RedemptionResponse>>;
|
|
13
|
+
fetchAvailableRedemptionsAnonymous(email: string): Promise<AxiosResponse<RedemptionResponse[]>>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface CouponPayload {
|
|
2
|
+
code: string;
|
|
3
|
+
effects: Record<string, any>;
|
|
4
|
+
conditions: {
|
|
5
|
+
products: string[];
|
|
6
|
+
account_sizes: number[];
|
|
7
|
+
payment_method: string[];
|
|
8
|
+
first_purchase_only: boolean;
|
|
9
|
+
};
|
|
10
|
+
state: 'enabled' | 'disabled';
|
|
11
|
+
started_at: string;
|
|
12
|
+
expired_at: string;
|
|
13
|
+
max_redemptions: number;
|
|
14
|
+
max_redemptions_per_client: number;
|
|
15
|
+
}
|
|
16
|
+
export interface RedemptionPayload {
|
|
17
|
+
code: string;
|
|
18
|
+
payment_method: string;
|
|
19
|
+
}
|
|
20
|
+
export interface RedemptionPayloadAno extends RedemptionPayload {
|
|
21
|
+
email: string;
|
|
22
|
+
}
|
|
23
|
+
export interface RedemptionResponse {
|
|
24
|
+
id: number;
|
|
25
|
+
code: string;
|
|
26
|
+
coupon_id: number;
|
|
27
|
+
purchase_id: unknown | null;
|
|
28
|
+
user_id: number;
|
|
29
|
+
email: string;
|
|
30
|
+
state: string;
|
|
31
|
+
deduction: unknown | null;
|
|
32
|
+
additional_info: Record<string, any> | null;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Department extends Base {
|
|
4
|
+
createDepartment(payload: any): Promise<any>;
|
|
5
|
+
updateDepartment(id: any, payload: any): Promise<any>;
|
|
6
|
+
deleteDepartment(id: any): Promise<any>;
|
|
7
|
+
changeStateDepartment(id: any, { state }: {
|
|
8
|
+
state: string;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Category extends Base {
|
|
4
|
+
getCategories(): Promise<any>;
|
|
5
|
+
getCategoryByUUID(uuid: any): Promise<any>;
|
|
6
|
+
createCategory(payload: any): Promise<any>;
|
|
7
|
+
updateCategory(uuid: any, payload: any): Promise<any>;
|
|
8
|
+
deleteCategory(uuid: any): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Coupon extends Base {
|
|
4
|
+
getCoupons(payload: any): Promise<any>;
|
|
5
|
+
getCouponRedemptionsAvailable(params: any): Promise<any>;
|
|
6
|
+
getCouponRedemptionsAvailableAno(params: any): Promise<any>;
|
|
7
|
+
createCouponRedemption(payload: any): Promise<any>;
|
|
8
|
+
createCouponRedemptionAno(payload: any): Promise<any>;
|
|
9
|
+
getCouponByUUID(uuid: any): Promise<any>;
|
|
10
|
+
createCoupon(payload: any): Promise<any>;
|
|
11
|
+
updateCoupon(uuid: any, payload: any): Promise<any>;
|
|
12
|
+
deleteCoupon(uuid: any): Promise<any>;
|
|
13
|
+
validateCoupon(uuid: string): Promise<any>;
|
|
14
|
+
enableCoupon(uuid: string): Promise<any>;
|
|
15
|
+
disableCoupon(uuid: string): Promise<any>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Base, Config } from '../base';
|
|
2
|
+
import { Product } from './product';
|
|
3
|
+
import { Coupon } from './coupon';
|
|
4
|
+
import { Category } from './category';
|
|
5
|
+
import { ProductAttribute } from './product_attribute';
|
|
6
|
+
import { Purchases } from './purchases';
|
|
7
|
+
import { AxiosInstance } from 'axios';
|
|
8
|
+
|
|
9
|
+
declare class EcommerceSDK extends Base {
|
|
10
|
+
constructor(config: Config, saveToLocalStorage?: boolean, onAccessTokenUpdated?: (access_token: string) => void, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance);
|
|
11
|
+
private static _instance;
|
|
12
|
+
static getInstance(config?: Config | null, saveToLocalStorage?: boolean, access_token?: string, device_id?: string, device_ip?: string, axiosInstance?: AxiosInstance): EcommerceSDK;
|
|
13
|
+
}
|
|
14
|
+
interface EcommerceSDK extends Product, Coupon, Category, ProductAttribute, Purchases {
|
|
15
|
+
}
|
|
16
|
+
export default EcommerceSDK;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Product extends Base {
|
|
4
|
+
getProducts(payload: any): Promise<any>;
|
|
5
|
+
getProductByUUID(uuid: any): Promise<any>;
|
|
6
|
+
getLevelByProduct(product_uuid: string, product_level: any): Promise<any>;
|
|
7
|
+
createProduct(payload: any): Promise<any>;
|
|
8
|
+
updateProduct(uuid: any, payload: any): Promise<any>;
|
|
9
|
+
deleteProduct(uuid: any): Promise<any>;
|
|
10
|
+
createProductAndVariation(payload: any): Promise<any>;
|
|
11
|
+
updateProductState(uuid: any, state: any, payload: any): Promise<any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class ProductAttribute extends Base {
|
|
4
|
+
getProductAttributes(): Promise<any>;
|
|
5
|
+
getProductAttributeByUUID(uuid: any): Promise<any>;
|
|
6
|
+
createProductAttribute(payload: any): Promise<any>;
|
|
7
|
+
updateProductAttribute(uuid: any, payload: any): Promise<any>;
|
|
8
|
+
deleteProductAttribute(uuid: any): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Purchases extends Base {
|
|
4
|
+
createPurchase(payload: any): Promise<any>;
|
|
5
|
+
getPurchase(): Promise<any>;
|
|
6
|
+
getPurchaseByUUID(uuid: any): Promise<any>;
|
|
7
|
+
updatePurchase(uuid: any, payload: any): Promise<any>;
|
|
8
|
+
calculatePrice(payload: any): Promise<any>;
|
|
9
|
+
purchase(payload: any): Promise<any>;
|
|
10
|
+
purchaseAnonymously(payload: any): Promise<any>;
|
|
11
|
+
purchaseNow(payload: any): Promise<any>;
|
|
12
|
+
purchaseNowAnonymously(payload: any): Promise<any>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class EmailLayout extends Base {
|
|
4
|
+
renderEmailLayout(id: any, payload: any): Promise<any>;
|
|
5
|
+
uploadImgEmailLayout(id: any, payload: any): Promise<any>;
|
|
6
|
+
createEmailLayout(payload: any): Promise<any>;
|
|
7
|
+
updateEmailLayout(id: any, payload: any): Promise<any>;
|
|
8
|
+
getBindingStructure(): Promise<any>;
|
|
9
|
+
deleteEmailLayout(id: any): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class EmailTemplate extends Base {
|
|
4
|
+
renderEmailTemplate(id: any, payload: any): Promise<any>;
|
|
5
|
+
uploadImgEmailTemplate(id: any, payload: any): Promise<any>;
|
|
6
|
+
uploadAttachmentEmailTemplate(id: any, payload: any): Promise<any>;
|
|
7
|
+
deleteAttachmentEmailTemplate(id: any, { attachment_id }: {
|
|
8
|
+
attachment_id: any;
|
|
9
|
+
}): Promise<any>;
|
|
10
|
+
createEmailTemplate(payload: any): Promise<any>;
|
|
11
|
+
updateEmailTemplate(id: any, payload: any): Promise<any>;
|
|
12
|
+
deleteEmailTemplate(id: any): Promise<any>;
|
|
13
|
+
sendEmail(payload: any): Promise<any>;
|
|
14
|
+
deleteSentEmail(id: any): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Employee extends Base {
|
|
4
|
+
createEmployee(payload: any): Promise<any>;
|
|
5
|
+
updateEmployee(id: any, payload: any): Promise<any>;
|
|
6
|
+
deleteEmployee(id: any, payload: any): Promise<any>;
|
|
7
|
+
resendInvitation(id: any): Promise<any>;
|
|
8
|
+
updateEmployeeComment(id: any, payload: any): Promise<any>;
|
|
9
|
+
changeEmployeeState(id: any, payload: any): Promise<any>;
|
|
10
|
+
fetchEmployeeUsingIDs(ids: any): Promise<any>;
|
|
11
|
+
updateGrantRoleAdmin(employeeId: string | number): Promise<unknown>;
|
|
12
|
+
transferSuperAdminRole(fromId: string | number, toId: string | number): Promise<unknown>;
|
|
13
|
+
getListAdminRole(): Promise<number[]>;
|
|
14
|
+
checkEmployeeLinked(id: string | number): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class Folder extends Base {
|
|
4
|
+
createFolder(payload: any): Promise<any>;
|
|
5
|
+
updateFolder(folder_id: number, payload: any): Promise<any>;
|
|
6
|
+
getAttachments(folder_id: number): Promise<any>;
|
|
7
|
+
getPublicFolders(): Promise<any>;
|
|
8
|
+
addAttachments(folder_id: number, payload: any): Promise<any>;
|
|
9
|
+
updateAttachment(folder_id: number, attachment_id: number, payload: any): Promise<any>;
|
|
10
|
+
deleteAttachment(folder_id: number, attachment_id: number): Promise<any>;
|
|
11
|
+
deleteFolder(folder_id: number): Promise<any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class FundingSource extends Base {
|
|
4
|
+
fetchFundingSources(filter?: any): Promise<any>;
|
|
5
|
+
createFundingSource(payload: any, otpCode?: string): Promise<any>;
|
|
6
|
+
editFundingSource(payload: any, otpCode?: string): Promise<any>;
|
|
7
|
+
deleteFundingSource(payload: any, otpCode?: string): Promise<any>;
|
|
8
|
+
getFundingMethods(): Promise<any>;
|
|
9
|
+
fetchFundingSourcesUsingIDs(ids: number[]): Promise<any>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class GamificationCampaign extends Base {
|
|
4
|
+
getAllCampaigns(payload: any): Promise<any>;
|
|
5
|
+
updateCampaign(payload: any): Promise<any>;
|
|
6
|
+
createCampaign(payload: any): Promise<any>;
|
|
7
|
+
deleteCampaign(id: string): Promise<any>;
|
|
8
|
+
getCampaignById(id: string): Promise<any>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Base } from '../base';
|
|
2
|
+
|
|
3
|
+
export declare class IB extends Base {
|
|
4
|
+
getIB(payload: any): Promise<any>;
|
|
5
|
+
getIBByID(id: string): Promise<any>;
|
|
6
|
+
createIB(payload: any): Promise<any>;
|
|
7
|
+
updateIB(id: string, payload: any): Promise<any>;
|
|
8
|
+
deleteIB(id: string): Promise<any>;
|
|
9
|
+
assignAccountToIB(id: string, payload: any): Promise<any>;
|
|
10
|
+
unassignAccountFromIB(payload: any): Promise<any>;
|
|
11
|
+
assignLeadToIB(id: string, payload: any): Promise<any>;
|
|
12
|
+
unassignLeadFromIB(payload: any): Promise<any>;
|
|
13
|
+
assignClientToIB(id: string, payload: any): Promise<any>;
|
|
14
|
+
unassignClientFromIB(payload: any): Promise<any>;
|
|
15
|
+
bulkUpdateIBState(payload: any): Promise<any>;
|
|
16
|
+
getCommissionStatisticByID(id: number): Promise<any>;
|
|
17
|
+
getTotalEquityStatisticByID(id: number): Promise<any>;
|
|
18
|
+
getNetDepositStatisticByID(id: number): Promise<any>;
|
|
19
|
+
getNewClientLeadStatisticByID(id: number): Promise<any>;
|
|
20
|
+
getFundedClientStatisticByID(id: number): Promise<any>;
|
|
21
|
+
getActiveClientsStatisticByID(id: number): Promise<any>;
|
|
22
|
+
getTotalCommissions(id: number, params: any): Promise<any>;
|
|
23
|
+
getDailyStatistic(id: number, params: any): Promise<any>;
|
|
24
|
+
}
|