Skip to content

Commit dcf2be7

Browse files
committed
Refactor chart type interfaces in report-types.ts
Renamed ChartType to ReportChartType and ChartConfig to ReportChartConfig for improved clarity and consistency in report visualization types. Updated references throughout report-types.ts. Also updated package.json scripts to separate server and client dev commands.
1 parent c3e12ac commit dcf2be7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"examples/*"
77
],
88
"scripts": {
9-
"dev": "npm run dev --workspace=@objectql/server",
10-
"start": "npm run start --workspace=@objectql/server",
9+
"server": "npm run dev --workspace=@objectql/server",
10+
"client": "npm run dev --workspace=@objectql/client",
1111
"build": "tsc -b && npm run build --workspaces",
1212
"test": "npm run test --workspaces",
1313
"changeset": "changeset",

packages/metadata/src/report-types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export type AggregationFunction =
2424
/**
2525
* Chart types for report visualization
2626
*/
27-
export type ChartType =
27+
export type ReportChartType =
2828
| 'bar'
2929
| 'line'
3030
| 'pie'
@@ -146,11 +146,11 @@ export interface SortConfig {
146146
/**
147147
* Chart configuration for report visualization
148148
*/
149-
export interface ChartConfig {
149+
export interface ReportChartConfig {
150150
/**
151151
* Type of chart to display
152152
*/
153-
type: ChartType;
153+
type: ReportChartType;
154154

155155
/**
156156
* Field to group data by (X-axis for bar/line charts)
@@ -312,7 +312,7 @@ export interface ReportDefinition {
312312
/**
313313
* Chart configuration
314314
*/
315-
chart?: ChartConfig;
315+
chart?: ReportChartConfig;
316316

317317
/**
318318
* Maximum number of rows to return

0 commit comments

Comments
 (0)