@databrainhq/plugin 0.11.23 → 0.11.24
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 +3 -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 +2 -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 +1 -0
- package/dist/types/app.d.ts +2 -0
- package/dist/types/metricCreate.d.ts +1 -0
- package/dist/utils/generated/graphql.d.ts +16 -25
- package/dist/utils/getChartAttributes.d.ts +2 -1
- package/dist/webcomponents.es.js +22009 -21875
- package/dist/webcomponents.umd.js +142 -157
- package/package.json +1 -1
- package/dist/hooks/useSqlMetadata.d.ts +0 -10
|
@@ -2,12 +2,10 @@ 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
|
-
integrationName: string;
|
|
7
|
+
workspaceId: string;
|
|
10
8
|
};
|
|
11
|
-
export declare const FilterDropDown: ({
|
|
12
|
-
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | '
|
|
9
|
+
export declare const FilterDropDown: ({ filter, onChange, selectedOption, autoSelected, workspaceId, ...rest }: FilterDropDownProps) => React.JSX.Element;
|
|
10
|
+
export type MultiFilterDropDownProps = Pick<FilterDropDownProps, 'autoSelected' | 'filter' | 'label' | 'workspaceId'> & Omit<MultiFloatingDropDownProps, 'options' | 'isDisabled'>;
|
|
13
11
|
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,7 @@ 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
|
-
integrationId: string;
|
|
8
|
-
integrationName: string;
|
|
6
|
+
workspaceId: string;
|
|
9
7
|
};
|
|
10
|
-
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue,
|
|
8
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, }: Props) => React.JSX.Element;
|
|
11
9
|
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
|
@@ -11,5 +11,6 @@ export declare const useGenerateDatasetMetrics: () => {
|
|
|
11
11
|
columnName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
12
12
|
integrationId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
13
13
|
integrationName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
14
|
+
wId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
14
15
|
}>, unknown>;
|
|
15
16
|
};
|
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 = {
|
|
@@ -169,6 +170,7 @@ export type Schema = {
|
|
|
169
170
|
isDefault?: boolean;
|
|
170
171
|
isShowHorizontal?: boolean;
|
|
171
172
|
defaultValue?: string[] | string | number | number[] | Record<string, any>;
|
|
173
|
+
options?: FloatingDropDownOption[];
|
|
172
174
|
}[];
|
|
173
175
|
};
|
|
174
176
|
export type RlsFilterObjectType = {
|
|
@@ -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,16 @@ 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
|
-
integrationId
|
|
110
|
-
integrationName
|
|
110
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
111
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
111
112
|
tableName: Scalars['String'];
|
|
113
|
+
wId?: InputMaybe<Scalars['String']>;
|
|
112
114
|
};
|
|
113
115
|
export type FetchColumnDataOutput = {
|
|
114
116
|
__typename?: 'FetchColumnDataOutput';
|
|
@@ -123,6 +125,7 @@ export type GenerateDatasetMetricsInput = {
|
|
|
123
125
|
export type GenerateDatasetMetricsOutput = {
|
|
124
126
|
__typename?: 'GenerateDatasetMetricsOutput';
|
|
125
127
|
error?: Maybe<Scalars['json']>;
|
|
128
|
+
metaData?: Maybe<Scalars['json']>;
|
|
126
129
|
query?: Maybe<Scalars['String']>;
|
|
127
130
|
result?: Maybe<Scalars['json']>;
|
|
128
131
|
timeTaken?: Maybe<Scalars['Float']>;
|
|
@@ -2801,7 +2804,9 @@ export type ScheduleEmailReportCharts_Bool_Exp = {
|
|
|
2801
2804
|
/** unique or primary key constraints on table "scheduleEmailReportCharts" */
|
|
2802
2805
|
export declare enum ScheduleEmailReportCharts_Constraint {
|
|
2803
2806
|
/** unique or primary key constraint on columns "id" */
|
|
2804
|
-
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
|
|
2807
|
+
ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
|
|
2808
|
+
/** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
|
|
2809
|
+
ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
|
|
2805
2810
|
}
|
|
2806
2811
|
/** input type for inserting data into table "scheduleEmailReportCharts" */
|
|
2807
2812
|
export type ScheduleEmailReportCharts_Insert_Input = {
|
|
@@ -3613,6 +3618,7 @@ export type FetchColumnDataMutationVariables = Exact<{
|
|
|
3613
3618
|
columnName?: InputMaybe<Scalars['String']>;
|
|
3614
3619
|
integrationId?: InputMaybe<Scalars['String']>;
|
|
3615
3620
|
integrationName?: InputMaybe<Scalars['String']>;
|
|
3621
|
+
wId?: InputMaybe<Scalars['String']>;
|
|
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,21 @@ 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 = \"\", $integrationId: String = \"\", $integrationName: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName,
|
|
4261
|
+
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $wId: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, wId: $wId}\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
4265
|
integrationId?: InputMaybe<string> | undefined;
|
|
4269
4266
|
integrationName?: InputMaybe<string> | undefined;
|
|
4267
|
+
wId?: InputMaybe<string> | undefined;
|
|
4270
4268
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<FetchColumnDataMutation, TError, Exact<{
|
|
4271
4269
|
tableName?: InputMaybe<string> | undefined;
|
|
4272
4270
|
columnName?: InputMaybe<string> | undefined;
|
|
4273
4271
|
integrationId?: InputMaybe<string> | undefined;
|
|
4274
4272
|
integrationName?: InputMaybe<string> | undefined;
|
|
4273
|
+
wId?: InputMaybe<string> | undefined;
|
|
4275
4274
|
}>, 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 ";
|
|
4275
|
+
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
4276
|
export declare const useGenerateDatasetMetricsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateDatasetMetricsMutation, TError, Exact<{
|
|
4278
4277
|
userInputs?: InputMaybe<Scalars['json']>;
|
|
4279
4278
|
integrationName?: InputMaybe<string> | undefined;
|
|
@@ -4321,14 +4320,6 @@ export declare const ExternalDashboardListDocument = "\n query ExternalDashbo
|
|
|
4321
4320
|
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
4321
|
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
4322
|
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
4323
|
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
4324
|
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
4325
|
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 +4434,7 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
|
|
|
4443
4434
|
integrationId?: InputMaybe<string> | undefined;
|
|
4444
4435
|
integrationName?: InputMaybe<string> | undefined;
|
|
4445
4436
|
}>, 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 ";
|
|
4437
|
+
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
4438
|
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
4439
|
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
4440
|
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;
|