@databrainhq/plugin 0.14.20 → 0.14.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@ export interface DashboardProps extends HTMLAttributes<HTMLElement> {
36
36
  optionsIcon?: 'kebab-menu-vertical' | 'download';
37
37
  adminThemeOptions?: AdminThemeOptionsType;
38
38
  customMessages?: {
39
- tokenExpire?: string;
39
+ tokenExpiry?: string;
40
40
  };
41
41
  }
42
42
  /**
@@ -20,7 +20,7 @@ export interface EmbeddedDashboardProps {
20
20
  theme?: ThemeType;
21
21
  adminThemeOption?: AdminThemeOptionsType;
22
22
  customMessages?: {
23
- tokenExpire?: string;
23
+ tokenExpiry?: string;
24
24
  };
25
25
  }
26
26
  export declare const EmbeddedDashboard: React.MemoExoticComponent<({ options, theme, adminThemeOption, customMessages, }: EmbeddedDashboardProps) => React.JSX.Element>;
@@ -17,7 +17,7 @@ export interface EmbeddedMetricProps {
17
17
  disableFullscreen?: boolean;
18
18
  optionsIcon?: 'kebab-menu-vertical' | 'download';
19
19
  customMessages?: {
20
- tokenExpire?: string;
20
+ tokenExpiry?: string;
21
21
  };
22
22
  }
23
23
  export declare const EmbeddedMetric: React.MemoExoticComponent<({ token, chartColors, metricId, chartRendererType, variant, onMinimize, isHideChartSettings, isHideTablePreview, enableDownloadCsv, enableEmailCsv, metricFilterOptions, enableMultiMetricFilters, metricFilterPosition, disableFullscreen, optionsIcon, customMessages, }: EmbeddedMetricProps) => React.JSX.Element>;
@@ -35,7 +35,7 @@ export interface MetricProps extends HTMLAttributes<HTMLElement> {
35
35
  disableFullscreen?: boolean;
36
36
  optionsIcon?: 'kebab-menu-vertical' | 'download';
37
37
  customMessages?: {
38
- tokenExpire?: string;
38
+ tokenExpiry?: string;
39
39
  };
40
40
  }
41
41
  /**
@@ -0,0 +1,2 @@
1
+ declare const getColumnTypes: (data: Record<string, any>[]) => Record<string, string>;
2
+ export default getColumnTypes;
@@ -7,3 +7,4 @@ export * from './timeseries';
7
7
  export * from './checkIsElementInViewport';
8
8
  export * from './areArraysEqual';
9
9
  export * from './generateTimeRangeWhereClause';
10
+ export * from './getColumnType';
@@ -4,6 +4,32 @@ import { CHART_TYPES, ICONS_LIST } from '@/consts';
4
4
  export type ChildrenProps = {
5
5
  children: ReactNode;
6
6
  };
7
+ export type GlobalFiltersDefaultValue = string[] | string | number | number[] | {
8
+ startDate: Date | undefined;
9
+ endDate: Date | undefined;
10
+ timeGrainValue: string;
11
+ value: string;
12
+ } | undefined | {
13
+ min: number | null;
14
+ max: number | null;
15
+ } | FloatingDropDownOption[];
16
+ export type TableColumn = {
17
+ name: string;
18
+ dataType: string;
19
+ isDefault?: boolean;
20
+ label?: string;
21
+ isShowHorizontal?: boolean;
22
+ defaultValue?: GlobalFiltersDefaultValue;
23
+ isClientScoped?: boolean;
24
+ clientColumn?: string;
25
+ clientColumnType?: string;
26
+ isManualOptions?: boolean;
27
+ manualOptions?: string[];
28
+ as: string;
29
+ sql?: string;
30
+ type?: 'custom' | 'default' | 'python';
31
+ isAggregate?: boolean;
32
+ };
7
33
  export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily' | 'quarterly';
8
34
  export type TimeSeriesType = 'bar' | 'line' | 'area' | 'stack';
9
35
  export type TimeSeriesSettingsType = {