@databrainhq/plugin 0.11.23 → 0.11.25
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/FilterDropDown/index.d.ts +7 -5
- package/dist/components/FilterField/index.d.ts +2 -4
- package/dist/components/GlobalFilters/Filters.d.ts +6 -4
- package/dist/components/GlobalFilters/HorizontalFilters.d.ts +4 -3
- package/dist/components/GlobalFilters/index.d.ts +8 -5
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricFilterDropDown/index.d.ts +3 -4
- package/dist/consts/app.d.ts +7 -0
- package/dist/helpers/timeseries.d.ts +2 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +2 -2
- package/dist/types/app.d.ts +7 -0
- package/dist/types/metricCreate.d.ts +1 -0
- package/dist/utils/generated/graphql.d.ts +20 -31
- package/dist/utils/getChartAttributes.d.ts +2 -1
- package/dist/webcomponents.es.js +22761 -22542
- package/dist/webcomponents.umd.js +141 -156
- package/package.json +1 -1
- package/dist/hooks/useSqlMetadata.d.ts +0 -10
|
@@ -2,12 +2,14 @@ import React from 'react';
|
|
|
2
2
|
import { RlsFilterObjectType } from '@/types/app';
|
|
3
3
|
import { FloatingDropDownProps, MultiFloatingDropDownProps } from '@/components/FloatingDropDown';
|
|
4
4
|
export type FilterDropDownProps = Omit<FloatingDropDownProps, 'options' | 'isDisabled'> & {
|
|
5
|
-
companyId: string;
|
|
6
5
|
filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value'>;
|
|
7
6
|
autoSelected?: boolean;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
filterClause?: {
|
|
9
|
+
columnName?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
10
12
|
};
|
|
11
|
-
export declare const FilterDropDown: ({
|
|
12
|
-
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | '
|
|
13
|
+
export declare const FilterDropDown: ({ filter, onChange, selectedOption, autoSelected, workspaceId, filterClause, ...rest }: FilterDropDownProps) => React.JSX.Element;
|
|
14
|
+
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'filter' | 'label' | 'workspaceId' | 'filterClause'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
|
|
13
15
|
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export type FilterFieldType = {
|
|
3
3
|
column: string;
|
|
4
4
|
operator: string;
|
|
5
|
-
value?: string | string[] | number | number[] | boolean | boolean[] | null
|
|
5
|
+
value?: string | string[] | number | number[] | boolean | boolean[] | null | Record<string, any>;
|
|
6
6
|
as?: string;
|
|
7
7
|
defaultValues?: any;
|
|
8
8
|
filterType?: 'global' | 'horizontal';
|
|
@@ -17,9 +17,7 @@ export type FilterFieldProps = {
|
|
|
17
17
|
};
|
|
18
18
|
isResetted: boolean;
|
|
19
19
|
onChange: (field: FilterFieldType) => void;
|
|
20
|
-
|
|
21
|
-
integrationId: string;
|
|
22
|
-
integrationName: string;
|
|
20
|
+
workspaceId: string;
|
|
23
21
|
};
|
|
24
22
|
export declare const isInFilterOperator: (input: string) => boolean;
|
|
25
23
|
export declare const isNullFilterOperator: (input: string) => boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FilterFieldType } from '@/components/FilterField';
|
|
3
|
-
import { FilterType } from '@/types/app';
|
|
4
|
-
import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
|
|
3
|
+
import { FilterType, FloatingDropDownOption } from '@/types/app';
|
|
5
4
|
export type FilterColumn = {
|
|
6
5
|
as: string;
|
|
7
6
|
dataType: string;
|
|
@@ -9,15 +8,18 @@ export type FilterColumn = {
|
|
|
9
8
|
isDefault?: boolean;
|
|
10
9
|
isShowHorizontal?: boolean;
|
|
11
10
|
label?: string;
|
|
11
|
+
options?: FloatingDropDownOption[];
|
|
12
12
|
};
|
|
13
13
|
type FiltersProps = {
|
|
14
14
|
filterList: FilterColumn[];
|
|
15
15
|
setFilterList: React.Dispatch<React.SetStateAction<FilterColumn[]>>;
|
|
16
16
|
appliedfilters: FilterFieldType[];
|
|
17
17
|
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
18
|
-
data: CompanyIntegrationQuery | undefined;
|
|
19
|
-
companyId: string;
|
|
20
18
|
filters: FilterType[];
|
|
19
|
+
internal?: {
|
|
20
|
+
isInternal: boolean;
|
|
21
|
+
workspaceId: string;
|
|
22
|
+
};
|
|
21
23
|
};
|
|
22
24
|
export declare const Filters: React.FC<FiltersProps>;
|
|
23
25
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FilterFieldType } from '@/components/FilterField';
|
|
3
3
|
import { FilterType } from '@/types/app';
|
|
4
|
-
import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
|
|
5
4
|
type HorizontalFiltersProps = {
|
|
6
5
|
appliedfilters: FilterFieldType[];
|
|
7
6
|
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
8
|
-
data: CompanyIntegrationQuery | undefined;
|
|
9
|
-
companyId: string;
|
|
10
7
|
filters: FilterType[];
|
|
8
|
+
internal?: {
|
|
9
|
+
isInternal: boolean;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
};
|
|
11
12
|
};
|
|
12
13
|
export declare const HorizontalFilters: React.FC<HorizontalFiltersProps>;
|
|
13
14
|
export {};
|
|
@@ -3,13 +3,14 @@ import { FilterColumn } from './Filters';
|
|
|
3
3
|
import { FilterFieldType } from '@/components/FilterField';
|
|
4
4
|
import { MetricCardProps } from '@/components/MetricList/components';
|
|
5
5
|
import { FilterType } from '@/types/app';
|
|
6
|
-
import { CompanyIntegrationQuery } from '@/utils/generated/graphql';
|
|
7
6
|
type GlobalFiltersProps = {
|
|
8
7
|
filters: FilterType[];
|
|
9
|
-
companyId: string;
|
|
10
8
|
onApply: (filters: MetricCardProps['globalFilters']) => void;
|
|
11
9
|
renderAdditionalHeaderContent?: () => JSX.Element;
|
|
12
|
-
|
|
10
|
+
internal?: {
|
|
11
|
+
isInternal: boolean;
|
|
12
|
+
workspaceId: string;
|
|
13
|
+
};
|
|
13
14
|
};
|
|
14
15
|
export declare const getFormattedFilterValue: (obj: {
|
|
15
16
|
operator: string;
|
|
@@ -18,16 +19,18 @@ export declare const getFormattedFilterValue: (obj: {
|
|
|
18
19
|
export declare const GlobalFilters: React.FC<GlobalFiltersProps>;
|
|
19
20
|
type FilterPopupProps = {
|
|
20
21
|
filters: FilterType[];
|
|
21
|
-
companyId: string;
|
|
22
22
|
renderAdditionalHeaderContent?: () => JSX.Element;
|
|
23
23
|
filterList: FilterColumn[];
|
|
24
24
|
setFilterList: React.Dispatch<React.SetStateAction<FilterColumn[]>>;
|
|
25
25
|
appliedfilters: FilterFieldType[];
|
|
26
26
|
setAppliedFilters: (value: React.SetStateAction<FilterFieldType[]>) => void;
|
|
27
|
-
data: CompanyIntegrationQuery | undefined;
|
|
28
27
|
globalFilterRef: React.RefObject<HTMLDivElement>;
|
|
29
28
|
handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
|
|
30
29
|
resetFilters: () => void;
|
|
30
|
+
internal?: {
|
|
31
|
+
isInternal: boolean;
|
|
32
|
+
workspaceId: string;
|
|
33
|
+
};
|
|
31
34
|
};
|
|
32
35
|
export declare const FilterPopup: React.FC<FilterPopupProps>;
|
|
33
36
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => React.JSX.Element;
|
|
3
|
+
export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, }: ConstructMetricProps) => React.JSX.Element;
|
package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ConstructMetricProps } from '@/types/metricCreate';
|
|
3
|
-
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, }: ConstructMetricProps) => React.JSX.Element;
|
|
3
|
+
export declare const MetricForm: ({ dateTimeColumnList, columnList, database, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, databaseId, datasetSettings, setDatasetSettings, setGroupByList, }: ConstructMetricProps) => React.JSX.Element;
|
|
@@ -3,9 +3,8 @@ import { FloatingDropDownOption, RlsCondition } from '@/types';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
rlsConditions?: RlsCondition;
|
|
5
5
|
onChangeFilterValue?: (name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
integrationName: string;
|
|
6
|
+
workspaceId: string;
|
|
7
|
+
clientId?: string;
|
|
9
8
|
};
|
|
10
|
-
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue,
|
|
9
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, }: Props) => React.JSX.Element;
|
|
11
10
|
export default MetricFilterDropDown;
|
package/dist/consts/app.d.ts
CHANGED
|
@@ -22,6 +22,13 @@ export declare const CHART_TYPES: {
|
|
|
22
22
|
timeSeries: string;
|
|
23
23
|
pivot: string;
|
|
24
24
|
};
|
|
25
|
+
export declare const timeStamp: {
|
|
26
|
+
month: string;
|
|
27
|
+
quarter: string;
|
|
28
|
+
daily: string;
|
|
29
|
+
weekly: string;
|
|
30
|
+
yearly: string;
|
|
31
|
+
};
|
|
25
32
|
export declare const STATUS_TAB = "STATUS_TAB";
|
|
26
33
|
export declare const STREAM_TAB = "STREAM_TAB";
|
|
27
34
|
export declare const CLIENT_NAME_VAR = "client_id_variable";
|
|
@@ -4,7 +4,7 @@ interface TimeSeriesData {
|
|
|
4
4
|
valuekeys: string[];
|
|
5
5
|
data: Record<string, any>[];
|
|
6
6
|
}
|
|
7
|
-
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, }: {
|
|
7
|
+
export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuekeys, groupBy, labelSettings, customSettings, backGroundColor, fillXAxis, }: {
|
|
8
8
|
dataArray: Record<string, any>[];
|
|
9
9
|
timeStampKey: string;
|
|
10
10
|
valuekeys: string[];
|
|
@@ -13,6 +13,7 @@ export declare const getTimeSeriesData: ({ dataArray, timeStampKey, type, valuek
|
|
|
13
13
|
labelSettings: LabelSettings;
|
|
14
14
|
customSettings: CustomSettings;
|
|
15
15
|
backGroundColor: BackgroundSettings;
|
|
16
|
+
fillXAxis: boolean;
|
|
16
17
|
}) => ({
|
|
17
18
|
stack?: string | undefined;
|
|
18
19
|
barWidth?: string | undefined;
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const useGenerateDatasetMetrics: () => {
|
|
|
9
9
|
fetchColumnValues: import("react-query").UseMutateFunction<import("@/utils/generated/graphql").FetchColumnDataMutation, unknown, import("@/utils/generated/graphql").Exact<{
|
|
10
10
|
tableName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
11
11
|
columnName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
wId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
13
|
+
filter?: any;
|
|
14
14
|
}>, unknown>;
|
|
15
15
|
};
|
package/dist/types/app.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type TimeSeriesSettingsType = {
|
|
|
15
15
|
isDynamic: boolean;
|
|
16
16
|
options: string[];
|
|
17
17
|
value: TimeSeriesGroupType;
|
|
18
|
+
fillXAxis: boolean;
|
|
18
19
|
};
|
|
19
20
|
};
|
|
20
21
|
export type TimeSeriesSettingsProps = {
|
|
@@ -82,6 +83,7 @@ export type TableSettings = {
|
|
|
82
83
|
contentAlignment?: string;
|
|
83
84
|
lineGap?: string;
|
|
84
85
|
hideVerticalDivider?: boolean;
|
|
86
|
+
badgeColumns?: string[];
|
|
85
87
|
enableStripedRows?: boolean;
|
|
86
88
|
showRowHover?: boolean;
|
|
87
89
|
showTableTitle?: boolean;
|
|
@@ -169,6 +171,7 @@ export type Schema = {
|
|
|
169
171
|
isDefault?: boolean;
|
|
170
172
|
isShowHorizontal?: boolean;
|
|
171
173
|
defaultValue?: string[] | string | number | number[] | Record<string, any>;
|
|
174
|
+
options?: FloatingDropDownOption[];
|
|
172
175
|
}[];
|
|
173
176
|
};
|
|
174
177
|
export type RlsFilterObjectType = {
|
|
@@ -248,6 +251,10 @@ export type RlsCondition = {
|
|
|
248
251
|
value?: string | DateOptionType | string[];
|
|
249
252
|
dimensionColumn?: string;
|
|
250
253
|
measureColumn?: string;
|
|
254
|
+
client?: {
|
|
255
|
+
isEnable: boolean;
|
|
256
|
+
columnName: string;
|
|
257
|
+
};
|
|
251
258
|
};
|
|
252
259
|
export type MetricData = {
|
|
253
260
|
id: string;
|
|
@@ -65,6 +65,7 @@ export type ConstructMetricProps = {
|
|
|
65
65
|
databaseId: string;
|
|
66
66
|
datasetSettings?: DatasetSettings;
|
|
67
67
|
setDatasetSettings?: React.Dispatch<React.SetStateAction<DatasetSettings | undefined>>;
|
|
68
|
+
setGroupByList: React.Dispatch<React.SetStateAction<string[]>>;
|
|
68
69
|
};
|
|
69
70
|
export type MetricOutputProps = {
|
|
70
71
|
data: any[] | undefined;
|
|
@@ -101,14 +101,17 @@ export type ExternalMetricQueryOutput = {
|
|
|
101
101
|
__typename?: 'ExternalMetricQueryOutput';
|
|
102
102
|
comparisonValue?: Maybe<Scalars['json']>;
|
|
103
103
|
data?: Maybe<Scalars['json']>;
|
|
104
|
+
metaData?: Maybe<Scalars['json']>;
|
|
104
105
|
timeTaken?: Maybe<Scalars['Float']>;
|
|
105
106
|
totalRecords?: Maybe<Scalars['Int']>;
|
|
106
107
|
};
|
|
107
108
|
export type FetchColumnDataInput = {
|
|
108
109
|
columnName: Scalars['String'];
|
|
109
|
-
|
|
110
|
-
|
|
110
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
111
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
112
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
111
113
|
tableName: Scalars['String'];
|
|
114
|
+
wId?: InputMaybe<Scalars['String']>;
|
|
112
115
|
};
|
|
113
116
|
export type FetchColumnDataOutput = {
|
|
114
117
|
__typename?: 'FetchColumnDataOutput';
|
|
@@ -123,6 +126,7 @@ export type GenerateDatasetMetricsInput = {
|
|
|
123
126
|
export type GenerateDatasetMetricsOutput = {
|
|
124
127
|
__typename?: 'GenerateDatasetMetricsOutput';
|
|
125
128
|
error?: Maybe<Scalars['json']>;
|
|
129
|
+
metaData?: Maybe<Scalars['json']>;
|
|
126
130
|
query?: Maybe<Scalars['String']>;
|
|
127
131
|
result?: Maybe<Scalars['json']>;
|
|
128
132
|
timeTaken?: Maybe<Scalars['Float']>;
|
|
@@ -2801,7 +2805,9 @@ export type ScheduleEmailReportCharts_Bool_Exp = {
|
|
|
2801
2805
|
/** unique or primary key constraints on table "scheduleEmailReportCharts" */
|
|
2802
2806
|
export declare enum ScheduleEmailReportCharts_Constraint {
|
|
2803
2807
|
/** unique or primary key constraint on columns "id" */
|
|
2804
|
-
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
|
|
2808
|
+
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
|
|
2809
|
+
/** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
|
|
2810
|
+
ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
|
|
2805
2811
|
}
|
|
2806
2812
|
/** input type for inserting data into table "scheduleEmailReportCharts" */
|
|
2807
2813
|
export type ScheduleEmailReportCharts_Insert_Input = {
|
|
@@ -3611,8 +3617,8 @@ export type DeleteScheduledEmailMutation = {
|
|
|
3611
3617
|
export type FetchColumnDataMutationVariables = Exact<{
|
|
3612
3618
|
tableName?: InputMaybe<Scalars['String']>;
|
|
3613
3619
|
columnName?: InputMaybe<Scalars['String']>;
|
|
3614
|
-
|
|
3615
|
-
|
|
3620
|
+
wId?: InputMaybe<Scalars['String']>;
|
|
3621
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
3616
3622
|
}>;
|
|
3617
3623
|
export type FetchColumnDataMutation = {
|
|
3618
3624
|
__typename?: 'mutation_root';
|
|
@@ -3642,6 +3648,7 @@ export type GenerateDatasetMetricsMutation = {
|
|
|
3642
3648
|
query?: string | null;
|
|
3643
3649
|
result?: any | null;
|
|
3644
3650
|
timeTaken?: number | null;
|
|
3651
|
+
metaData?: any | null;
|
|
3645
3652
|
} | null;
|
|
3646
3653
|
};
|
|
3647
3654
|
export type GenerateEmbeddedMeticMutationVariables = Exact<{
|
|
@@ -3847,17 +3854,6 @@ export type ExternalMetricRawCsvUrlsQuery = {
|
|
|
3847
3854
|
requestStatus: string;
|
|
3848
3855
|
}>;
|
|
3849
3856
|
};
|
|
3850
|
-
export type GroupByColumnListMutationVariables = Exact<{
|
|
3851
|
-
databaseName?: InputMaybe<Scalars['String']>;
|
|
3852
|
-
query?: InputMaybe<Scalars['String']>;
|
|
3853
|
-
}>;
|
|
3854
|
-
export type GroupByColumnListMutation = {
|
|
3855
|
-
__typename?: 'mutation_root';
|
|
3856
|
-
groupbyColumnList?: {
|
|
3857
|
-
__typename?: 'GroupbyColumnListOutput';
|
|
3858
|
-
groupbyColumnList?: Array<string | null> | null;
|
|
3859
|
-
} | null;
|
|
3860
|
-
};
|
|
3861
3857
|
export type GuestTokenParamsQueryVariables = Exact<{
|
|
3862
3858
|
id?: InputMaybe<Scalars['uuid']>;
|
|
3863
3859
|
}>;
|
|
@@ -4058,6 +4054,7 @@ export type QueryExternalMetricQuery = {
|
|
|
4058
4054
|
data?: any | null;
|
|
4059
4055
|
timeTaken?: number | null;
|
|
4060
4056
|
totalRecords?: number | null;
|
|
4057
|
+
metaData?: any | null;
|
|
4061
4058
|
} | null;
|
|
4062
4059
|
};
|
|
4063
4060
|
export type RawCsvMutationVariables = Exact<{
|
|
@@ -4261,19 +4258,19 @@ export declare const useDeleteScheduledEmailMutation: <TError = unknown, TContex
|
|
|
4261
4258
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduledEmailMutation, TError, Exact<{
|
|
4262
4259
|
id?: InputMaybe<Scalars['uuid']>;
|
|
4263
4260
|
}>, TContext>;
|
|
4264
|
-
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $
|
|
4261
|
+
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $wId: String = \"\", $filter: json = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, wId: $wId, filter: $filter}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
|
|
4265
4262
|
export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
|
|
4266
4263
|
tableName?: InputMaybe<string> | undefined;
|
|
4267
4264
|
columnName?: InputMaybe<string> | undefined;
|
|
4268
|
-
|
|
4269
|
-
|
|
4265
|
+
wId?: InputMaybe<string> | undefined;
|
|
4266
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
4270
4267
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<FetchColumnDataMutation, TError, Exact<{
|
|
4271
4268
|
tableName?: InputMaybe<string> | undefined;
|
|
4272
4269
|
columnName?: InputMaybe<string> | undefined;
|
|
4273
|
-
|
|
4274
|
-
|
|
4270
|
+
wId?: InputMaybe<string> | undefined;
|
|
4271
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
4275
4272
|
}>, TContext>;
|
|
4276
|
-
export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($userInputs: json = \"\", $integrationName: String = \"\", $integrationId: String = \"\") {\n generateDatasetMetrics(\n input: {userInputs: $userInputs, integrationName: $integrationName, integrationId: $integrationId}\n ) {\n error\n query\n result\n timeTaken\n }\n}\n ";
|
|
4273
|
+
export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($userInputs: json = \"\", $integrationName: String = \"\", $integrationId: String = \"\") {\n generateDatasetMetrics(\n input: {userInputs: $userInputs, integrationName: $integrationName, integrationId: $integrationId}\n ) {\n error\n query\n result\n timeTaken\n metaData\n }\n}\n ";
|
|
4277
4274
|
export declare const useGenerateDatasetMetricsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateDatasetMetricsMutation, TError, Exact<{
|
|
4278
4275
|
userInputs?: InputMaybe<Scalars['json']>;
|
|
4279
4276
|
integrationName?: InputMaybe<string> | undefined;
|
|
@@ -4321,14 +4318,6 @@ export declare const ExternalDashboardListDocument = "\n query ExternalDashbo
|
|
|
4321
4318
|
export declare const useExternalDashboardListQuery: <TData = ExternalDashboardListQuery, TError = unknown>(variables?: ExternalDashboardListQueryVariables, options?: UseQueryOptions<ExternalDashboardListQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
4322
4319
|
export declare const ExternalMetricRawCsvUrlsDocument = "\n query ExternalMetricRawCsvUrls($externalMetricId: uuid = \"\") {\n externalMetricRawCsvUrls(where: {externalMetricId: {_eq: $externalMetricId}}) {\n configurations\n error\n expireUrlIn\n externalMetricId\n id\n lastUpdatedAt\n urls\n requestStatus\n }\n}\n ";
|
|
4323
4320
|
export declare const useExternalMetricRawCsvUrlsQuery: <TData = ExternalMetricRawCsvUrlsQuery, TError = unknown>(variables?: ExternalMetricRawCsvUrlsQueryVariables, options?: UseQueryOptions<ExternalMetricRawCsvUrlsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
4324
|
-
export declare const GroupByColumnListDocument = "\n mutation GroupByColumnList($databaseName: String = \"\", $query: String = \"\") {\n groupbyColumnList(input: {databaseName: $databaseName, query: $query}) {\n groupbyColumnList\n }\n}\n ";
|
|
4325
|
-
export declare const useGroupByColumnListMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GroupByColumnListMutation, TError, Exact<{
|
|
4326
|
-
databaseName?: InputMaybe<string> | undefined;
|
|
4327
|
-
query?: InputMaybe<string> | undefined;
|
|
4328
|
-
}>, TContext> | undefined) => import("react-query").UseMutationResult<GroupByColumnListMutation, TError, Exact<{
|
|
4329
|
-
databaseName?: InputMaybe<string> | undefined;
|
|
4330
|
-
query?: InputMaybe<string> | undefined;
|
|
4331
|
-
}>, TContext>;
|
|
4332
4321
|
export declare const GuestTokenParamsDocument = "\n query GuestTokenParams($id: uuid = \"\") {\n guestTokens_by_pk(id: $id) {\n clientId\n companyId\n id\n params\n }\n}\n ";
|
|
4333
4322
|
export declare const useGuestTokenParamsQuery: <TData = GuestTokenParamsQuery, TError = unknown>(variables?: GuestTokenParamsQueryVariables, options?: UseQueryOptions<GuestTokenParamsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
4334
4323
|
export declare const MetricAccessDocument = "\n query MetricAccess($workspaceId: uuid = \"\") {\n companySubsetTables(where: {workspaceId: {_eq: $workspaceId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n isAllowMetricUpdation\n isAllowChangeLayout\n }\n}\n ";
|
|
@@ -4443,7 +4432,7 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
|
|
|
4443
4432
|
integrationId?: InputMaybe<string> | undefined;
|
|
4444
4433
|
integrationName?: InputMaybe<string> | undefined;
|
|
4445
4434
|
}>, TContext>;
|
|
4446
|
-
export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\", $drillFilters: json = [], $limit: Int, $offset: Int) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel, drillFilters: $drillFilters, limit: $limit, offset: $offset}\n ) {\n data\n timeTaken\n totalRecords\n }\n}\n ";
|
|
4435
|
+
export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\", $drillFilters: json = [], $limit: Int, $offset: Int) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel, drillFilters: $drillFilters, limit: $limit, offset: $offset}\n ) {\n data\n timeTaken\n totalRecords\n metaData\n }\n}\n ";
|
|
4447
4436
|
export declare const useQueryExternalMetricQuery: <TData = QueryExternalMetricQuery, TError = unknown>(variables?: QueryExternalMetricQueryVariables, options?: UseQueryOptions<QueryExternalMetricQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
4448
4437
|
export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\", $metricName: String = \"\", $workspaceId: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery, metricName: $metricName, workspaceId: $workspaceId}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
|
|
4449
4438
|
export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
|
|
@@ -9,8 +9,9 @@ type Params = {
|
|
|
9
9
|
seriesField: string | undefined;
|
|
10
10
|
isTimeSeries: boolean;
|
|
11
11
|
selectedFormat: string | undefined;
|
|
12
|
+
fillXAxis: boolean;
|
|
12
13
|
};
|
|
13
|
-
export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, }: Params) => {
|
|
14
|
+
export declare const getChartAttributes: ({ data, measure, sankeyValues, singleValue, step, xAxis, yAxisList, seriesField, isTimeSeries, selectedFormat, fillXAxis, }: Params) => {
|
|
14
15
|
labels: string[];
|
|
15
16
|
datasets: {
|
|
16
17
|
label: string;
|