feat(interface): add new interfaces for user assets and trades

This commit includes two additional interfaces for handling user assets and trades. The `IApiUserAssetsRes` interface provides a way to store and manage the user assets response from the API. The `IApiAllTrades` interface has been introduced for dealing with all trades data. Necessary imports are also added in the file.
This commit is contained in:
Mathis H (Avnyr) 2024-06-12 14:50:50 +02:00
parent f3fd897a3f
commit 24c168bc44
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -1,3 +1,4 @@
import { ITrade, type IUserWalletCryptos } from "@/interfaces/crypto.interface";
import type { IUserData } from "@/interfaces/userdata.interface";
// ----- Request -----
@ -33,3 +34,13 @@ export interface IApiRegisterRes extends IAbstractApiResponse {
export interface IApiLoginRes extends IAbstractApiResponse {
access_token?: string;
}
export interface IApiUserAssetsRes extends IAbstractApiResponse {
firstName?: string;
lastName?: string;
dollarAvailables?: number;
pseudo?: string;
UserHasCrypto?: IUserWalletCryptos[];
}
export interface IApiAllTrades extends IAbstractApiResponse {}