67 lines
1.1 KiB
TypeScript
67 lines
1.1 KiB
TypeScript
export interface Fund {
|
|
id: number;
|
|
init_date: Date;
|
|
portfolio: Portfolio[];
|
|
chart: Chart[];
|
|
_id: string;
|
|
title: string;
|
|
description: string;
|
|
minimum_investment: number;
|
|
lock_time: number;
|
|
ftype: string;
|
|
kyc: boolean | undefined | null
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
}
|
|
|
|
export interface Chart {
|
|
date: number;
|
|
percent: number;
|
|
}
|
|
|
|
export interface Portfolio {
|
|
title: string;
|
|
color: string;
|
|
percent: number;
|
|
}
|
|
|
|
export interface IFundResponse {
|
|
funds: Fund
|
|
}
|
|
|
|
export type IFundsResponse = Fund[]
|
|
|
|
export interface IFundType {
|
|
type: string
|
|
name: string
|
|
description: string
|
|
}
|
|
|
|
export interface IInvestData {
|
|
value: number
|
|
fund_id: string
|
|
}
|
|
|
|
export interface IDeinvestData {
|
|
id: string
|
|
}
|
|
|
|
export interface IInvestResponse {
|
|
id: string
|
|
}
|
|
|
|
export interface IInvest {
|
|
id: number;
|
|
status: number;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
_id: string;
|
|
user_id: number;
|
|
type: string;
|
|
currency: string;
|
|
value: number;
|
|
fund_id: string;
|
|
locked: boolean;
|
|
}
|
|
|
|
export type IInvests = IInvest[] |