Files
supabase/studio/data/analytics/constants.ts
2023-07-04 17:54:02 +08:00

19 lines
354 B
TypeScript

export type DataPoint = {
id?: string
loopId?: number | string
period_start: string
periodStartFormatted?: string
} & {
// Attribute name will be the key
[key: string]: string | number
}
export interface AnalyticsData {
data: DataPoint[]
format: string
total: number
totalAverage: number
yAxisLimit: number
hasNoData?: boolean
}