@databrainhq/plugin 0.8.4 → 0.8.6
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/FloatingDropDown/index.d.ts +2 -1
- package/dist/components/MetricList/components/ArchiveMetricModal.d.ts +9 -0
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -1
- package/dist/components/MetricList/index.d.ts +1 -1
- package/dist/index.es.js +155 -145
- package/dist/index.umd.js +51 -51
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +195 -19
- package/package.json +1 -1
- package/dist/components/MetricList/components/DeleteMetricModal.d.ts +0 -8
|
@@ -219,14 +219,23 @@ export declare type TableList = {
|
|
|
219
219
|
export declare type ClientDashboardMetrics = {
|
|
220
220
|
__typename?: 'clientDashboardMetrics';
|
|
221
221
|
clientId: Scalars['String'];
|
|
222
|
+
/** An object relationship */
|
|
223
|
+
externalDashboard: ExternalDashboards;
|
|
222
224
|
externalDashboardId: Scalars['uuid'];
|
|
223
225
|
};
|
|
226
|
+
/** order by aggregate values of table "clientDashboardMetrics" */
|
|
227
|
+
export declare type ClientDashboardMetrics_Aggregate_Order_By = {
|
|
228
|
+
count?: InputMaybe<Order_By>;
|
|
229
|
+
max?: InputMaybe<ClientDashboardMetrics_Max_Order_By>;
|
|
230
|
+
min?: InputMaybe<ClientDashboardMetrics_Min_Order_By>;
|
|
231
|
+
};
|
|
224
232
|
/** Boolean expression to filter rows from the table "clientDashboardMetrics". All fields are combined with a logical 'AND'. */
|
|
225
233
|
export declare type ClientDashboardMetrics_Bool_Exp = {
|
|
226
234
|
_and?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
|
|
227
235
|
_not?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
228
236
|
_or?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
|
|
229
237
|
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
238
|
+
externalDashboard?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
230
239
|
externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
231
240
|
};
|
|
232
241
|
/** unique or primary key constraints on table "clientDashboardMetrics" */
|
|
@@ -241,6 +250,16 @@ export declare type ClientDashboardMetrics_Insert_Input = {
|
|
|
241
250
|
clientId?: InputMaybe<Scalars['String']>;
|
|
242
251
|
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
243
252
|
};
|
|
253
|
+
/** order by max() on columns of table "clientDashboardMetrics" */
|
|
254
|
+
export declare type ClientDashboardMetrics_Max_Order_By = {
|
|
255
|
+
clientId?: InputMaybe<Order_By>;
|
|
256
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
257
|
+
};
|
|
258
|
+
/** order by min() on columns of table "clientDashboardMetrics" */
|
|
259
|
+
export declare type ClientDashboardMetrics_Min_Order_By = {
|
|
260
|
+
clientId?: InputMaybe<Order_By>;
|
|
261
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
262
|
+
};
|
|
244
263
|
/** response of any mutation on the table "clientDashboardMetrics" */
|
|
245
264
|
export declare type ClientDashboardMetrics_Mutation_Response = {
|
|
246
265
|
__typename?: 'clientDashboardMetrics_mutation_response';
|
|
@@ -258,6 +277,7 @@ export declare type ClientDashboardMetrics_On_Conflict = {
|
|
|
258
277
|
/** Ordering options when selecting data from "clientDashboardMetrics". */
|
|
259
278
|
export declare type ClientDashboardMetrics_Order_By = {
|
|
260
279
|
clientId?: InputMaybe<Order_By>;
|
|
280
|
+
externalDashboard?: InputMaybe<ExternalDashboards_Order_By>;
|
|
261
281
|
externalDashboardId?: InputMaybe<Order_By>;
|
|
262
282
|
};
|
|
263
283
|
/** select columns of table "clientDashboardMetrics" */
|
|
@@ -272,6 +292,88 @@ export declare enum ClientDashboardMetrics_Update_Column {
|
|
|
272
292
|
/** placeholder (do not use) */
|
|
273
293
|
Placeholder = "_PLACEHOLDER"
|
|
274
294
|
}
|
|
295
|
+
/** Track metrics deleted by the end users. */
|
|
296
|
+
export declare type ClientDeletedMetrics = {
|
|
297
|
+
__typename?: 'clientDeletedMetrics';
|
|
298
|
+
clientId: Scalars['String'];
|
|
299
|
+
/** An object relationship */
|
|
300
|
+
externalMetric: ExternalMetrics;
|
|
301
|
+
externalMetricId: Scalars['uuid'];
|
|
302
|
+
};
|
|
303
|
+
/** order by aggregate values of table "clientDeletedMetrics" */
|
|
304
|
+
export declare type ClientDeletedMetrics_Aggregate_Order_By = {
|
|
305
|
+
count?: InputMaybe<Order_By>;
|
|
306
|
+
max?: InputMaybe<ClientDeletedMetrics_Max_Order_By>;
|
|
307
|
+
min?: InputMaybe<ClientDeletedMetrics_Min_Order_By>;
|
|
308
|
+
};
|
|
309
|
+
/** input type for inserting array relation for remote table "clientDeletedMetrics" */
|
|
310
|
+
export declare type ClientDeletedMetrics_Arr_Rel_Insert_Input = {
|
|
311
|
+
data: Array<ClientDeletedMetrics_Insert_Input>;
|
|
312
|
+
/** upsert condition */
|
|
313
|
+
on_conflict?: InputMaybe<ClientDeletedMetrics_On_Conflict>;
|
|
314
|
+
};
|
|
315
|
+
/** Boolean expression to filter rows from the table "clientDeletedMetrics". All fields are combined with a logical 'AND'. */
|
|
316
|
+
export declare type ClientDeletedMetrics_Bool_Exp = {
|
|
317
|
+
_and?: InputMaybe<Array<ClientDeletedMetrics_Bool_Exp>>;
|
|
318
|
+
_not?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
319
|
+
_or?: InputMaybe<Array<ClientDeletedMetrics_Bool_Exp>>;
|
|
320
|
+
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
321
|
+
externalMetric?: InputMaybe<ExternalMetrics_Bool_Exp>;
|
|
322
|
+
externalMetricId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
323
|
+
};
|
|
324
|
+
/** unique or primary key constraints on table "clientDeletedMetrics" */
|
|
325
|
+
export declare enum ClientDeletedMetrics_Constraint {
|
|
326
|
+
/** unique or primary key constraint on columns "clientId", "externalMetricId" */
|
|
327
|
+
ClientDeletedMetricsPkey = "clientDeletedMetrics_pkey"
|
|
328
|
+
}
|
|
329
|
+
/** input type for inserting data into table "clientDeletedMetrics" */
|
|
330
|
+
export declare type ClientDeletedMetrics_Insert_Input = {
|
|
331
|
+
clientId?: InputMaybe<Scalars['String']>;
|
|
332
|
+
externalMetric?: InputMaybe<ExternalMetrics_Obj_Rel_Insert_Input>;
|
|
333
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
334
|
+
};
|
|
335
|
+
/** order by max() on columns of table "clientDeletedMetrics" */
|
|
336
|
+
export declare type ClientDeletedMetrics_Max_Order_By = {
|
|
337
|
+
clientId?: InputMaybe<Order_By>;
|
|
338
|
+
externalMetricId?: InputMaybe<Order_By>;
|
|
339
|
+
};
|
|
340
|
+
/** order by min() on columns of table "clientDeletedMetrics" */
|
|
341
|
+
export declare type ClientDeletedMetrics_Min_Order_By = {
|
|
342
|
+
clientId?: InputMaybe<Order_By>;
|
|
343
|
+
externalMetricId?: InputMaybe<Order_By>;
|
|
344
|
+
};
|
|
345
|
+
/** response of any mutation on the table "clientDeletedMetrics" */
|
|
346
|
+
export declare type ClientDeletedMetrics_Mutation_Response = {
|
|
347
|
+
__typename?: 'clientDeletedMetrics_mutation_response';
|
|
348
|
+
/** number of rows affected by the mutation */
|
|
349
|
+
affected_rows: Scalars['Int'];
|
|
350
|
+
/** data from the rows affected by the mutation */
|
|
351
|
+
returning: Array<ClientDeletedMetrics>;
|
|
352
|
+
};
|
|
353
|
+
/** on_conflict condition type for table "clientDeletedMetrics" */
|
|
354
|
+
export declare type ClientDeletedMetrics_On_Conflict = {
|
|
355
|
+
constraint: ClientDeletedMetrics_Constraint;
|
|
356
|
+
update_columns?: Array<ClientDeletedMetrics_Update_Column>;
|
|
357
|
+
where?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
358
|
+
};
|
|
359
|
+
/** Ordering options when selecting data from "clientDeletedMetrics". */
|
|
360
|
+
export declare type ClientDeletedMetrics_Order_By = {
|
|
361
|
+
clientId?: InputMaybe<Order_By>;
|
|
362
|
+
externalMetric?: InputMaybe<ExternalMetrics_Order_By>;
|
|
363
|
+
externalMetricId?: InputMaybe<Order_By>;
|
|
364
|
+
};
|
|
365
|
+
/** select columns of table "clientDeletedMetrics" */
|
|
366
|
+
export declare enum ClientDeletedMetrics_Select_Column {
|
|
367
|
+
/** column name */
|
|
368
|
+
ClientId = "clientId",
|
|
369
|
+
/** column name */
|
|
370
|
+
ExternalMetricId = "externalMetricId"
|
|
371
|
+
}
|
|
372
|
+
/** placeholder for update columns of table "clientDeletedMetrics" (current role has no relevant permissions) */
|
|
373
|
+
export declare enum ClientDeletedMetrics_Update_Column {
|
|
374
|
+
/** placeholder (do not use) */
|
|
375
|
+
Placeholder = "_PLACEHOLDER"
|
|
376
|
+
}
|
|
275
377
|
/** columns and relationships of "companyIntegrations" */
|
|
276
378
|
export declare type CompanyIntegrations = {
|
|
277
379
|
__typename?: 'companyIntegrations';
|
|
@@ -582,6 +684,8 @@ export declare enum ExternalDashboardThemes_Select_Column {
|
|
|
582
684
|
/** columns and relationships of "externalDashboards" */
|
|
583
685
|
export declare type ExternalDashboards = {
|
|
584
686
|
__typename?: 'externalDashboards';
|
|
687
|
+
/** An array relationship */
|
|
688
|
+
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
585
689
|
companyId: Scalars['uuid'];
|
|
586
690
|
externalDashboardId: Scalars['String'];
|
|
587
691
|
/** An array relationship */
|
|
@@ -591,6 +695,14 @@ export declare type ExternalDashboards = {
|
|
|
591
695
|
name: Scalars['String'];
|
|
592
696
|
};
|
|
593
697
|
/** columns and relationships of "externalDashboards" */
|
|
698
|
+
export declare type ExternalDashboardsClientDashboardMetricsArgs = {
|
|
699
|
+
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
700
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
701
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
702
|
+
order_by?: InputMaybe<Array<ClientDashboardMetrics_Order_By>>;
|
|
703
|
+
where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
704
|
+
};
|
|
705
|
+
/** columns and relationships of "externalDashboards" */
|
|
594
706
|
export declare type ExternalDashboardsExternalDashboardMetricsArgs = {
|
|
595
707
|
distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
|
|
596
708
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -607,6 +719,7 @@ export declare type ExternalDashboards_Bool_Exp = {
|
|
|
607
719
|
_and?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
|
|
608
720
|
_not?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
609
721
|
_or?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
|
|
722
|
+
clientDashboardMetrics?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
610
723
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
611
724
|
externalDashboardId?: InputMaybe<String_Comparison_Exp>;
|
|
612
725
|
externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
|
|
@@ -616,6 +729,7 @@ export declare type ExternalDashboards_Bool_Exp = {
|
|
|
616
729
|
};
|
|
617
730
|
/** Ordering options when selecting data from "externalDashboards". */
|
|
618
731
|
export declare type ExternalDashboards_Order_By = {
|
|
732
|
+
clientDashboardMetrics_aggregate?: InputMaybe<ClientDashboardMetrics_Aggregate_Order_By>;
|
|
619
733
|
companyId?: InputMaybe<Order_By>;
|
|
620
734
|
externalDashboardId?: InputMaybe<Order_By>;
|
|
621
735
|
externalDashboardMetrics_aggregate?: InputMaybe<ExternalDashboardMetrics_Aggregate_Order_By>;
|
|
@@ -641,6 +755,8 @@ export declare type ExternalMetrics = {
|
|
|
641
755
|
__typename?: 'externalMetrics';
|
|
642
756
|
chartOptions: Scalars['jsonb'];
|
|
643
757
|
clickActions: Scalars['json'];
|
|
758
|
+
/** An array relationship */
|
|
759
|
+
clientDeletedMetrics: Array<ClientDeletedMetrics>;
|
|
644
760
|
clientId?: Maybe<Scalars['String']>;
|
|
645
761
|
companyId: Scalars['uuid'];
|
|
646
762
|
/** An object relationship */
|
|
@@ -681,6 +797,14 @@ export declare type ExternalMetricsClickActionsArgs = {
|
|
|
681
797
|
path?: InputMaybe<Scalars['String']>;
|
|
682
798
|
};
|
|
683
799
|
/** extrnal metrics table for users client-based query */
|
|
800
|
+
export declare type ExternalMetricsClientDeletedMetricsArgs = {
|
|
801
|
+
distinct_on?: InputMaybe<Array<ClientDeletedMetrics_Select_Column>>;
|
|
802
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
803
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
804
|
+
order_by?: InputMaybe<Array<ClientDeletedMetrics_Order_By>>;
|
|
805
|
+
where?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
806
|
+
};
|
|
807
|
+
/** extrnal metrics table for users client-based query */
|
|
684
808
|
export declare type ExternalMetricsExternalDashboardMetricsArgs = {
|
|
685
809
|
distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
|
|
686
810
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -822,6 +946,7 @@ export declare type ExternalMetrics_Bool_Exp = {
|
|
|
822
946
|
_or?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
|
|
823
947
|
chartOptions?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
824
948
|
clickActions?: InputMaybe<Json_Comparison_Exp>;
|
|
949
|
+
clientDeletedMetrics?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
825
950
|
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
826
951
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
827
952
|
companyIntegration?: InputMaybe<CompanyIntegrations_Bool_Exp>;
|
|
@@ -872,6 +997,7 @@ export declare type ExternalMetrics_Delete_Key_Input = {
|
|
|
872
997
|
/** input type for inserting data into table "externalMetrics" */
|
|
873
998
|
export declare type ExternalMetrics_Insert_Input = {
|
|
874
999
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
1000
|
+
clientDeletedMetrics?: InputMaybe<ClientDeletedMetrics_Arr_Rel_Insert_Input>;
|
|
875
1001
|
clientId?: InputMaybe<Scalars['String']>;
|
|
876
1002
|
companyId?: InputMaybe<Scalars['uuid']>;
|
|
877
1003
|
companyIntegrationId?: InputMaybe<Scalars['uuid']>;
|
|
@@ -956,6 +1082,7 @@ export declare type ExternalMetrics_On_Conflict = {
|
|
|
956
1082
|
export declare type ExternalMetrics_Order_By = {
|
|
957
1083
|
chartOptions?: InputMaybe<Order_By>;
|
|
958
1084
|
clickActions?: InputMaybe<Order_By>;
|
|
1085
|
+
clientDeletedMetrics_aggregate?: InputMaybe<ClientDeletedMetrics_Aggregate_Order_By>;
|
|
959
1086
|
clientId?: InputMaybe<Order_By>;
|
|
960
1087
|
companyId?: InputMaybe<Order_By>;
|
|
961
1088
|
companyIntegration?: InputMaybe<CompanyIntegrations_Order_By>;
|
|
@@ -1153,6 +1280,10 @@ export declare type Mutation_Root = {
|
|
|
1153
1280
|
insert_clientDashboardMetrics?: Maybe<ClientDashboardMetrics_Mutation_Response>;
|
|
1154
1281
|
/** insert a single row into the table: "clientDashboardMetrics" */
|
|
1155
1282
|
insert_clientDashboardMetrics_one?: Maybe<ClientDashboardMetrics>;
|
|
1283
|
+
/** insert data into the table: "clientDeletedMetrics" */
|
|
1284
|
+
insert_clientDeletedMetrics?: Maybe<ClientDeletedMetrics_Mutation_Response>;
|
|
1285
|
+
/** insert a single row into the table: "clientDeletedMetrics" */
|
|
1286
|
+
insert_clientDeletedMetrics_one?: Maybe<ClientDeletedMetrics>;
|
|
1156
1287
|
/** insert data into the table: "externalDashboardMetrics" */
|
|
1157
1288
|
insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
|
|
1158
1289
|
/** insert a single row into the table: "externalDashboardMetrics" */
|
|
@@ -1219,6 +1350,16 @@ export declare type Mutation_RootInsert_ClientDashboardMetrics_OneArgs = {
|
|
|
1219
1350
|
on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
|
|
1220
1351
|
};
|
|
1221
1352
|
/** mutation root */
|
|
1353
|
+
export declare type Mutation_RootInsert_ClientDeletedMetricsArgs = {
|
|
1354
|
+
objects: Array<ClientDeletedMetrics_Insert_Input>;
|
|
1355
|
+
on_conflict?: InputMaybe<ClientDeletedMetrics_On_Conflict>;
|
|
1356
|
+
};
|
|
1357
|
+
/** mutation root */
|
|
1358
|
+
export declare type Mutation_RootInsert_ClientDeletedMetrics_OneArgs = {
|
|
1359
|
+
object: ClientDeletedMetrics_Insert_Input;
|
|
1360
|
+
on_conflict?: InputMaybe<ClientDeletedMetrics_On_Conflict>;
|
|
1361
|
+
};
|
|
1362
|
+
/** mutation root */
|
|
1222
1363
|
export declare type Mutation_RootInsert_ExternalDashboardMetricsArgs = {
|
|
1223
1364
|
objects: Array<ExternalDashboardMetrics_Insert_Input>;
|
|
1224
1365
|
on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
|
|
@@ -1293,10 +1434,14 @@ export declare enum Order_By {
|
|
|
1293
1434
|
}
|
|
1294
1435
|
export declare type Query_Root = {
|
|
1295
1436
|
__typename?: 'query_root';
|
|
1296
|
-
/**
|
|
1437
|
+
/** An array relationship */
|
|
1297
1438
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1298
1439
|
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
1299
1440
|
clientDashboardMetrics_by_pk?: Maybe<ClientDashboardMetrics>;
|
|
1441
|
+
/** An array relationship */
|
|
1442
|
+
clientDeletedMetrics: Array<ClientDeletedMetrics>;
|
|
1443
|
+
/** fetch data from the table: "clientDeletedMetrics" using primary key columns */
|
|
1444
|
+
clientDeletedMetrics_by_pk?: Maybe<ClientDeletedMetrics>;
|
|
1300
1445
|
/** fetch data from the table: "companyIntegrations" */
|
|
1301
1446
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1302
1447
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1348,6 +1493,17 @@ export declare type Query_RootClientDashboardMetrics_By_PkArgs = {
|
|
|
1348
1493
|
clientId: Scalars['String'];
|
|
1349
1494
|
externalDashboardId: Scalars['uuid'];
|
|
1350
1495
|
};
|
|
1496
|
+
export declare type Query_RootClientDeletedMetricsArgs = {
|
|
1497
|
+
distinct_on?: InputMaybe<Array<ClientDeletedMetrics_Select_Column>>;
|
|
1498
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1499
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1500
|
+
order_by?: InputMaybe<Array<ClientDeletedMetrics_Order_By>>;
|
|
1501
|
+
where?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
1502
|
+
};
|
|
1503
|
+
export declare type Query_RootClientDeletedMetrics_By_PkArgs = {
|
|
1504
|
+
clientId: Scalars['String'];
|
|
1505
|
+
externalMetricId: Scalars['uuid'];
|
|
1506
|
+
};
|
|
1351
1507
|
export declare type Query_RootCompanyIntegrationsArgs = {
|
|
1352
1508
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1353
1509
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1451,10 +1607,14 @@ export declare type Query_RootThemes_By_PkArgs = {
|
|
|
1451
1607
|
};
|
|
1452
1608
|
export declare type Subscription_Root = {
|
|
1453
1609
|
__typename?: 'subscription_root';
|
|
1454
|
-
/**
|
|
1610
|
+
/** An array relationship */
|
|
1455
1611
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1456
1612
|
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
1457
1613
|
clientDashboardMetrics_by_pk?: Maybe<ClientDashboardMetrics>;
|
|
1614
|
+
/** An array relationship */
|
|
1615
|
+
clientDeletedMetrics: Array<ClientDeletedMetrics>;
|
|
1616
|
+
/** fetch data from the table: "clientDeletedMetrics" using primary key columns */
|
|
1617
|
+
clientDeletedMetrics_by_pk?: Maybe<ClientDeletedMetrics>;
|
|
1458
1618
|
/** fetch data from the table: "companyIntegrations" */
|
|
1459
1619
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1460
1620
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1505,6 +1665,17 @@ export declare type Subscription_RootClientDashboardMetrics_By_PkArgs = {
|
|
|
1505
1665
|
clientId: Scalars['String'];
|
|
1506
1666
|
externalDashboardId: Scalars['uuid'];
|
|
1507
1667
|
};
|
|
1668
|
+
export declare type Subscription_RootClientDeletedMetricsArgs = {
|
|
1669
|
+
distinct_on?: InputMaybe<Array<ClientDeletedMetrics_Select_Column>>;
|
|
1670
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1671
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1672
|
+
order_by?: InputMaybe<Array<ClientDeletedMetrics_Order_By>>;
|
|
1673
|
+
where?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
|
|
1674
|
+
};
|
|
1675
|
+
export declare type Subscription_RootClientDeletedMetrics_By_PkArgs = {
|
|
1676
|
+
clientId: Scalars['String'];
|
|
1677
|
+
externalMetricId: Scalars['uuid'];
|
|
1678
|
+
};
|
|
1508
1679
|
export declare type Subscription_RootCompanyIntegrationsArgs = {
|
|
1509
1680
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1510
1681
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1823,6 +1994,7 @@ export declare type CompanySubsetTableDataMutation = {
|
|
|
1823
1994
|
};
|
|
1824
1995
|
export declare type EmbeddedDashboardMetricsQueryVariables = Exact<{
|
|
1825
1996
|
externalDashboardId?: Scalars['String'];
|
|
1997
|
+
clientId?: Scalars['String'];
|
|
1826
1998
|
}>;
|
|
1827
1999
|
export declare type EmbeddedDashboardMetricsQuery = {
|
|
1828
2000
|
__typename?: 'query_root';
|
|
@@ -1955,6 +2127,18 @@ export declare type UnderlyingDataMutation = {
|
|
|
1955
2127
|
timeTaken: number;
|
|
1956
2128
|
} | null;
|
|
1957
2129
|
};
|
|
2130
|
+
export declare type MarkArchiveMetricMutationVariables = Exact<{
|
|
2131
|
+
id?: Scalars['uuid'];
|
|
2132
|
+
clientId?: Scalars['String'];
|
|
2133
|
+
}>;
|
|
2134
|
+
export declare type MarkArchiveMetricMutation = {
|
|
2135
|
+
__typename?: 'mutation_root';
|
|
2136
|
+
insert_clientDeletedMetrics_one?: {
|
|
2137
|
+
__typename?: 'clientDeletedMetrics';
|
|
2138
|
+
clientId: string;
|
|
2139
|
+
externalMetricId: any;
|
|
2140
|
+
} | null;
|
|
2141
|
+
};
|
|
1958
2142
|
export declare type MarkClientDashboardLayoutChangeMutationVariables = Exact<{
|
|
1959
2143
|
clientId: Scalars['String'];
|
|
1960
2144
|
externalDashboardId: Scalars['uuid'];
|
|
@@ -1967,16 +2151,6 @@ export declare type MarkClientDashboardLayoutChangeMutation = {
|
|
|
1967
2151
|
externalDashboardId: any;
|
|
1968
2152
|
} | null;
|
|
1969
2153
|
};
|
|
1970
|
-
export declare type MarkDeleteMetricMutationVariables = Exact<{
|
|
1971
|
-
id?: Scalars['uuid'];
|
|
1972
|
-
}>;
|
|
1973
|
-
export declare type MarkDeleteMetricMutation = {
|
|
1974
|
-
__typename?: 'mutation_root';
|
|
1975
|
-
update_externalMetrics_by_pk?: {
|
|
1976
|
-
__typename?: 'externalMetrics';
|
|
1977
|
-
id: any;
|
|
1978
|
-
} | null;
|
|
1979
|
-
};
|
|
1980
2154
|
export declare type PreviewTableMutationVariables = Exact<{
|
|
1981
2155
|
companyId?: InputMaybe<Scalars['String']>;
|
|
1982
2156
|
tableName?: InputMaybe<Scalars['String']>;
|
|
@@ -2125,7 +2299,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
|
|
|
2125
2299
|
clientId?: InputMaybe<string> | undefined;
|
|
2126
2300
|
companyId?: InputMaybe<string> | undefined;
|
|
2127
2301
|
}>, TContext>;
|
|
2128
|
-
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {
|
|
2302
|
+
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\", $clientId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, _not: {externalMetric: {clientDeletedMetrics: {clientId: {_eq: $clientId}}}}}\n ) {\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 ";
|
|
2129
2303
|
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>;
|
|
2130
2304
|
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 ";
|
|
2131
2305
|
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>;
|
|
@@ -2151,6 +2325,14 @@ export declare const useUnderlyingDataMutation: <TError = unknown, TContext = un
|
|
|
2151
2325
|
query?: InputMaybe<string> | undefined;
|
|
2152
2326
|
value?: InputMaybe<Scalars['json']>;
|
|
2153
2327
|
}>, TContext>;
|
|
2328
|
+
export declare const MarkArchiveMetricDocument = "\n mutation MarkArchiveMetric($id: uuid! = \"\", $clientId: String! = \"\") {\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $id, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n}\n ";
|
|
2329
|
+
export declare const useMarkArchiveMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkArchiveMetricMutation, TError, Exact<{
|
|
2330
|
+
id?: Scalars['uuid'];
|
|
2331
|
+
clientId?: string | undefined;
|
|
2332
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<MarkArchiveMetricMutation, TError, Exact<{
|
|
2333
|
+
id?: Scalars['uuid'];
|
|
2334
|
+
clientId?: string | undefined;
|
|
2335
|
+
}>, TContext>;
|
|
2154
2336
|
export declare const MarkClientDashboardLayoutChangeDocument = "\n mutation MarkClientDashboardLayoutChange($clientId: String!, $externalDashboardId: uuid!) {\n insert_clientDashboardMetrics_one(\n object: {clientId: $clientId, externalDashboardId: $externalDashboardId}\n ) {\n clientId\n externalDashboardId\n }\n}\n ";
|
|
2155
2337
|
export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
|
|
2156
2338
|
clientId: Scalars['String'];
|
|
@@ -2159,12 +2341,6 @@ export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unkno
|
|
|
2159
2341
|
clientId: Scalars['String'];
|
|
2160
2342
|
externalDashboardId: Scalars['uuid'];
|
|
2161
2343
|
}>, TContext>;
|
|
2162
|
-
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 ";
|
|
2163
|
-
export declare const useMarkDeleteMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkDeleteMetricMutation, TError, Exact<{
|
|
2164
|
-
id?: Scalars['uuid'];
|
|
2165
|
-
}>, TContext> | undefined) => import("react-query").UseMutationResult<MarkDeleteMetricMutation, TError, Exact<{
|
|
2166
|
-
id?: Scalars['uuid'];
|
|
2167
|
-
}>, TContext>;
|
|
2168
2344
|
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 ";
|
|
2169
2345
|
export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
|
|
2170
2346
|
companyId?: InputMaybe<string> | undefined;
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ModalProps } from '@/components/Modal';
|
|
3
|
-
export interface DeleteMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
|
|
4
|
-
onSuccess: () => void;
|
|
5
|
-
metricId: string;
|
|
6
|
-
dashboardId: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const DeleteMetricModal: React.FC<DeleteMetricModalProps>;
|