@databrainhq/plugin 0.10.0 → 0.10.1

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.
@@ -88,6 +88,7 @@ export type Error = {
88
88
  };
89
89
  export type ExternalMetricQueryInput = {
90
90
  clientId?: InputMaybe<Scalars['String']>;
91
+ drillFilters?: InputMaybe<Scalars['json']>;
91
92
  externalMetricId: Scalars['String'];
92
93
  filterValues?: InputMaybe<Scalars['json']>;
93
94
  globalFilters?: InputMaybe<Scalars['json']>;
@@ -1905,6 +1906,16 @@ export declare enum ExternalMetrics_Update_Column {
1905
1906
  /** column name */
1906
1907
  UpdatedAt = "updatedAt"
1907
1908
  }
1909
+ export type GenerateDrillQueryInput = {
1910
+ baseQuery: Scalars['String'];
1911
+ database: Scalars['String'];
1912
+ filters: Scalars['json'];
1913
+ };
1914
+ export type GenerateDrillQueryOutput = {
1915
+ __typename?: 'generateDrillQueryOutput';
1916
+ error?: Maybe<Scalars['String']>;
1917
+ modifiedQuery?: Maybe<Scalars['String']>;
1918
+ };
1908
1919
  /** columns and relationships of "guestTokens" */
1909
1920
  export type GuestTokens = {
1910
1921
  __typename?: 'guestTokens';
@@ -2003,6 +2014,7 @@ export type Mutation_Root = {
2003
2014
  embeddedMetricQuery?: Maybe<ExternalMetricQueryOutput>;
2004
2015
  fetchColumnData?: Maybe<FetchColumnDataOutput>;
2005
2016
  generateDatasetMetrics?: Maybe<GenerateDatasetMetricsOutput>;
2017
+ generateDrillQuery?: Maybe<GenerateDrillQueryOutput>;
2006
2018
  generateEmbeddedMetic?: Maybe<GenerateEmbeddedMeticOutput>;
2007
2019
  generateExternalMetricQuery?: Maybe<GenerateExternalMetricQueryOutput>;
2008
2020
  getUnderlyingData?: Maybe<GetUnderlyingDataOutput>;
@@ -2114,6 +2126,10 @@ export type Mutation_RootGenerateDatasetMetricsArgs = {
2114
2126
  input: GenerateDatasetMetricsInput;
2115
2127
  };
2116
2128
  /** mutation root */
2129
+ export type Mutation_RootGenerateDrillQueryArgs = {
2130
+ input: GenerateDrillQueryInput;
2131
+ };
2132
+ /** mutation root */
2117
2133
  export type Mutation_RootGenerateEmbeddedMeticArgs = {
2118
2134
  input: GenerateEmbeddedMeticInput;
2119
2135
  };
@@ -3564,6 +3580,7 @@ export type EmbeddedDashboardMetricsQuery = {
3564
3580
  rlsConditions: any;
3565
3581
  clickActions: any;
3566
3582
  drillDownSettings?: any | null;
3583
+ datasetMetricSettings?: any | null;
3567
3584
  companyIntegration: {
3568
3585
  __typename?: 'companyIntegrations';
3569
3586
  name: string;
@@ -3829,6 +3846,7 @@ export type QueryExternalMetricQueryVariables = Exact<{
3829
3846
  rlsConditions?: InputMaybe<Scalars['json']>;
3830
3847
  filterValues?: InputMaybe<Scalars['json']>;
3831
3848
  tenancyLevel?: InputMaybe<Scalars['String']>;
3849
+ drillFilters?: InputMaybe<Scalars['json']>;
3832
3850
  }>;
3833
3851
  export type QueryExternalMetricQuery = {
3834
3852
  __typename?: 'query_root';
@@ -4082,7 +4100,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
4082
4100
  companyId?: InputMaybe<string> | undefined;
4083
4101
  workspaceId?: InputMaybe<string> | undefined;
4084
4102
  }>, TContext>;
4085
- export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {isArchived: {_eq: false}, isMarkedDeleted: {_eq: false}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n resizeAttributes\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n }\n }\n}\n ";
4103
+ export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {isArchived: {_eq: false}, isMarkedDeleted: {_eq: false}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n resizeAttributes\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n datasetMetricSettings\n }\n }\n}\n ";
4086
4104
  export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
4087
4105
  export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
4088
4106
  export declare const useGetExternalDashboardClientThemeQuery: <TData = GetExternalDashboardClientThemeQuery, TError = unknown>(variables: GetExternalDashboardClientThemeQueryVariables, options?: UseQueryOptions<GetExternalDashboardClientThemeQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
@@ -4206,7 +4224,7 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
4206
4224
  integrationId?: InputMaybe<string> | undefined;
4207
4225
  integrationName?: InputMaybe<string> | undefined;
4208
4226
  }>, TContext>;
4209
- export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\") {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel}\n ) {\n data\n timeTaken\n }\n}\n ";
4227
+ export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\", $drillFilters: json = []) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel, drillFilters: $drillFilters}\n ) {\n data\n timeTaken\n }\n}\n ";
4210
4228
  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>;
4211
4229
  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 ";
4212
4230
  export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",