@databrainhq/plugin 0.9.26 → 0.9.28
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.
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +5 -3
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +2 -1
- package/dist/components/TagInputField/index.d.ts +2 -2
- package/dist/consts/metricOptions.d.ts +2 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +14 -1
- package/dist/index.es.js +15280 -15168
- package/dist/index.umd.js +144 -135
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +62 -3
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
3
|
type Props = {
|
|
4
4
|
onCloseModal: (value: boolean) => void;
|
|
@@ -7,6 +7,8 @@ type Props = {
|
|
|
7
7
|
client: string;
|
|
8
8
|
companyTenancyType: string;
|
|
9
9
|
filterValues?: Record<string, string>;
|
|
10
|
+
sharingSettingsId?: string;
|
|
10
11
|
};
|
|
11
|
-
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, }: Props) => JSX.Element;
|
|
12
|
-
|
|
12
|
+
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, sharingSettingsId, }: Props) => JSX.Element;
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, sharingSettingsId, }: Props) => JSX.Element>;
|
|
14
|
+
export default _default;
|
|
@@ -14,5 +14,6 @@ export type FullScreenViewProps = {
|
|
|
14
14
|
userProvidedDashboardId: string;
|
|
15
15
|
companyId: string;
|
|
16
16
|
isAllowedToUpdateMetrics?: boolean;
|
|
17
|
+
sharingSettingsId?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, }: FullScreenViewProps) => JSX.Element;
|
|
19
|
+
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, }: FullScreenViewProps) => JSX.Element;
|
|
@@ -26,5 +26,5 @@ type Props = {
|
|
|
26
26
|
onChangeTags?: (tags: string[]) => void;
|
|
27
27
|
defaultTagValue?: string[];
|
|
28
28
|
};
|
|
29
|
-
declare const
|
|
30
|
-
export default
|
|
29
|
+
declare const _default: React.MemoExoticComponent<({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => JSX.Element>;
|
|
30
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ChartSettingsType } from '@/types';
|
|
1
2
|
export declare const operatorList: {
|
|
2
3
|
value: string;
|
|
3
4
|
label: string;
|
|
@@ -20,3 +21,4 @@ export declare const DATE_TYPES: string[];
|
|
|
20
21
|
export declare const ARRAY_TYPES: string[];
|
|
21
22
|
export declare const BOOLEAN_TYPES: string[];
|
|
22
23
|
export declare const configTabs: string[];
|
|
24
|
+
export declare const DEFAULT_CHART_SETTINGS: ChartSettingsType;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
|
-
declare const useDownloadRawCsv: (onCloseModal
|
|
3
|
+
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, filterValues, metricItem, }: {
|
|
4
|
+
onCloseModal: (value: boolean) => void;
|
|
5
|
+
metricItem?: ExternalMetrics | undefined;
|
|
6
|
+
filterValues?: Record<string, string> | undefined;
|
|
7
|
+
sharingSettingsId?: string | undefined;
|
|
8
|
+
}) => {
|
|
4
9
|
isLoading: boolean;
|
|
5
10
|
downloadCsvError: string;
|
|
6
11
|
onSubmitDownloadCsv: ({ companyId, sqlQuery, values, clientName, tenancyType, metricName, workspaceId, }: {
|
|
@@ -42,5 +47,13 @@ declare const useDownloadRawCsv: (onCloseModal: (value: boolean) => void, metric
|
|
|
42
47
|
clientName?: string | undefined;
|
|
43
48
|
tenancyType?: string | undefined;
|
|
44
49
|
}) => void;
|
|
50
|
+
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
51
|
+
control: import("react-hook-form").Control<FieldValues, object>;
|
|
52
|
+
onSumbitSendCsvUrl: ({ values, clientName, tenancyType, }: {
|
|
53
|
+
values: FieldValues;
|
|
54
|
+
clientName?: string | undefined;
|
|
55
|
+
tenancyType?: string | undefined;
|
|
56
|
+
}) => void;
|
|
57
|
+
isDisableDownloadSettings: boolean;
|
|
45
58
|
};
|
|
46
59
|
export default useDownloadRawCsv;
|