@databrainhq/plugin 0.14.82 → 0.14.84
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/components/DownloadRawCsvModal/index.d.ts +3 -2
- package/dist/helpers/autoCompleteHelpers.d.ts +5 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +2 -1
- package/dist/types/app.d.ts +1 -0
- package/dist/webcomponents.es.js +62 -59
- package/dist/webcomponents.umd.js +4 -4
- package/package.json +1 -1
|
@@ -4,9 +4,10 @@ type Props = {
|
|
|
4
4
|
onCloseModal: (value: boolean) => void;
|
|
5
5
|
isShowRawCsvModal: boolean;
|
|
6
6
|
metricItem?: ExternalMetrics;
|
|
7
|
+
workspaceId: string;
|
|
7
8
|
sharingSettingsId?: string;
|
|
8
9
|
query: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, }: Props) => React.JSX.Element;
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, }: Props) => React.JSX.Element>;
|
|
11
|
+
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, workspaceId, }: Props) => React.JSX.Element;
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ onCloseModal, isShowRawCsvModal, metricItem, query, sharingSettingsId, workspaceId, }: Props) => React.JSX.Element>;
|
|
12
13
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartSettingsType, FilteredOptionResult, FloatingDropDownOption, KeywordFilteredResult, SearchColumn, SearchStateChatType, SelectedColumn, SqlColumns } from '@/types';
|
|
1
|
+
import { ChartSettingsType, FilteredOptionResult, FloatingDropDownOption, KeywordFilteredResult, SearchColumn, SearchStateChatType, SelectedColumn, SqlColumns, TableObjectType } from '@/types';
|
|
2
2
|
export declare const getSearchKeywordList: (searchString: string) => string[];
|
|
3
3
|
export declare const getFilteredKeywords: (keywordList: string[], isNumberFilter: boolean) => KeywordFilteredResult;
|
|
4
4
|
export declare const parseNumberName: (keywords: string[]) => number;
|
|
@@ -72,10 +72,13 @@ export declare const determineChartType: ({ isProgressiveDimension, orderBy, dim
|
|
|
72
72
|
isDifferentMeasureScales?: boolean | undefined;
|
|
73
73
|
isNullValue?: boolean | undefined;
|
|
74
74
|
}) => string;
|
|
75
|
-
export declare const getChartSettings: ({ chartType, dimensions, measures, chartSettings, columns, }: {
|
|
75
|
+
export declare const getChartSettings: ({ chartType, dimensions, measures, chartSettings, columns, displayText, sqlMetadata, tableList, }: {
|
|
76
76
|
chartType: ChartSettingsType['chartType'];
|
|
77
77
|
dimensions: string[];
|
|
78
78
|
measures: string[];
|
|
79
79
|
chartSettings: ChartSettingsType;
|
|
80
80
|
columns: string[];
|
|
81
|
+
displayText?: string | undefined;
|
|
82
|
+
sqlMetadata: Record<string, any>[];
|
|
83
|
+
tableList: TableObjectType[];
|
|
81
84
|
}) => ChartSettingsType;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
|
-
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, metricItem, }: {
|
|
2
|
+
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, metricItem, workspaceId, }: {
|
|
3
3
|
onCloseModal: (value: boolean) => void;
|
|
4
4
|
metricItem?: Record<string, any> | undefined;
|
|
5
5
|
sharingSettingsId?: string | undefined;
|
|
6
|
+
workspaceId: string;
|
|
6
7
|
}) => {
|
|
7
8
|
onSumbitSendCsvUrl: ({ values, query, }: {
|
|
8
9
|
values: FieldValues;
|
package/dist/types/app.d.ts
CHANGED
|
@@ -34,6 +34,7 @@ export type TableColumn = {
|
|
|
34
34
|
synonyms?: string[];
|
|
35
35
|
columnTypeConfig?: string | Record<string, any>;
|
|
36
36
|
dataMartColumnAlias?: string;
|
|
37
|
+
transform?: string;
|
|
37
38
|
};
|
|
38
39
|
export type TimeSeriesGroupType = 'yearly' | 'monthly' | 'weekly' | 'daily' | 'quarterly';
|
|
39
40
|
export type TimeSeriesType = 'bar' | 'line' | 'area' | 'stack';
|