import { Quote } from './Quote.type'; import { Account, AccountWithExtraInfo } from './Account.type'; import { ModelFractionalSharePolicy, ModelReserveType } from '../constants/lookups'; import { Rtbs } from '.'; export interface Model { id: number; title: string; description: string; reserveType: ModelReserveType; fractionalSharePolicy: ModelFractionalSharePolicy; minimum: number; reserve: number; inventoryId: number; robo: boolean; roboActive: boolean; identifierType: string; identifierBreakdown: string; components: ModelComponent[]; accounts: Account[]; } export interface ModelWithExtraInfo extends Model, Rtbs { accounts: AccountWithExtraInfo[]; } export interface ModelComponent { type: string; addedOn: string; symbol: string; tag: string; note: string; option: boolean; percentage: number; quote: Quote; }