@databrainhq/plugin 0.7.13 → 0.7.15

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.
Files changed (106) hide show
  1. package/package.json +2 -3
  2. package/dist/components/Button/index.d.ts +0 -13
  3. package/dist/components/ChartModal/ChartConfig.d.ts +0 -18
  4. package/dist/components/ChartModal/ChartModalOptions.d.ts +0 -6
  5. package/dist/components/ChartModal/SelectField.d.ts +0 -2
  6. package/dist/components/ChartModal/index.d.ts +0 -3
  7. package/dist/components/Charts/AreaChart.d.ts +0 -3
  8. package/dist/components/Charts/BarChart.d.ts +0 -24
  9. package/dist/components/Charts/BoxPlot.d.ts +0 -3
  10. package/dist/components/Charts/BubbleChart.d.ts +0 -3
  11. package/dist/components/Charts/ComboChart.d.ts +0 -3
  12. package/dist/components/Charts/DoughnutChart.d.ts +0 -3
  13. package/dist/components/Charts/FunnelChart.d.ts +0 -3
  14. package/dist/components/Charts/GaugeChart.d.ts +0 -3
  15. package/dist/components/Charts/Histogram.d.ts +0 -3
  16. package/dist/components/Charts/LineChart.d.ts +0 -25
  17. package/dist/components/Charts/PieChart.d.ts +0 -3
  18. package/dist/components/Charts/RowChart.d.ts +0 -3
  19. package/dist/components/Charts/SankeyChart.d.ts +0 -3
  20. package/dist/components/Charts/ScatterChart.d.ts +0 -3
  21. package/dist/components/Charts/SingleValueChart/index.d.ts +0 -3
  22. package/dist/components/Charts/StackedBarChart.d.ts +0 -3
  23. package/dist/components/Charts/SteppedAreaChart.d.ts +0 -3
  24. package/dist/components/Charts/Table/TableChart.d.ts +0 -3
  25. package/dist/components/Charts/WaterfallChart.d.ts +0 -3
  26. package/dist/components/DataType/index.d.ts +0 -2
  27. package/dist/components/Error/index.d.ts +0 -6
  28. package/dist/components/ErrorFallback/index.d.ts +0 -2
  29. package/dist/components/ExternalMetricForm/index.d.ts +0 -15
  30. package/dist/components/FilterDropDown/index.d.ts +0 -11
  31. package/dist/components/FilterField/index.d.ts +0 -21
  32. package/dist/components/FloatingDropDown/index.d.ts +0 -23
  33. package/dist/components/FullScreenChart/index.d.ts +0 -9
  34. package/dist/components/GlobalFilters/index.d.ts +0 -11
  35. package/dist/components/InfoTooltip/index.d.ts +0 -8
  36. package/dist/components/InputField/index.d.ts +0 -15
  37. package/dist/components/MetricChart/CsvDownloadButton.d.ts +0 -10
  38. package/dist/components/MetricChart/MetricChart.d.ts +0 -36
  39. package/dist/components/MetricChart/index.d.ts +0 -2
  40. package/dist/components/MetricCreation/MetricCreation.d.ts +0 -3
  41. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +0 -3
  42. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +0 -3
  43. package/dist/components/MetricCreation/components/ConstructMetric/index.d.ts +0 -2
  44. package/dist/components/MetricCreation/components/Dataset/index.d.ts +0 -3
  45. package/dist/components/MetricCreation/components/Header/index.d.ts +0 -3
  46. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +0 -3
  47. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartConfigure/index.d.ts +0 -20
  48. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/components/ChartSettings/index.d.ts +0 -32
  49. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +0 -50
  50. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/components/InputTables/index.d.ts +0 -2
  51. package/dist/components/MetricCreation/components/MetricOutput/components/TableTab/index.d.ts +0 -9
  52. package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +0 -3
  53. package/dist/components/MetricCreation/index.d.ts +0 -5
  54. package/dist/components/MetricList/MetricList.d.ts +0 -45
  55. package/dist/components/MetricList/components/MetricCard.d.ts +0 -18
  56. package/dist/components/MetricList/components/SingleValueCard.d.ts +0 -3
  57. package/dist/components/MetricList/index.d.ts +0 -3
  58. package/dist/components/MetricTable/index.d.ts +0 -7
  59. package/dist/components/Modal/Modal.d.ts +0 -9
  60. package/dist/components/Modal/ModalFooter.d.ts +0 -5
  61. package/dist/components/Modal/index.d.ts +0 -2
  62. package/dist/components/PopoverMenu/index.d.ts +0 -11
  63. package/dist/components/SearchTab/index.d.ts +0 -2
  64. package/dist/components/Select/index.d.ts +0 -48
  65. package/dist/components/Tab/index.d.ts +0 -10
  66. package/dist/components/Table/index.d.ts +0 -8
  67. package/dist/components/Text/index.d.ts +0 -10
  68. package/dist/components/TextAreaField/index.d.ts +0 -19
  69. package/dist/components/TimeGrainField/index.d.ts +0 -13
  70. package/dist/components/ToggleButton/index.d.ts +0 -12
  71. package/dist/components/index.d.ts +0 -27
  72. package/dist/consts/app.d.ts +0 -39
  73. package/dist/consts/index.d.ts +0 -2
  74. package/dist/consts/metricOptions.d.ts +0 -17
  75. package/dist/containers/Dashboard/Dashboard.d.ts +0 -4
  76. package/dist/containers/Dashboard/EmbededDashboard.d.ts +0 -12
  77. package/dist/containers/Dashboard/index.d.ts +0 -2
  78. package/dist/containers/index.d.ts +0 -1
  79. package/dist/helpers/cardActions.d.ts +0 -4
  80. package/dist/helpers/getModifiedQuery.d.ts +0 -6
  81. package/dist/helpers/getTimeFilterValue.d.ts +0 -8
  82. package/dist/helpers/groupArray.d.ts +0 -1
  83. package/dist/helpers/groupBy.d.ts +0 -6
  84. package/dist/helpers/index.d.ts +0 -4
  85. package/dist/hooks/index.d.ts +0 -5
  86. package/dist/hooks/useEmbeddedDashboard.d.ts +0 -53
  87. package/dist/hooks/useExternalMetric.d.ts +0 -39
  88. package/dist/hooks/useGenerateDatasetMetrics.d.ts +0 -13
  89. package/dist/hooks/useGenerateEmbeddedMetric.d.ts +0 -15
  90. package/dist/hooks/useOutsideAlerter.d.ts +0 -7
  91. package/dist/index.d.ts +0 -7
  92. package/dist/index.es.js +0 -91987
  93. package/dist/index.umd.js +0 -328
  94. package/dist/style.css +0 -1
  95. package/dist/types/app.d.ts +0 -132
  96. package/dist/types/index.d.ts +0 -2
  97. package/dist/types/metricCreate.d.ts +0 -132
  98. package/dist/typings.d.ts +0 -17
  99. package/dist/utils/arrayToCsvString.d.ts +0 -6
  100. package/dist/utils/colors.d.ts +0 -1
  101. package/dist/utils/fetcher.d.ts +0 -1
  102. package/dist/utils/generated/graphql.d.ts +0 -1746
  103. package/dist/utils/getChartAttributes.d.ts +0 -27
  104. package/dist/utils/getFormattedDataType.d.ts +0 -1
  105. package/dist/utils/index.d.ts +0 -5
  106. package/dist/utils/theme.d.ts +0 -87
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { ClientType } from '@/types/app';
3
- import { MetricChartProps } from '@/components/MetricChart';
4
- import { FilterFieldType } from '@/components/FilterField';
5
- export declare type MetricCardProps = {
6
- globalFilters?: {
7
- tableName: string;
8
- filters: FilterFieldType[];
9
- };
10
- metricItem: any;
11
- client: ClientType['value'];
12
- onMaximize: (chart: MetricChartProps) => void;
13
- colors?: string[];
14
- param?: any;
15
- companyTenancyType: string;
16
- renderHeaderName?: (name: string) => JSX.Element;
17
- };
18
- export declare const MetricCard: React.FC<MetricCardProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
3
- export declare const SingleValueCard: React.FC<Omit<MetricCardProps, 'onMaximize'>>;
@@ -1,3 +0,0 @@
1
- export * from './MetricList';
2
- export * from './components/MetricCard';
3
- export * from './components/SingleValueCard';
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- data: any;
4
- isError: boolean;
5
- };
6
- export declare const MetricTable: ({ data, isError }: Props) => JSX.Element;
7
- export {};
@@ -1,9 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- export interface ModalProps extends PropsWithChildren<any> {
3
- isOpen: boolean;
4
- onClose: () => void;
5
- headerTitle?: string;
6
- customHeader?: JSX.Element;
7
- icon?: any;
8
- }
9
- export declare const Modal: React.FC<ModalProps>;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare type ModalFooterProps = React.PropsWithChildren<any> & {
3
- className?: string;
4
- };
5
- export declare const ModalFooter: React.FC<ModalFooterProps>;
@@ -1,2 +0,0 @@
1
- export * from './Modal';
2
- export * from './ModalFooter';
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export declare type PopoverMenuProps = React.PropsWithChildren & {
3
- className?: string;
4
- menuClass?: string;
5
- buttonClass?: string;
6
- menuContainerClass?: string;
7
- button: React.ReactNode;
8
- isDisabled?: boolean;
9
- position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center';
10
- };
11
- export declare const PopoverMenu: React.FC<PopoverMenuProps>;
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const SearchTab: ({ setSearchKeyword, className }: any) => JSX.Element;
@@ -1,48 +0,0 @@
1
- import React from 'react';
2
- import { FieldValues } from 'react-hook-form';
3
- import type { Control } from 'react-hook-form';
4
- declare type Option = {
5
- value: string;
6
- label: string;
7
- };
8
- declare type SelectInput = {
9
- label?: string;
10
- value: any;
11
- placeHolder?: string;
12
- options: Option[] | undefined;
13
- onChange?: (val: string | any) => void;
14
- defaultValue?: string | number | boolean;
15
- children?: React.ReactNode;
16
- className?: string;
17
- containerClass?: string;
18
- isSearchEnabled?: boolean;
19
- textSize?: string;
20
- };
21
- declare type HookSelectInput = Omit<SelectInput, 'value'> & {
22
- control: Control;
23
- name: string;
24
- };
25
- export declare const Select: ({ label, options, onChange, value, defaultValue, children, placeHolder, className, containerClass, isSearchEnabled, textSize, }: SelectInput) => JSX.Element;
26
- export declare const HookSelect: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
27
- export declare const SelectWithSubValue: ({ label, options, onChange, value, defaultValue, }: any) => JSX.Element;
28
- export declare const DropDown: ({ control, name, options, label, defaultValue, }: HookSelectInput) => JSX.Element;
29
- declare type MultiSelectProps = {
30
- options: Option[];
31
- defaultValue?: Option['value'][];
32
- value?: Option['value'][];
33
- onChange?: (selected: Option['value'][]) => void;
34
- label?: string;
35
- name: string;
36
- className?: string;
37
- containerClass?: string;
38
- children?: React.ReactNode;
39
- placeHolder?: string;
40
- onClick?: any;
41
- isSearchEnabled?: boolean;
42
- };
43
- export declare const MultiSelect: React.FC<MultiSelectProps>;
44
- declare type HookMultiSelectProps = MultiSelectProps & {
45
- control: Control<FieldValues>;
46
- };
47
- export declare const HookMultiSelect: React.FC<HookMultiSelectProps>;
48
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- declare type TabProps = {
3
- options: string[];
4
- activeTab: string;
5
- setActiveTab: React.Dispatch<React.SetStateAction<string>>;
6
- className?: string;
7
- tabText?: string;
8
- };
9
- export declare const Tab: ({ options, activeTab, setActiveTab, className, tabText, }: TabProps) => JSX.Element;
10
- export {};
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- declare type Props = {
3
- data: any[] | undefined;
4
- isLoading: boolean;
5
- error: string;
6
- };
7
- export declare const Table: ({ data, isLoading, error }: Props) => JSX.Element;
8
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- className?: string;
4
- variant: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
5
- children?: React.ReactNode;
6
- onClick?: () => void;
7
- styleClass: 'primary' | 'secondary' | 'tertiary' | 'font-14' | 'font-14a' | 'font-14b' | 'font-14c' | 'font-14d' | 'font-15' | 'font-18' | 'font-20' | 'font-34' | 'custom';
8
- }
9
- export declare const Text: ({ className, variant, styleClass, children, onClick, }: Props) => JSX.Element;
10
- export {};
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- import { UseFormRegisterReturn } from 'react-hook-form';
3
- interface Props {
4
- id: string;
5
- label: string;
6
- placeholder?: string;
7
- rows: number;
8
- cols?: number;
9
- resizable?: boolean;
10
- defaultValue?: string;
11
- value?: string;
12
- register?: UseFormRegisterReturn;
13
- error?: any;
14
- onFocus?: any;
15
- onBlur?: any;
16
- className?: string;
17
- }
18
- export declare const TextAreaField: ({ id, label, placeholder, rows, cols, resizable, register, error, defaultValue, value, onFocus, onBlur, className, }: Props) => JSX.Element;
19
- export {};
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { FieldValues, UseFormRegister } from 'react-hook-form';
3
- declare type Props = {
4
- isShowlabel?: boolean;
5
- timeGrainValue: string;
6
- setTimeGrainValue: React.Dispatch<React.SetStateAction<string>>;
7
- register?: UseFormRegister<FieldValues>;
8
- className?: string;
9
- isDisabled?: boolean;
10
- containerClass?: string;
11
- };
12
- export declare const TimeGrainField: ({ isShowlabel, timeGrainValue, setTimeGrainValue, register, className, isDisabled, containerClass, }: Props) => JSX.Element;
13
- export {};
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- declare type SwitchButtonProps = {
3
- onChange?: (enabled: boolean) => void;
4
- enabled?: boolean;
5
- label?: string;
6
- className?: string;
7
- placeholder?: string;
8
- labelClassName?: string;
9
- defaultEnabled?: boolean;
10
- };
11
- export declare const ToggleButton: React.FC<SwitchButtonProps>;
12
- export {};
@@ -1,27 +0,0 @@
1
- export * from './Button';
2
- export * from './ChartModal';
3
- export * from './DataType';
4
- export * from './Error';
5
- export * from './ErrorFallback';
6
- export * from './ExternalMetricForm';
7
- export * from './FilterDropDown';
8
- export * from './FloatingDropDown';
9
- export * from './FullScreenChart';
10
- export * from './FilterField';
11
- export * from './GlobalFilters';
12
- export * from './InfoTooltip';
13
- export * from './InputField';
14
- export * from './MetricChart';
15
- export * from './MetricCreation';
16
- export * from './MetricList';
17
- export * from './MetricTable';
18
- export * from './Modal';
19
- export * from './PopoverMenu';
20
- export * from './SearchTab';
21
- export * from './Select';
22
- export * from './Tab';
23
- export * from './Table';
24
- export * from './Text';
25
- export * from './TextAreaField';
26
- export * from './TimeGrainField';
27
- export * from './ToggleButton';
@@ -1,39 +0,0 @@
1
- export declare const SOMETHING_WENT_WRONG = "something went wrong, please try again";
2
- export declare const CHART_TYPES: {
3
- line: string;
4
- stepped: string;
5
- bar: string;
6
- stack: string;
7
- histogram: string;
8
- bubble: string;
9
- scatter: string;
10
- row: string;
11
- area: string;
12
- combo: string;
13
- pie: string;
14
- doughnut: string;
15
- waterfall: string;
16
- funnel: string;
17
- gauge: string;
18
- sankey: string;
19
- singleValue: string;
20
- boxplot: string;
21
- table: string;
22
- };
23
- export declare const STATUS_TAB = "STATUS_TAB";
24
- export declare const STREAM_TAB = "STREAM_TAB";
25
- export declare const CLIENT_NAME_VAR = "client_id_variable";
26
- export declare const RLS_CONDITIONS: Record<string, string>;
27
- export declare const CHART_TAB = "CHART_TAB";
28
- export declare const TABLE_TAB = "TABLE_TAB";
29
- export declare const QUERY_TAB = "QUERY_TAB";
30
- export declare const INPUT_TABLE = "INPUT_TABLE";
31
- export declare const OUTPUT_TABLE = "OUTPUT_TABLE";
32
- export declare const DOUGHNUT = "doughnut";
33
- export declare const PIE = "pie";
34
- export declare const SANKEY = "sankey";
35
- export declare const BOXPLOT = "boxplot";
36
- export declare const TABLE = "table";
37
- export declare const GENERAL = "general";
38
- export declare const CONFIG = "configuration";
39
- export declare const DESTINATIONS: Record<string, string>;
@@ -1,2 +0,0 @@
1
- export * from './app';
2
- export * from './metricOptions';
@@ -1,17 +0,0 @@
1
- export declare const operatorList: {
2
- value: string;
3
- label: string;
4
- }[];
5
- export declare const RowLimitList: {
6
- value: string;
7
- label: string;
8
- }[];
9
- export declare const AggregateList: {
10
- value: string;
11
- label: string;
12
- }[];
13
- export declare const NUMBER_TYPES: string[];
14
- export declare const STRING_TYPES: string[];
15
- export declare const DATE_TYPES: string[];
16
- export declare const ARRAY_TYPES: string[];
17
- export declare const BOOLEAN_TYPES: string[];
@@ -1,4 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { DashboardProps } from './EmbededDashboard';
3
- export declare const PluginProvider: React.FC<PropsWithChildren>;
4
- export declare const Dashboard: React.FC<DashboardProps>;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { ThemeType } from '@/utils';
3
- export interface DashboardProps {
4
- token: string;
5
- options?: {
6
- headerVariant?: 'static' | 'floating';
7
- disableMetricCreation?: boolean;
8
- chartColors?: string[];
9
- };
10
- theme?: ThemeType;
11
- }
12
- export declare const EmbeddedDashboard: React.FC<DashboardProps>;
@@ -1,2 +0,0 @@
1
- export * from './Dashboard';
2
- export * from './EmbededDashboard';
@@ -1 +0,0 @@
1
- export * from './Dashboard';
@@ -1,4 +0,0 @@
1
- import { ClickActionsConfig } from '@/types';
2
- export declare const handleRoute: (routeType: string, route: string) => void;
3
- export declare const handleCardClick: (clickActionsConfig: ClickActionsConfig, metricId: string, id: string) => void;
4
- export declare const handleChartClick: (clickActionsConfig: ClickActionsConfig['chart'], value: string | number) => void;
@@ -1,6 +0,0 @@
1
- import { RlsCondition } from '@/types/app';
2
- export declare const getModifiedQuery: ({ rlsConditions, dbName, query, }: {
3
- rlsConditions: RlsCondition[];
4
- dbName: string;
5
- query: string;
6
- }) => string;
@@ -1,8 +0,0 @@
1
- declare type Params = {
2
- timeGrainValue: string;
3
- isTimeStamp: boolean;
4
- col: string;
5
- database: string;
6
- };
7
- export declare const getTimeFilterValue: ({ timeGrainValue, isTimeStamp, col, database, }: Params) => string;
8
- export {};
@@ -1 +0,0 @@
1
- export declare const groupArray: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<T[K], T[]>;
@@ -1,6 +0,0 @@
1
- export declare const groupByMultipleKeys: (rawData: any[] | undefined, keys: string[], measureKey: string) => any;
2
- export declare const updateGroupData: (data: any[] | undefined, keys: string[], selectedGroupBy: string[], setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void) => void;
3
- export declare const findKeys: (obj: Record<string, any>) => {
4
- numberKeys: string[];
5
- stringKeys: string[];
6
- };
@@ -1,4 +0,0 @@
1
- export * from './getModifiedQuery';
2
- export * from './getTimeFilterValue';
3
- export * from './groupArray';
4
- export * from './groupBy';
@@ -1,5 +0,0 @@
1
- export * from './useEmbeddedDashboard';
2
- export * from './useExternalMetric';
3
- export * from './useGenerateDatasetMetrics';
4
- export * from './useGenerateEmbeddedMetric';
5
- export * from './useOutsideAlerter';
@@ -1,53 +0,0 @@
1
- export declare const useEmbeddedDashboard: (token: string) => {
2
- isLoading: boolean;
3
- data: {
4
- clientId: string | undefined;
5
- companyId: any;
6
- mode: any;
7
- externalDashboardMetrics: {
8
- __typename?: "externalDashboardMetrics" | undefined;
9
- externalMetricId: any;
10
- externalDashboardId: any;
11
- externalMetric: {
12
- __typename?: "externalMetrics" | undefined;
13
- chartOptions: any;
14
- clientId?: string | null | undefined;
15
- companyId: any;
16
- companyIntegrationId: any;
17
- createdAt: any;
18
- createdBy?: string | null | undefined;
19
- description: string;
20
- id: any;
21
- inputFields?: any;
22
- integrationName: string;
23
- isCreatedByClient: boolean;
24
- isLive: boolean;
25
- metricId: string;
26
- metricQuery?: string | null | undefined;
27
- name: string;
28
- outputColumns?: string | null | undefined;
29
- query: string;
30
- resizeAttributes: any;
31
- timeGrain?: string | null | undefined;
32
- updatedAt: any;
33
- selectedGroupBy: any;
34
- isEnableGroupBy: boolean;
35
- groupBy: any;
36
- rlsConditions: any;
37
- clickActions: any;
38
- companyIntegration: {
39
- __typename?: "companyIntegrations" | undefined;
40
- name: string;
41
- };
42
- };
43
- }[] | undefined;
44
- externalDashboard: {
45
- __typename?: "externalDashboards" | undefined;
46
- id: any;
47
- filters: any;
48
- } | undefined;
49
- rlsSettings: any;
50
- companyTenancyType: any;
51
- isAllowedToCreateMetrics: boolean;
52
- };
53
- };
@@ -1,39 +0,0 @@
1
- import { FieldValues } from 'react-hook-form';
2
- import { AxisSettings, CustomSettings, DashboardType, GroupBy, LabelSettings, LegendSettings, RlsFilterObjectType, SelectedColumns, BackgroundSettings } from '@/types/app';
3
- declare type Params = {
4
- companyIntegrationId: string | undefined;
5
- selectedColumns: SelectedColumns[] | undefined;
6
- query: string;
7
- metricQuery: string | undefined;
8
- outputColumns: string | undefined;
9
- xAxis: string | undefined;
10
- yAxisList: string[] | undefined;
11
- chartType: string;
12
- step: string | undefined;
13
- measure: string | undefined;
14
- id?: string;
15
- sankeyValues: string[] | undefined;
16
- singleValue: string | undefined;
17
- margins: Record<string, number>;
18
- legendSettings: LegendSettings;
19
- labelSettings: LabelSettings;
20
- axisSettings: AxisSettings;
21
- customSettings?: CustomSettings;
22
- backGroundColor?: BackgroundSettings;
23
- integrationName: string | undefined;
24
- clientId?: string | null;
25
- isEmbedded?: boolean;
26
- rlsFilters?: RlsFilterObjectType[];
27
- companyId: string;
28
- mode?: boolean;
29
- timeGrain?: string;
30
- dashboardIds: DashboardType['id'][];
31
- isEnableGroupBy: boolean;
32
- selectedGroupBy: string[];
33
- groupBy: GroupBy | undefined;
34
- };
35
- export declare const useExternalMetric: ({ companyIntegrationId, selectedColumns, query, metricQuery, integrationName, outputColumns, xAxis, yAxisList, chartType, step, measure, sankeyValues, singleValue, margins, legendSettings, labelSettings, axisSettings, customSettings, backGroundColor, clientId, companyId, mode, timeGrain, dashboardIds, isEnableGroupBy, groupBy, selectedGroupBy, }: Params) => {
36
- createExternalMetric: (data: FieldValues) => void;
37
- error: string;
38
- };
39
- export {};
@@ -1,13 +0,0 @@
1
- export declare const useGenerateDatasetMetrics: () => {
2
- generateDatasetMetric: import("react-query").UseMutateFunction<import("@/utils/generated/graphql").GenerateDatasetMetricsMutation, unknown, import("@/utils/generated/graphql").Exact<{
3
- companyId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
4
- userInputs?: any;
5
- }>, unknown>;
6
- isGeneratingDataset: boolean;
7
- generateError: unknown;
8
- fetchColumnValues: import("react-query").UseMutateFunction<import("@/utils/generated/graphql").FetchColumnDataMutation, unknown, import("@/utils/generated/graphql").Exact<{
9
- companyId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
10
- tableName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
11
- columnName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
12
- }>, unknown>;
13
- };
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- import { FieldValues } from 'react-hook-form';
3
- declare type Params = {
4
- clientId: string | null;
5
- companyId: string | null;
6
- setError: React.Dispatch<React.SetStateAction<string>>;
7
- setLoading: React.Dispatch<React.SetStateAction<boolean>>;
8
- setData: React.Dispatch<React.SetStateAction<any[] | undefined>>;
9
- setQuery: React.Dispatch<React.SetStateAction<string>>;
10
- setMetricQuery: React.Dispatch<React.SetStateAction<string | undefined>>;
11
- };
12
- export declare const useGenerateEmbeddedMetric: ({ clientId, companyId, setData, setError, setLoading, setQuery, setMetricQuery, }: Params) => {
13
- generateEmbeddedMetric: (data: FieldValues) => void;
14
- };
15
- export {};
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- declare type UseOutsideAlerterProps = {
3
- onOutsideClick: () => void;
4
- wrapRef: React.RefObject<any>;
5
- };
6
- export declare const useOutsideAlerter: ({ onOutsideClick, wrapRef, }: UseOutsideAlerterProps) => void;
7
- export {};
package/dist/index.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export * from './containers';
2
- export * as utils from './utils';
3
- export * as consts from './consts';
4
- export * as helpers from './helpers';
5
- export * as hooks from './hooks';
6
- export * as types from './types';
7
- export * as Ui from './components';