@databrainhq/plugin 0.5.0 → 0.6.1

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.
@@ -10,8 +10,9 @@ export declare type MetricCardProps = {
10
10
  metricItem: any;
11
11
  client: ClientType['value'];
12
12
  onMaximize: (chart: MetricChartProps) => void;
13
- param?: any;
14
13
  colors?: string[];
14
+ param?: any;
15
+ companyTenancyType: string;
15
16
  };
16
17
  declare const MetricCard: React.FC<MetricCardProps>;
17
18
  export default MetricCard;
@@ -6,8 +6,7 @@ export declare type ExternalMetricListProps = {
6
6
  chartColors?: string[];
7
7
  globalFilters?: MetricCardProps['globalFilters'];
8
8
  client: ClientType['value'];
9
- isLiveMode?: boolean;
10
- params?: any;
9
+ isLiveMode: boolean;
11
10
  isMetricListLoading?: boolean;
12
11
  breakpoint: ThemeType['breakpoint'];
13
12
  layoutCols: ThemeType['metricLayoutCols'];
@@ -39,6 +38,8 @@ export declare type ExternalMetricListProps = {
39
38
  updatedAt: any;
40
39
  };
41
40
  }[] | undefined;
41
+ params?: any;
42
+ companyTenancyType: string;
42
43
  };
43
44
  declare const _default: React.NamedExoticComponent<ExternalMetricListProps>;
44
45
  export default _default;
@@ -0,0 +1,8 @@
1
+ declare type Props = {
2
+ columnName: string;
3
+ dbName: string;
4
+ onChangeFilterValue: (name: string, value: string) => void;
5
+ name: string;
6
+ };
7
+ declare const MultipleTimeGrain: ({ columnName, dbName, onChangeFilterValue, name }: Props) => any;
8
+ export default MultipleTimeGrain;
@@ -0,0 +1,8 @@
1
+ import { RlsCondition } from '@/types';
2
+ declare type Props = {
3
+ rlsConditions: RlsCondition[];
4
+ onChangeFilterValue: (name: string, value: string) => void;
5
+ dbName: string;
6
+ };
7
+ declare const RlsFilters: ({ rlsConditions, onChangeFilterValue, dbName }: Props) => any;
8
+ export default RlsFilters;
@@ -7,6 +7,7 @@ declare type Props = {
7
7
  register?: UseFormRegister<FieldValues>;
8
8
  className?: string;
9
9
  isDisabled?: boolean;
10
+ onChange?: (value: string) => void;
10
11
  };
11
- declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled }: Props) => any;
12
+ declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, onChange }: Props) => any;
12
13
  export default TimeGrainField;
@@ -33,6 +33,11 @@ declare const useEmbeddedDashboard: (token: string) => {
33
33
  selectedGroupBy: any;
34
34
  isEnableGroupBy: boolean;
35
35
  groupBy: any;
36
+ rlsConditions: any;
37
+ companyIntegration: {
38
+ __typename?: "companyIntegrations" | undefined;
39
+ name: string;
40
+ };
36
41
  };
37
42
  }[] | undefined;
38
43
  externalDashboard: {
@@ -41,6 +46,8 @@ declare const useEmbeddedDashboard: (token: string) => {
41
46
  filters: any;
42
47
  } | undefined;
43
48
  rlsSettings: any;
49
+ companyTenancyType: any;
50
+ isAllowedToCreateMetrics: boolean;
44
51
  };
45
52
  };
46
53
  export default useEmbeddedDashboard;