@databrainhq/plugin 0.8.3 → 0.8.5

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/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
+ }
@@ -215,6 +215,165 @@ export declare type TableList = {
215
215
  columns?: Maybe<Array<Maybe<SubsetColumns>>>;
216
216
  tableName: Scalars['String'];
217
217
  };
218
+ /** Client's dashboard metrics layout tracker. */
219
+ export declare type ClientDashboardMetrics = {
220
+ __typename?: 'clientDashboardMetrics';
221
+ clientId: Scalars['String'];
222
+ /** An object relationship */
223
+ externalDashboard: ExternalDashboards;
224
+ externalDashboardId: Scalars['uuid'];
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
+ };
232
+ /** Boolean expression to filter rows from the table "clientDashboardMetrics". All fields are combined with a logical 'AND'. */
233
+ export declare type ClientDashboardMetrics_Bool_Exp = {
234
+ _and?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
235
+ _not?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
236
+ _or?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
237
+ clientId?: InputMaybe<String_Comparison_Exp>;
238
+ externalDashboard?: InputMaybe<ExternalDashboards_Bool_Exp>;
239
+ externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
240
+ };
241
+ /** unique or primary key constraints on table "clientDashboardMetrics" */
242
+ export declare enum ClientDashboardMetrics_Constraint {
243
+ /** unique or primary key constraint on columns "clientId", "externalDashboardId" */
244
+ ClientDashboardMetricsClientIdExternalDashboardIdKey = "clientDashboardMetrics_clientId_externalDashboardId_key",
245
+ /** unique or primary key constraint on columns "clientId", "externalDashboardId" */
246
+ ClientDashboardMetricsPkey = "clientDashboardMetrics_pkey"
247
+ }
248
+ /** input type for inserting data into table "clientDashboardMetrics" */
249
+ export declare type ClientDashboardMetrics_Insert_Input = {
250
+ clientId?: InputMaybe<Scalars['String']>;
251
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
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
+ };
263
+ /** response of any mutation on the table "clientDashboardMetrics" */
264
+ export declare type ClientDashboardMetrics_Mutation_Response = {
265
+ __typename?: 'clientDashboardMetrics_mutation_response';
266
+ /** number of rows affected by the mutation */
267
+ affected_rows: Scalars['Int'];
268
+ /** data from the rows affected by the mutation */
269
+ returning: Array<ClientDashboardMetrics>;
270
+ };
271
+ /** on_conflict condition type for table "clientDashboardMetrics" */
272
+ export declare type ClientDashboardMetrics_On_Conflict = {
273
+ constraint: ClientDashboardMetrics_Constraint;
274
+ update_columns?: Array<ClientDashboardMetrics_Update_Column>;
275
+ where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
276
+ };
277
+ /** Ordering options when selecting data from "clientDashboardMetrics". */
278
+ export declare type ClientDashboardMetrics_Order_By = {
279
+ clientId?: InputMaybe<Order_By>;
280
+ externalDashboard?: InputMaybe<ExternalDashboards_Order_By>;
281
+ externalDashboardId?: InputMaybe<Order_By>;
282
+ };
283
+ /** select columns of table "clientDashboardMetrics" */
284
+ export declare enum ClientDashboardMetrics_Select_Column {
285
+ /** column name */
286
+ ClientId = "clientId",
287
+ /** column name */
288
+ ExternalDashboardId = "externalDashboardId"
289
+ }
290
+ /** placeholder for update columns of table "clientDashboardMetrics" (current role has no relevant permissions) */
291
+ export declare enum ClientDashboardMetrics_Update_Column {
292
+ /** placeholder (do not use) */
293
+ Placeholder = "_PLACEHOLDER"
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
+ }
218
377
  /** columns and relationships of "companyIntegrations" */
