@databrainhq/plugin 0.7.24 → 0.8.0
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/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/DeleteMetricModal.d.ts +7 -0
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -0
- package/dist/components/MetricList/index.d.ts +1 -0
- package/dist/components/ToggleButton/index.d.ts +1 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/index.es.js +251 -84
- package/dist/index.umd.js +65 -55
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +57 -7
- package/package.json +1 -1
|
@@ -59,6 +59,7 @@ export declare type EmbeddedDashboardDataOutput = {
|
|
|
59
59
|
externalMetrics?: Maybe<Array<Maybe<Scalars['json']>>>;
|
|
60
60
|
guestToken?: Maybe<Scalars['String']>;
|
|
61
61
|
isAllowedToCreateMetrics?: Maybe<Scalars['Boolean']>;
|
|
62
|
+
isAllowedToDeleteMetrics?: Maybe<Scalars['Boolean']>;
|
|
62
63
|
isLive?: Maybe<Scalars['Boolean']>;
|
|
63
64
|
isTestKey?: Maybe<Scalars['Boolean']>;
|
|
64
65
|
rlsSettings?: Maybe<Scalars['json']>;
|
|
@@ -253,6 +254,7 @@ export declare type CompanySubsetTables = {
|
|
|
253
254
|
__typename?: 'companySubsetTables';
|
|
254
255
|
companyId: Scalars['uuid'];
|
|
255
256
|
isAllowMetricCreation: Scalars['Boolean'];
|
|
257
|
+
isAllowMetricDeletion: Scalars['Boolean'];
|
|
256
258
|
tableList: Scalars['jsonb'];
|
|
257
259
|
};
|
|
258
260
|
/** subset of tables of user database */
|
|
@@ -266,12 +268,14 @@ export declare type CompanySubsetTables_Bool_Exp = {
|
|
|
266
268
|
_or?: InputMaybe<Array<CompanySubsetTables_Bool_Exp>>;
|
|
267
269
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
268
270
|
isAllowMetricCreation?: InputMaybe<Boolean_Comparison_Exp>;
|
|
271
|
+
isAllowMetricDeletion?: InputMaybe<Boolean_Comparison_Exp>;
|
|
269
272
|
tableList?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
270
273
|
};
|
|
271
274
|
/** Ordering options when selecting data from "companySubsetTables". */
|
|
272
275
|
export declare type CompanySubsetTables_Order_By = {
|
|
273
276
|
companyId?: InputMaybe<Order_By>;
|
|
274
277
|
isAllowMetricCreation?: InputMaybe<Order_By>;
|
|
278
|
+
isAllowMetricDeletion?: InputMaybe<Order_By>;
|
|
275
279
|
tableList?: InputMaybe<Order_By>;
|
|
276
280
|
};
|
|
277
281
|
/** select columns of table "companySubsetTables" */
|
|
@@ -281,6 +285,8 @@ export declare enum CompanySubsetTables_Select_Column {
|
|
|
281
285
|
/** column name */
|
|
282
286
|
IsAllowMetricCreation = "isAllowMetricCreation",
|
|
283
287
|
/** column name */
|
|
288
|
+
IsAllowMetricDeletion = "isAllowMetricDeletion",
|
|
289
|
+
/** column name */
|
|
284
290
|
TableList = "tableList"
|
|
285
291
|
}
|
|
286
292
|
/** columns and relationships of "externalDashboardMetrics" */
|
|
@@ -567,6 +573,7 @@ export declare type ExternalMetrics = {
|
|
|
567
573
|
isCreatedByClient: Scalars['Boolean'];
|
|
568
574
|
isEnableGroupBy: Scalars['Boolean'];
|
|
569
575
|
isLive: Scalars['Boolean'];
|
|
576
|
+
isMarkedDeleted: Scalars['Boolean'];
|
|
570
577
|
metricId: Scalars['String'];
|
|
571
578
|
metricQuery?: Maybe<Scalars['String']>;
|
|
572
579
|
name: Scalars['String'];
|
|
@@ -740,6 +747,7 @@ export declare type ExternalMetrics_Bool_Exp = {
|
|
|
740
747
|
isCreatedByClient?: InputMaybe<Boolean_Comparison_Exp>;
|
|
741
748
|
isEnableGroupBy?: InputMaybe<Boolean_Comparison_Exp>;
|
|
742
749
|
isLive?: InputMaybe<Boolean_Comparison_Exp>;
|
|
750
|
+
isMarkedDeleted?: InputMaybe<Boolean_Comparison_Exp>;
|
|
743
751
|
metricId?: InputMaybe<String_Comparison_Exp>;
|
|
744
752
|
metricQuery?: InputMaybe<String_Comparison_Exp>;
|
|
745
753
|
name?: InputMaybe<String_Comparison_Exp>;
|
|
@@ -861,6 +869,7 @@ export declare type ExternalMetrics_Order_By = {
|
|
|
861
869
|
isCreatedByClient?: InputMaybe<Order_By>;
|
|
862
870
|
isEnableGroupBy?: InputMaybe<Order_By>;
|
|
863
871
|
isLive?: InputMaybe<Order_By>;
|
|
872
|
+
isMarkedDeleted?: InputMaybe<Order_By>;
|
|
864
873
|
metricId?: InputMaybe<Order_By>;
|
|
865
874
|
metricQuery?: InputMaybe<Order_By>;
|
|
866
875
|
name?: InputMaybe<Order_By>;
|
|
@@ -872,6 +881,10 @@ export declare type ExternalMetrics_Order_By = {
|
|
|
872
881
|
timeGrain?: InputMaybe<Order_By>;
|
|
873
882
|
updatedAt?: InputMaybe<Order_By>;
|
|
874
883
|
};
|
|
884
|
+
/** primary key columns input for table: externalMetrics */
|
|
885
|
+
export declare type ExternalMetrics_Pk_Columns_Input = {
|
|
886
|
+
id: Scalars['uuid'];
|
|
887
|
+
};
|
|
875
888
|
/** select columns of table "externalMetrics" */
|
|
876
889
|
export declare enum ExternalMetrics_Select_Column {
|
|
877
890
|
/** column name */
|
|
@@ -905,6 +918,8 @@ export declare enum ExternalMetrics_Select_Column {
|
|
|
905
918
|
/** column name */
|
|
906
919
|
IsLive = "isLive",
|
|
907
920
|
/** column name */
|
|
921
|
+
IsMarkedDeleted = "isMarkedDeleted",
|
|
922
|
+
/** column name */
|
|
908
923
|
MetricId = "metricId",
|
|
909
924
|
/** column name */
|
|
910
925
|
MetricQuery = "metricQuery",
|
|
@@ -925,10 +940,14 @@ export declare enum ExternalMetrics_Select_Column {
|
|
|
925
940
|
/** column name */
|
|
926
941
|
UpdatedAt = "updatedAt"
|
|
927
942
|
}
|
|
928
|
-
/**
|
|
943
|
+
/** input type for updating data in table "externalMetrics" */
|
|
944
|
+
export declare type ExternalMetrics_Set_Input = {
|
|
945
|
+
isMarkedDeleted?: InputMaybe<Scalars['Boolean']>;
|
|
946
|
+
};
|
|
947
|
+
/** update columns of table "externalMetrics" */
|
|
929
948
|
export declare enum ExternalMetrics_Update_Column {
|
|
930
|
-
/**
|
|
931
|
-
|
|
949
|
+
/** column name */
|
|
950
|
+
IsMarkedDeleted = "isMarkedDeleted"
|
|
932
951
|
}
|
|
933
952
|
/** columns and relationships of "guestTokens" */
|
|
934
953
|
export declare type GuestTokens = {
|
|
@@ -1031,6 +1050,10 @@ export declare type Mutation_Root = {
|
|
|
1031
1050
|
/** insert a single row into the table: "externalMetrics" */
|
|
1032
1051
|
insert_externalMetrics_one?: Maybe<ExternalMetrics>;
|
|
1033
1052
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
1053
|
+
/** update data of the table: "externalMetrics" */
|
|
1054
|
+
update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1055
|
+
/** update single row of the table: "externalMetrics" */
|
|
1056
|
+
update_externalMetrics_by_pk?: Maybe<ExternalMetrics>;
|
|
1034
1057
|
};
|
|
1035
1058
|
/** mutation root */
|
|
1036
1059
|
export declare type Mutation_RootCompanySubsetTableDataArgs = {
|
|
@@ -1094,6 +1117,16 @@ export declare type Mutation_RootInsert_ExternalMetrics_OneArgs = {
|
|
|
1094
1117
|
export declare type Mutation_RootPreviewTableArgs = {
|
|
1095
1118
|
input: PreviewTableInput;
|
|
1096
1119
|
};
|
|
1120
|
+
/** mutation root */
|
|
1121
|
+
export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
|
|
1122
|
+
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1123
|
+
where: ExternalMetrics_Bool_Exp;
|
|
1124
|
+
};
|
|
1125
|
+
/** mutation root */
|
|
1126
|
+
export declare type Mutation_RootUpdate_ExternalMetrics_By_PkArgs = {
|
|
1127
|
+
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1128
|
+
pk_columns: ExternalMetrics_Pk_Columns_Input;
|
|
1129
|
+
};
|
|
1097
1130
|
/** column ordering options */
|
|
1098
1131
|
export declare enum Order_By {
|
|
1099
1132
|
/** in ascending order, nulls last */
|
|
@@ -1690,14 +1723,15 @@ export declare type GuestTokenParamsQuery = {
|
|
|
1690
1723
|
params: any;
|
|
1691
1724
|
} | null;
|
|
1692
1725
|
};
|
|
1693
|
-
export declare type
|
|
1726
|
+
export declare type MetricAccessQueryVariables = Exact<{
|
|
1694
1727
|
companyId?: InputMaybe<Scalars['uuid']>;
|
|
1695
1728
|
}>;
|
|
1696
|
-
export declare type
|
|
1729
|
+
export declare type MetricAccessQuery = {
|
|
1697
1730
|
__typename?: 'query_root';
|
|
1698
1731
|
companySubsetTables: Array<{
|
|
1699
1732
|
__typename?: 'companySubsetTables';
|
|
1700
1733
|
isAllowMetricCreation: boolean;
|
|
1734
|
+
isAllowMetricDeletion: boolean;
|
|
1701
1735
|
}>;
|
|
1702
1736
|
};
|
|
1703
1737
|
export declare type GetThemesQueryVariables = Exact<{
|
|
@@ -1716,6 +1750,16 @@ export declare type GetThemesQuery = {
|
|
|
1716
1750
|
chart: any;
|
|
1717
1751
|
}>;
|
|
1718
1752
|
};
|
|
1753
|
+
export declare type MarkDeleteMetricMutationVariables = Exact<{
|
|
1754
|
+
id?: Scalars['uuid'];
|
|
1755
|
+
}>;
|
|
1756
|
+
export declare type MarkDeleteMetricMutation = {
|
|
1757
|
+
__typename?: 'mutation_root';
|
|
1758
|
+
update_externalMetrics_by_pk?: {
|
|
1759
|
+
__typename?: 'externalMetrics';
|
|
1760
|
+
id: any;
|
|
1761
|
+
} | null;
|
|
1762
|
+
};
|
|
1719
1763
|
export declare type PreviewTableMutationVariables = Exact<{
|
|
1720
1764
|
companyId?: InputMaybe<Scalars['String']>;
|
|
1721
1765
|
tableName?: InputMaybe<Scalars['String']>;
|
|
@@ -1845,10 +1889,16 @@ export declare const ExternalDashboardListDocument = "\n query ExternalDashbo
|
|
|
1845
1889
|
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>;
|
|
1846
1890
|
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 ";
|
|
1847
1891
|
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>;
|
|
1848
|
-
export declare const
|
|
1849
|
-
export declare const
|
|
1892
|
+
export declare const MetricAccessDocument = "\n query MetricAccess($companyId: uuid = \"\") {\n companySubsetTables(where: {companyId: {_eq: $companyId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n }\n}\n ";
|
|
1893
|
+
export declare const useMetricAccessQuery: <TData = MetricAccessQuery, TError = unknown>(variables?: MetricAccessQueryVariables, options?: UseQueryOptions<MetricAccessQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
1850
1894
|
export declare const GetThemesDocument = "\n query GetThemes($companyId: uuid! = \"\") {\n themes(where: {companyId: {_eq: $companyId}}) {\n id\n companyId\n general\n dashboard\n cardTitle\n cardDescription\n chart\n }\n}\n ";
|
|
1851
1895
|
export declare const useGetThemesQuery: <TData = GetThemesQuery, TError = unknown>(variables?: GetThemesQueryVariables, options?: UseQueryOptions<GetThemesQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
1896
|
+
export declare const MarkDeleteMetricDocument = "\n mutation MarkDeleteMetric($id: uuid! = \"\") {\n update_externalMetrics_by_pk(\n pk_columns: {id: $id}\n _set: {isMarkedDeleted: true}\n ) {\n id\n }\n}\n ";
|
|
1897
|
+
export declare const useMarkDeleteMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkDeleteMetricMutation, TError, Exact<{
|
|
1898
|
+
id?: Scalars['uuid'];
|
|
1899
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<MarkDeleteMetricMutation, TError, Exact<{
|
|
1900
|
+
id?: Scalars['uuid'];
|
|
1901
|
+
}>, TContext>;
|
|
1852
1902
|
export declare const PreviewTableDocument = "\n mutation PreviewTable($companyId: String = \"\", $tableName: String = \"\", $limit: Int = 10) {\n previewTable(\n input: {companyId: $companyId, tableName: $tableName, limit: $limit}\n ) {\n data {\n data\n isError\n name\n }\n error {\n message\n }\n }\n}\n ";
|
|
1853
1903
|
export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
|
|
1854
1904
|
companyId?: InputMaybe<string> | undefined;
|