Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Jun 24, 2024
1 parent 4f5ac9a commit 9c149f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/sources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,21 @@ export interface HistogramRequestOptions extends BaseRequestOptions {
*/

export type FormulaResponse = {value: number};

export type CategoryResponse = {name: string; value: number}[];

export type RangeResponse = {min: number; max: number};

export type TableResponse = {
totalCount: number;
rows: Record<string, number | string>[];
};

export type ScatterResponse = [number, number][];

export type TimeSeriesResponse = {
rows: {name: string; value: number}[];
categories: string[];
};

export type HistogramResponse = number[];
3 changes: 2 additions & 1 deletion src/sources/widget-base-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ export class WidgetBaseSource<Props extends WidgetBaseSourceProps> {
protected getSource(owner?: string): Source {
return {
...(this.props as $TODO),
filters: getApplicableFilters(owner, this.props.filters),
credentials: this.credentials,
connection: this.connectionName,
filters: getApplicableFilters(owner, this.props.filters),
filtersLogicalOperator: this.props.filtersLogicalOperator,
};
}

Expand Down

0 comments on commit 9c149f5

Please sign in to comment.