@databrainhq/plugin 0.6.0 → 0.6.2

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.
@@ -52,8 +52,10 @@ export declare type Error = {
52
52
  export declare type ExternalMetricQueryInput = {
53
53
  clientId?: InputMaybe<Scalars['String']>;
54
54
  externalMetricId: Scalars['String'];
55
+ filterValues?: InputMaybe<Scalars['json']>;
55
56
  globalFilters?: InputMaybe<Scalars['json']>;
56
57
  rlsConditions?: InputMaybe<Scalars['json']>;
58
+ tenancyLevel?: InputMaybe<Scalars['String']>;
57
59
  };
58
60
  export declare type ExternalMetricQueryOutput = {
59
61
  __typename?: 'ExternalMetricQueryOutput';
@@ -205,6 +207,7 @@ export declare enum CompanyIntegrations_Select_Column {
205
207
  export declare type CompanySubsetTables = {
206
208
  __typename?: 'companySubsetTables';
207
209
  companyId: Scalars['uuid'];
210
+ isAllowMetricCreation: Scalars['Boolean'];
208
211
  tableList: Scalars['jsonb'];
209
212
  };
210
213
  /** subset of tables of user database */
@@ -217,11 +220,13 @@ export declare type CompanySubsetTables_Bool_Exp = {
217
220
  _not?: InputMaybe<CompanySubsetTables_Bool_Exp>;
218
221
  _or?: InputMaybe<Array<CompanySubsetTables_Bool_Exp>>;
219
222
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
223
+ isAllowMetricCreation?: InputMaybe<Boolean_Comparison_Exp>;
220
224
  tableList?: InputMaybe<Jsonb_Comparison_Exp>;
221
225
  };
222
226
  /** Ordering options when selecting data from "companySubsetTables". */
223
227
  export declare type CompanySubsetTables_Order_By = {
224
228
  companyId?: InputMaybe<Order_By>;
229
+ isAllowMetricCreation?: InputMaybe<Order_By>;
225
230
  tableList?: InputMaybe<Order_By>;
226
231
  };
227
232
  /** select columns of table "companySubsetTables" */
@@ -229,6 +234,8 @@ export declare enum CompanySubsetTables_Select_Column {
229
234
  /** column name */
230
235
  CompanyId = "companyId",
231
236
  /** column name */
237
+ IsAllowMetricCreation = "isAllowMetricCreation",
238
+ /** column name */
232
239
  TableList = "tableList"
233
240
  }
234
241
  /** columns and relationships of "externalDashboardMetrics" */
@@ -1498,6 +1505,16 @@ export declare type GuestTokenParamsQuery = {
1498
1505
  params: any;
1499
1506
  } | null;
1500
1507
  };
1508
+ export declare type MetricCreationAccessQueryVariables = Exact<{
1509
+ companyId?: InputMaybe<Scalars['uuid']>;
1510
+ }>;
1511
+ export declare type MetricCreationAccessQuery = {
1512
+ __typename?: 'query_root';
1513
+ companySubsetTables: Array<{
1514
+ __typename?: 'companySubsetTables';
1515
+ isAllowMetricCreation: boolean;
1516
+ }>;
1517
+ };
1501
1518
  export declare type PreviewTableMutationVariables = Exact<{
1502
1519
  companyId?: InputMaybe<Scalars['String']>;
1503
1520
  tableName?: InputMaybe<Scalars['String']>;
@@ -1524,6 +1541,8 @@ export declare type QueryExternalMetricQueryVariables = Exact<{
1524
1541
  clientId?: InputMaybe<Scalars['String']>;
1525
1542
  globalFilters?: InputMaybe<Scalars['json']>;
1526
1543
  rlsConditions?: InputMaybe<Scalars['json']>;
1544
+ filterValues?: InputMaybe<Scalars['json']>;
1545
+ tenancyLevel?: InputMaybe<Scalars['String']>;
1527
1546
  }>;
1528
1547
  export declare type QueryExternalMetricQuery = {
1529
1548
  __typename?: 'query_root';
@@ -1621,6 +1640,8 @@ export declare const ExternalDashboardListDocument = "\n query ExternalDashbo
1621
1640
  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>;
1622
1641
  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 ";
1623
1642
  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>;
1643
+ export declare const MetricCreationAccessDocument = "\n query MetricCreationAccess($companyId: uuid = \"\") {\n companySubsetTables(where: {companyId: {_eq: $companyId}}) {\n isAllowMetricCreation\n }\n}\n ";
1644
+ export declare const useMetricCreationAccessQuery: <TData = MetricCreationAccessQuery, TError = unknown>(variables?: MetricCreationAccessQueryVariables, options?: UseQueryOptions<MetricCreationAccessQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
1624
1645
  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 ";
1625
1646
  export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
1626
1647
  companyId?: InputMaybe<string> | undefined;
@@ -1631,5 +1652,5 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
1631
1652
  tableName?: InputMaybe<string> | undefined;
1632
1653
  limit?: InputMaybe<number> | undefined;
1633
1654
  }>, TContext>;
1634
- export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = []) {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions}\n ) {\n data\n timeTaken\n }\n}\n ";
1655
+ 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 ";
1635
1656
  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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",