From 24c168bc446c82c457abfd5f2c54357363a3780b Mon Sep 17 00:00:00 2001 From: Mathis Date: Wed, 12 Jun 2024 14:50:50 +0200 Subject: [PATCH] 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. --- src/interfaces/api.interface.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/interfaces/api.interface.ts b/src/interfaces/api.interface.ts index eca99d4..591456c 100644 --- a/src/interfaces/api.interface.ts +++ b/src/interfaces/api.interface.ts @@ -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 {}