@databrainhq/plugin 0.7.5 → 0.7.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.
- package/dist/components/Charts/AreaChart.d.ts +1 -1
- package/dist/components/Charts/BarChart.d.ts +3 -1
- package/dist/components/Charts/BoxPlot.d.ts +1 -1
- package/dist/components/Charts/BubbleChart.d.ts +1 -1
- package/dist/components/Charts/ComboChart.d.ts +1 -1
- package/dist/components/Charts/DoughnutChart.d.ts +1 -1
- package/dist/components/Charts/FunnelChart.d.ts +1 -1
- package/dist/components/Charts/GaugeChart.d.ts +1 -1
- package/dist/components/Charts/Histogram.d.ts +1 -1
- package/dist/components/Charts/LineChart.d.ts +3 -1
- package/dist/components/Charts/PieChart.d.ts +1 -1
- package/dist/components/Charts/RowChart.d.ts +1 -1
- package/dist/components/Charts/SankeyChart.d.ts +1 -1
- package/dist/components/Charts/ScatterChart.d.ts +1 -1
- package/dist/components/Charts/SingleValueChart/index.d.ts +1 -1
- package/dist/components/Charts/StackedBarChart.d.ts +1 -1
- package/dist/components/Charts/SteppedAreaChart.d.ts +1 -1
- package/dist/components/Charts/Table/TableChart.d.ts +1 -1
- package/dist/components/Charts/WaterfallChart.d.ts +1 -1
- package/dist/components/MetricChart/MetricChart.d.ts +3 -1
- package/dist/helpers/cardActions.d.ts +4 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/index.es.js +550 -245
- package/dist/index.umd.js +58 -57
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +16 -0
- package/dist/utils/generated/graphql.d.ts +51 -1
- package/package.json +1 -1
|
@@ -111,4 +111,20 @@ export declare type CompanyIntegration = {
|
|
|
111
111
|
id: string;
|
|
112
112
|
name: string;
|
|
113
113
|
} | undefined;
|
|
114
|
+
export declare type ClickActionsConfig = {
|
|
115
|
+
card: {
|
|
116
|
+
isEnable: boolean;
|
|
117
|
+
baseUrl: string;
|
|
118
|
+
dynamic: string;
|
|
119
|
+
route: string;
|
|
120
|
+
routeType: string;
|
|
121
|
+
};
|
|
122
|
+
chart: {
|
|
123
|
+
isEnable: boolean;
|
|
124
|
+
baseUrl: string;
|
|
125
|
+
dynamic: string;
|
|
126
|
+
route: string;
|
|
127
|
+
routeType: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
114
130
|
export {};
|
|
@@ -45,6 +45,24 @@ export declare type ColumnDataError = {
|
|
|
45
45
|
__typename?: 'ColumnDataError';
|
|
46
46
|
message: Scalars['String'];
|
|
47
47
|
};
|
|
48
|
+
export declare type EmbeddedDashboardDataInput = {
|
|
49
|
+
token: Scalars['String'];
|
|
50
|
+
};
|
|
51
|
+
export declare type EmbeddedDashboardDataOutput = {
|
|
52
|
+
__typename?: 'EmbeddedDashboardDataOutput';
|
|
53
|
+
clientId?: Maybe<Scalars['String']>;
|
|
54
|
+
companyId?: Maybe<Scalars['String']>;
|
|
55
|
+
companyTenancyType?: Maybe<Scalars['String']>;
|
|
56
|
+
dashboardFilters?: Maybe<Scalars['json']>;
|
|
57
|
+
error?: Maybe<Error>;
|
|
58
|
+
externalDashboardId?: Maybe<Scalars['String']>;
|
|
59
|
+
externalMetrics?: Maybe<Array<Maybe<Scalars['json']>>>;
|
|
60
|
+
guestToken?: Maybe<Scalars['String']>;
|
|
61
|
+
isAllowedToCreateMetrics?: Maybe<Scalars['Boolean']>;
|
|
62
|
+
isLive?: Maybe<Scalars['Boolean']>;
|
|
63
|
+
isTestKey?: Maybe<Scalars['Boolean']>;
|
|
64
|
+
rlsSettings?: Maybe<Scalars['json']>;
|
|
65
|
+
};
|
|
48
66
|
export declare type Error = {
|
|
49
67
|
__typename?: 'Error';
|
|
50
68
|
message: Scalars['String'];
|
|
@@ -528,6 +546,7 @@ export declare enum ExternalDashboards_Select_Column {
|
|
|
528
546
|
export declare type ExternalMetrics = {
|
|
529
547
|
__typename?: 'externalMetrics';
|
|
530
548
|
chartOptions: Scalars['jsonb'];
|
|
549
|
+
clickActions: Scalars['json'];
|
|
531
550
|
clientId?: Maybe<Scalars['String']>;
|
|
532
551
|
companyId: Scalars['uuid'];
|
|
533
552
|
/** An object relationship */
|
|
@@ -563,6 +582,10 @@ export declare type ExternalMetricsChartOptionsArgs = {
|
|
|
563
582
|
path?: InputMaybe<Scalars['String']>;
|
|
564
583
|
};
|
|
565
584
|
/** extrnal metrics table for users client-based query */
|
|
585
|
+
export declare type ExternalMetricsClickActionsArgs = {
|
|
586
|
+
path?: InputMaybe<Scalars['String']>;
|
|
587
|
+
};
|
|
588
|
+
/** extrnal metrics table for users client-based query */
|
|
566
589
|
export declare type ExternalMetricsExternalDashboardMetricsArgs = {
|
|
567
590
|
distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
|
|
568
591
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -699,6 +722,7 @@ export declare type ExternalMetrics_Bool_Exp = {
|
|
|
699
722
|
_not?: InputMaybe<ExternalMetrics_Bool_Exp>;
|
|
700
723
|
_or?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
|
|
701
724
|
chartOptions?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
725
|
+
clickActions?: InputMaybe<Json_Comparison_Exp>;
|
|
702
726
|
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
703
727
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
704
728
|
companyIntegration?: InputMaybe<CompanyIntegrations_Bool_Exp>;
|
|
@@ -819,6 +843,7 @@ export declare type ExternalMetrics_On_Conflict = {
|
|
|
819
843
|
/** Ordering options when selecting data from "externalMetrics". */
|
|
820
844
|
export declare type ExternalMetrics_Order_By = {
|
|
821
845
|
chartOptions?: InputMaybe<Order_By>;
|
|
846
|
+
clickActions?: InputMaybe<Order_By>;
|
|
822
847
|
clientId?: InputMaybe<Order_By>;
|
|
823
848
|
companyId?: InputMaybe<Order_By>;
|
|
824
849
|
companyIntegration?: InputMaybe<CompanyIntegrations_Order_By>;
|
|
@@ -851,6 +876,8 @@ export declare enum ExternalMetrics_Select_Column {
|
|
|
851
876
|
/** column name */
|
|
852
877
|
ChartOptions = "chartOptions",
|
|
853
878
|
/** column name */
|
|
879
|
+
ClickActions = "clickActions",
|
|
880
|
+
/** column name */
|
|
854
881
|
ClientId = "clientId",
|
|
855
882
|
/** column name */
|
|
856
883
|
CompanyId = "companyId",
|
|
@@ -942,6 +969,18 @@ export declare enum GuestTokens_Select_Column {
|
|
|
942
969
|
/** column name */
|
|
943
970
|
Params = "params"
|
|
944
971
|
}
|
|
972
|
+
/** Boolean expression to compare columns of type "json". All fields are combined with logical 'AND'. */
|
|
973
|
+
export declare type Json_Comparison_Exp = {
|
|
974
|
+
_eq?: InputMaybe<Scalars['json']>;
|
|
975
|
+
_gt?: InputMaybe<Scalars['json']>;
|
|
976
|
+
_gte?: InputMaybe<Scalars['json']>;
|
|
977
|
+
_in?: InputMaybe<Array<Scalars['json']>>;
|
|
978
|
+
_is_null?: InputMaybe<Scalars['Boolean']>;
|
|
979
|
+
_lt?: InputMaybe<Scalars['json']>;
|
|
980
|
+
_lte?: InputMaybe<Scalars['json']>;
|
|
981
|
+
_neq?: InputMaybe<Scalars['json']>;
|
|
982
|
+
_nin?: InputMaybe<Array<Scalars['json']>>;
|
|
983
|
+
};
|
|
945
984
|
export declare type Jsonb_Cast_Exp = {
|
|
946
985
|
String?: InputMaybe<String_Comparison_Exp>;
|
|
947
986
|
};
|
|
@@ -972,6 +1011,8 @@ export declare type Jsonb_Comparison_Exp = {
|
|
|
972
1011
|
export declare type Mutation_Root = {
|
|
973
1012
|
__typename?: 'mutation_root';
|
|
974
1013
|
companySubsetTableData?: Maybe<CompanySubsetTableDataOutput>;
|
|
1014
|
+
embeddedDashboardData?: Maybe<EmbeddedDashboardDataOutput>;
|
|
1015
|
+
embeddedMetricQuery?: Maybe<ExternalMetricQueryOutput>;
|
|
975
1016
|
fetchColumnData?: Maybe<FetchColumnDataOutput>;
|
|
976
1017
|
generateDatasetMetrics?: Maybe<GenerateDatasetMetricsOutput>;
|
|
977
1018
|
generateEmbeddedMetic?: Maybe<GenerateEmbeddedMeticOutput>;
|
|
@@ -995,6 +1036,14 @@ export declare type Mutation_RootCompanySubsetTableDataArgs = {
|
|
|
995
1036
|
input: CompanySubsetTableDataInput;
|
|
996
1037
|
};
|
|
997
1038
|
/** mutation root */
|
|
1039
|
+
export declare type Mutation_RootEmbeddedDashboardDataArgs = {
|
|
1040
|
+
input: EmbeddedDashboardDataInput;
|
|
1041
|
+
};
|
|
1042
|
+
/** mutation root */
|
|
1043
|
+
export declare type Mutation_RootEmbeddedMetricQueryArgs = {
|
|
1044
|
+
input: ExternalMetricQueryInput;
|
|
1045
|
+
};
|
|
1046
|
+
/** mutation root */
|
|
998
1047
|
export declare type Mutation_RootFetchColumnDataArgs = {
|
|
999
1048
|
input: FetchColumnDataInput;
|
|
1000
1049
|
};
|
|
@@ -1482,6 +1531,7 @@ export declare type EmbeddedDashboardMetricsQuery = {
|
|
|
1482
1531
|
isEnableGroupBy: boolean;
|
|
1483
1532
|
groupBy: any;
|
|
1484
1533
|
rlsConditions: any;
|
|
1534
|
+
clickActions: any;
|
|
1485
1535
|
companyIntegration: {
|
|
1486
1536
|
__typename?: 'companyIntegrations';
|
|
1487
1537
|
name: string;
|
|
@@ -1668,7 +1718,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
|
|
|
1668
1718
|
clientId?: InputMaybe<string> | undefined;
|
|
1669
1719
|
companyId?: InputMaybe<string> | undefined;
|
|
1670
1720
|
}>, TContext>;
|
|
1671
|
-
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($where: externalDashboardMetrics_bool_exp) {\n externalDashboardMetrics(where: $where) {\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 resizeAttributes\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n }\n }\n}\n ";
|
|
1721
|
+
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($where: externalDashboardMetrics_bool_exp) {\n externalDashboardMetrics(where: $where) {\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 resizeAttributes\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n clickActions\n }\n }\n}\n ";
|
|
1672
1722
|
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>;
|
|
1673
1723
|
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 ";
|
|
1674
1724
|
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>;
|