@databrainhq/plugin 0.8.16 → 0.8.18
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/README.md +26 -26
- package/dist/components/FilterDropDown/index.d.ts +1 -1
- package/dist/components/MetricFilterDropDown/index.d.ts +4 -3
- package/dist/components/MetricList/components/LayoutAlert.d.ts +6 -0
- package/dist/components/MetricList/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +2 -1
- package/dist/index.es.js +864 -715
- package/dist/index.umd.js +90 -77
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +1 -1
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +233 -0
- package/package.json +98 -98
package/dist/types/app.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ export declare type RlsCondition = {
|
|
|
137
137
|
datatype: string;
|
|
138
138
|
isAddOnMetrics: boolean;
|
|
139
139
|
options: string[] | number[] | DateOptionType[];
|
|
140
|
-
value?: string | DateOptionType;
|
|
140
|
+
value?: string | DateOptionType | string[];
|
|
141
141
|
dimensionColumn?: string;
|
|
142
142
|
measureColumn?: string;
|
|
143
143
|
};
|
package/dist/typings.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default CSS definition for typescript,
|
|
3
|
-
* will be overridden with file-specific definitions by rollup
|
|
4
|
-
*/
|
|
5
|
-
declare module '*.css' {
|
|
6
|
-
const content: Record<string, string>;
|
|
7
|
-
export default content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
|
|
11
|
-
|
|
12
|
-
declare module '*.svg' {
|
|
13
|
-
const svgUrl: string;
|
|
14
|
-
const svgComponent: SvgrComponent;
|
|
15
|
-
export default svgUrl;
|
|
16
|
-
export { svgComponent as ReactComponent };
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Default CSS definition for typescript,
|
|
3
|
+
* will be overridden with file-specific definitions by rollup
|
|
4
|
+
*/
|
|
5
|
+
declare module '*.css' {
|
|
6
|
+
const content: Record<string, string>;
|
|
7
|
+
export default content;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
|
|
11
|
+
|
|
12
|
+
declare module '*.svg' {
|
|
13
|
+
const svgUrl: string;
|
|
14
|
+
const svgComponent: SvgrComponent;
|
|
15
|
+
export default svgUrl;
|
|
16
|
+
export { svgComponent as ReactComponent };
|
|
17
|
+
}
|
|
@@ -216,6 +216,120 @@ export declare type TableList = {
|
|
|
216
216
|
columns?: Maybe<Array<Maybe<SubsetColumns>>>;
|
|
217
217
|
tableName: Scalars['String'];
|
|
218
218
|
};
|
|
219
|
+
/** Metric resize attributes of client dashboard. */
|
|
220
|
+
export declare type ClientDashboardLayout = {
|
|
221
|
+
__typename?: 'clientDashboardLayout';
|
|
222
|
+
clientId: Scalars['String'];
|
|
223
|
+
/** An object relationship */
|
|
224
|
+
externalDashboard: ExternalDashboards;
|
|
225
|
+
externalDashboardId: Scalars['uuid'];
|
|
226
|
+
layout: Scalars['jsonb'];
|
|
227
|
+
};
|
|
228
|
+
/** Metric resize attributes of client dashboard. */
|
|
229
|
+
export declare type ClientDashboardLayoutLayoutArgs = {
|
|
230
|
+
path?: InputMaybe<Scalars['String']>;
|
|
231
|
+
};
|
|
232
|
+
/** order by aggregate values of table "clientDashboardLayout" */
|
|
233
|
+
export declare type ClientDashboardLayout_Aggregate_Order_By = {
|
|
234
|
+
count?: InputMaybe<Order_By>;
|
|
235
|
+
max?: InputMaybe<ClientDashboardLayout_Max_Order_By>;
|
|
236
|
+
min?: InputMaybe<ClientDashboardLayout_Min_Order_By>;
|
|
237
|
+
};
|
|
238
|
+
/** append existing jsonb value of filtered columns with new jsonb value */
|
|
239
|
+
export declare type ClientDashboardLayout_Append_Input = {
|
|
240
|
+
layout?: InputMaybe<Scalars['jsonb']>;
|
|
241
|
+
};
|
|
242
|
+
/** Boolean expression to filter rows from the table "clientDashboardLayout". All fields are combined with a logical 'AND'. */
|
|
243
|
+
export declare type ClientDashboardLayout_Bool_Exp = {
|
|
244
|
+
_and?: InputMaybe<Array<ClientDashboardLayout_Bool_Exp>>;
|
|
245
|
+
_not?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
246
|
+
_or?: InputMaybe<Array<ClientDashboardLayout_Bool_Exp>>;
|
|
247
|
+
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
248
|
+
externalDashboard?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
249
|
+
externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
250
|
+
layout?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
251
|
+
};
|
|
252
|
+
/** unique or primary key constraints on table "clientDashboardLayout" */
|
|
253
|
+
export declare enum ClientDashboardLayout_Constraint {
|
|
254
|
+
/** unique or primary key constraint on columns "clientId", "externalDashboardId" */
|
|
255
|
+
ClientDashboardLayoutPkey = "clientDashboardLayout_pkey"
|
|
256
|
+
}
|
|
257
|
+
/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */
|
|
258
|
+
export declare type ClientDashboardLayout_Delete_At_Path_Input = {
|
|
259
|
+
layout?: InputMaybe<Array<Scalars['String']>>;
|
|
260
|
+
};
|
|
261
|
+
/** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */
|
|
262
|
+
export declare type ClientDashboardLayout_Delete_Elem_Input = {
|
|
263
|
+
layout?: InputMaybe<Scalars['Int']>;
|
|
264
|
+
};
|
|
265
|
+
/** delete key/value pair or string element. key/value pairs are matched based on their key value */
|
|
266
|
+
export declare type ClientDashboardLayout_Delete_Key_Input = {
|
|
267
|
+
layout?: InputMaybe<Scalars['String']>;
|
|
268
|
+
};
|
|
269
|
+
/** input type for inserting data into table "clientDashboardLayout" */
|
|
270
|
+
export declare type ClientDashboardLayout_Insert_Input = {
|
|
271
|
+
clientId?: InputMaybe<Scalars['String']>;
|
|
272
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
273
|
+
layout?: InputMaybe<Scalars['jsonb']>;
|
|
274
|
+
};
|
|
275
|
+
/** order by max() on columns of table "clientDashboardLayout" */
|
|
276
|
+
export declare type ClientDashboardLayout_Max_Order_By = {
|
|
277
|
+
clientId?: InputMaybe<Order_By>;
|
|
278
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
279
|
+
};
|
|
280
|
+
/** order by min() on columns of table "clientDashboardLayout" */
|
|
281
|
+
export declare type ClientDashboardLayout_Min_Order_By = {
|
|
282
|
+
clientId?: InputMaybe<Order_By>;
|
|
283
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
284
|
+
};
|
|
285
|
+
/** response of any mutation on the table "clientDashboardLayout" */
|
|
286
|
+
export declare type ClientDashboardLayout_Mutation_Response = {
|
|
287
|
+
__typename?: 'clientDashboardLayout_mutation_response';
|
|
288
|
+
/** number of rows affected by the mutation */
|
|
289
|
+
affected_rows: Scalars['Int'];
|
|
290
|
+
/** data from the rows affected by the mutation */
|
|
291
|
+
returning: Array<ClientDashboardLayout>;
|
|
292
|
+
};
|
|
293
|
+
/** on_conflict condition type for table "clientDashboardLayout" */
|
|
294
|
+
export declare type ClientDashboardLayout_On_Conflict = {
|
|
295
|
+
constraint: ClientDashboardLayout_Constraint;
|
|
296
|
+
update_columns?: Array<ClientDashboardLayout_Update_Column>;
|
|
297
|
+
where?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
298
|
+
};
|
|
299
|
+
/** Ordering options when selecting data from "clientDashboardLayout". */
|
|
300
|
+
export declare type ClientDashboardLayout_Order_By = {
|
|
301
|
+
clientId?: InputMaybe<Order_By>;
|
|
302
|
+
externalDashboard?: InputMaybe<ExternalDashboards_Order_By>;
|
|
303
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
304
|
+
layout?: InputMaybe<Order_By>;
|
|
305
|
+
};
|
|
306
|
+
/** primary key columns input for table: clientDashboardLayout */
|
|
307
|
+
export declare type ClientDashboardLayout_Pk_Columns_Input = {
|
|
308
|
+
clientId: Scalars['String'];
|
|
309
|
+
externalDashboardId: Scalars['uuid'];
|
|
310
|
+
};
|
|
311
|
+
/** prepend existing jsonb value of filtered columns with new jsonb value */
|
|
312
|
+
export declare type ClientDashboardLayout_Prepend_Input = {
|
|
313
|
+
layout?: InputMaybe<Scalars['jsonb']>;
|
|
314
|
+
};
|
|
315
|
+
/** select columns of table "clientDashboardLayout" */
|
|
316
|
+
export declare enum ClientDashboardLayout_Select_Column {
|
|
317
|
+
/** column name */
|
|
318
|
+
ClientId = "clientId",
|
|
319
|
+
/** column name */
|
|
320
|
+
ExternalDashboardId = "externalDashboardId",
|
|
321
|
+
/** column name */
|
|
322
|
+
Layout = "layout"
|
|
323
|
+
}
|
|
324
|
+
/** input type for updating data in table "clientDashboardLayout" */
|
|
325
|
+
export declare type ClientDashboardLayout_Set_Input = {
|
|
326
|
+
layout?: InputMaybe<Scalars['jsonb']>;
|
|
327
|
+
};
|
|
328
|
+
/** update columns of table "clientDashboardLayout" */
|
|
329
|
+
export declare enum ClientDashboardLayout_Update_Column {
|
|
330
|
+
/** column name */
|
|
331
|
+
Layout = "layout"
|
|
332
|
+
}
|
|
219
333
|
/** Client's dashboard metrics layout tracker. */
|
|
220
334
|
export declare type ClientDashboardMetrics = {
|
|
221
335
|
__typename?: 'clientDashboardMetrics';
|
|
@@ -687,6 +801,8 @@ export declare enum ExternalDashboardThemes_Select_Column {
|
|
|
687
801
|
export declare type ExternalDashboards = {
|
|
688
802
|
__typename?: 'externalDashboards';
|
|
689
803
|
/** An array relationship */
|
|
804
|
+
clientDashboardLayouts: Array<ClientDashboardLayout>;
|
|
805
|
+
/** An array relationship */
|
|
690
806
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
691
807
|
companyId: Scalars['uuid'];
|
|
692
808
|
externalDashboardId: Scalars['String'];
|
|
@@ -697,6 +813,14 @@ export declare type ExternalDashboards = {
|
|
|
697
813
|
name: Scalars['String'];
|
|
698
814
|
};
|
|
699
815
|
/** columns and relationships of "externalDashboards" */
|
|
816
|
+
export declare type ExternalDashboardsClientDashboardLayoutsArgs = {
|
|
817
|
+
distinct_on?: InputMaybe<Array<ClientDashboardLayout_Select_Column>>;
|
|
818
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
819
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
820
|
+
order_by?: InputMaybe<Array<ClientDashboardLayout_Order_By>>;
|
|
821
|
+
where?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
822
|
+
};
|
|
823
|
+
/** columns and relationships of "externalDashboards" */
|
|
700
824
|
export declare type ExternalDashboardsClientDashboardMetricsArgs = {
|
|
701
825
|
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
702
826
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -721,6 +845,7 @@ export declare type ExternalDashboards_Bool_Exp = {
|
|
|
721
845
|
_and?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
|
|
722
846
|
_not?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
723
847
|
_or?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
|
|
848
|
+
clientDashboardLayouts?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
724
849
|
clientDashboardMetrics?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
725
850
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
726
851
|
externalDashboardId?: InputMaybe<String_Comparison_Exp>;
|
|
@@ -731,6 +856,7 @@ export declare type ExternalDashboards_Bool_Exp = {
|
|
|
731
856
|
};
|
|
732
857
|
/** Ordering options when selecting data from "externalDashboards". */
|
|
733
858
|
export declare type ExternalDashboards_Order_By = {
|
|
859
|
+
clientDashboardLayouts_aggregate?: InputMaybe<ClientDashboardLayout_Aggregate_Order_By>;
|
|
734
860
|
clientDashboardMetrics_aggregate?: InputMaybe<ClientDashboardMetrics_Aggregate_Order_By>;
|
|
735
861
|
companyId?: InputMaybe<Order_By>;
|
|
736
862
|
externalDashboardId?: InputMaybe<Order_By>;
|
|
@@ -1307,6 +1433,10 @@ export declare type Mutation_Root = {
|
|
|
1307
1433
|
generateExternalMetricQuery?: Maybe<GenerateExternalMetricQueryOutput>;
|
|
1308
1434
|
getUnderlyingData?: Maybe<GetUnderlyingDataOutput>;
|
|
1309
1435
|
getUnderlyingSqlQuery?: Maybe<GetUnderlyingSqlQueryOutput>;
|
|
1436
|
+
/** insert data into the table: "clientDashboardLayout" */
|
|
1437
|
+
insert_clientDashboardLayout?: Maybe<ClientDashboardLayout_Mutation_Response>;
|
|
1438
|
+
/** insert a single row into the table: "clientDashboardLayout" */
|
|
1439
|
+
insert_clientDashboardLayout_one?: Maybe<ClientDashboardLayout>;
|
|
1310
1440
|
/** insert data into the table: "clientDashboardMetrics" */
|
|
1311
1441
|
insert_clientDashboardMetrics?: Maybe<ClientDashboardMetrics_Mutation_Response>;
|
|
1312
1442
|
/** insert a single row into the table: "clientDashboardMetrics" */
|
|
@@ -1329,6 +1459,10 @@ export declare type Mutation_Root = {
|
|
|
1329
1459
|
insert_externalMetrics_one?: Maybe<ExternalMetrics>;
|
|
1330
1460
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
1331
1461
|
sendRawCsv?: Maybe<SendRawCsvOutput>;
|
|
1462
|
+
/** update data of the table: "clientDashboardLayout" */
|
|
1463
|
+
update_clientDashboardLayout?: Maybe<ClientDashboardLayout_Mutation_Response>;
|
|
1464
|
+
/** update single row of the table: "clientDashboardLayout" */
|
|
1465
|
+
update_clientDashboardLayout_by_pk?: Maybe<ClientDashboardLayout>;
|
|
1332
1466
|
/** update data of the table: "externalMetrics" */
|
|
1333
1467
|
update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1334
1468
|
/** update single row of the table: "externalMetrics" */
|
|
@@ -1371,6 +1505,16 @@ export declare type Mutation_RootGetUnderlyingSqlQueryArgs = {
|
|
|
1371
1505
|
input: GetUnderlyingSqlQueryInput;
|
|
1372
1506
|
};
|
|
1373
1507
|
/** mutation root */
|
|
1508
|
+
export declare type Mutation_RootInsert_ClientDashboardLayoutArgs = {
|
|
1509
|
+
objects: Array<ClientDashboardLayout_Insert_Input>;
|
|
1510
|
+
on_conflict?: InputMaybe<ClientDashboardLayout_On_Conflict>;
|
|
1511
|
+
};
|
|
1512
|
+
/** mutation root */
|
|
1513
|
+
export declare type Mutation_RootInsert_ClientDashboardLayout_OneArgs = {
|
|
1514
|
+
object: ClientDashboardLayout_Insert_Input;
|
|
1515
|
+
on_conflict?: InputMaybe<ClientDashboardLayout_On_Conflict>;
|
|
1516
|
+
};
|
|
1517
|
+
/** mutation root */
|
|
1374
1518
|
export declare type Mutation_RootInsert_ClientDashboardMetricsArgs = {
|
|
1375
1519
|
objects: Array<ClientDashboardMetrics_Insert_Input>;
|
|
1376
1520
|
on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
|
|
@@ -1429,6 +1573,26 @@ export declare type Mutation_RootSendRawCsvArgs = {
|
|
|
1429
1573
|
input: SendRawCsvInput;
|
|
1430
1574
|
};
|
|
1431
1575
|
/** mutation root */
|
|
1576
|
+
export declare type Mutation_RootUpdate_ClientDashboardLayoutArgs = {
|
|
1577
|
+
_append?: InputMaybe<ClientDashboardLayout_Append_Input>;
|
|
1578
|
+
_delete_at_path?: InputMaybe<ClientDashboardLayout_Delete_At_Path_Input>;
|
|
1579
|
+
_delete_elem?: InputMaybe<ClientDashboardLayout_Delete_Elem_Input>;
|
|
1580
|
+
_delete_key?: InputMaybe<ClientDashboardLayout_Delete_Key_Input>;
|
|
1581
|
+
_prepend?: InputMaybe<ClientDashboardLayout_Prepend_Input>;
|
|
1582
|
+
_set?: InputMaybe<ClientDashboardLayout_Set_Input>;
|
|
1583
|
+
where: ClientDashboardLayout_Bool_Exp;
|
|
1584
|
+
};
|
|
1585
|
+
/** mutation root */
|
|
1586
|
+
export declare type Mutation_RootUpdate_ClientDashboardLayout_By_PkArgs = {
|
|
1587
|
+
_append?: InputMaybe<ClientDashboardLayout_Append_Input>;
|
|
1588
|
+
_delete_at_path?: InputMaybe<ClientDashboardLayout_Delete_At_Path_Input>;
|
|
1589
|
+
_delete_elem?: InputMaybe<ClientDashboardLayout_Delete_Elem_Input>;
|
|
1590
|
+
_delete_key?: InputMaybe<ClientDashboardLayout_Delete_Key_Input>;
|
|
1591
|
+
_prepend?: InputMaybe<ClientDashboardLayout_Prepend_Input>;
|
|
1592
|
+
_set?: InputMaybe<ClientDashboardLayout_Set_Input>;
|
|
1593
|
+
pk_columns: ClientDashboardLayout_Pk_Columns_Input;
|
|
1594
|
+
};
|
|
1595
|
+
/** mutation root */
|
|
1432
1596
|
export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
|
|
1433
1597
|
_append?: InputMaybe<ExternalMetrics_Append_Input>;
|
|
1434
1598
|
_delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
|
|
@@ -1465,6 +1629,10 @@ export declare enum Order_By {
|
|
|
1465
1629
|
}
|
|
1466
1630
|
export declare type Query_Root = {
|
|
1467
1631
|
__typename?: 'query_root';
|
|
1632
|
+
/** fetch data from the table: "clientDashboardLayout" */
|
|
1633
|
+
clientDashboardLayout: Array<ClientDashboardLayout>;
|
|
1634
|
+
/** fetch data from the table: "clientDashboardLayout" using primary key columns */
|
|
1635
|
+
clientDashboardLayout_by_pk?: Maybe<ClientDashboardLayout>;
|
|
1468
1636
|
/** An array relationship */
|
|
1469
1637
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1470
1638
|
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
@@ -1513,6 +1681,17 @@ export declare type Query_Root = {
|
|
|
1513
1681
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1514
1682
|
themes_by_pk?: Maybe<Themes>;
|
|
1515
1683
|
};
|
|
1684
|
+
export declare type Query_RootClientDashboardLayoutArgs = {
|
|
1685
|
+
distinct_on?: InputMaybe<Array<ClientDashboardLayout_Select_Column>>;
|
|
1686
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1687
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1688
|
+
order_by?: InputMaybe<Array<ClientDashboardLayout_Order_By>>;
|
|
1689
|
+
where?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
1690
|
+
};
|
|
1691
|
+
export declare type Query_RootClientDashboardLayout_By_PkArgs = {
|
|
1692
|
+
clientId: Scalars['String'];
|
|
1693
|
+
externalDashboardId: Scalars['uuid'];
|
|
1694
|
+
};
|
|
1516
1695
|
export declare type Query_RootClientDashboardMetricsArgs = {
|
|
1517
1696
|
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
1518
1697
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1638,6 +1817,10 @@ export declare type Query_RootThemes_By_PkArgs = {
|
|
|
1638
1817
|
};
|
|
1639
1818
|
export declare type Subscription_Root = {
|
|
1640
1819
|
__typename?: 'subscription_root';
|
|
1820
|
+
/** fetch data from the table: "clientDashboardLayout" */
|
|
1821
|
+
clientDashboardLayout: Array<ClientDashboardLayout>;
|
|
1822
|
+
/** fetch data from the table: "clientDashboardLayout" using primary key columns */
|
|
1823
|
+
clientDashboardLayout_by_pk?: Maybe<ClientDashboardLayout>;
|
|
1641
1824
|
/** An array relationship */
|
|
1642
1825
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1643
1826
|
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
@@ -1685,6 +1868,17 @@ export declare type Subscription_Root = {
|
|
|
1685
1868
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1686
1869
|
themes_by_pk?: Maybe<Themes>;
|
|
1687
1870
|
};
|
|
1871
|
+
export declare type Subscription_RootClientDashboardLayoutArgs = {
|
|
1872
|
+
distinct_on?: InputMaybe<Array<ClientDashboardLayout_Select_Column>>;
|
|
1873
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1874
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1875
|
+
order_by?: InputMaybe<Array<ClientDashboardLayout_Order_By>>;
|
|
1876
|
+
where?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
1877
|
+
};
|
|
1878
|
+
export declare type Subscription_RootClientDashboardLayout_By_PkArgs = {
|
|
1879
|
+
clientId: Scalars['String'];
|
|
1880
|
+
externalDashboardId: Scalars['uuid'];
|
|
1881
|
+
};
|
|
1688
1882
|
export declare type Subscription_RootClientDashboardMetricsArgs = {
|
|
1689
1883
|
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
1690
1884
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -2094,6 +2288,19 @@ export declare type GetExternalDashboardIdQuery = {
|
|
|
2094
2288
|
filters: any;
|
|
2095
2289
|
}>;
|
|
2096
2290
|
};
|
|
2291
|
+
export declare type GetExternalDashboardLayoutQueryVariables = Exact<{
|
|
2292
|
+
clientId: Scalars['String'];
|
|
2293
|
+
externalDashboardId: Scalars['uuid'];
|
|
2294
|
+
}>;
|
|
2295
|
+
export declare type GetExternalDashboardLayoutQuery = {
|
|
2296
|
+
__typename?: 'query_root';
|
|
2297
|
+
clientDashboardLayout_by_pk?: {
|
|
2298
|
+
__typename?: 'clientDashboardLayout';
|
|
2299
|
+
clientId: string;
|
|
2300
|
+
externalDashboardId: any;
|
|
2301
|
+
layout: any;
|
|
2302
|
+
} | null;
|
|
2303
|
+
};
|
|
2097
2304
|
export declare type ExternalDashboardListQueryVariables = Exact<{
|
|
2098
2305
|
companyId?: InputMaybe<Scalars['uuid']>;
|
|
2099
2306
|
}>;
|
|
@@ -2248,6 +2455,20 @@ export declare type ResizeExternalMetricMutation = {
|
|
|
2248
2455
|
resizeAttributes: any;
|
|
2249
2456
|
} | null;
|
|
2250
2457
|
};
|
|
2458
|
+
export declare type SaveExternalDashboardLayoutMutationVariables = Exact<{
|
|
2459
|
+
clientId: Scalars['String'];
|
|
2460
|
+
externalDashboardId: Scalars['uuid'];
|
|
2461
|
+
layout: Scalars['jsonb'];
|
|
2462
|
+
}>;
|
|
2463
|
+
export declare type SaveExternalDashboardLayoutMutation = {
|
|
2464
|
+
__typename?: 'mutation_root';
|
|
2465
|
+
insert_clientDashboardLayout_one?: {
|
|
2466
|
+
__typename?: 'clientDashboardLayout';
|
|
2467
|
+
clientId: string;
|
|
2468
|
+
externalDashboardId: any;
|
|
2469
|
+
layout: any;
|
|
2470
|
+
} | null;
|
|
2471
|
+
};
|
|
2251
2472
|
export declare type UpdateAdminMetricMutationVariables = Exact<{
|
|
2252
2473
|
externalMetricId: Scalars['uuid'];
|
|
2253
2474
|
object: ExternalMetrics_Insert_Input;
|
|
@@ -2396,6 +2617,8 @@ export declare const GetExternalDashboardClientThemeDocument = "\n query GetE
|
|
|
2396
2617
|
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>;
|
|
2397
2618
|
export declare const GetExternalDashboardIdDocument = "\n query GetExternalDashboardId($externalDashboardId: String = \"\") {\n externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {\n id\n filters\n }\n}\n ";
|
|
2398
2619
|
export declare const useGetExternalDashboardIdQuery: <TData = GetExternalDashboardIdQuery, TError = unknown>(variables?: GetExternalDashboardIdQueryVariables, options?: UseQueryOptions<GetExternalDashboardIdQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
2620
|
+
export declare const GetExternalDashboardLayoutDocument = "\n query getExternalDashboardLayout($clientId: String!, $externalDashboardId: uuid!) {\n clientDashboardLayout_by_pk(\n clientId: $clientId\n externalDashboardId: $externalDashboardId\n ) {\n clientId\n externalDashboardId\n layout\n }\n}\n ";
|
|
2621
|
+
export declare const useGetExternalDashboardLayoutQuery: <TData = GetExternalDashboardLayoutQuery, TError = unknown>(variables: GetExternalDashboardLayoutQueryVariables, options?: UseQueryOptions<GetExternalDashboardLayoutQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
2399
2622
|
export declare const ExternalDashboardListDocument = "\n query ExternalDashboardList($companyId: uuid = \"\") {\n externalDashboards(where: {companyId: {_eq: $companyId}}) {\n externalDashboardId\n name\n id\n }\n}\n ";
|
|
2400
2623
|
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>;
|
|
2401
2624
|
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 ";
|
|
@@ -2462,6 +2685,16 @@ export declare const useResizeExternalMetricMutation: <TError = unknown, TContex
|
|
|
2462
2685
|
id: Scalars['uuid'];
|
|
2463
2686
|
resizeAttributes: Scalars['jsonb'];
|
|
2464
2687
|
}>, TContext>;
|
|
2688
|
+
export declare const SaveExternalDashboardLayoutDocument = "\n mutation SaveExternalDashboardLayout($clientId: String!, $externalDashboardId: uuid!, $layout: jsonb!) {\n insert_clientDashboardLayout_one(\n object: {clientId: $clientId, externalDashboardId: $externalDashboardId, layout: $layout}\n on_conflict: {constraint: clientDashboardLayout_pkey, update_columns: [layout]}\n ) {\n clientId\n externalDashboardId\n layout\n }\n}\n ";
|
|
2689
|
+
export declare const useSaveExternalDashboardLayoutMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<SaveExternalDashboardLayoutMutation, TError, Exact<{
|
|
2690
|
+
clientId: Scalars['String'];
|
|
2691
|
+
externalDashboardId: Scalars['uuid'];
|
|
2692
|
+
layout: Scalars['jsonb'];
|
|
2693
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<SaveExternalDashboardLayoutMutation, TError, Exact<{
|
|
2694
|
+
clientId: Scalars['String'];
|
|
2695
|
+
externalDashboardId: Scalars['uuid'];
|
|
2696
|
+
layout: Scalars['jsonb'];
|
|
2697
|
+
}>, TContext>;
|
|
2465
2698
|
export declare const UpdateAdminMetricDocument = "\n mutation UpdateAdminMetric($externalMetricId: uuid!, $object: externalMetrics_insert_input!, $clientId: String!) {\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $externalMetricId, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n insert_externalMetrics_one(object: $object) {\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 ";
|
|
2466
2699
|
export declare const useUpdateAdminMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UpdateAdminMetricMutation, TError, Exact<{
|
|
2467
2700
|
externalMetricId: Scalars['uuid'];
|
package/package.json
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.8.
|
|
4
|
-
"description": "Databrain app dashboard ui plugin.",
|
|
5
|
-
"author": "",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "databrainhq/plugin",
|
|
8
|
-
"source": "src/index.ts",
|
|
9
|
-
"main": "./dist/index.umd.js",
|
|
10
|
-
"module": "./dist/index.es.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.es.js",
|
|
15
|
-
"require": "./dist/index.umd.js"
|
|
16
|
-
},
|
|
17
|
-
"./dist/style.css": "./dist/style.css"
|
|
18
|
-
},
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
-
"yarn": "please-use-npm"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"serve": "vite --port 3005",
|
|
25
|
-
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
-
"build": "tsc && vite build",
|
|
27
|
-
"husky": "husky install",
|
|
28
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
-
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
-
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
-
"prepare": "npm run build"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@commitlint/cli": "^17.0.3",
|
|
35
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
-
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
-
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
-
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
-
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
-
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
-
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
-
"@iconify/json": "^2.2.6",
|
|
43
|
-
"@svgr/core": "^6.5.1",
|
|
44
|
-
"@types/node": "^12.12.38",
|
|
45
|
-
"@types/react": "^18.0.26",
|
|
46
|
-
"@types/react-dom": "^18.0.10",
|
|
47
|
-
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
-
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
-
"autoprefixer": "^10.4.7",
|
|
52
|
-
"babel-eslint": "^10.0.3",
|
|
53
|
-
"cross-env": "^7.0.2",
|
|
54
|
-
"eslint": "^7.32.0",
|
|
55
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
-
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
-
"eslint-config-prettier": "^8.3.0",
|
|
58
|
-
"eslint-plugin-import": "^2.24.2",
|
|
59
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
-
"eslint-plugin-react": "^7.30.1",
|
|
62
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
-
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
-
"graphql": "^16.6.0",
|
|
65
|
-
"husky": "^8.0.1",
|
|
66
|
-
"lint-staged": "^13.0.3",
|
|
67
|
-
"postcss": "^8.4.21",
|
|
68
|
-
"prettier": "^2.0.4",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"tailwindcss": "^3.2.4",
|
|
72
|
-
"ts-node": "^10.9.1",
|
|
73
|
-
"typescript": "^4.6.3",
|
|
74
|
-
"unplugin-icons": "^0.14.7",
|
|
75
|
-
"vite": "^2.9.9",
|
|
76
|
-
"vite-plugin-dts": "^1.7.1",
|
|
77
|
-
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
-
},
|
|
79
|
-
"files": [
|
|
80
|
-
"dist"
|
|
81
|
-
],
|
|
82
|
-
"dependencies": {
|
|
83
|
-
"@headlessui/react": "^1.7.2",
|
|
84
|
-
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
-
"@tanstack/react-table": "^8.7.9",
|
|
86
|
-
"classnames": "^2.3.2",
|
|
87
|
-
"echarts": "^5.4.1",
|
|
88
|
-
"echarts-for-react": "^3.0.2",
|
|
89
|
-
"react-error-boundary": "^3.1.4",
|
|
90
|
-
"react-grid-layout": "^1.3.4",
|
|
91
|
-
"react-hook-form": "^7.33.1",
|
|
92
|
-
"react-query": "^3.39.2"
|
|
93
|
-
},
|
|
94
|
-
"peerDependencies": {
|
|
95
|
-
"react": "^18.2.0",
|
|
96
|
-
"react-dom": "^18.2.0"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@databrainhq/plugin",
|
|
3
|
+
"version": "0.8.18",
|
|
4
|
+
"description": "Databrain app dashboard ui plugin.",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "databrainhq/plugin",
|
|
8
|
+
"source": "src/index.ts",
|
|
9
|
+
"main": "./dist/index.umd.js",
|
|
10
|
+
"module": "./dist/index.es.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.es.js",
|
|
15
|
+
"require": "./dist/index.umd.js"
|
|
16
|
+
},
|
|
17
|
+
"./dist/style.css": "./dist/style.css"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
+
"yarn": "please-use-npm"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"serve": "vite --port 3005",
|
|
25
|
+
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
+
"build": "tsc && vite build",
|
|
27
|
+
"husky": "husky install",
|
|
28
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
+
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
+
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
+
"prepare": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@commitlint/cli": "^17.0.3",
|
|
35
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
+
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
+
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
+
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
+
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
+
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
+
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
+
"@iconify/json": "^2.2.6",
|
|
43
|
+
"@svgr/core": "^6.5.1",
|
|
44
|
+
"@types/node": "^12.12.38",
|
|
45
|
+
"@types/react": "^18.0.26",
|
|
46
|
+
"@types/react-dom": "^18.0.10",
|
|
47
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
+
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
+
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
+
"autoprefixer": "^10.4.7",
|
|
52
|
+
"babel-eslint": "^10.0.3",
|
|
53
|
+
"cross-env": "^7.0.2",
|
|
54
|
+
"eslint": "^7.32.0",
|
|
55
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
+
"eslint-config-prettier": "^8.3.0",
|
|
58
|
+
"eslint-plugin-import": "^2.24.2",
|
|
59
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
+
"eslint-plugin-react": "^7.30.1",
|
|
62
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
+
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
+
"graphql": "^16.6.0",
|
|
65
|
+
"husky": "^8.0.1",
|
|
66
|
+
"lint-staged": "^13.0.3",
|
|
67
|
+
"postcss": "^8.4.21",
|
|
68
|
+
"prettier": "^2.0.4",
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"tailwindcss": "^3.2.4",
|
|
72
|
+
"ts-node": "^10.9.1",
|
|
73
|
+
"typescript": "^4.6.3",
|
|
74
|
+
"unplugin-icons": "^0.14.7",
|
|
75
|
+
"vite": "^2.9.9",
|
|
76
|
+
"vite-plugin-dts": "^1.7.1",
|
|
77
|
+
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"dist"
|
|
81
|
+
],
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@headlessui/react": "^1.7.2",
|
|
84
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
+
"@tanstack/react-table": "^8.7.9",
|
|
86
|
+
"classnames": "^2.3.2",
|
|
87
|
+
"echarts": "^5.4.1",
|
|
88
|
+
"echarts-for-react": "^3.0.2",
|
|
89
|
+
"react-error-boundary": "^3.1.4",
|
|
90
|
+
"react-grid-layout": "^1.3.4",
|
|
91
|
+
"react-hook-form": "^7.33.1",
|
|
92
|
+
"react-query": "^3.39.2"
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0"
|
|
97
|
+
}
|
|
98
|
+
}
|