Skip to content

Commit d13a846

Browse files
committed
add filters in types
1 parent 90837ea commit d13a846

File tree

1 file changed

+7
-2
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts

1 file changed

+7
-2
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/charts/types.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export interface YAxisColumnItem {
88
color: string;
99
}
1010

11+
export interface ChartFilters{
12+
column: string;
13+
operator: string;
14+
value: string;
15+
}
1116
export interface ChartOptions {
1217
aggregateType: string;
1318
regionColumn?: string;
@@ -23,7 +28,7 @@ export interface ChartOptions {
2328
export interface ChartData {
2429
chartId: string;
2530
description: string;
26-
filters: any[];
31+
// filters: any[];
2732
name: string;
2833
options: ChartOptions;
2934
resource: string;
@@ -34,7 +39,7 @@ export interface ChartData {
3439
export interface ResourceChartInput {
3540
chartId: string;
3641
description: string;
37-
filters: any[];
42+
filters: ChartFilters[];
3843
name: string;
3944
options: ChartOptions;
4045
resource: string;

0 commit comments

Comments
 (0)