@databrainhq/plugin 0.10.6 → 0.10.7

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.
@@ -61,7 +61,13 @@ export type CustomSettings = {
61
61
  axisLabels?: string;
62
62
  fontSize?: number;
63
63
  subHeaderShow?: boolean;
64
+ comparisonValueShow?: boolean;
64
65
  displayText?: string;
66
+ comparisonTimeColumn?: string;
67
+ comparisonTimePeriod?: number;
68
+ comparisonTimeGrain?: string;
69
+ comparisonTableName?: string;
70
+ comparisonValueFontSize?: number;
65
71
  subHeaderFontSize?: number;
66
72
  dateFormatter?: string;
67
73
  numberFormatter?: string;
@@ -97,6 +97,7 @@ export type ExternalMetricQueryInput = {
97
97
  };
98
98
  export type ExternalMetricQueryOutput = {
99
99
  __typename?: 'ExternalMetricQueryOutput';
100
+ comparisonValue?: Maybe<Scalars['json']>;
100
101
  data?: Maybe<Scalars['json']>;
101
102
  timeTaken?: Maybe<Scalars['Float']>;
102
103
  };
@@ -2700,7 +2701,9 @@ export type ScheduleEmailReportCharts_Bool_Exp = {
2700
2701
  /** unique or primary key constraints on table "scheduleEmailReportCharts" */
2701
2702
  export declare enum ScheduleEmailReportCharts_Constraint {
2702
2703
  /** unique or primary key constraint on columns "id" */
2703
- ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
2704
+ ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
2705
+ /** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
2706
+ ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
2704
2707
  }
2705
2708
  /** input type for inserting data into table "scheduleEmailReportCharts" */
2706
2709
  export type ScheduleEmailReportCharts_Insert_Input = {
@@ -3854,6 +3857,7 @@ export type QueryExternalMetricQuery = {
3854
3857
  __typename?: 'ExternalMetricQueryOutput';
3855
3858
  data?: any | null;
3856
3859
  timeTaken?: number | null;
3860
+ comparisonValue?: any | null;
3857
3861
  } | null;
3858
3862
  };
3859
3863
  export type RawCsvMutationVariables = Exact<{
@@ -4224,7 +4228,7 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
4224
4228
  integrationId?: InputMaybe<string> | undefined;
4225
4229
  integrationName?: InputMaybe<string> | undefined;
4226
4230
  }>, TContext>;
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 ";
4231
+ 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 comparisonValue\n }\n}\n ";
4228
4232
  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>;
4229
4233
  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 ";
4230
4234
  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.6",
3
+ "version": "0.10.7",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",