@databrainhq/plugin 0.11.24 → 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 +6 -2
- package/dist/components/MetricFilterDropDown/index.d.ts +2 -1
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +1 -2
- package/dist/types/app.d.ts +5 -0
- package/dist/utils/generated/graphql.d.ts +5 -7
- package/dist/webcomponents.es.js +7829 -7744
- package/dist/webcomponents.umd.js +114 -114
- package/package.json +1 -1
|
@@ -5,7 +5,11 @@ export type FilterDropDownProps = Omit<FloatingDropDownProps, 'options' | 'isDis
|
|
|
5
5
|
filter: Pick<RlsFilterObjectType, 'columnName' | 'tableName' | 'defaultValue' | 'value'>;
|
|
6
6
|
autoSelected?: boolean;
|
|
7
7
|
workspaceId: string;
|
|
8
|
+
filterClause?: {
|
|
9
|
+
columnName?: string;
|
|
10
|
+
value?: string;
|
|
11
|
+
};
|
|
8
12
|
};
|
|
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
|
+
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'>;
|
|
11
15
|
export declare const MultiFilterDropdown: React.FC<MultiFilterDropDownProps>;
|
|
@@ -4,6 +4,7 @@ type Props = {
|
|
|
4
4
|
rlsConditions?: RlsCondition;
|
|
5
5
|
onChangeFilterValue?: (name: string, value: string, customValue?: Record<string, Date>, stringValues?: FloatingDropDownOption[]) => void;
|
|
6
6
|
workspaceId: string;
|
|
7
|
+
clientId?: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, }: Props) => React.JSX.Element;
|
|
9
|
+
export declare const MetricFilterDropDown: ({ rlsConditions, onChangeFilterValue, workspaceId, clientId, }: Props) => React.JSX.Element;
|
|
9
10
|
export default MetricFilterDropDown;
|
|
@@ -9,8 +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
|
-
integrationId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
13
|
-
integrationName?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
14
12
|
wId?: import("@/utils/generated/graphql").InputMaybe<string> | undefined;
|
|
13
|
+
filter?: any;
|
|
15
14
|
}>, unknown>;
|
|
16
15
|
};
|
package/dist/types/app.d.ts
CHANGED
|
@@ -83,6 +83,7 @@ export type TableSettings = {
|
|
|
83
83
|
contentAlignment?: string;
|
|
84
84
|
lineGap?: string;
|
|
85
85
|
hideVerticalDivider?: boolean;
|
|
86
|
+
badgeColumns?: string[];
|
|
86
87
|
enableStripedRows?: boolean;
|
|
87
88
|
showRowHover?: boolean;
|
|
88
89
|
showTableTitle?: boolean;
|
|
@@ -250,6 +251,10 @@ export type RlsCondition = {
|
|
|
250
251
|
value?: string | DateOptionType | string[];
|
|
251
252
|
dimensionColumn?: string;
|
|
252
253
|
measureColumn?: string;
|
|
254
|
+
client?: {
|
|
255
|
+
isEnable: boolean;
|
|
256
|
+
columnName: string;
|
|
257
|
+
};
|
|
253
258
|
};
|
|
254
259
|
export type MetricData = {
|
|
255
260
|
id: string;
|
|
@@ -107,6 +107,7 @@ export type ExternalMetricQueryOutput = {
|
|
|
107
107
|
};
|
|
108
108
|
export type FetchColumnDataInput = {
|
|
109
109
|
columnName: Scalars['String'];
|
|
110
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
110
111
|
integrationId?: InputMaybe<Scalars['String']>;
|
|
111
112
|
integrationName?: InputMaybe<Scalars['String']>;
|
|
112
113
|
tableName: Scalars['String'];
|
|
@@ -3616,9 +3617,8 @@ export type DeleteScheduledEmailMutation = {
|
|
|
3616
3617
|
export type FetchColumnDataMutationVariables = Exact<{
|
|
3617
3618
|
tableName?: InputMaybe<Scalars['String']>;
|
|
3618
3619
|
columnName?: InputMaybe<Scalars['String']>;
|
|
3619
|
-
integrationId?: InputMaybe<Scalars['String']>;
|
|
3620
|
-
integrationName?: InputMaybe<Scalars['String']>;
|
|
3621
3620
|
wId?: InputMaybe<Scalars['String']>;
|
|
3621
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
3622
3622
|
}>;
|
|
3623
3623
|
export type FetchColumnDataMutation = {
|
|
3624
3624
|
__typename?: 'mutation_root';
|
|
@@ -4258,19 +4258,17 @@ export declare const useDeleteScheduledEmailMutation: <TError = unknown, TContex
|
|
|
4258
4258
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduledEmailMutation, TError, Exact<{
|
|
4259
4259
|
id?: InputMaybe<Scalars['uuid']>;
|
|
4260
4260
|
}>, TContext>;
|
|
4261
|
-
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 ";
|
|
4262
4262
|
export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
|
|
4263
4263
|
tableName?: InputMaybe<string> | undefined;
|
|
4264
4264
|
columnName?: InputMaybe<string> | undefined;
|
|
4265
|
-
integrationId?: InputMaybe<string> | undefined;
|
|
4266
|
-
integrationName?: InputMaybe<string> | undefined;
|
|
4267
4265
|
wId?: InputMaybe<string> | undefined;
|
|
4266
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
4268
4267
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<FetchColumnDataMutation, TError, Exact<{
|
|
4269
4268
|
tableName?: InputMaybe<string> | undefined;
|
|
4270
4269
|
columnName?: InputMaybe<string> | undefined;
|
|
4271
|
-
integrationId?: InputMaybe<string> | undefined;
|
|
4272
|
-
integrationName?: InputMaybe<string> | undefined;
|
|
4273
4270
|
wId?: InputMaybe<string> | undefined;
|
|
4271
|
+
filter?: InputMaybe<Scalars['json']>;
|
|
4274
4272
|
}>, TContext>;
|
|
4275
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 ";
|
|
4276
4274
|
export declare const useGenerateDatasetMetricsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateDatasetMetricsMutation, TError, Exact<{
|