34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
import type { Treaty } from "@elysiajs/eden";
|
|
import type { client } from ".";
|
|
import type { AssetCodeEnum, PaymentChannelEnum, WithdrawMethodEnum } from "./enum";
|
|
|
|
export type DepositFiatBody = Parameters<typeof client.api.deposit.fiat.post>[0] & {
|
|
paymentChannel: PaymentChannelEnum;
|
|
assetCode: AssetCodeEnum;
|
|
};
|
|
|
|
export type DepositFiatData = Treaty.Data<typeof client.api.deposit.fiat.post>;
|
|
|
|
export type BalancesData = Treaty.Data<typeof client.api.asset.balances.get>;
|
|
|
|
export type WithdrawBody = Omit<Parameters<typeof client.api.withdraw.post>[0], "assetCode" | "withdrawMethod"> & {
|
|
assetCode: AssetCodeEnum;
|
|
withdrawMethod: WithdrawMethodEnum;
|
|
};
|
|
|
|
export type UserProfileData = Treaty.Data<typeof client.api.user.profile.get>["userProfile"];
|
|
|
|
export type UpdateUserProfileBody = NonNullable<Parameters<typeof client.api.user.profile.put>[0]>;
|
|
|
|
export type RwaIssuanceProductsData = Treaty.Data<typeof client.api.rwa.issuance.products.bundle.post>;
|
|
|
|
export type RwaIssuanceProductBody = NonNullable<Parameters<typeof client.api.rwa.issuance.products.bundle.post>[0]>;
|
|
|
|
export type RwaIssuanceCategoriesData = Treaty.Data<typeof client.api.rwa.issuance.categories.get>;
|
|
|
|
export type BankAccountsData = Treaty.Data<typeof client.api.bank_account.get>;
|
|
|
|
export type BankAccountBody = Parameters<typeof client.api.bank_account.post>[0];
|
|
|
|
export type BankAccountData = Treaty.Data<typeof client.api.bank_account.post>;
|