@databrainhq/plugin 0.14.52 → 0.14.54
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/consts/metricOptions.d.ts +5 -0
- package/dist/hooks/useUnderlyingData.d.ts +2 -1
- package/dist/types/metricCreate.d.ts +5 -0
- package/dist/webcomponents.es.js +17830 -17787
- package/dist/webcomponents.umd.js +162 -161
- package/package.json +1 -1
|
@@ -136,3 +136,8 @@ export declare const DOWNLOAD_DATA_OPTIONS: {
|
|
|
136
136
|
SAVE_AS_PNG: string;
|
|
137
137
|
};
|
|
138
138
|
export declare const CUSTOM_FILTER_TABLE_ALIAS = "custom_table_alias_rls";
|
|
139
|
+
export declare const CAST_COLUMN_AS: {
|
|
140
|
+
value: string;
|
|
141
|
+
label: string;
|
|
142
|
+
icon: string;
|
|
143
|
+
}[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export declare const useUnderlyingData: ({ clientName, tenancyType, values, query, companyId, workspaceId, metricId, }: {
|
|
1
|
+
export declare const useUnderlyingData: ({ clientName, dbName, tenancyType, values, query, companyId, workspaceId, metricId, }: {
|
|
2
2
|
clientName?: string | undefined;
|
|
3
|
+
dbName: string;
|
|
3
4
|
tenancyType?: string | undefined;
|
|
4
5
|
values?: Record<string, string> | undefined;
|
|
5
6
|
query: string;
|
|
@@ -85,6 +85,7 @@ export type SetChartFieldParams = {
|
|
|
85
85
|
chartAggregateColumns?: string[];
|
|
86
86
|
chartType?: ChartSettingsType['chartType'];
|
|
87
87
|
};
|
|
88
|
+
export type CastColumn = 'integer' | 'decimal' | 'date';
|
|
88
89
|
export type SelectedColumn = {
|
|
89
90
|
name: string;
|
|
90
91
|
datatype: string;
|
|
@@ -119,6 +120,7 @@ export type SelectedColumn = {
|
|
|
119
120
|
relationOperator?: 'AND' | 'OR';
|
|
120
121
|
draggableItemData: DraggableMetricItemData;
|
|
121
122
|
keyword?: string;
|
|
123
|
+
cast?: FloatingDropDownOption;
|
|
122
124
|
};
|
|
123
125
|
export type SelectedFilter = {
|
|
124
126
|
method: string;
|
|
@@ -340,6 +342,7 @@ export type Aggregate = {
|
|
|
340
342
|
parentAlias: string;
|
|
341
343
|
type: 'custom' | 'default';
|
|
342
344
|
dataType: string;
|
|
345
|
+
cast?: CastColumn;
|
|
343
346
|
};
|
|
344
347
|
export type Dimension = {
|
|
345
348
|
columnName: string;
|
|
@@ -353,6 +356,7 @@ export type Dimension = {
|
|
|
353
356
|
functionConfiguration?: {
|
|
354
357
|
dateFormat?: string;
|
|
355
358
|
};
|
|
359
|
+
cast?: CastColumn;
|
|
356
360
|
};
|
|
357
361
|
export type Filter = {
|
|
358
362
|
method: string;
|
|
@@ -405,6 +409,7 @@ export type GroupByColumn = {
|
|
|
405
409
|
functionConfiguration?: {
|
|
406
410
|
dateFormat?: string;
|
|
407
411
|
};
|
|
412
|
+
cast?: CastColumn;
|
|
408
413
|
};
|
|
409
414
|
export type DatasetMetricCreationConfiguration = {
|
|
410
415
|
table: Table;
|