import { TrendChangeType } from '../insights/insightPayload'; import { VendorExpenseTrendData } from './vendorExpenseTrend'; import { VendorExpenseTrendKey } from './vendorExpenseTrendKey'; export interface SpendBase { last3MonthsExpense: number; last6MonthsExpense: number; last12MonthsExpense: number; last30DaysSpend: number; last90DaysSpend: number; lastMonthExpense: number; previousYearSpend: number; yearToDateSpend: number; } export interface VendorSpend extends SpendBase { currencyCode: string; currencySymbol: string; changeType?: TrendChangeType; percentChange?: string; } export interface VendorExpenseState { spend: VendorSpend; vendorExpenseTrendByPeriod: Record; }