@databrainhq/plugin 0.15.13 → 0.15.15-uat

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.
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { ColumnSizingState } from '@tanstack/react-table';
3
- import { SelectedColumn, TableObjectType, Aggregate } from './metricCreate';
3
+ import { SelectedColumn, TableObjectType, Aggregate, ComparisonLagSettings } from './metricCreate';
4
4
  import { CHART_TYPES, ICONS_LIST } from '@/consts';
5
5
  export type ChildrenProps = {
6
6
  children: ReactNode;
@@ -110,10 +110,23 @@ export type CustomSettings = {
110
110
  customUppperLimit?: number;
111
111
  customLowerLimit?: number;
112
112
  isEnableInterchange?: boolean;
113
+ comparisonBadgeColor?: {
114
+ up?: string;
115
+ down?: string;
116
+ };
113
117
  linearGaugeV2?: {
114
118
  isEnableValue?: boolean;
115
119
  isEnableLabel?: boolean;
116
120
  size?: string;
121
+ isEnableLabels?: boolean;
122
+ isEnableRange?: boolean;
123
+ labelSize?: number;
124
+ labelWeight?: number;
125
+ isEnableLegend?: boolean;
126
+ isEnableLegendRange?: boolean;
127
+ legendSize?: number;
128
+ legendWeight?: number;
129
+ legendPosition?: string;
117
130
  };
118
131
  gaugeV2?: {
119
132
  isEnableMarkerRange?: boolean;
@@ -160,7 +173,9 @@ export type CustomSettings = {
160
173
  enableSingleValueTruncate?: boolean;
161
174
  truncateValue?: number;
162
175
  comparisonTimeColumn?: string;
176
+ comparisonTimeLabel?: string;
163
177
  comparisonTimePeriod?: number;
178
+ comparisonDifferenceType?: ComparisonLagSettings['differenceType'];
164
179
  comparisonTimeGrain?: string;
165
180
  comparisonTableName?: string;
166
181
  comparisonValueFontSize?: number;
@@ -388,6 +403,8 @@ export type ChartSettingsType = {
388
403
  yAxisList?: string[];
389
404
  numberColumns?: string[];
390
405
  progressColumn?: string;
406
+ progressMaxColumn?: string;
407
+ progressMinColumn?: string;
391
408
  dateColumns?: string[];
392
409
  chartColors?: string[];
393
410
  stackTableCols?: string[];
@@ -563,6 +580,8 @@ export type GlobalFilterColumn = {
563
580
  isAutoSelectFilterValue?: boolean;
564
581
  isEnableClearSelection?: boolean;
565
582
  restrictedMetrics?: FloatingDropDownOption[];
583
+ isAppFilter?: boolean;
584
+ isSelectAllMultiSelect?: boolean;
566
585
  };
567
586
  export type GlobalFilterType = {
568
587
  tableName: string;
@@ -389,6 +389,8 @@ export type ComparisonLagSettings = {
389
389
  column: FloatingDropDownOption;
390
390
  timeGrain: FloatingDropDownOption;
391
391
  periodLag: number;
392
+ differenceType: 'PERCENTAGE_DIFFERENCE' | 'DIFFERENCE';
393
+ timeColumnLabel: string;
392
394
  };
393
395
  export type CreatedNewColumn = {
394
396
  columnName: FloatingDropDownOption;
@@ -36,6 +36,7 @@ export type UseDashboardDataQueryOutputType = {
36
36
  externalMetrics?: (any | null)[] | null;
37
37
  rlsSettings?: any | null;
38
38
  appFilters?: any | null;
39
+ dashboardAppFilters?: any | null;
39
40
  workspace?: any | null;
40
41
  sharingSettingsId?: string | null;
41
42
  error?: {