22 lines
No EOL
400 B
TypeScript
22 lines
No EOL
400 B
TypeScript
export interface DataSeries {
|
|
values: number[];
|
|
labels?: string[];
|
|
}
|
|
|
|
export interface DataMatrix {
|
|
data: number[][];
|
|
columns?: string[];
|
|
rows?: string[];
|
|
}
|
|
|
|
export interface Condition {
|
|
field: string;
|
|
operator: '>' | '<' | '=' | '>=' | '<=' | '!=';
|
|
value: number | string;
|
|
}
|
|
|
|
export interface ApiResponse<T> {
|
|
success: boolean;
|
|
data?: T;
|
|
error?: string;
|
|
} |