@databrainhq/plugin 0.8.24 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,8 +58,10 @@ export declare type EmbeddedDashboardDataOutput = {
58
58
  externalDashboardId?: Maybe<Scalars['String']>;
59
59
  externalMetrics?: Maybe<Array<Maybe<Scalars['json']>>>;
60
60
  guestToken?: Maybe<Scalars['String']>;
61
+ isAllowedToChangeLayout?: Maybe<Scalars['Boolean']>;
61
62
  isAllowedToCreateMetrics?: Maybe<Scalars['Boolean']>;
62
63
  isAllowedToDeleteMetrics?: Maybe<Scalars['Boolean']>;
64
+ isAllowedToUpdateMetrics?: Maybe<Scalars['Boolean']>;
63
65
  isLive?: Maybe<Scalars['Boolean']>;
64
66
  isTestKey?: Maybe<Scalars['Boolean']>;
65
67
  rlsSettings?: Maybe<Scalars['json']>;
@@ -167,8 +169,10 @@ export declare type PreviewTableOutput = {
167
169
  };
168
170
  export declare type SendRawCsvInput = {
169
171
  companyId: Scalars['String'];
172
+ metricName?: InputMaybe<Scalars['String']>;
170
173
  recipientAddress: Scalars['String'];
171
174
  sqlQuery: Scalars['String'];
175
+ workspaceId?: InputMaybe<Scalars['String']>;
172
176
  };
173
177
  export declare type SendRawCsvOutput = {
174
178
  __typename?: 'SendRawCsvOutput';
@@ -226,6 +230,7 @@ export declare type ClientDashboardLayout = {
226
230
  /** An object relationship */
227
231
  externalDashboard: ExternalDashboards;
228
232
  externalDashboardId: Scalars['uuid'];
233
+ isLocked: Scalars['Boolean'];
229
234
  layout: Scalars['jsonb'];
230
235
  };
231
236
  /** Metric resize attributes of client dashboard. */
@@ -250,6 +255,7 @@ export declare type ClientDashboardLayout_Bool_Exp = {
250
255
  clientId?: InputMaybe<String_Comparison_Exp>;
251
256
  externalDashboard?: InputMaybe<ExternalDashboards_Bool_Exp>;
252
257
  externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
258
+ isLocked?: InputMaybe<Boolean_Comparison_Exp>;
253
259
  layout?: InputMaybe<Jsonb_Comparison_Exp>;
254
260
  };
255
261
  /** unique or primary key constraints on table "clientDashboardLayout" */
@@ -273,6 +279,7 @@ export declare type ClientDashboardLayout_Delete_Key_Input = {
273
279
  export declare type ClientDashboardLayout_Insert_Input = {
274
280
  clientId?: InputMaybe<Scalars['String']>;
275
281
  externalDashboardId?: InputMaybe<Scalars['uuid']>;
282
+ isLocked?: InputMaybe<Scalars['Boolean']>;
276
283
  layout?: InputMaybe<Scalars['jsonb']>;
277
284
  };
278
285
  /** order by max() on columns of table "clientDashboardLayout" */
@@ -304,6 +311,7 @@ export declare type ClientDashboardLayout_Order_By = {
304
311
  clientId?: InputMaybe<Order_By>;
305
312
  externalDashboard?: InputMaybe<ExternalDashboards_Order_By>;
306
313
  externalDashboardId?: InputMaybe<Order_By>;
314
+ isLocked?: InputMaybe<Order_By>;
307
315
  layout?: InputMaybe<Order_By>;
308
316
  };
309
317
  /** primary key columns input for table: clientDashboardLayout */
@@ -322,14 +330,19 @@ export declare enum ClientDashboardLayout_Select_Column {
322
330
  /** column name */
323
331
  ExternalDashboardId = "externalDashboardId",
324
332
  /** column name */
333
+ IsLocked = "isLocked",
334
+ /** column name */
325
335
  Layout = "layout"
326
336
  }
327
337
  /** input type for updating data in table "clientDashboardLayout" */
328
338
  export declare type ClientDashboardLayout_Set_Input = {
339
+ isLocked?: InputMaybe<Scalars['Boolean']>;
329
340
  layout?: InputMaybe<Scalars['jsonb']>;
330
341
  };
331
342
  /** update columns of table "clientDashboardLayout" */
332
343
  export declare enum ClientDashboardLayout_Update_Column {
344
+ /** column name */
345
+ IsLocked = "isLocked",
333
346
  /** column name */
334
347
  Layout = "layout"
335
348
  }
@@ -504,6 +517,7 @@ export declare type CompanyIntegrations = {
504
517
  /** connected source or destination id */
505
518
  integrationId: Scalars['uuid'];
506
519
  name: Scalars['String'];
520
+ workspaceId: Scalars['uuid'];
507
521
  };
508
522
  /** columns and relationships of "companyIntegrations" */
509
523
  export declare type CompanyIntegrationsExternalMetricsArgs = {
@@ -530,6 +544,7 @@ export declare type CompanyIntegrations_Bool_Exp = {
530
544
  id?: InputMaybe<Uuid_Comparison_Exp>;
531
545
  integrationId?: InputMaybe<Uuid_Comparison_Exp>;
532
546
  name?: InputMaybe<String_Comparison_Exp>;
547
+ workspaceId?: InputMaybe<Uuid_Comparison_Exp>;
533
548
  };
534
549
  /** order by max() on columns of table "companyIntegrations" */
535
550
  export declare type CompanyIntegrations_Max_Order_By = {
@@ -538,6 +553,7 @@ export declare type CompanyIntegrations_Max_Order_By = {
538
553
  /** connected source or destination id */
539
554
  integrationId?: InputMaybe<Order_By>;
540
555
  name?: InputMaybe<Order_By>;
556
+ workspaceId?: InputMaybe<Order_By>;
541
557
  };
542
558
  /** order by min() on columns of table "companyIntegrations" */
543
559
  export declare type CompanyIntegrations_Min_Order_By = {
@@ -546,6 +562,7 @@ export declare type CompanyIntegrations_Min_Order_By = {
546
562
  /** connected source or destination id */
547
563
  integrationId?: InputMaybe<Order_By>;
548
564
  name?: InputMaybe<Order_By>;
565
+ workspaceId?: InputMaybe<Order_By>;
549
566
  };
550
567
  /** Ordering options when selecting data from "companyIntegrations". */
551
568
  export declare type CompanyIntegrations_Order_By = {
@@ -555,6 +572,7 @@ export declare type CompanyIntegrations_Order_By = {
555
572
  id?: InputMaybe<Order_By>;
556
573
  integrationId?: InputMaybe<Order_By>;
557
574
  name?: InputMaybe<Order_By>;
575
+ workspaceId?: InputMaybe<Order_By>;
558
576
  };
559
577
  /** select columns of table "companyIntegrations" */
560
578
  export declare enum CompanyIntegrations_Select_Column {
@@ -565,7 +583,9 @@ export declare enum CompanyIntegrations_Select_Column {
565
583
  /** column name */
566
584
  IntegrationId = "integrationId",
567
585
  /** column name */
568
- Name = "name"
586
+ Name = "name",
587
+ /** column name */
588
+ WorkspaceId = "workspaceId"
569
589
  }
570
590
  export declare type CompanySubsetTableDataError = {
571
591
  __typename?: 'companySubsetTableDataError';
@@ -589,8 +609,10 @@ export declare type CompanySubsetTables = {
589
609
  companyId: Scalars['uuid'];
590
610
  /** An object relationship */
591
611
  companyWorkspace: CompanyWorkspaces;
612
+ isAllowChangeLayout: Scalars['Boolean'];
592
613
  isAllowMetricCreation: Scalars['Boolean'];
593
614
  isAllowMetricDeletion: Scalars['Boolean'];
615
+ isAllowMetricUpdation: Scalars['Boolean'];
594
616
  tableList: Scalars['jsonb'];
595
617
  };
596
618
  /** subset of tables of user database */
@@ -604,16 +626,20 @@ export declare type CompanySubsetTables_Bool_Exp = {
604
626
  _or?: InputMaybe<Array<CompanySubsetTables_Bool_Exp>>;
605
627
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
606
628
  companyWorkspace?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
629
+ isAllowChangeLayout?: InputMaybe<Boolean_Comparison_Exp>;
607
630
  isAllowMetricCreation?: InputMaybe<Boolean_Comparison_Exp>;
608
631
  isAllowMetricDeletion?: InputMaybe<Boolean_Comparison_Exp>;
632
+ isAllowMetricUpdation?: InputMaybe<Boolean_Comparison_Exp>;
609
633
  tableList?: InputMaybe<Jsonb_Comparison_Exp>;
610
634
  };
611
635
  /** Ordering options when selecting data from "companySubsetTables". */
612
636
  export declare type CompanySubsetTables_Order_By = {
613
637
  companyId?: InputMaybe<Order_By>;
614
638
  companyWorkspace?: InputMaybe<CompanyWorkspaces_Order_By>;
639
+ isAllowChangeLayout?: InputMaybe<Order_By>;
615
640
  isAllowMetricCreation?: InputMaybe<Order_By>;
616
641
  isAllowMetricDeletion?: InputMaybe<Order_By>;
642
+ isAllowMetricUpdation?: InputMaybe<Order_By>;
617
643
  tableList?: InputMaybe<Order_By>;
618
644
  };
619
645
  /** select columns of table "companySubsetTables" */
@@ -621,10 +647,14 @@ export declare enum CompanySubsetTables_Select_Column {
621
647
  /** column name */
622
648
  CompanyId = "companyId",
623
649
  /** column name */
650
+ IsAllowChangeLayout = "isAllowChangeLayout",
651
+ /** column name */
624
652
  IsAllowMetricCreation = "isAllowMetricCreation",
625
653
  /** column name */
626
654
  IsAllowMetricDeletion = "isAllowMetricDeletion",
627
655
  /** column name */
656
+ IsAllowMetricUpdation = "isAllowMetricUpdation",
657
+ /** column name */
628
658
  TableList = "tableList"
629
659
  }
630
660
  /** columns and relationships of "companyWorkspaces" */
@@ -895,6 +925,8 @@ export declare type ExternalDashboards = {
895
925
  filters: Scalars['jsonb'];
896
926
  id: Scalars['uuid'];
897
927
  name: Scalars['String'];
928
+ /** An array relationship */
929
+ scheduleEmailReports: Array<ScheduleEmailReports>;
898
930
  };
899
931
  /** columns and relationships of "externalDashboards" */
900
932
  export declare type ExternalDashboardsClientDashboardLayoutsArgs = {
@@ -924,6 +956,14 @@ export declare type ExternalDashboardsExternalDashboardMetricsArgs = {
924
956
  export declare type ExternalDashboardsFiltersArgs = {
925
957
  path?: InputMaybe<Scalars['String']>;
926
958
  };
959
+ /** columns and relationships of "externalDashboards" */
960
+ export declare type ExternalDashboardsScheduleEmailReportsArgs = {
961
+ distinct_on?: InputMaybe<Array<ScheduleEmailReports_Select_Column>>;
962
+ limit?: InputMaybe<Scalars['Int']>;
963
+ offset?: InputMaybe<Scalars['Int']>;
964
+ order_by?: InputMaybe<Array<ScheduleEmailReports_Order_By>>;
965
+ where?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
966
+ };
927
967
  /** order by aggregate values of table "externalDashboards" */
928
968
  export declare type ExternalDashboards_Aggregate_Order_By = {
929
969
  count?: InputMaybe<Order_By>;
@@ -944,6 +984,7 @@ export declare type ExternalDashboards_Bool_Exp = {
944
984
  filters?: InputMaybe<Jsonb_Comparison_Exp>;
945
985
  id?: InputMaybe<Uuid_Comparison_Exp>;
946
986
  name?: InputMaybe<String_Comparison_Exp>;
987
+ scheduleEmailReports?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
947
988
  };
948
989
  /** order by max() on columns of table "externalDashboards" */
949
990
  export declare type ExternalDashboards_Max_Order_By = {
@@ -970,6 +1011,7 @@ export declare type ExternalDashboards_Order_By = {
970
1011
  filters?: InputMaybe<Order_By>;
971
1012
  id?: InputMaybe<Order_By>;
972
1013
  name?: InputMaybe<Order_By>;
1014
+ scheduleEmailReports_aggregate?: InputMaybe<ScheduleEmailReports_Aggregate_Order_By>;
973
1015
  };
974
1016
  /** select columns of table "externalDashboards" */
975
1017
  export declare enum ExternalDashboards_Select_Column {
@@ -1019,6 +1061,8 @@ export declare type ExternalMetrics = {
1019
1061
  query: Scalars['String'];
1020
1062
  resizeAttributes: Scalars['jsonb'];
1021
1063
  rlsConditions: Scalars['jsonb'];
1064
+ /** An array relationship */
1065
+ scheduleEmailReportCharts: Array<ScheduleEmailReportCharts>;
1022
1066
  selectedGroupBy: Scalars['jsonb'];
1023
1067
  timeGrain?: Maybe<Scalars['String']>;
1024
1068
  updatedAt: Scalars['timestamptz'];
@@ -1080,6 +1124,14 @@ export declare type ExternalMetricsRlsConditionsArgs = {
1080
1124
  path?: InputMaybe<Scalars['String']>;
1081
1125
  };
1082
1126
  /** extrnal metrics table for users client-based query */
1127
+ export declare type ExternalMetricsScheduleEmailReportChartsArgs = {
1128
+ distinct_on?: InputMaybe<Array<ScheduleEmailReportCharts_Select_Column>>;
1129
+ limit?: InputMaybe<Scalars['Int']>;
1130
+ offset?: InputMaybe<Scalars['Int']>;
1131
+ order_by?: InputMaybe<Array<ScheduleEmailReportCharts_Order_By>>;
1132
+ where?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
1133
+ };
1134
+ /** extrnal metrics table for users client-based query */
1083
1135
  export declare type ExternalMetricsSelectedGroupByArgs = {
1084
1136
  path?: InputMaybe<Scalars['String']>;
1085
1137
  };
@@ -1216,6 +1268,7 @@ export declare type ExternalMetrics_Bool_Exp = {
1216
1268
  query?: InputMaybe<String_Comparison_Exp>;
1217
1269
  resizeAttributes?: InputMaybe<Jsonb_Comparison_Exp>;
1218
1270
  rlsConditions?: InputMaybe<Jsonb_Comparison_Exp>;
1271
+ scheduleEmailReportCharts?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
1219
1272
  selectedGroupBy?: InputMaybe<Jsonb_Comparison_Exp>;
1220
1273
  timeGrain?: InputMaybe<String_Comparison_Exp>;
1221
1274
  updatedAt?: InputMaybe<Timestamptz_Comparison_Exp>;
@@ -1268,6 +1321,7 @@ export declare type ExternalMetrics_Insert_Input = {
1268
1321
  outputColumns?: InputMaybe<Scalars['String']>;
1269
1322
  query?: InputMaybe<Scalars['String']>;
1270
1323
  resizeAttributes?: InputMaybe<Scalars['jsonb']>;
1324
+ scheduleEmailReportCharts?: InputMaybe<ScheduleEmailReportCharts_Arr_Rel_Insert_Input>;
1271
1325
  selectedGroupBy?: InputMaybe<Scalars['jsonb']>;
1272
1326
  timeGrain?: InputMaybe<Scalars['String']>;
1273
1327
  updatedAt?: InputMaybe<Scalars['timestamptz']>;
@@ -1358,6 +1412,7 @@ export declare type ExternalMetrics_Order_By = {
1358
1412
  query?: InputMaybe<Order_By>;
1359
1413
  resizeAttributes?: InputMaybe<Order_By>;
1360
1414
  rlsConditions?: InputMaybe<Order_By>;
1415
+ scheduleEmailReportCharts_aggregate?: InputMaybe<ScheduleEmailReportCharts_Aggregate_Order_By>;
1361
1416
  selectedGroupBy?: InputMaybe<Order_By>;
1362
1417
  timeGrain?: InputMaybe<Order_By>;
1363
1418
  updatedAt?: InputMaybe<Order_By>;
@@ -1435,6 +1490,7 @@ export declare type ExternalMetrics_Set_Input = {
1435
1490
  metricId?: InputMaybe<Scalars['String']>;
1436
1491
  name?: InputMaybe<Scalars['String']>;
1437
1492
  resizeAttributes?: InputMaybe<Scalars['jsonb']>;
1493
+ updatedAt?: InputMaybe<Scalars['timestamptz']>;
1438
1494
  };
1439
1495
  /** update columns of table "externalMetrics" */
1440
1496
  export declare enum ExternalMetrics_Update_Column {
@@ -1447,7 +1503,9 @@ export declare enum ExternalMetrics_Update_Column {
1447
1503
  /** column name */
1448
1504
  Name = "name",
1449
1505
  /** column name */
1450
- ResizeAttributes = "resizeAttributes"
1506
+ ResizeAttributes = "resizeAttributes",
1507
+ /** column name */
1508
+ UpdatedAt = "updatedAt"
1451
1509
  }
1452
1510
  /** columns and relationships of "guestTokens" */
1453
1511
  export declare type GuestTokens = {
@@ -1456,6 +1514,8 @@ export declare type GuestTokens = {
1456
1514
  companyId: Scalars['uuid'];
1457
1515
  id: Scalars['uuid'];
1458
1516
  params: Scalars['jsonb'];
1517
+ /** An object relationship */
1518
+ scheduleEmailReport?: Maybe<ScheduleEmailReports>;
1459
1519
  };
1460
1520
  /** columns and relationships of "guestTokens" */
1461
1521
  export declare type GuestTokensParamsArgs = {
@@ -1470,6 +1530,7 @@ export declare type GuestTokens_Bool_Exp = {
1470
1530
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
1471
1531
  id?: InputMaybe<Uuid_Comparison_Exp>;
1472
1532
  params?: InputMaybe<Jsonb_Comparison_Exp>;
1533
+ scheduleEmailReport?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
1473
1534
  };
1474
1535
  /** Ordering options when selecting data from "guestTokens". */
1475
1536
  export declare type GuestTokens_Order_By = {
@@ -1477,6 +1538,7 @@ export declare type GuestTokens_Order_By = {
1477
1538
  companyId?: InputMaybe<Order_By>;
1478
1539
  id?: InputMaybe<Order_By>;
1479
1540
  params?: InputMaybe<Order_By>;
1541
+ scheduleEmailReport?: InputMaybe<ScheduleEmailReports_Order_By>;
1480
1542
  };
1481
1543
  /** select columns of table "guestTokens" */
1482
1544
  export declare enum GuestTokens_Select_Column {
@@ -1531,6 +1593,14 @@ export declare type Jsonb_Comparison_Exp = {
1531
1593
  export declare type Mutation_Root = {
1532
1594
  __typename?: 'mutation_root';
1533
1595
  companySubsetTableData?: Maybe<CompanySubsetTableDataOutput>;
1596
+ /** delete data from the table: "scheduleEmailReportCharts" */
1597
+ delete_scheduleEmailReportCharts?: Maybe<ScheduleEmailReportCharts_Mutation_Response>;
1598
+ /** delete single row from the table: "scheduleEmailReportCharts" */
1599
+ delete_scheduleEmailReportCharts_by_pk?: Maybe<ScheduleEmailReportCharts>;
1600
+ /** delete data from the table: "scheduleEmailReports" */
1601
+ delete_scheduleEmailReports?: Maybe<ScheduleEmailReports_Mutation_Response>;
1602
+ /** delete single row from the table: "scheduleEmailReports" */
1603
+ delete_scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
1534
1604
  embeddedDashboardData?: Maybe<EmbeddedDashboardDataOutput>;
1535
1605
  embeddedMetricQuery?: Maybe<ExternalMetricQueryOutput>;
1536
1606
  fetchColumnData?: Maybe<FetchColumnDataOutput>;
@@ -1563,6 +1633,14 @@ export declare type Mutation_Root = {
1563
1633
  insert_externalMetricsRlsFilters_one?: Maybe<ExternalMetricsRlsFilters>;
1564
1634
  /** insert a single row into the table: "externalMetrics" */
1565
1635
  insert_externalMetrics_one?: Maybe<ExternalMetrics>;
1636
+ /** insert data into the table: "scheduleEmailReportCharts" */
1637
+ insert_scheduleEmailReportCharts?: Maybe<ScheduleEmailReportCharts_Mutation_Response>;
1638
+ /** insert a single row into the table: "scheduleEmailReportCharts" */
1639
+ insert_scheduleEmailReportCharts_one?: Maybe<ScheduleEmailReportCharts>;
1640
+ /** insert data into the table: "scheduleEmailReports" */
1641
+ insert_scheduleEmailReports?: Maybe<ScheduleEmailReports_Mutation_Response>;
1642
+ /** insert a single row into the table: "scheduleEmailReports" */
1643
+ insert_scheduleEmailReports_one?: Maybe<ScheduleEmailReports>;
1566
1644
  previewTable?: Maybe<PreviewTableOutput>;
1567
1645
  sendRawCsv?: Maybe<SendRawCsvOutput>;
1568
1646
  /** update data of the table: "clientDashboardLayout" */
@@ -1573,12 +1651,36 @@ export declare type Mutation_Root = {
1573
1651
  update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
1574
1652
  /** update single row of the table: "externalMetrics" */
1575
1653
  update_externalMetrics_by_pk?: Maybe<ExternalMetrics>;
1654
+ /** update data of the table: "scheduleEmailReportCharts" */
1655
+ update_scheduleEmailReportCharts?: Maybe<ScheduleEmailReportCharts_Mutation_Response>;
1656
+ /** update single row of the table: "scheduleEmailReportCharts" */
1657
+ update_scheduleEmailReportCharts_by_pk?: Maybe<ScheduleEmailReportCharts>;
1658
+ /** update data of the table: "scheduleEmailReports" */
1659
+ update_scheduleEmailReports?: Maybe<ScheduleEmailReports_Mutation_Response>;
1660
+ /** update single row of the table: "scheduleEmailReports" */
1661
+ update_scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
1576
1662
  };
1577
1663
  /** mutation root */
1578
1664
  export declare type Mutation_RootCompanySubsetTableDataArgs = {
1579
1665
  input: CompanySubsetTableDataInput;
1580
1666
  };
1581
1667
  /** mutation root */
1668
+ export declare type Mutation_RootDelete_ScheduleEmailReportChartsArgs = {
1669
+ where: ScheduleEmailReportCharts_Bool_Exp;
1670
+ };
1671
+ /** mutation root */
1672
+ export declare type Mutation_RootDelete_ScheduleEmailReportCharts_By_PkArgs = {
1673
+ id: Scalars['uuid'];
1674
+ };
1675
+ /** mutation root */
1676
+ export declare type Mutation_RootDelete_ScheduleEmailReportsArgs = {
1677
+ where: ScheduleEmailReports_Bool_Exp;
1678
+ };
1679
+ /** mutation root */
1680
+ export declare type Mutation_RootDelete_ScheduleEmailReports_By_PkArgs = {
1681
+ id: Scalars['uuid'];
1682
+ };
1683
+ /** mutation root */
1582
1684
  export declare type Mutation_RootEmbeddedDashboardDataArgs = {
1583
1685
  input: EmbeddedDashboardDataInput;
1584
1686
  };
@@ -1671,6 +1773,26 @@ export declare type Mutation_RootInsert_ExternalMetrics_OneArgs = {
1671
1773
  on_conflict?: InputMaybe<ExternalMetrics_On_Conflict>;
1672
1774
  };
1673
1775
  /** mutation root */
1776
+ export declare type Mutation_RootInsert_ScheduleEmailReportChartsArgs = {
1777
+ objects: Array<ScheduleEmailReportCharts_Insert_Input>;
1778
+ on_conflict?: InputMaybe<ScheduleEmailReportCharts_On_Conflict>;
1779
+ };
1780
+ /** mutation root */
1781
+ export declare type Mutation_RootInsert_ScheduleEmailReportCharts_OneArgs = {
1782
+ object: ScheduleEmailReportCharts_Insert_Input;
1783
+ on_conflict?: InputMaybe<ScheduleEmailReportCharts_On_Conflict>;
1784
+ };
1785
+ /** mutation root */
1786
+ export declare type Mutation_RootInsert_ScheduleEmailReportsArgs = {
1787
+ objects: Array<ScheduleEmailReports_Insert_Input>;
1788
+ on_conflict?: InputMaybe<ScheduleEmailReports_On_Conflict>;
1789
+ };
1790
+ /** mutation root */
1791
+ export declare type Mutation_RootInsert_ScheduleEmailReports_OneArgs = {
1792
+ object: ScheduleEmailReports_Insert_Input;
1793
+ on_conflict?: InputMaybe<ScheduleEmailReports_On_Conflict>;
1794
+ };
1795
+ /** mutation root */
1674
1796
  export declare type Mutation_RootPreviewTableArgs = {
1675
1797
  input: PreviewTableInput;
1676
1798
  };
@@ -1718,6 +1840,26 @@ export declare type Mutation_RootUpdate_ExternalMetrics_By_PkArgs = {
1718
1840
  _set?: InputMaybe<ExternalMetrics_Set_Input>;
1719
1841
  pk_columns: ExternalMetrics_Pk_Columns_Input;
1720
1842
  };
1843
+ /** mutation root */
1844
+ export declare type Mutation_RootUpdate_ScheduleEmailReportChartsArgs = {
1845
+ _set?: InputMaybe<ScheduleEmailReportCharts_Set_Input>;
1846
+ where: ScheduleEmailReportCharts_Bool_Exp;
1847
+ };
1848
+ /** mutation root */
1849
+ export declare type Mutation_RootUpdate_ScheduleEmailReportCharts_By_PkArgs = {
1850
+ _set?: InputMaybe<ScheduleEmailReportCharts_Set_Input>;
1851
+ pk_columns: ScheduleEmailReportCharts_Pk_Columns_Input;
1852
+ };
1853
+ /** mutation root */
1854
+ export declare type Mutation_RootUpdate_ScheduleEmailReportsArgs = {
1855
+ _set?: InputMaybe<ScheduleEmailReports_Set_Input>;
1856
+ where: ScheduleEmailReports_Bool_Exp;
1857
+ };
1858
+ /** mutation root */
1859
+ export declare type Mutation_RootUpdate_ScheduleEmailReports_By_PkArgs = {
1860
+ _set?: InputMaybe<ScheduleEmailReports_Set_Input>;
1861
+ pk_columns: ScheduleEmailReports_Pk_Columns_Input;
1862
+ };
1721
1863
  /** column ordering options */
1722
1864
  export declare enum Order_By {
1723
1865
  /** in ascending order, nulls last */
@@ -1786,6 +1928,18 @@ export declare type Query_Root = {
1786
1928
  guestTokens: Array<GuestTokens>;
1787
1929
  /** fetch data from the table: "guestTokens" using primary key columns */
1788
1930
  guestTokens_by_pk?: Maybe<GuestTokens>;
1931
+ /** An array relationship */
1932
+ scheduleEmailReportCharts: Array<ScheduleEmailReportCharts>;
1933
+ /** fetch data from the table: "scheduleEmailReportCharts" using primary key columns */
1934
+ scheduleEmailReportCharts_by_pk?: Maybe<ScheduleEmailReportCharts>;
1935
+ /** An array relationship */
1936
+ scheduleEmailReports: Array<ScheduleEmailReports>;
1937
+ /** fetch data from the table: "scheduleEmailReports" using primary key columns */
1938
+ scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
1939
+ /** fetch data from the table: "sharingSettings" */
1940
+ sharingSettings: Array<SharingSettings>;
1941
+ /** fetch data from the table: "sharingSettings" using primary key columns */
1942
+ sharingSettings_by_pk?: Maybe<SharingSettings>;
1789
1943
  /** fetch data from the table: "themes" */
1790
1944
  themes: Array<Themes>;
1791
1945
  /** fetch data from the table: "themes" using primary key columns */
@@ -1925,6 +2079,36 @@ export declare type Query_RootGuestTokensArgs = {
1925
2079
  export declare type Query_RootGuestTokens_By_PkArgs = {
1926
2080
  id: Scalars['uuid'];
1927
2081
  };
2082
+ export declare type Query_RootScheduleEmailReportChartsArgs = {
2083
+ distinct_on?: InputMaybe<Array<ScheduleEmailReportCharts_Select_Column>>;
2084
+ limit?: InputMaybe<Scalars['Int']>;
2085
+ offset?: InputMaybe<Scalars['Int']>;
2086
+ order_by?: InputMaybe<Array<ScheduleEmailReportCharts_Order_By>>;
2087
+ where?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2088
+ };
2089
+ export declare type Query_RootScheduleEmailReportCharts_By_PkArgs = {
2090
+ id: Scalars['uuid'];
2091
+ };
2092
+ export declare type Query_RootScheduleEmailReportsArgs = {
2093
+ distinct_on?: InputMaybe<Array<ScheduleEmailReports_Select_Column>>;
2094
+ limit?: InputMaybe<Scalars['Int']>;
2095
+ offset?: InputMaybe<Scalars['Int']>;
2096
+ order_by?: InputMaybe<Array<ScheduleEmailReports_Order_By>>;
2097
+ where?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2098
+ };
2099
+ export declare type Query_RootScheduleEmailReports_By_PkArgs = {
2100
+ id: Scalars['uuid'];
2101
+ };
2102
+ export declare type Query_RootSharingSettingsArgs = {
2103
+ distinct_on?: InputMaybe<Array<SharingSettings_Select_Column>>;
2104
+ limit?: InputMaybe<Scalars['Int']>;
2105
+ offset?: InputMaybe<Scalars['Int']>;
2106
+ order_by?: InputMaybe<Array<SharingSettings_Order_By>>;
2107
+ where?: InputMaybe<SharingSettings_Bool_Exp>;
2108
+ };
2109
+ export declare type Query_RootSharingSettings_By_PkArgs = {
2110
+ id: Scalars['uuid'];
2111
+ };
1928
2112
  export declare type Query_RootThemesArgs = {
1929
2113
  distinct_on?: InputMaybe<Array<Themes_Select_Column>>;
1930
2114
  limit?: InputMaybe<Scalars['Int']>;
@@ -1935,6 +2119,340 @@ export declare type Query_RootThemesArgs = {
1935
2119
  export declare type Query_RootThemes_By_PkArgs = {
1936
2120
  id: Scalars['uuid'];
1937
2121
  };
2122
+ /** columns and relationships of "scheduleEmailReportCharts" */
2123
+ export declare type ScheduleEmailReportCharts = {
2124
+ __typename?: 'scheduleEmailReportCharts';
2125
+ /** An object relationship */
2126
+ externalMetric: ExternalMetrics;
2127
+ externalMetricId: Scalars['uuid'];
2128
+ id: Scalars['uuid'];
2129
+ /** An object relationship */
2130
+ scheduleEmailReport: ScheduleEmailReports;
2131
+ scheduleEmailReportId: Scalars['uuid'];
2132
+ };
2133
+ /** order by aggregate values of table "scheduleEmailReportCharts" */
2134
+ export declare type ScheduleEmailReportCharts_Aggregate_Order_By = {
2135
+ count?: InputMaybe<Order_By>;
2136
+ max?: InputMaybe<ScheduleEmailReportCharts_Max_Order_By>;
2137
+ min?: InputMaybe<ScheduleEmailReportCharts_Min_Order_By>;
2138
+ };
2139
+ /** input type for inserting array relation for remote table "scheduleEmailReportCharts" */
2140
+ export declare type ScheduleEmailReportCharts_Arr_Rel_Insert_Input = {
2141
+ data: Array<ScheduleEmailReportCharts_Insert_Input>;
2142
+ /** upsert condition */
2143
+ on_conflict?: InputMaybe<ScheduleEmailReportCharts_On_Conflict>;
2144
+ };
2145
+ /** Boolean expression to filter rows from the table "scheduleEmailReportCharts". All fields are combined with a logical 'AND'. */
2146
+ export declare type ScheduleEmailReportCharts_Bool_Exp = {
2147
+ _and?: InputMaybe<Array<ScheduleEmailReportCharts_Bool_Exp>>;
2148
+ _not?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2149
+ _or?: InputMaybe<Array<ScheduleEmailReportCharts_Bool_Exp>>;
2150
+ externalMetric?: InputMaybe<ExternalMetrics_Bool_Exp>;
2151
+ externalMetricId?: InputMaybe<Uuid_Comparison_Exp>;
2152
+ id?: InputMaybe<Uuid_Comparison_Exp>;
2153
+ scheduleEmailReport?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2154
+ scheduleEmailReportId?: InputMaybe<Uuid_Comparison_Exp>;
2155
+ };
2156
+ /** unique or primary key constraints on table "scheduleEmailReportCharts" */
2157
+ export declare enum ScheduleEmailReportCharts_Constraint {
2158
+ /** unique or primary key constraint on columns "id" */
2159
+ ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
2160
+ /** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
2161
+ ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
2162
+ }
2163
+ /** input type for inserting data into table "scheduleEmailReportCharts" */
2164
+ export declare type ScheduleEmailReportCharts_Insert_Input = {
2165
+ externalMetric?: InputMaybe<ExternalMetrics_Obj_Rel_Insert_Input>;
2166
+ externalMetricId?: InputMaybe<Scalars['uuid']>;
2167
+ id?: InputMaybe<Scalars['uuid']>;
2168
+ scheduleEmailReport?: InputMaybe<ScheduleEmailReports_Obj_Rel_Insert_Input>;
2169
+ scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
2170
+ };
2171
+ /** order by max() on columns of table "scheduleEmailReportCharts" */
2172
+ export declare type ScheduleEmailReportCharts_Max_Order_By = {
2173
+ externalMetricId?: InputMaybe<Order_By>;
2174
+ id?: InputMaybe<Order_By>;
2175
+ scheduleEmailReportId?: InputMaybe<Order_By>;
2176
+ };
2177
+ /** order by min() on columns of table "scheduleEmailReportCharts" */
2178
+ export declare type ScheduleEmailReportCharts_Min_Order_By = {
2179
+ externalMetricId?: InputMaybe<Order_By>;
2180
+ id?: InputMaybe<Order_By>;
2181
+ scheduleEmailReportId?: InputMaybe<Order_By>;
2182
+ };
2183
+ /** response of any mutation on the table "scheduleEmailReportCharts" */
2184
+ export declare type ScheduleEmailReportCharts_Mutation_Response = {
2185
+ __typename?: 'scheduleEmailReportCharts_mutation_response';
2186
+ /** number of rows affected by the mutation */
2187
+ affected_rows: Scalars['Int'];
2188
+ /** data from the rows affected by the mutation */
2189
+ returning: Array<ScheduleEmailReportCharts>;
2190
+ };
2191
+ /** on_conflict condition type for table "scheduleEmailReportCharts" */
2192
+ export declare type ScheduleEmailReportCharts_On_Conflict = {
2193
+ constraint: ScheduleEmailReportCharts_Constraint;
2194
+ update_columns?: Array<ScheduleEmailReportCharts_Update_Column>;
2195
+ where?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2196
+ };
2197
+ /** Ordering options when selecting data from "scheduleEmailReportCharts". */
2198
+ export declare type ScheduleEmailReportCharts_Order_By = {
2199
+ externalMetric?: InputMaybe<ExternalMetrics_Order_By>;
2200
+ externalMetricId?: InputMaybe<Order_By>;
2201
+ id?: InputMaybe<Order_By>;
2202
+ scheduleEmailReport?: InputMaybe<ScheduleEmailReports_Order_By>;
2203
+ scheduleEmailReportId?: InputMaybe<Order_By>;
2204
+ };
2205
+ /** primary key columns input for table: scheduleEmailReportCharts */
2206
+ export declare type ScheduleEmailReportCharts_Pk_Columns_Input = {
2207
+ id: Scalars['uuid'];
2208
+ };
2209
+ /** select columns of table "scheduleEmailReportCharts" */
2210
+ export declare enum ScheduleEmailReportCharts_Select_Column {
2211
+ /** column name */
2212
+ ExternalMetricId = "externalMetricId",
2213
+ /** column name */
2214
+ Id = "id",
2215
+ /** column name */
2216
+ ScheduleEmailReportId = "scheduleEmailReportId"
2217
+ }
2218
+ /** input type for updating data in table "scheduleEmailReportCharts" */
2219
+ export declare type ScheduleEmailReportCharts_Set_Input = {
2220
+ externalMetricId?: InputMaybe<Scalars['uuid']>;
2221
+ id?: InputMaybe<Scalars['uuid']>;
2222
+ scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
2223
+ };
2224
+ /** update columns of table "scheduleEmailReportCharts" */
2225
+ export declare enum ScheduleEmailReportCharts_Update_Column {
2226
+ /** column name */
2227
+ ExternalMetricId = "externalMetricId",
2228
+ /** column name */
2229
+ Id = "id",
2230
+ /** column name */
2231
+ ScheduleEmailReportId = "scheduleEmailReportId"
2232
+ }
2233
+ /** columns and relationships of "scheduleEmailReports" */
2234
+ export declare type ScheduleEmailReports = {
2235
+ __typename?: 'scheduleEmailReports';
2236
+ emails: Scalars['json'];
2237
+ /** An object relationship */
2238
+ externalDashboard: ExternalDashboards;
2239
+ externalDashboardId: Scalars['uuid'];
2240
+ guestToken: Scalars['uuid'];
2241
+ /** An object relationship */
2242
+ guestTokenByGuesttoken: GuestTokens;
2243
+ id: Scalars['uuid'];
2244
+ nextScheduledAt: Scalars['String'];
2245
+ /** An array relationship */
2246
+ scheduleEmailReportCharts: Array<ScheduleEmailReportCharts>;
2247
+ /** An object relationship */
2248
+ sharingSetting: SharingSettings;
2249
+ sharingSettingsId: Scalars['uuid'];
2250
+ subject: Scalars['String'];
2251
+ timeConfigurations: Scalars['json'];
2252
+ };
2253
+ /** columns and relationships of "scheduleEmailReports" */
2254
+ export declare type ScheduleEmailReportsEmailsArgs = {
2255
+ path?: InputMaybe<Scalars['String']>;
2256
+ };
2257
+ /** columns and relationships of "scheduleEmailReports" */
2258
+ export declare type ScheduleEmailReportsScheduleEmailReportChartsArgs = {
2259
+ distinct_on?: InputMaybe<Array<ScheduleEmailReportCharts_Select_Column>>;
2260
+ limit?: InputMaybe<Scalars['Int']>;
2261
+ offset?: InputMaybe<Scalars['Int']>;
2262
+ order_by?: InputMaybe<Array<ScheduleEmailReportCharts_Order_By>>;
2263
+ where?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2264
+ };
2265
+ /** columns and relationships of "scheduleEmailReports" */
2266
+ export declare type ScheduleEmailReportsTimeConfigurationsArgs = {
2267
+ path?: InputMaybe<Scalars['String']>;
2268
+ };
2269
+ /** order by aggregate values of table "scheduleEmailReports" */
2270
+ export declare type ScheduleEmailReports_Aggregate_Order_By = {
2271
+ count?: InputMaybe<Order_By>;
2272
+ max?: InputMaybe<ScheduleEmailReports_Max_Order_By>;
2273
+ min?: InputMaybe<ScheduleEmailReports_Min_Order_By>;
2274
+ };
2275
+ /** Boolean expression to filter rows from the table "scheduleEmailReports". All fields are combined with a logical 'AND'. */
2276
+ export declare type ScheduleEmailReports_Bool_Exp = {
2277
+ _and?: InputMaybe<Array<ScheduleEmailReports_Bool_Exp>>;
2278
+ _not?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2279
+ _or?: InputMaybe<Array<ScheduleEmailReports_Bool_Exp>>;
2280
+ emails?: InputMaybe<Json_Comparison_Exp>;
2281
+ externalDashboard?: InputMaybe<ExternalDashboards_Bool_Exp>;
2282
+ externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
2283
+ guestToken?: InputMaybe<Uuid_Comparison_Exp>;
2284
+ guestTokenByGuesttoken?: InputMaybe<GuestTokens_Bool_Exp>;
2285
+ id?: InputMaybe<Uuid_Comparison_Exp>;
2286
+ nextScheduledAt?: InputMaybe<String_Comparison_Exp>;
2287
+ scheduleEmailReportCharts?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2288
+ sharingSetting?: InputMaybe<SharingSettings_Bool_Exp>;
2289
+ sharingSettingsId?: InputMaybe<Uuid_Comparison_Exp>;
2290
+ subject?: InputMaybe<String_Comparison_Exp>;
2291
+ timeConfigurations?: InputMaybe<Json_Comparison_Exp>;
2292
+ };
2293
+ /** unique or primary key constraints on table "scheduleEmailReports" */
2294
+ export declare enum ScheduleEmailReports_Constraint {
2295
+ /** unique or primary key constraint on columns "guestToken" */
2296
+ ScheduleEmailReportsGuestTokenKey = "scheduleEmailReports_guestToken_key",
2297
+ /** unique or primary key constraint on columns "id" */
2298
+ ScheduleEmailReportsPkey = "scheduleEmailReports_pkey"
2299
+ }
2300
+ /** input type for inserting data into table "scheduleEmailReports" */
2301
+ export declare type ScheduleEmailReports_Insert_Input = {
2302
+ emails?: InputMaybe<Scalars['json']>;
2303
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
2304
+ guestToken?: InputMaybe<Scalars['uuid']>;
2305
+ id?: InputMaybe<Scalars['uuid']>;
2306
+ nextScheduledAt?: InputMaybe<Scalars['String']>;
2307
+ scheduleEmailReportCharts?: InputMaybe<ScheduleEmailReportCharts_Arr_Rel_Insert_Input>;
2308
+ sharingSettingsId?: InputMaybe<Scalars['uuid']>;
2309
+ subject?: InputMaybe<Scalars['String']>;
2310
+ timeConfigurations?: InputMaybe<Scalars['json']>;
2311
+ };
2312
+ /** order by max() on columns of table "scheduleEmailReports" */
2313
+ export declare type ScheduleEmailReports_Max_Order_By = {
2314
+ externalDashboardId?: InputMaybe<Order_By>;
2315
+ guestToken?: InputMaybe<Order_By>;
2316
+ id?: InputMaybe<Order_By>;
2317
+ nextScheduledAt?: InputMaybe<Order_By>;
2318
+ sharingSettingsId?: InputMaybe<Order_By>;
2319
+ subject?: InputMaybe<Order_By>;
2320
+ };
2321
+ /** order by min() on columns of table "scheduleEmailReports" */
2322
+ export declare type ScheduleEmailReports_Min_Order_By = {
2323
+ externalDashboardId?: InputMaybe<Order_By>;
2324
+ guestToken?: InputMaybe<Order_By>;
2325
+ id?: InputMaybe<Order_By>;
2326
+ nextScheduledAt?: InputMaybe<Order_By>;
2327
+ sharingSettingsId?: InputMaybe<Order_By>;
2328
+ subject?: InputMaybe<Order_By>;
2329
+ };
2330
+ /** response of any mutation on the table "scheduleEmailReports" */
2331
+ export declare type ScheduleEmailReports_Mutation_Response = {
2332
+ __typename?: 'scheduleEmailReports_mutation_response';
2333
+ /** number of rows affected by the mutation */
2334
+ affected_rows: Scalars['Int'];
2335
+ /** data from the rows affected by the mutation */
2336
+ returning: Array<ScheduleEmailReports>;
2337
+ };
2338
+ /** input type for inserting object relation for remote table "scheduleEmailReports" */
2339
+ export declare type ScheduleEmailReports_Obj_Rel_Insert_Input = {
2340
+ data: ScheduleEmailReports_Insert_Input;
2341
+ /** upsert condition */
2342
+ on_conflict?: InputMaybe<ScheduleEmailReports_On_Conflict>;
2343
+ };
2344
+ /** on_conflict condition type for table "scheduleEmailReports" */
2345
+ export declare type ScheduleEmailReports_On_Conflict = {
2346
+ constraint: ScheduleEmailReports_Constraint;
2347
+ update_columns?: Array<ScheduleEmailReports_Update_Column>;
2348
+ where?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2349
+ };
2350
+ /** Ordering options when selecting data from "scheduleEmailReports". */
2351
+ export declare type ScheduleEmailReports_Order_By = {
2352
+ emails?: InputMaybe<Order_By>;
2353
+ externalDashboard?: InputMaybe<ExternalDashboards_Order_By>;
2354
+ externalDashboardId?: InputMaybe<Order_By>;
2355
+ guestToken?: InputMaybe<Order_By>;
2356
+ guestTokenByGuesttoken?: InputMaybe<GuestTokens_Order_By>;
2357
+ id?: InputMaybe<Order_By>;
2358
+ nextScheduledAt?: InputMaybe<Order_By>;
2359
+ scheduleEmailReportCharts_aggregate?: InputMaybe<ScheduleEmailReportCharts_Aggregate_Order_By>;
2360
+ sharingSetting?: InputMaybe<SharingSettings_Order_By>;
2361
+ sharingSettingsId?: InputMaybe<Order_By>;
2362
+ subject?: InputMaybe<Order_By>;
2363
+ timeConfigurations?: InputMaybe<Order_By>;
2364
+ };
2365
+ /** primary key columns input for table: scheduleEmailReports */
2366
+ export declare type ScheduleEmailReports_Pk_Columns_Input = {
2367
+ id: Scalars['uuid'];
2368
+ };
2369
+ /** select columns of table "scheduleEmailReports" */
2370
+ export declare enum ScheduleEmailReports_Select_Column {
2371
+ /** column name */
2372
+ Emails = "emails",
2373
+ /** column name */
2374
+ ExternalDashboardId = "externalDashboardId",
2375
+ /** column name */
2376
+ GuestToken = "guestToken",
2377
+ /** column name */
2378
+ Id = "id",
2379
+ /** column name */
2380
+ NextScheduledAt = "nextScheduledAt",
2381
+ /** column name */
2382
+ SharingSettingsId = "sharingSettingsId",
2383
+ /** column name */
2384
+ Subject = "subject",
2385
+ /** column name */
2386
+ TimeConfigurations = "timeConfigurations"
2387
+ }
2388
+ /** input type for updating data in table "scheduleEmailReports" */
2389
+ export declare type ScheduleEmailReports_Set_Input = {
2390
+ emails?: InputMaybe<Scalars['json']>;
2391
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
2392
+ guestToken?: InputMaybe<Scalars['uuid']>;
2393
+ id?: InputMaybe<Scalars['uuid']>;
2394
+ nextScheduledAt?: InputMaybe<Scalars['String']>;
2395
+ sharingSettingsId?: InputMaybe<Scalars['uuid']>;
2396
+ subject?: InputMaybe<Scalars['String']>;
2397
+ timeConfigurations?: InputMaybe<Scalars['json']>;
2398
+ };
2399
+ /** update columns of table "scheduleEmailReports" */
2400
+ export declare enum ScheduleEmailReports_Update_Column {
2401
+ /** column name */
2402
+ Emails = "emails",
2403
+ /** column name */
2404
+ ExternalDashboardId = "externalDashboardId",
2405
+ /** column name */
2406
+ GuestToken = "guestToken",
2407
+ /** column name */
2408
+ Id = "id",
2409
+ /** column name */
2410
+ NextScheduledAt = "nextScheduledAt",
2411
+ /** column name */
2412
+ SharingSettingsId = "sharingSettingsId",
2413
+ /** column name */
2414
+ Subject = "subject",
2415
+ /** column name */
2416
+ TimeConfigurations = "timeConfigurations"
2417
+ }
2418
+ /** columns and relationships of "sharingSettings" */
2419
+ export declare type SharingSettings = {
2420
+ __typename?: 'sharingSettings';
2421
+ companyId: Scalars['uuid'];
2422
+ id: Scalars['uuid'];
2423
+ /** An array relationship */
2424
+ scheduleEmailReports: Array<ScheduleEmailReports>;
2425
+ };
2426
+ /** columns and relationships of "sharingSettings" */
2427
+ export declare type SharingSettingsScheduleEmailReportsArgs = {
2428
+ distinct_on?: InputMaybe<Array<ScheduleEmailReports_Select_Column>>;
2429
+ limit?: InputMaybe<Scalars['Int']>;
2430
+ offset?: InputMaybe<Scalars['Int']>;
2431
+ order_by?: InputMaybe<Array<ScheduleEmailReports_Order_By>>;
2432
+ where?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2433
+ };
2434
+ /** Boolean expression to filter rows from the table "sharingSettings". All fields are combined with a logical 'AND'. */
2435
+ export declare type SharingSettings_Bool_Exp = {
2436
+ _and?: InputMaybe<Array<SharingSettings_Bool_Exp>>;
2437
+ _not?: InputMaybe<SharingSettings_Bool_Exp>;
2438
+ _or?: InputMaybe<Array<SharingSettings_Bool_Exp>>;
2439
+ companyId?: InputMaybe<Uuid_Comparison_Exp>;
2440
+ id?: InputMaybe<Uuid_Comparison_Exp>;
2441
+ scheduleEmailReports?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2442
+ };
2443
+ /** Ordering options when selecting data from "sharingSettings". */
2444
+ export declare type SharingSettings_Order_By = {
2445
+ companyId?: InputMaybe<Order_By>;
2446
+ id?: InputMaybe<Order_By>;
2447
+ scheduleEmailReports_aggregate?: InputMaybe<ScheduleEmailReports_Aggregate_Order_By>;
2448
+ };
2449
+ /** select columns of table "sharingSettings" */
2450
+ export declare enum SharingSettings_Select_Column {
2451
+ /** column name */
2452
+ CompanyId = "companyId",
2453
+ /** column name */
2454
+ Id = "id"
2455
+ }
1938
2456
  export declare type Subscription_Root = {
1939
2457
  __typename?: 'subscription_root';
1940
2458
  /** fetch data from the table: "clientDashboardLayout" */
@@ -1987,6 +2505,18 @@ export declare type Subscription_Root = {
1987
2505
  guestTokens: Array<GuestTokens>;
1988
2506
  /** fetch data from the table: "guestTokens" using primary key columns */
1989
2507
  guestTokens_by_pk?: Maybe<GuestTokens>;
2508
+ /** An array relationship */
2509
+ scheduleEmailReportCharts: Array<ScheduleEmailReportCharts>;
2510
+ /** fetch data from the table: "scheduleEmailReportCharts" using primary key columns */
2511
+ scheduleEmailReportCharts_by_pk?: Maybe<ScheduleEmailReportCharts>;
2512
+ /** An array relationship */
2513
+ scheduleEmailReports: Array<ScheduleEmailReports>;
2514
+ /** fetch data from the table: "scheduleEmailReports" using primary key columns */
2515
+ scheduleEmailReports_by_pk?: Maybe<ScheduleEmailReports>;
2516
+ /** fetch data from the table: "sharingSettings" */
2517
+ sharingSettings: Array<SharingSettings>;
2518
+ /** fetch data from the table: "sharingSettings" using primary key columns */
2519
+ sharingSettings_by_pk?: Maybe<SharingSettings>;
1990
2520
  /** fetch data from the table: "themes" */
1991
2521
  themes: Array<Themes>;
1992
2522
  /** fetch data from the table: "themes" using primary key columns */
@@ -2123,6 +2653,36 @@ export declare type Subscription_RootGuestTokensArgs = {
2123
2653
  export declare type Subscription_RootGuestTokens_By_PkArgs = {
2124
2654
  id: Scalars['uuid'];
2125
2655
  };
2656
+ export declare type Subscription_RootScheduleEmailReportChartsArgs = {
2657
+ distinct_on?: InputMaybe<Array<ScheduleEmailReportCharts_Select_Column>>;
2658
+ limit?: InputMaybe<Scalars['Int']>;
2659
+ offset?: InputMaybe<Scalars['Int']>;
2660
+ order_by?: InputMaybe<Array<ScheduleEmailReportCharts_Order_By>>;
2661
+ where?: InputMaybe<ScheduleEmailReportCharts_Bool_Exp>;
2662
+ };
2663
+ export declare type Subscription_RootScheduleEmailReportCharts_By_PkArgs = {
2664
+ id: Scalars['uuid'];
2665
+ };
2666
+ export declare type Subscription_RootScheduleEmailReportsArgs = {
2667
+ distinct_on?: InputMaybe<Array<ScheduleEmailReports_Select_Column>>;
2668
+ limit?: InputMaybe<Scalars['Int']>;
2669
+ offset?: InputMaybe<Scalars['Int']>;
2670
+ order_by?: InputMaybe<Array<ScheduleEmailReports_Order_By>>;
2671
+ where?: InputMaybe<ScheduleEmailReports_Bool_Exp>;
2672
+ };
2673
+ export declare type Subscription_RootScheduleEmailReports_By_PkArgs = {
2674
+ id: Scalars['uuid'];
2675
+ };
2676
+ export declare type Subscription_RootSharingSettingsArgs = {
2677
+ distinct_on?: InputMaybe<Array<SharingSettings_Select_Column>>;
2678
+ limit?: InputMaybe<Scalars['Int']>;
2679
+ offset?: InputMaybe<Scalars['Int']>;
2680
+ order_by?: InputMaybe<Array<SharingSettings_Order_By>>;
2681
+ where?: InputMaybe<SharingSettings_Bool_Exp>;
2682
+ };
2683
+ export declare type Subscription_RootSharingSettings_By_PkArgs = {
2684
+ id: Scalars['uuid'];
2685
+ };
2126
2686
  export declare type Subscription_RootThemesArgs = {
2127
2687
  distinct_on?: InputMaybe<Array<Themes_Select_Column>>;
2128
2688
  limit?: InputMaybe<Scalars['Int']>;
@@ -2261,6 +2821,26 @@ export declare type CreateExternalMetricMutation = {
2261
2821
  }>;
2262
2822
  } | null;
2263
2823
  };
2824
+ export declare type DeleteScheduleEmailReportChartsMutationVariables = Exact<{
2825
+ scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
2826
+ }>;
2827
+ export declare type DeleteScheduleEmailReportChartsMutation = {
2828
+ __typename?: 'mutation_root';
2829
+ delete_scheduleEmailReportCharts?: {
2830
+ __typename?: 'scheduleEmailReportCharts_mutation_response';
2831
+ affected_rows: number;
2832
+ } | null;
2833
+ };
2834
+ export declare type DeleteScheduledEmailMutationVariables = Exact<{
2835
+ id?: InputMaybe<Scalars['uuid']>;
2836
+ }>;
2837
+ export declare type DeleteScheduledEmailMutation = {
2838
+ __typename?: 'mutation_root';
2839
+ delete_scheduleEmailReports_by_pk?: {
2840
+ __typename?: 'scheduleEmailReports';
2841
+ id: any;
2842
+ } | null;
2843
+ };
2264
2844
  export declare type FetchColumnDataMutationVariables = Exact<{
2265
2845
  tableName?: InputMaybe<Scalars['String']>;
2266
2846
  columnName?: InputMaybe<Scalars['String']>;
@@ -2314,18 +2894,6 @@ export declare type GenerateEmbeddedMeticMutation = {
2314
2894
  } | null;
2315
2895
  } | null;
2316
2896
  };
2317
- export declare type GetClientDashboardLayoutQueryVariables = Exact<{
2318
- clientId: Scalars['String'];
2319
- externalDashboardId: Scalars['uuid'];
2320
- }>;
2321
- export declare type GetClientDashboardLayoutQuery = {
2322
- __typename?: 'query_root';
2323
- clientDashboardMetrics_by_pk?: {
2324
- __typename?: 'clientDashboardMetrics';
2325
- clientId: string;
2326
- externalDashboardId: any;
2327
- } | null;
2328
- };
2329
2897
  export declare type CompanyIntegrationQueryVariables = Exact<{
2330
2898
  externalDashboardId?: InputMaybe<Scalars['uuid']>;
2331
2899
  }>;
@@ -2396,7 +2964,6 @@ export declare type EmbeddedDashboardMetricsQuery = {
2396
2964
  name: string;
2397
2965
  outputColumns?: string | null;
2398
2966
  query: string;
2399
- resizeAttributes: any;
2400
2967
  timeGrain?: string | null;
2401
2968
  updatedAt: any;
2402
2969
  selectedGroupBy: any;
@@ -2408,6 +2975,7 @@ export declare type EmbeddedDashboardMetricsQuery = {
2408
2975
  companyIntegration: {
2409
2976
  __typename?: 'companyIntegrations';
2410
2977
  name: string;
2978
+ workspaceId: any;
2411
2979
  };
2412
2980
  };
2413
2981
  }>;
@@ -2448,6 +3016,7 @@ export declare type GetExternalDashboardLayoutQuery = {
2448
3016
  clientId: string;
2449
3017
  externalDashboardId: any;
2450
3018
  layout: any;
3019
+ isLocked: boolean;
2451
3020
  } | null;
2452
3021
  };
2453
3022
  export declare type ExternalDashboardListQueryVariables = Exact<{
@@ -2484,6 +3053,34 @@ export declare type MetricAccessQuery = {
2484
3053
  __typename?: 'companySubsetTables';
2485
3054
  isAllowMetricCreation: boolean;
2486
3055
  isAllowMetricDeletion: boolean;
3056
+ isAllowMetricUpdation: boolean;
3057
+ isAllowChangeLayout: boolean;
3058
+ }>;
3059
+ };
3060
+ export declare type ScheduleEmailReportQueryVariables = Exact<{
3061
+ token?: InputMaybe<Scalars['uuid']>;
3062
+ }>;
3063
+ export declare type ScheduleEmailReportQuery = {
3064
+ __typename?: 'query_root';
3065
+ scheduleEmailReports: Array<{
3066
+ __typename?: 'scheduleEmailReports';
3067
+ externalDashboardId: any;
3068
+ guestToken: any;
3069
+ nextScheduledAt: string;
3070
+ sharingSettingsId: any;
3071
+ subject: string;
3072
+ timeConfigurations: any;
3073
+ id: any;
3074
+ }>;
3075
+ };
3076
+ export declare type SharingSettingsIdQueryVariables = Exact<{
3077
+ companyId?: InputMaybe<Scalars['uuid']>;
3078
+ }>;
3079
+ export declare type SharingSettingsIdQuery = {
3080
+ __typename?: 'query_root';
3081
+ sharingSettings: Array<{
3082
+ __typename?: 'sharingSettings';
3083
+ id: any;
2487
3084
  }>;
2488
3085
  };
2489
3086
  export declare type GetThemesQueryVariables = Exact<{
@@ -2528,18 +3125,6 @@ export declare type MarkArchiveMetricMutation = {
2528
3125
  externalMetricId: any;
2529
3126
  } | null;
2530
3127
  };
2531
- export declare type MarkClientDashboardLayoutChangeMutationVariables = Exact<{
2532
- clientId: Scalars['String'];
2533
- externalDashboardId: Scalars['uuid'];
2534
- }>;
2535
- export declare type MarkClientDashboardLayoutChangeMutation = {
2536
- __typename?: 'mutation_root';
2537
- insert_clientDashboardMetrics_one?: {
2538
- __typename?: 'clientDashboardMetrics';
2539
- clientId: string;
2540
- externalDashboardId: any;
2541
- } | null;
2542
- };
2543
3128
  export declare type PreviewTableMutationVariables = Exact<{
2544
3129
  tableName?: InputMaybe<Scalars['String']>;
2545
3130
  limit?: InputMaybe<Scalars['Int']>;
@@ -2582,6 +3167,8 @@ export declare type RawCsvMutationVariables = Exact<{
2582
3167
  companyId?: InputMaybe<Scalars['String']>;
2583
3168
  recipientAddress?: InputMaybe<Scalars['String']>;
2584
3169
  sqlQuery?: InputMaybe<Scalars['String']>;
3170
+ metricName?: InputMaybe<Scalars['String']>;
3171
+ workspaceId?: InputMaybe<Scalars['String']>;
2585
3172
  }>;
2586
3173
  export declare type RawCsvMutation = {
2587
3174
  __typename?: 'mutation_root';
@@ -2594,21 +3181,11 @@ export declare type RawCsvMutation = {
2594
3181
  } | null;
2595
3182
  } | null;
2596
3183
  };
2597
- export declare type ResizeExternalMetricMutationVariables = Exact<{
2598
- id: Scalars['uuid'];
2599
- resizeAttributes: Scalars['jsonb'];
2600
- }>;
2601
- export declare type ResizeExternalMetricMutation = {
2602
- __typename?: 'mutation_root';
2603
- update_externalMetrics_by_pk?: {
2604
- __typename?: 'externalMetrics';
2605
- resizeAttributes: any;
2606
- } | null;
2607
- };
2608
3184
  export declare type SaveExternalDashboardLayoutMutationVariables = Exact<{
2609
3185
  clientId: Scalars['String'];
2610
3186
  externalDashboardId: Scalars['uuid'];
2611
3187
  layout: Scalars['jsonb'];
3188
+ isLocked?: InputMaybe<Scalars['Boolean']>;
2612
3189
  }>;
2613
3190
  export declare type SaveExternalDashboardLayoutMutation = {
2614
3191
  __typename?: 'mutation_root';
@@ -2617,6 +3194,37 @@ export declare type SaveExternalDashboardLayoutMutation = {
2617
3194
  clientId: string;
2618
3195
  externalDashboardId: any;
2619
3196
  layout: any;
3197
+ isLocked: boolean;
3198
+ } | null;
3199
+ };
3200
+ export declare type SaveScheduleEmailMutationVariables = Exact<{
3201
+ emails?: InputMaybe<Scalars['json']>;
3202
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
3203
+ guestToken?: InputMaybe<Scalars['uuid']>;
3204
+ nextScheduledAt?: InputMaybe<Scalars['String']>;
3205
+ sharingSettingsId?: InputMaybe<Scalars['uuid']>;
3206
+ subject?: InputMaybe<Scalars['String']>;
3207
+ timeConfigurations?: InputMaybe<Scalars['json']>;
3208
+ data?: InputMaybe<Array<ScheduleEmailReportCharts_Insert_Input> | ScheduleEmailReportCharts_Insert_Input>;
3209
+ }>;
3210
+ export declare type SaveScheduleEmailMutation = {
3211
+ __typename?: 'mutation_root';
3212
+ insert_scheduleEmailReports_one?: {
3213
+ __typename?: 'scheduleEmailReports';
3214
+ emails: any;
3215
+ externalDashboardId: any;
3216
+ guestToken: any;
3217
+ id: any;
3218
+ nextScheduledAt: string;
3219
+ sharingSettingsId: any;
3220
+ subject: string;
3221
+ timeConfigurations: any;
3222
+ scheduleEmailReportCharts: Array<{
3223
+ __typename?: 'scheduleEmailReportCharts';
3224
+ externalMetricId: any;
3225
+ id: any;
3226
+ scheduleEmailReportId: any;
3227
+ }>;
2620
3228
  } | null;
2621
3229
  };
2622
3230
  export declare type UpdateAdminMetricMutationVariables = Exact<{
@@ -2650,7 +3258,6 @@ export declare type UpdateAdminMetricMutation = {
2650
3258
  name: string;
2651
3259
  outputColumns?: string | null;
2652
3260
  query: string;
2653
- resizeAttributes: any;
2654
3261
  timeGrain?: string | null;
2655
3262
  updatedAt: any;
2656
3263
  selectedGroupBy: any;
@@ -2719,6 +3326,18 @@ export declare const useCreateExternalMetricMutation: <TError = unknown, TContex
2719
3326
  isEnableGroupBy?: InputMaybe<boolean> | undefined;
2720
3327
  groupBy?: InputMaybe<Scalars['jsonb']>;
2721
3328
  }>, TContext>;
3329
+ export declare const DeleteScheduleEmailReportChartsDocument = "\n mutation DeleteScheduleEmailReportCharts($scheduleEmailReportId: uuid = \"\") {\n delete_scheduleEmailReportCharts(\n where: {scheduleEmailReportId: {_eq: $scheduleEmailReportId}}\n ) {\n affected_rows\n }\n}\n ";
3330
+ export declare const useDeleteScheduleEmailReportChartsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<DeleteScheduleEmailReportChartsMutation, TError, Exact<{
3331
+ scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
3332
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduleEmailReportChartsMutation, TError, Exact<{
3333
+ scheduleEmailReportId?: InputMaybe<Scalars['uuid']>;
3334
+ }>, TContext>;
3335
+ export declare const DeleteScheduledEmailDocument = "\n mutation DeleteScheduledEmail($id: uuid = \"\") {\n delete_scheduleEmailReports_by_pk(id: $id) {\n id\n }\n}\n ";
3336
+ export declare const useDeleteScheduledEmailMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<DeleteScheduledEmailMutation, TError, Exact<{
3337
+ id?: InputMaybe<Scalars['uuid']>;
3338
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<DeleteScheduledEmailMutation, TError, Exact<{
3339
+ id?: InputMaybe<Scalars['uuid']>;
3340
+ }>, TContext>;
2722
3341
  export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
2723
3342
  export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
2724
3343
  tableName?: InputMaybe<string> | undefined;
@@ -2753,8 +3372,6 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
2753
3372
  queryPrompt?: InputMaybe<string> | undefined;
2754
3373
  timeGrain?: InputMaybe<string> | undefined;
2755
3374
  }>, TContext>;
2756
- 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 ";
2757
- 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>;
2758
3375
  export declare const CompanyIntegrationDocument = "\n query CompanyIntegration($externalDashboardId: uuid = \"\") {\n companyIntegrations(\n where: {companyWorkspace: {externalDashboards: {id: {_eq: $externalDashboardId}}}}\n ) {\n companyId\n id\n integrationId\n name\n }\n}\n ";
2759
3376
  export declare const useCompanyIntegrationQuery: <TData = CompanyIntegrationQuery, TError = unknown>(variables?: CompanyIntegrationQueryVariables, options?: UseQueryOptions<CompanyIntegrationQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
2760
3377
  export declare const CompanySubsetTableDataDocument = "\n mutation CompanySubsetTableData($clientId: String = \"\", $companyId: String = \"\", $workspaceId: String = \"\") {\n companySubsetTableData(\n input: {clientId: $clientId, companyId: $companyId, workspaceId: $workspaceId}\n ) {\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 ";
@@ -2767,20 +3384,24 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
2767
3384
  companyId?: InputMaybe<string> | undefined;
2768
3385
  workspaceId?: InputMaybe<string> | undefined;
2769
3386
  }>, TContext>;
2770
- 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 drillDownSettings\n }\n }\n}\n ";
3387
+ 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 timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n clickActions\n drillDownSettings\n companyIntegration {\n name\n workspaceId\n }\n }\n }\n}\n ";
2771
3388
  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>;
2772
3389
  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 ";
2773
3390
  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>;
2774
3391
  export declare const GetExternalDashboardIdDocument = "\n query GetExternalDashboardId($externalDashboardId: String = \"\") {\n externalDashboards(where: {externalDashboardId: {_eq: $externalDashboardId}}) {\n id\n filters\n }\n}\n ";
2775
3392
  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>;
2776
- 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 ";
3393
+ 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 isLocked\n }\n}\n ";
2777
3394
  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>;
2778
3395
  export declare const ExternalDashboardListDocument = "\n query ExternalDashboardList($companyId: uuid = \"\") {\n externalDashboards(where: {companyId: {_eq: $companyId}}) {\n externalDashboardId\n name\n id\n }\n}\n ";
2779
3396
  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>;
2780
3397
  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 ";
2781
3398
  export declare const useGuestTokenParamsQuery: <TData = GuestTokenParamsQuery, TError = unknown>(variables?: GuestTokenParamsQueryVariables, options?: UseQueryOptions<GuestTokenParamsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
2782
- export declare const MetricAccessDocument = "\n query MetricAccess($companyId: uuid = \"\") {\n companySubsetTables(where: {companyId: {_eq: $companyId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n }\n}\n ";
3399
+ export declare const MetricAccessDocument = "\n query MetricAccess($companyId: uuid = \"\") {\n companySubsetTables(where: {companyId: {_eq: $companyId}}) {\n isAllowMetricCreation\n isAllowMetricDeletion\n isAllowMetricUpdation\n isAllowChangeLayout\n }\n}\n ";
2783
3400
  export declare const useMetricAccessQuery: <TData = MetricAccessQuery, TError = unknown>(variables?: MetricAccessQueryVariables, options?: UseQueryOptions<MetricAccessQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
3401
+ export declare const ScheduleEmailReportDocument = "\n query ScheduleEmailReport($token: uuid = \"\") {\n scheduleEmailReports(where: {guestToken: {_eq: $token}}) {\n externalDashboardId\n guestToken\n nextScheduledAt\n sharingSettingsId\n subject\n timeConfigurations\n id\n }\n}\n ";
3402
+ export declare const useScheduleEmailReportQuery: <TData = ScheduleEmailReportQuery, TError = unknown>(variables?: ScheduleEmailReportQueryVariables, options?: UseQueryOptions<ScheduleEmailReportQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
3403
+ export declare const SharingSettingsIdDocument = "\n query SharingSettingsId($companyId: uuid = \"\") {\n sharingSettings(where: {companyId: {_eq: $companyId}}) {\n id\n }\n}\n ";
3404
+ export declare const useSharingSettingsIdQuery: <TData = SharingSettingsIdQuery, TError = unknown>(variables?: SharingSettingsIdQueryVariables, options?: UseQueryOptions<SharingSettingsIdQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
2784
3405
  export declare const GetThemesDocument = "\n query GetThemes($companyId: uuid! = \"\") {\n themes(where: {companyId: {_eq: $companyId}}) {\n id\n companyId\n general\n dashboard\n cardTitle\n cardDescription\n chart\n }\n}\n ";
2785
3406
  export declare const useGetThemesQuery: <TData = GetThemesQuery, TError = unknown>(variables?: GetThemesQueryVariables, options?: UseQueryOptions<GetThemesQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
2786
3407
  export declare const UnderlyingDataDocument = "\n mutation UnderlyingData($columnName: String = \"\", $companyId: String = \"\", $query: String = \"\", $value: json = \"\") {\n getUnderlyingData(\n input: {columnName: $columnName, companyId: $companyId, query: $query, value: $value}\n ) {\n data\n timeTaken\n }\n}\n ";
@@ -2803,14 +3424,6 @@ export declare const useMarkArchiveMetricMutation: <TError = unknown, TContext =
2803
3424
  id?: Scalars['uuid'];
2804
3425
  clientId?: string | undefined;
2805
3426
  }>, TContext>;
2806
- 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 ";
2807
- export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
2808
- clientId: Scalars['String'];
2809
- externalDashboardId: Scalars['uuid'];
2810
- }>, TContext> | undefined) => import("react-query").UseMutationResult<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
2811
- clientId: Scalars['String'];
2812
- externalDashboardId: Scalars['uuid'];
2813
- }>, TContext>;
2814
3427
  export declare const PreviewTableDocument = "\n mutation PreviewTable($tableName: String = \"\", $limit: Int = 10, $integrationId: String = \"\", $integrationName: String = \"\") {\n previewTable(\n input: {tableName: $tableName, limit: $limit, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n data\n isError\n name\n }\n error {\n message\n }\n }\n}\n ";
2815
3428
  export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
2816
3429
  tableName?: InputMaybe<string> | undefined;
@@ -2825,35 +3438,53 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
2825
3438
  }>, TContext>;
2826
3439
  export declare const QueryExternalMetricDocument = "\n query QueryExternalMetric($id: String = \"\", $clientId: String = \"\", $globalFilters: json = \"\", $rlsConditions: json = [], $filterValues: json = \"\", $tenancyLevel: String = \"\") {\n externalMetricQuery(\n input: {externalMetricId: $id, clientId: $clientId, globalFilters: $globalFilters, rlsConditions: $rlsConditions, filterValues: $filterValues, tenancyLevel: $tenancyLevel}\n ) {\n data\n timeTaken\n }\n}\n ";
2827
3440
  export declare const useQueryExternalMetricQuery: <TData = QueryExternalMetricQuery, TError = unknown>(variables?: QueryExternalMetricQueryVariables, options?: UseQueryOptions<QueryExternalMetricQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
2828
- export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
3441
+ export declare const RawCsvDocument = "\n mutation RawCsv($companyId: String = \"\", $recipientAddress: String = \"\", $sqlQuery: String = \"\", $metricName: String = \"\", $workspaceId: String = \"\") {\n sendRawCsv(\n input: {companyId: $companyId, recipientAddress: $recipientAddress, sqlQuery: $sqlQuery, metricName: $metricName, workspaceId: $workspaceId}\n ) {\n status\n error {\n message\n }\n }\n}\n ";
2829
3442
  export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
2830
3443
  companyId?: InputMaybe<string> | undefined;
2831
3444
  recipientAddress?: InputMaybe<string> | undefined;
2832
3445
  sqlQuery?: InputMaybe<string> | undefined;
3446
+ metricName?: InputMaybe<string> | undefined;
3447
+ workspaceId?: InputMaybe<string> | undefined;
2833
3448
  }>, TContext> | undefined) => import("react-query").UseMutationResult<RawCsvMutation, TError, Exact<{
2834
3449
  companyId?: InputMaybe<string> | undefined;
2835
3450
  recipientAddress?: InputMaybe<string> | undefined;
2836
3451
  sqlQuery?: InputMaybe<string> | undefined;
3452
+ metricName?: InputMaybe<string> | undefined;
3453
+ workspaceId?: InputMaybe<string> | undefined;
2837
3454
  }>, TContext>;
2838
- 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 ";
2839
- export declare const useResizeExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<ResizeExternalMetricMutation, TError, Exact<{
2840
- id: Scalars['uuid'];
2841
- resizeAttributes: Scalars['jsonb'];
2842
- }>, TContext> | undefined) => import("react-query").UseMutationResult<ResizeExternalMetricMutation, TError, Exact<{
2843
- id: Scalars['uuid'];
2844
- resizeAttributes: Scalars['jsonb'];
2845
- }>, TContext>;
2846
- 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 ";
3455
+ export declare const SaveExternalDashboardLayoutDocument = "\n mutation SaveExternalDashboardLayout($clientId: String!, $externalDashboardId: uuid!, $layout: jsonb!, $isLocked: Boolean) {\n insert_clientDashboardLayout_one(\n object: {clientId: $clientId, externalDashboardId: $externalDashboardId, layout: $layout, isLocked: $isLocked}\n on_conflict: {constraint: clientDashboardLayout_pkey, update_columns: [layout, isLocked]}\n ) {\n clientId\n externalDashboardId\n layout\n isLocked\n }\n}\n ";
2847
3456
  export declare const useSaveExternalDashboardLayoutMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<SaveExternalDashboardLayoutMutation, TError, Exact<{
2848
3457
  clientId: Scalars['String'];
2849
3458
  externalDashboardId: Scalars['uuid'];
2850
3459
  layout: Scalars['jsonb'];
3460
+ isLocked?: InputMaybe<boolean> | undefined;
2851
3461
  }>, TContext> | undefined) => import("react-query").UseMutationResult<SaveExternalDashboardLayoutMutation, TError, Exact<{
2852
3462
  clientId: Scalars['String'];
2853
3463
  externalDashboardId: Scalars['uuid'];
2854
3464
  layout: Scalars['jsonb'];
3465
+ isLocked?: InputMaybe<boolean> | undefined;
3466
+ }>, TContext>;
3467
+ export declare const SaveScheduleEmailDocument = "\n mutation SaveScheduleEmail($emails: json = \"\", $externalDashboardId: uuid = \"\", $guestToken: uuid = \"\", $nextScheduledAt: String = \"\", $sharingSettingsId: uuid = \"\", $subject: String = \"\", $timeConfigurations: json = \"\", $data: [scheduleEmailReportCharts_insert_input!] = []) {\n insert_scheduleEmailReports_one(\n object: {emails: $emails, externalDashboardId: $externalDashboardId, guestToken: $guestToken, nextScheduledAt: $nextScheduledAt, sharingSettingsId: $sharingSettingsId, subject: $subject, timeConfigurations: $timeConfigurations, scheduleEmailReportCharts: {data: $data}}\n on_conflict: {constraint: scheduleEmailReports_guestToken_key, update_columns: [emails, nextScheduledAt, sharingSettingsId, subject, timeConfigurations]}\n ) {\n emails\n externalDashboardId\n guestToken\n id\n nextScheduledAt\n sharingSettingsId\n subject\n timeConfigurations\n scheduleEmailReportCharts {\n externalMetricId\n id\n scheduleEmailReportId\n }\n }\n}\n ";
3468
+ export declare const useSaveScheduleEmailMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<SaveScheduleEmailMutation, TError, Exact<{
3469
+ emails?: InputMaybe<Scalars['json']>;
3470
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
3471
+ guestToken?: InputMaybe<Scalars['uuid']>;
3472
+ nextScheduledAt?: InputMaybe<string> | undefined;
3473
+ sharingSettingsId?: InputMaybe<Scalars['uuid']>;
3474
+ subject?: InputMaybe<string> | undefined;
3475
+ timeConfigurations?: InputMaybe<Scalars['json']>;
3476
+ data?: InputMaybe<ScheduleEmailReportCharts_Insert_Input | ScheduleEmailReportCharts_Insert_Input[]> | undefined;
3477
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<SaveScheduleEmailMutation, TError, Exact<{
3478
+ emails?: InputMaybe<Scalars['json']>;
3479
+ externalDashboardId?: InputMaybe<Scalars['uuid']>;
3480
+ guestToken?: InputMaybe<Scalars['uuid']>;
3481
+ nextScheduledAt?: InputMaybe<string> | undefined;
3482
+ sharingSettingsId?: InputMaybe<Scalars['uuid']>;
3483
+ subject?: InputMaybe<string> | undefined;
3484
+ timeConfigurations?: InputMaybe<Scalars['json']>;
3485
+ data?: InputMaybe<ScheduleEmailReportCharts_Insert_Input | ScheduleEmailReportCharts_Insert_Input[]> | undefined;
2855
3486
  }>, TContext>;
2856
- 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 ";
3487
+ 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 timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n clickActions\n }\n}\n ";
2857
3488
  export declare const useUpdateAdminMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UpdateAdminMetricMutation, TError, Exact<{
2858
3489
  externalMetricId: Scalars['uuid'];
2859
3490
  object: ExternalMetrics_Insert_Input;