refactor project

This commit is contained in:
Alihaghighattalab
2024-08-21 10:36:05 +03:30
parent 4672843399
commit 643f3cb497
9 changed files with 67 additions and 130 deletions
+57
View File
@@ -218,4 +218,61 @@ export interface AwardsResponse {
updated_at: string,
__v: number,
id: string
}
interface TransactionsData {
_id: string,
card: TransactionsCard
userId: string,
amount: number,
dollarAmount: number,
status: number,
created_at: string,
updated_at: string,
__v: number,
id: string
}
interface TransactionsCard {
_id: string,
holderName: string,
PAN: number,
IBAN: string,
created_at: string,
updated_at: string,
id: string
}
export interface TransactionsResponse {
data: TransactionsData[] | []
}
type OverviewUser = {
walletBalance: number,
dollarBalance: number,
score: number,
_id: string,
id: string
}
export interface OverviewResponse {
pending: boolean,
user: OverviewUser
}
type ScoreData = {
_id: string,
deviceId: string,
score: number,
created_at: string,
updated_at: string,
__v: number,
userId: string,
id: string
}
export interface ScoreResponse {
data: ScoreData[] | []
score: number,
total: number
}