From 9c149f54d842545588063246d3fe624316a75c68 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Mon, 24 Jun 2024 16:39:21 -0400 Subject: [PATCH] Clean up --- src/sources/types.ts | 6 ++++++ src/sources/widget-base-source.ts | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/sources/types.ts b/src/sources/types.ts index 159dfea..590cbac 100644 --- a/src/sources/types.ts +++ b/src/sources/types.ts @@ -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[]; }; + export type ScatterResponse = [number, number][]; + export type TimeSeriesResponse = { rows: {name: string; value: number}[]; categories: string[]; }; + export type HistogramResponse = number[]; diff --git a/src/sources/widget-base-source.ts b/src/sources/widget-base-source.ts index b70bc42..0e6c39f 100644 --- a/src/sources/widget-base-source.ts +++ b/src/sources/widget-base-source.ts @@ -64,9 +64,10 @@ export class WidgetBaseSource { 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, }; }