219
378
  export declare type CompanyIntegrations = {
220
379
  __typename?: 'companyIntegrations';
@@ -525,6 +684,8 @@ export declare enum ExternalDashboardThemes_Select_Column {
525
684
  /** columns and relationships of "externalDashboards" */
526
685
  export declare type ExternalDashboards = {
527
686
  __typename?: 'externalDashboards';
687
+ /** An array relationship */
688
+ clientDashboardMetrics: Array<ClientDashboardMetrics>;
528
689
  companyId: Scalars['uuid'];
529
690
  externalDashboardId: Scalars['String'];
530
691
  /** An array relationship */
@@ -534,6 +695,14 @@ export declare type ExternalDashboards = {
534
695
  name: Scalars['String'];
535
696
  };
536
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" */
537
706
  export declare type ExternalDashboardsExternalDashboardMetricsArgs = {
538
707
  distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
539
708
  limit?: InputMaybe<Scalars['Int']>;
@@ -550,6 +719,7 @@ export declare type ExternalDashboards_Bool_Exp = {
550
719
  _and?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
551
720
  _not?: InputMaybe<ExternalDashboards_Bool_Exp>;
552
721
  _or?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
722
+ clientDashboardMetrics?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
553
723
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
554
724
  externalDashboardId?: InputMaybe<String_Comparison_Exp>;
555
725
  externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
@@ -559,6 +729,7 @@ export declare type ExternalDashboards_Bool_Exp = {
559
729
  };
560
730
  /** Ordering options when selecting data from "externalDashboards". */
561
731
  export declare type ExternalDashboards_Order_By = {
732
+ clientDashboardMetrics_aggregate?: InputMaybe<ClientDashboardMetrics_Aggregate_Order_By>;
562
733
  companyId?: InputMaybe<Order_By>;
563
734
  externalDashboardId?: InputMaybe<Order_By>;
564
735
  externalDashboardMetrics_aggregate?: InputMaybe<ExternalDashboardMetrics_Aggregate_Order_By>;
@@ -584,6 +755,8 @@ export declare type ExternalMetrics = {
584
755
  __typename?: 'externalMetrics';
585
756
  chartOptions: Scalars['jsonb'];
586
757
  clickActions: Scalars['json'];
758
+ /** An array relationship */
759
+ clientDeletedMetrics: Array<ClientDeletedMetrics>;
587
760
  clientId?: Maybe<Scalars['String']>;
588
761
  companyId: Scalars['uuid'];
589
762
  /** An object relationship */
@@ -624,6 +797,14 @@ export declare type ExternalMetricsClickActionsArgs = {
624
797
  path?: InputMaybe<Scalars['String']>;
625
798
  };
626
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 */
627
808
  export declare type ExternalMetricsExternalDashboardMetricsArgs = {
628
809
  distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
629
810
  limit?: InputMaybe<Scalars['Int']>;
@@ -754,6 +935,10 @@ export declare type ExternalMetrics_Aggregate_Order_By = {
754
935
  max?: InputMaybe<ExternalMetrics_Max_Order_By>;
755
936
  min?: InputMaybe<ExternalMetrics_Min_Order_By>;
756
937
  };
938
+ /** append existing jsonb value of filtered columns with new jsonb value */
939
+ export declare type ExternalMetrics_Append_Input = {
940
+ resizeAttributes?: InputMaybe<Scalars['jsonb']>;
941
+ };
757
942
  /** Boolean expression to filter rows from the table "externalMetrics". All fields are combined with a logical 'AND'. */
758
943
  export declare type ExternalMetrics_Bool_Exp = {
759
944
  _and?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
@@ -761,6 +946,7 @@ export declare type ExternalMetrics_Bool_Exp = {
761
946
  _or?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
762
947
  chartOptions?: InputMaybe<Jsonb_Comparison_Exp>;
763
948
  clickActions?: InputMaybe<Json_Comparison_Exp>;
949
+ clientDeletedMetrics?: InputMaybe<ClientDeletedMetrics_Bool_Exp>;
764
950
  clientId?: InputMaybe<String_Comparison_Exp>;
765
951
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
766
952
  companyIntegration?: InputMaybe<CompanyIntegrations_Bool_Exp>;
@@ -796,9 +982,22 @@ export declare enum ExternalMetrics_Constraint {
796
982
  /** unique or primary key constraint on columns "id" */
797
983
  ExternalMetricsPkey = "externalMetrics_pkey"
798
984
  }
985
+ /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */
986
+ export declare type ExternalMetrics_Delete_At_Path_Input = {
987
+ resizeAttributes?: InputMaybe<Array<Scalars['String']>>;
988
+ };
989
+ /** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */
990
+ export declare type ExternalMetrics_Delete_Elem_Input = {
991
+ resizeAttributes?: InputMaybe<Scalars['Int']>;
992
+ };
993
+ /** delete key/value pair or string element. key/value pairs are matched based on their key value */
994
+ export declare type ExternalMetrics_Delete_Key_Input = {
995
+ resizeAttributes?: InputMaybe<Scalars['String']>;
996
+ };
799
997
  /** input type for inserting data into table "externalMetrics" */
800
998
  export declare type ExternalMetrics_Insert_Input = {
801
999
  chartOptions?: InputMaybe<Scalars['jsonb']>;
1000
+ clientDeletedMetrics?: InputMaybe<ClientDeletedMetrics_Arr_Rel_Insert_Input>;
802
1001
  clientId?: InputMaybe<Scalars['String']>;
803
1002
  companyId?: InputMaybe<Scalars['uuid']>;
804
1003
  companyIntegrationId?: InputMaybe<Scalars['uuid']>;
@@ -883,6 +1082,7 @@ export declare type ExternalMetrics_On_Conflict = {
883
1082
  export declare type ExternalMetrics_Order_By = {
884
1083
  chartOptions?: InputMaybe<Order_By>;
885
1084
  clickActions?: InputMaybe<Order_By>;
1085
+ clientDeletedMetrics_aggregate?: InputMaybe<ClientDeletedMetrics_Aggregate_Order_By>;
886
1086
  clientId?: InputMaybe<Order_By>;
887
1087
  companyId?: InputMaybe<Order_By>;
888
1088
  companyIntegration?: InputMaybe<CompanyIntegrations_Order_By>;
@@ -915,6 +1115,10 @@ export declare type ExternalMetrics_Order_By = {
915
1115
  export declare type ExternalMetrics_Pk_Columns_Input = {
916
1116
  id: Scalars['uuid'];
917
1117
  };
1118
+ /** prepend existing jsonb value of filtered columns with new jsonb value */
1119
+ export declare type ExternalMetrics_Prepend_Input = {
1120
+ resizeAttributes?: InputMaybe<Scalars['jsonb']>;
1121
+ };
918
1122
  /** select columns of table "externalMetrics" */
919
1123
  export declare enum ExternalMetrics_Select_Column {
920
1124
  /** column name */
@@ -973,11 +1177,14 @@ export declare enum ExternalMetrics_Select_Column {
973
1177
  /** input type for updating data in table "externalMetrics" */
974
1178
  export declare type ExternalMetrics_Set_Input = {
975
1179
  isMarkedDeleted?: InputMaybe<Scalars['Boolean']>;
1180
+ resizeAttributes?: InputMaybe<Scalars['jsonb']>;
976
1181
  };
977
1182
  /** update columns of table "externalMetrics" */
978
1183
  export declare enum ExternalMetrics_Update_Column {
979
1184
  /** column name */
980
- IsMarkedDeleted = "isMarkedDeleted"
1185
+ IsMarkedDeleted = "isMarkedDeleted",
1186
+ /** column name */
1187
+ ResizeAttributes = "resizeAttributes"
981
1188
  }
982
1189
  /** columns and relationships of "guestTokens" */
983
1190
  export declare type GuestTokens = {
@@ -1069,6 +1276,14 @@ export declare type Mutation_Root = {
1069
1276
  generateExternalMetricQuery?: Maybe<GenerateExternalMetricQueryOutput>;
1070
1277
  getUnderlyingData?: Maybe<GetUnderlyingDataOutput>;
1071
1278
  getUnderlyingSqlQuery?: Maybe<GetUnderlyingSqlQueryOutput>;
1279
+ /** insert data into the table: "clientDashboardMetrics" */
1280
+ insert_clientDashboardMetrics?: Maybe<ClientDashboardMetrics_Mutation_Response>;
1281
+ /** insert a single row into the table: "clientDashboardMetrics" */
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>;
1072
1287
  /** insert data into the table: "externalDashboardMetrics" */
1073
1288
  insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
1074
1289
  /** insert a single row into the table: "externalDashboardMetrics" */
@@ -1125,6 +1340,26 @@ export declare type Mutation_RootGetUnderlyingSqlQueryArgs = {
1125
1340
  input: GetUnderlyingSqlQueryInput;
1126
1341
  };
1127
1342
  /** mutation root */
1343
+ export declare type Mutation_RootInsert_ClientDashboardMetricsArgs = {
1344
+ objects: Array<ClientDashboardMetrics_Insert_Input>;
1345
+ on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
1346
+ };
1347
+ /** mutation root */
1348
+ export declare type Mutation_RootInsert_ClientDashboardMetrics_OneArgs = {
1349
+ object: ClientDashboardMetrics_Insert_Input;
1350
+ on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
1351
+ };
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 */
1128
1363
  export declare type Mutation_RootInsert_ExternalDashboardMetricsArgs = {
1129
1364
  objects: Array<ExternalDashboardMetrics_Insert_Input>;
1130
1365
  on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
@@ -1164,11 +1399,21 @@ export declare type Mutation_RootSendRawCsvArgs = {
1164
1399
  };
1165
1400
  /** mutation root */
1166
1401
  export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
1402
+ _append?: InputMaybe<ExternalMetrics_Append_Input>;
1403
+ _delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
1404
+ _delete_elem?: InputMaybe<ExternalMetrics_Delete_Elem_Input>;
1405
+ _delete_key?: InputMaybe<ExternalMetrics_Delete_Key_Input>;
1406
+ _prepend?: InputMaybe<ExternalMetrics_Prepend_Input>;
1167
1407
  _set?: InputMaybe<ExternalMetrics_Set_Input>;
1168
1408
  where: ExternalMetrics_Bool_Exp;
1169
1409
  };
1170
1410
  /** mutation root */
1171
1411
  export declare type Mutation_RootUpdate_ExternalMetrics_By_PkArgs = {
1412
+ _append?: InputMaybe<ExternalMetrics_Append_Input>;
1413
+ _delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
1414
+ _delete_elem?: InputMaybe<ExternalMetrics_Delete_Elem_Input>;
1415
+ _delete_key?: InputMaybe<ExternalMetrics_Delete_Key_Input>;
1416
+ _prepend?: InputMaybe<ExternalMetrics_Prepend_Input>;
1172
1417
  _set?: InputMaybe<ExternalMetrics_Set_Input>;
1173
1418
  pk_columns: ExternalMetrics_Pk_Columns_Input;
1174
1419
  };
@@ -1189,6 +1434,14 @@ export declare enum Order_By {
1189
1434
  }
1190
1435
  export declare type Query_Root = {
1191
1436
  __typename?: 'query_root';
1437
+ /** An array relationship */
1438
+ clientDashboardMetrics: Array<ClientDashboardMetrics>;
1439
+ /** fetch data from the table: "clientDashboardMetrics" using primary key columns */
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>;
1192
1445
  /** fetch data from the table: "companyIntegrations" */
1193
1446
  companyIntegrations: Array<CompanyIntegrations>;
1194
1447
  /** fetch data from the table: "companyIntegrations" using primary key columns */
@@ -1229,6 +1482,28 @@ export declare type Query_Root = {
1229
1482
  /** fetch data from the table: "themes" using primary key columns */
1230
1483
  themes_by_pk?: Maybe<Themes>;
1231
1484
  };
1485
+ export declare type Query_RootClientDashboardMetricsArgs = {
1486
+ distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
1487
+ limit?: InputMaybe<Scalars['Int']>;
1488
+ offset?: InputMaybe<Scalars['Int']>;
1489
+ order_by?: InputMaybe<Array<ClientDashboardMetrics_Order_By>>;
1490
+ where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
1491
+ };
1492
+ export declare type Query_RootClientDashboardMetrics_By_PkArgs = {
1493
+ clientId: Scalars['String'];
1494
+ externalDashboardId: Scalars['uuid'];
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
+ };
1232
1507
  export declare type Query_RootCompanyIntegrationsArgs = {
1233
1508
  distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
1234
1509
  limit?: InputMaybe<Scalars['Int']>;
@@ -1332,6 +1607,14 @@ export declare type Query_RootThemes_By_PkArgs = {
1332
1607
  };
1333
1608
  export declare type Subscription_Root = {
1334
1609
  __typename?: 'subscription_root';
1610
+ /** An array relationship */
1611
+ clientDashboardMetrics: Array<ClientDashboardMetrics>;
1612
+ /** fetch data from the table: "clientDashboardMetrics" using primary key columns */
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>;
1335
1618
  /** fetch data from the table: "companyIntegrations" */
1336
1619
  companyIntegrations: Array<CompanyIntegrations>;
1337
1620
  /** fetch data from the table: "companyIntegrations" using primary key columns */
@@ -1371,6 +1654,28 @@ export declare type Subscription_Root = {
1371
1654
  /** fetch data from the table: "themes" using primary key columns */
1372
1655
  themes_by_pk?: Maybe<Themes>;
1373
1656
  };
1657
+ export declare type Subscription_RootClientDashboardMetricsArgs = {
1658
+ distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
1659
+ limit?: InputMaybe<Scalars['Int']>;
1660
+ offset?: InputMaybe<Scalars['Int']>;
1661
+ order_by?: InputMaybe<Array<ClientDashboardMetrics_Order_By>>;
1662
+ where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
1663
+ };
1664
+ export declare type Subscription_RootClientDashboardMetrics_By_PkArgs = {
1665
+ clientId: Scalars['String'];
1666
+ externalDashboardId: Scalars['uuid'];
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
+ };
1374
1679
  export declare type Subscription_RootCompanyIntegrationsArgs = {
1375
1680
  distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
1376
1681
  limit?: InputMaybe<Scalars['Int']>;
@@ -1648,6 +1953,18 @@ export declare type GenerateEmbeddedMeticMutation = {
1648
1953
  } | null;
1649
1954
  } | null;
1650
1955
  };
1956
+ export declare type GetClientDashboardLayoutQueryVariables = Exact<{
1957
+ clientId: Scalars['String'];
1958
+ externalDashboardId: Scalars['uuid'];
1959
+ }>;
1960
+ export declare type GetClientDashboardLayoutQuery = {
1961
+ __typename?: 'query_root';
1962
+ clientDashboardMetrics_by_pk?: {
1963
+ __typename?: 'clientDashboardMetrics';
1964
+ clientId: string;
1965
+ externalDashboardId: any;
1966
+ } | null;
1967
+ };
1651
1968
  export declare type CompanySubsetTableDataMutationVariables = Exact<{
1652
1969
  clientId?: InputMaybe<Scalars['String']>;
1653
1970
  companyId?: InputMaybe<Scalars['String']>;
@@ -1809,8 +2126,21 @@ export declare type UnderlyingDataMutation = {
1809
2126
  timeTaken: number;
1810
2127
  } | null;
1811
2128
  };
2129
+ export declare type MarkClientDashboardLayoutChangeMutationVariables = Exact<{
2130
+ clientId: Scalars['String'];
2131
+ externalDashboardId: Scalars['uuid'];
2132
+ }>;
2133
+ export declare type MarkClientDashboardLayoutChangeMutation = {
2134
+ __typename?: 'mutation_root';
2135
+ insert_clientDashboardMetrics_one?: {
2136
+ __typename?: 'clientDashboardMetrics';
2137
+ clientId: string;
2138
+ externalDashboardId: any;
2139
+ } | null;
2140
+ };
1812
2141
  export declare type MarkDeleteMetricMutationVariables = Exact<{
1813
2142
  id?: Scalars['uuid'];
2143
+ clientId?: Scalars['String'];
1814
2144
  }>;
1815
2145
  export declare type MarkDeleteMetricMutation = {
1816
2146
  __typename?: 'mutation_root';
@@ -1818,6 +2148,11 @@ export declare type MarkDeleteMetricMutation = {
1818
2148
  __typename?: 'externalMetrics';
1819
2149
  id: any;
1820
2150
  } | null;
2151
+ insert_clientDeletedMetrics_one?: {
2152
+ __typename?: 'clientDeletedMetrics';
2153
+ clientId: string;
2154
+ externalMetricId: any;
2155
+ } | null;
1821
2156
  };
1822
2157
  export declare type PreviewTableMutationVariables = Exact<{
1823
2158
  companyId?: InputMaybe<Scalars['String']>;
@@ -1872,6 +2207,17 @@ export declare type RawCsvMutation = {
1872
2207
  } | null;
1873
2208
  } | null;
1874
2209
  };
2210
+ export declare type ResizeExternalMetricMutationVariables = Exact<{
2211
+ id: Scalars['uuid'];
2212
+ resizeAttributes: Scalars['jsonb'];
2213
+ }>;
2214
+ export declare type ResizeExternalMetricMutation = {
2215
+ __typename?: 'mutation_root';
2216
+ update_externalMetrics_by_pk?: {
2217
+ __typename?: 'externalMetrics';
2218
+ resizeAttributes: any;
2219
+ } | null;
2220
+ };
1875
2221
  export declare const CreateExternalMetricDocument = "\n mutation CreateExternalMetric($chartOptions: jsonb = \"\", $companyId: uuid = \"\", $companyIntegrationId: uuid = \"\", $description: String = \"\", $inputFields: jsonb = \"\", $integrationName: String = \"\", $metricId: String = \"\", $metricQuery: String = \"\", $name: String = \"\", $outputColumns: String = \"\", $query: String = \"\", $isLive: Boolean, $clientId: String = \"\", $isCreatedByClient: Boolean = false, $createdBy: String = \"\", $timeGrain: String = \"\", $externalDashboardIds: [externalDashboardMetrics_insert_input!] = {}, $selectedGroupBy: jsonb = [], $isEnableGroupBy: Boolean = false, $groupBy: jsonb = {}) {\n insert_externalMetrics_one(\n object: {chartOptions: $chartOptions, companyId: $companyId, companyIntegrationId: $companyIntegrationId, description: $description, inputFields: $inputFields, integrationName: $integrationName, metricId: $metricId, metricQuery: $metricQuery, name: $name, outputColumns: $outputColumns, query: $query, isLive: $isLive, clientId: $clientId, isCreatedByClient: $isCreatedByClient, createdBy: $createdBy, timeGrain: $timeGrain, externalDashboardMetrics: {data: $externalDashboardIds}, selectedGroupBy: $selectedGroupBy, isEnableGroupBy: $isEnableGroupBy, groupBy: $groupBy}\n ) {\n id\n externalDashboardMetrics {\n externalDashboardId\n }\n }\n}\n ";
1876
2222
  export declare const useCreateExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CreateExternalMetricMutation, TError, Exact<{
1877
2223
  chartOptions?: InputMaybe<Scalars['jsonb']>;
@@ -1946,6 +2292,8 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
1946
2292
  queryPrompt?: InputMaybe<string> | undefined;
1947
2293
  timeGrain?: InputMaybe<string> | undefined;
1948
2294
  }>, TContext>;
2295
+ export declare const GetClientDashboardLayoutDocument = "\n query GetClientDashboardLayout($clientId: String!, $externalDashboardId: uuid!) {\n clientDashboardMetrics_by_pk(\n clientId: $clientId\n externalDashboardId: $externalDashboardId\n ) {\n clientId\n externalDashboardId\n }\n}\n ";
2296
+ export declare const useGetClientDashboardLayoutQuery: <TData = GetClientDashboardLayoutQuery, TError = unknown>(variables: GetClientDashboardLayoutQueryVariables, options?: UseQueryOptions<GetClientDashboardLayoutQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
1949
2297
  export declare const CompanySubsetTableDataDocument = "\n mutation CompanySubsetTableData($clientId: String = \"\", $companyId: String = \"\") {\n companySubsetTableData(input: {clientId: $clientId, companyId: $companyId}) {\n companyIntegrationId\n dbName\n error {\n message\n }\n tableList {\n tableName\n columns {\n datatype\n name\n as\n }\n clientColumn\n }\n }\n}\n ";
1950
2298
  export declare const useCompanySubsetTableDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CompanySubsetTableDataMutation, TError, Exact<{
1951
2299
  clientId?: InputMaybe<string> | undefined;
@@ -1980,11 +2328,21 @@ export declare const useUnderlyingDataMutation: <TError = unknown, TContext = un
1980
2328
  query?: InputMaybe<string> | undefined;
1981
2329
  value?: InputMaybe<Scalars['json']>;
1982
2330
  }>, TContext>;
1983
- 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 ";
2331
+ 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 ";
2332
+ export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
2333
+ clientId: Scalars['String'];
2334
+ externalDashboardId: Scalars['uuid'];
2335
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
2336
+ clientId: Scalars['String'];
2337
+ externalDashboardId: Scalars['uuid'];
2338
+ }>, TContext>;
2339
+ export declare const MarkDeleteMetricDocument = "\n mutation MarkDeleteMetric($id: uuid! = \"\", $clientId: String! = \"\") {\n update_externalMetrics_by_pk(\n pk_columns: {id: $id}\n _set: {isMarkedDeleted: true}\n ) {\n id\n }\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $id, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n}\n ";
1984
2340
  export declare const useMarkDeleteMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkDeleteMetricMutation, TError, Exact<{
1985
2341
  id?: Scalars['uuid'];
2342
+ clientId?: string | undefined;
1986
2343
  }>, TContext> | undefined) => import("react-query").UseMutationResult<MarkDeleteMetricMutation, TError, Exact<{
1987
2344
  id?: Scalars['uuid'];
2345
+ clientId?: string | undefined;
1988
2346
  }>, TContext>;
1989
2347
  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 ";
1990
2348
  export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
@@ -2008,3 +2366,11 @@ export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(o
2008
2366
  recipientAddress?: InputMaybe<string> | undefined;
2009
2367
  sqlQuery?: InputMaybe<string> | undefined;
2010
2368
  }>, TContext>;
2369
+ export declare const ResizeExternalMetricDocument = "\n mutation resizeExternalMetric($id: uuid!, $resizeAttributes: jsonb!) {\n update_externalMetrics_by_pk(\n pk_columns: {id: $id}\n _set: {resizeAttributes: $resizeAttributes}\n ) {\n resizeAttributes\n }\n}\n ";
2370
+ export declare const useResizeExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<ResizeExternalMetricMutation, TError, Exact<{
2371
+ id: Scalars['uuid'];
2372
+ resizeAttributes: Scalars['jsonb'];
2373
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<ResizeExternalMetricMutation, TError, Exact<{
2374
+ id: Scalars['uuid'];
2375
+ resizeAttributes: Scalars['jsonb'];
2376
+ }>, TContext>;