@databrainhq/plugin 0.9.4 → 0.9.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
+ }
@@ -146,6 +146,32 @@ export declare type GetUnderlyingSqlQueryOutput = {
146
146
  __typename?: 'GetUnderlyingSqlQueryOutput';
147
147
  query: Scalars['String'];
148
148
  };
149
+ /** Boolean expression to compare columns of type "Int". All fields are combined with logical 'AND'. */
150
+ export declare type Int_Comparison_Exp = {
151
+ _eq?: InputMaybe<Scalars['Int']>;
152
+ _gt?: InputMaybe<Scalars['Int']>;
153
+ _gte?: InputMaybe<Scalars['Int']>;
154
+ _in?: InputMaybe<Array<Scalars['Int']>>;
155
+ _is_null?: InputMaybe<Scalars['Boolean']>;
156
+ _lt?: InputMaybe<Scalars['Int']>;
157
+ _lte?: InputMaybe<Scalars['Int']>;
158
+ _neq?: InputMaybe<Scalars['Int']>;
159
+ _nin?: InputMaybe<Array<Scalars['Int']>>;
160
+ };
161
+ export declare type InvokeSaveRawCsvDetailsInput = {
162
+ configurations: Scalars['json'];
163
+ expireCsvFileAt: Scalars['String'];
164
+ expireUrlIn: Scalars['Int'];
165
+ externalMetricId: Scalars['String'];
166
+ integrationId: Scalars['String'];
167
+ integrationName: Scalars['String'];
168
+ query: Scalars['String'];
169
+ };
170
+ export declare type InvokeSaveRawCsvDetailsOutput = {
171
+ __typename?: 'InvokeSaveRawCsvDetailsOutput';
172
+ error?: Maybe<Scalars['String']>;
173
+ statusCode?: Maybe<Scalars['Int']>;
174
+ };
149
175
  export declare type PreviewTableData = {
150
176
  __typename?: 'PreviewTableData';
151
177
  data?: Maybe<Scalars['json']>;
@@ -512,6 +538,8 @@ export declare type CompanyIntegrations = {
512
538
  /** An object relationship */
513
539
  companyWorkspace: CompanyWorkspaces;
514
540
  /** An array relationship */
541
+ customSqlColumns: Array<CustomSqlColumns>;
542
+ /** An array relationship */
515
543
  externalMetrics: Array<ExternalMetrics>;
516
544
  id: Scalars['uuid'];
517
545
  /** connected source or destination id */
@@ -520,6 +548,14 @@ export declare type CompanyIntegrations = {
520
548
  workspaceId: Scalars['uuid'];
521
549
  };
522
550
  /** columns and relationships of "companyIntegrations" */
551
+ export declare type CompanyIntegrationsCustomSqlColumnsArgs = {
552
+ distinct_on?: InputMaybe<Array<CustomSqlColumns_Select_Column>>;
553
+ limit?: InputMaybe<Scalars['Int']>;
554
+ offset?: InputMaybe<Scalars['Int']>;
555
+ order_by?: InputMaybe<Array<CustomSqlColumns_Order_By>>;
556
+ where?: InputMaybe<CustomSqlColumns_Bool_Exp>;
557
+ };
558
+ /** columns and relationships of "companyIntegrations" */
523
559
  export declare type CompanyIntegrationsExternalMetricsArgs = {
524
560
  distinct_on?: InputMaybe<Array<ExternalMetrics_Select_Column>>;
525
561
  limit?: InputMaybe<Scalars['Int']>;
@@ -540,6 +576,7 @@ export declare type CompanyIntegrations_Bool_Exp = {
540
576
  _or?: InputMaybe<Array<CompanyIntegrations_Bool_Exp>>;
541
577
  companyId?: InputMaybe<Uuid_Comparison_Exp>;
542
578
  companyWorkspace?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
579
+ customSqlColumns?: InputMaybe<CustomSqlColumns_Bool_Exp>;
543
580
  externalMetrics?: InputMaybe<ExternalMetrics_Bool_Exp>;
544
581
  id?: InputMaybe<Uuid_Comparison_Exp>;
545
582
  integrationId?: InputMaybe<Uuid_Comparison_Exp>;
@@ -568,6 +605,7 @@ export declare type CompanyIntegrations_Min_Order_By = {
568
605
  export declare type CompanyIntegrations_Order_By = {
569
606
  companyId?: InputMaybe<Order_By>;
570
607
  companyWorkspace?: InputMaybe<CompanyWorkspaces_Order_By>;
608
+ customSqlColumns_aggregate?: InputMaybe<CustomSqlColumns_Aggregate_Order_By>;
571
609
  externalMetrics_aggregate?: InputMaybe<ExternalMetrics_Aggregate_Order_By>;
572
610
  id?: InputMaybe<Order_By>;
573
611
  integrationId?: InputMaybe<Order_By>;
@@ -706,6 +744,129 @@ export declare enum CompanyWorkspaces_Select_Column {
706
744
  /** column name */
707
745
  Id = "id"
708
746
  }
747
+ /** columns and relationships of "customSqlColumns" */
748
+ export declare type CustomSqlColumns = {
749
+ __typename?: 'customSqlColumns';
750
+ /** An object relationship */
751
+ companyIntegration: CompanyIntegrations;
752
+ companyIntegrationId: Scalars['uuid'];
753
+ id: Scalars['uuid'];
754
+ sqlColumns: Scalars['jsonb'];
755
+ tableName: Scalars['String'];
756
+ };
757
+ /** columns and relationships of "customSqlColumns" */
758
+ export declare type CustomSqlColumnsSqlColumnsArgs = {
759
+ path?: InputMaybe<Scalars['String']>;
760
+ };
761
+ /** order by aggregate values of table "customSqlColumns" */
762
+ export declare type CustomSqlColumns_Aggregate_Order_By = {
763
+ count?: InputMaybe<Order_By>;
764
+ max?: InputMaybe<CustomSqlColumns_Max_Order_By>;
765
+ min?: InputMaybe<CustomSqlColumns_Min_Order_By>;
766
+ };
767
+ /** append existing jsonb value of filtered columns with new jsonb value */
768
+ export declare type CustomSqlColumns_Append_Input = {
769
+ sqlColumns?: InputMaybe<Scalars['jsonb']>;
770
+ };
771
+ /** Boolean expression to filter rows from the table "customSqlColumns". All fields are combined with a logical 'AND'. */
772
+ export declare type CustomSqlColumns_Bool_Exp = {
773
+ _and?: InputMaybe<Array<CustomSqlColumns_Bool_Exp>>;
774
+ _not?: InputMaybe<CustomSqlColumns_Bool_Exp>;
775
+ _or?: InputMaybe<Array<CustomSqlColumns_Bool_Exp>>;
776
+ companyIntegration?: InputMaybe<CompanyIntegrations_Bool_Exp>;
777
+ companyIntegrationId?: InputMaybe<Uuid_Comparison_Exp>;
778
+ id?: InputMaybe<Uuid_Comparison_Exp>;
779
+ sqlColumns?: InputMaybe<Jsonb_Comparison_Exp>;
780
+ tableName?: InputMaybe<String_Comparison_Exp>;
781
+ };
782
+ /** unique or primary key constraints on table "customSqlColumns" */
783
+ export declare enum CustomSqlColumns_Constraint {
784
+ /** unique or primary key constraint on columns "companyIntegrationId", "tableName" */
785
+ CustomSqlColumnsCompanyIntegrationIdTableNameKey = "customSqlColumns_companyIntegrationId_tableName_key",
786
+ /** unique or primary key constraint on columns "id" */
787
+ CustomSqlColumnsPkey = "customSqlColumns_pkey"
788
+ }
789
+ /** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */
790
+ export declare type CustomSqlColumns_Delete_At_Path_Input = {
791
+ sqlColumns?: InputMaybe<Array<Scalars['String']>>;
792
+ };
793
+ /** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */
794
+ export declare type CustomSqlColumns_Delete_Elem_Input = {
795
+ sqlColumns?: InputMaybe<Scalars['Int']>;
796
+ };
797
+ /** delete key/value pair or string element. key/value pairs are matched based on their key value */
798
+ export declare type CustomSqlColumns_Delete_Key_Input = {
799
+ sqlColumns?: InputMaybe<Scalars['String']>;
800
+ };
801
+ /** input type for inserting data into table "customSqlColumns" */
802
+ export declare type CustomSqlColumns_Insert_Input = {
803
+ companyIntegrationId?: InputMaybe<Scalars['uuid']>;
804
+ id?: InputMaybe<Scalars['uuid']>;
805
+ sqlColumns?: InputMaybe<Scalars['jsonb']>;
806
+ tableName?: InputMaybe<Scalars['String']>;
807
+ };
808
+ /** order by max() on columns of table "customSqlColumns" */
809
+ export declare type CustomSqlColumns_Max_Order_By = {
810
+ companyIntegrationId?: InputMaybe<Order_By>;
811
+ id?: InputMaybe<Order_By>;
812
+ tableName?: InputMaybe<Order_By>;
813
+ };
814
+ /** order by min() on columns of table "customSqlColumns" */
815
+ export declare type CustomSqlColumns_Min_Order_By = {
816
+ companyIntegrationId?: InputMaybe<Order_By>;
817
+ id?: InputMaybe<Order_By>;
818
+ tableName?: InputMaybe<Order_By>;
819
+ };
820
+ /** response of any mutation on the table "customSqlColumns" */
821
+ export declare type CustomSqlColumns_Mutation_Response = {
822
+ __typename?: 'customSqlColumns_mutation_response';
823
+ /** number of rows affected by the mutation */
824
+ affected_rows: Scalars['Int'];
825
+ /** data from the rows affected by the mutation */
826
+ returning: Array<CustomSqlColumns>;
827
+ };
828
+ /** on_conflict condition type for table "customSqlColumns" */
829
+ export declare type CustomSqlColumns_On_Conflict = {
830
+ constraint: CustomSqlColumns_Constraint;
831
+ update_columns?: Array<CustomSqlColumns_Update_Column>;
832
+ where?: InputMaybe<CustomSqlColumns_Bool_Exp>;
833
+ };
834
+ /** Ordering options when selecting data from "customSqlColumns". */
835
+ export declare type CustomSqlColumns_Order_By = {
836
+ companyIntegration?: InputMaybe<CompanyIntegrations_Order_By>;
837
+ companyIntegrationId?: InputMaybe<Order_By>;
838
+ id?: InputMaybe<Order_By>;
839
+ sqlColumns?: InputMaybe<Order_By>;
840
+ tableName?: InputMaybe<Order_By>;
841
+ };
842
+ /** primary key columns input for table: customSqlColumns */
843
+ export declare type CustomSqlColumns_Pk_Columns_Input = {
844
+ id: Scalars['uuid'];
845
+ };
846
+ /** prepend existing jsonb value of filtered columns with new jsonb value */
847
+ export declare type CustomSqlColumns_Prepend_Input = {
848
+ sqlColumns?: InputMaybe<Scalars['jsonb']>;
849
+ };
850
+ /** select columns of table "customSqlColumns" */
851
+ export declare enum CustomSqlColumns_Select_Column {
852
+ /** column name */
853
+ CompanyIntegrationId = "companyIntegrationId",
854
+ /** column name */
855
+ Id = "id",
856
+ /** column name */
857
+ SqlColumns = "sqlColumns",
858
+ /** column name */
859
+ TableName = "tableName"
860
+ }
861
+ /** input type for updating data in table "customSqlColumns" */
862
+ export declare type CustomSqlColumns_Set_Input = {
863
+ sqlColumns?: InputMaybe<Scalars['jsonb']>;
864
+ };
865
+ /** update columns of table "customSqlColumns" */
866
+ export declare enum CustomSqlColumns_Update_Column {
867
+ /** column name */
868
+ SqlColumns = "sqlColumns"
869
+ }
709
870
  /** columns and relationships of "externalDashboardMetrics" */
710
871
  export declare type ExternalDashboardMetrics = {
711
872
  __typename?: 'externalDashboardMetrics';
@@ -1026,6 +1187,69 @@ export declare enum ExternalDashboards_Select_Column {
1026
1187
  /** column name */
1027
1188
  Name = "name"
1028
1189
  }
1190
+ /** columns and relationships of "externalMetricRawCsvUrls" */
1191
+ export declare type ExternalMetricRawCsvUrls = {
1192
+ __typename?: 'externalMetricRawCsvUrls';
1193
+ configurations: Scalars['jsonb'];
1194
+ error?: Maybe<Scalars['String']>;
1195
+ expireUrlIn: Scalars['Int'];
1196
+ /** An object relationship */
1197
+ externalMetric: ExternalMetrics;
1198
+ externalMetricId: Scalars['uuid'];
1199
+ id: Scalars['uuid'];
1200
+ lastUpdatedAt: Scalars['timestamptz'];
1201
+ urls: Scalars['jsonb'];
1202
+ };
1203
+ /** columns and relationships of "externalMetricRawCsvUrls" */
1204
+ export declare type ExternalMetricRawCsvUrlsConfigurationsArgs = {
1205
+ path?: InputMaybe<Scalars['String']>;
1206
+ };
1207
+ /** columns and relationships of "externalMetricRawCsvUrls" */
1208
+ export declare type ExternalMetricRawCsvUrlsUrlsArgs = {
1209
+ path?: InputMaybe<Scalars['String']>;
1210
+ };
1211
+ /** Boolean expression to filter rows from the table "externalMetricRawCsvUrls". All fields are combined with a logical 'AND'. */
1212
+ export declare type ExternalMetricRawCsvUrls_Bool_Exp = {
1213
+ _and?: InputMaybe<Array<ExternalMetricRawCsvUrls_Bool_Exp>>;
1214
+ _not?: InputMaybe<ExternalMetricRawCsvUrls_Bool_Exp>;
1215
+ _or?: InputMaybe<Array<ExternalMetricRawCsvUrls_Bool_Exp>>;
1216
+ configurations?: InputMaybe<Jsonb_Comparison_Exp>;
1217
+ error?: InputMaybe<String_Comparison_Exp>;
1218
+ expireUrlIn?: InputMaybe<Int_Comparison_Exp>;
1219
+ externalMetric?: InputMaybe<ExternalMetrics_Bool_Exp>;
1220
+ externalMetricId?: InputMaybe<Uuid_Comparison_Exp>;
1221
+ id?: InputMaybe<Uuid_Comparison_Exp>;
1222
+ lastUpdatedAt?: InputMaybe<Timestamptz_Comparison_Exp>;
1223
+ urls?: InputMaybe<Jsonb_Comparison_Exp>;
1224
+ };
1225
+ /** Ordering options when selecting data from "externalMetricRawCsvUrls". */
1226
+ export declare type ExternalMetricRawCsvUrls_Order_By = {
1227
+ configurations?: InputMaybe<Order_By>;
1228
+ error?: InputMaybe<Order_By>;
1229
+ expireUrlIn?: InputMaybe<Order_By>;
1230
+ externalMetric?: InputMaybe<ExternalMetrics_Order_By>;
1231
+ externalMetricId?: InputMaybe<Order_By>;
1232
+ id?: InputMaybe<Order_By>;
1233
+ lastUpdatedAt?: InputMaybe<Order_By>;
1234
+ urls?: InputMaybe<Order_By>;
1235
+ };
1236
+ /** select columns of table "externalMetricRawCsvUrls" */
1237
+ export declare enum ExternalMetricRawCsvUrls_Select_Column {
1238
+ /** column name */
1239
+ Configurations = "configurations",
1240
+ /** column name */
1241
+ Error = "error",
1242
+ /** column name */
1243
+ ExpireUrlIn = "expireUrlIn",
1244
+ /** column name */
1245
+ ExternalMetricId = "externalMetricId",
1246
+ /** column name */
1247
+ Id = "id",
1248
+ /** column name */
1249
+ LastUpdatedAt = "lastUpdatedAt",
1250
+ /** column name */
1251
+ Urls = "urls"
1252
+ }
1029
1253
  /** extrnal metrics table for users client-based query */
1030
1254
  export declare type ExternalMetrics = {
1031
1255
  __typename?: 'externalMetrics';
@@ -1045,6 +1269,8 @@ export declare type ExternalMetrics = {
1045
1269
  drillDownSettings?: Maybe<Scalars['jsonb']>;
1046
1270
  /** An array relationship */
1047
1271
  externalDashboardMetrics: Array<ExternalDashboardMetrics>;
1272
+ /** An object relationship */
1273
+ externalMetricRawCsvUrl?: Maybe<ExternalMetricRawCsvUrls>;
1048
1274
  /** An array relationship */
1049
1275
  externalMetricsRlsFilters: Array<ExternalMetricsRlsFilters>;
1050
1276
  groupBy: Scalars['jsonb'];
@@ -1253,6 +1479,7 @@ export declare type ExternalMetrics_Bool_Exp = {
1253
1479
  description?: InputMaybe<String_Comparison_Exp>;
1254
1480
  drillDownSettings?: InputMaybe<Jsonb_Comparison_Exp>;
1255
1481
  externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
1482
+ externalMetricRawCsvUrl?: InputMaybe<ExternalMetricRawCsvUrls_Bool_Exp>;
1256
1483
  externalMetricsRlsFilters?: InputMaybe<ExternalMetricsRlsFilters_Bool_Exp>;
1257
1484
  groupBy?: InputMaybe<Jsonb_Comparison_Exp>;
1258
1485
  id?: InputMaybe<Uuid_Comparison_Exp>;
@@ -1397,6 +1624,7 @@ export declare type ExternalMetrics_Order_By = {
1397
1624
  description?: InputMaybe<Order_By>;
1398
1625
  drillDownSettings?: InputMaybe<Order_By>;
1399
1626
  externalDashboardMetrics_aggregate?: InputMaybe<ExternalDashboardMetrics_Aggregate_Order_By>;
1627
+ externalMetricRawCsvUrl?: InputMaybe<ExternalMetricRawCsvUrls_Order_By>;
1400
1628
  externalMetricsRlsFilters_aggregate?: InputMaybe<ExternalMetricsRlsFilters_Aggregate_Order_By>;
1401
1629
  groupBy?: InputMaybe<Order_By>;
1402
1630
  id?: InputMaybe<Order_By>;
@@ -1621,6 +1849,10 @@ export declare type Mutation_Root = {
1621
1849
  insert_clientDeletedMetrics?: Maybe<ClientDeletedMetrics_Mutation_Response>;
1622
1850
  /** insert a single row into the table: "clientDeletedMetrics" */
1623
1851
  insert_clientDeletedMetrics_one?: Maybe<ClientDeletedMetrics>;
1852
+ /** insert data into the table: "customSqlColumns" */
1853
+ insert_customSqlColumns?: Maybe<CustomSqlColumns_Mutation_Response>;
1854
+ /** insert a single row into the table: "customSqlColumns" */
1855
+ insert_customSqlColumns_one?: Maybe<CustomSqlColumns>;
1624
1856
  /** insert data into the table: "externalDashboardMetrics" */
1625
1857
  insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
1626
1858
  /** insert a single row into the table: "externalDashboardMetrics" */
@@ -1641,12 +1873,17 @@ export declare type Mutation_Root = {
1641
1873
  insert_scheduleEmailReports?: Maybe<ScheduleEmailReports_Mutation_Response>;
1642
1874
  /** insert a single row into the table: "scheduleEmailReports" */
1643
1875
  insert_scheduleEmailReports_one?: Maybe<ScheduleEmailReports>;
1876
+ invokeSaveRawCsvDetails?: Maybe<InvokeSaveRawCsvDetailsOutput>;
1644
1877
  previewTable?: Maybe<PreviewTableOutput>;
1645
1878
  sendRawCsv?: Maybe<SendRawCsvOutput>;
1646
1879
  /** update data of the table: "clientDashboardLayout" */
1647
1880
  update_clientDashboardLayout?: Maybe<ClientDashboardLayout_Mutation_Response>;
1648
1881
  /** update single row of the table: "clientDashboardLayout" */
1649
1882
  update_clientDashboardLayout_by_pk?: Maybe<ClientDashboardLayout>;
1883
+ /** update data of the table: "customSqlColumns" */
1884
+ update_customSqlColumns?: Maybe<CustomSqlColumns_Mutation_Response>;
1885
+ /** update single row of the table: "customSqlColumns" */
1886
+ update_customSqlColumns_by_pk?: Maybe<CustomSqlColumns>;
1650
1887
  /** update data of the table: "externalMetrics" */
1651
1888
  update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
1652
1889
  /** update single row of the table: "externalMetrics" */
@@ -1743,6 +1980,16 @@ export declare type Mutation_RootInsert_ClientDeletedMetrics_OneArgs = {
1743
1980
  on_conflict?: InputMaybe<ClientDeletedMetrics_On_Conflict>;
1744
1981
  };
1745
1982
  /** mutation root */
1983
+ export declare type Mutation_RootInsert_CustomSqlColumnsArgs = {
1984
+ objects: Array<CustomSqlColumns_Insert_Input>;
1985
+ on_conflict?: InputMaybe<CustomSqlColumns_On_Conflict>;
1986
+ };
1987
+ /** mutation root */
1988
+ export declare type Mutation_RootInsert_CustomSqlColumns_OneArgs = {
1989
+ object: CustomSqlColumns_Insert_Input;
1990
+ on_conflict?: InputMaybe<CustomSqlColumns_On_Conflict>;
1991
+ };
1992
+ /** mutation root */
1746
1993
  export declare type Mutation_RootInsert_ExternalDashboardMetricsArgs = {
1747
1994
  objects: Array<ExternalDashboardMetrics_Insert_Input>;
1748
1995
  on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
@@ -1793,6 +2040,10 @@ export declare type Mutation_RootInsert_ScheduleEmailReports_OneArgs = {
1793
2040
  on_conflict?: InputMaybe<ScheduleEmailReports_On_Conflict>;
1794
2041
  };
1795
2042
  /** mutation root */
2043
+ export declare type Mutation_RootInvokeSaveRawCsvDetailsArgs = {
2044
+ input: InvokeSaveRawCsvDetailsInput;
2045
+ };
2046
+ /** mutation root */
1796
2047
  export declare type Mutation_RootPreviewTableArgs = {
1797
2048
  input: PreviewTableInput;
1798
2049
  };
@@ -1821,6 +2072,26 @@ export declare type Mutation_RootUpdate_ClientDashboardLayout_By_PkArgs = {
1821
2072
  pk_columns: ClientDashboardLayout_Pk_Columns_Input;
1822
2073
  };
1823
2074
  /** mutation root */
2075
+ export declare type Mutation_RootUpdate_CustomSqlColumnsArgs = {
2076
+ _append?: InputMaybe<CustomSqlColumns_Append_Input>;
2077
+ _delete_at_path?: InputMaybe<CustomSqlColumns_Delete_At_Path_Input>;
2078
+ _delete_elem?: InputMaybe<CustomSqlColumns_Delete_Elem_Input>;
2079
+ _delete_key?: InputMaybe<CustomSqlColumns_Delete_Key_Input>;
2080
+ _prepend?: InputMaybe<CustomSqlColumns_Prepend_Input>;
2081
+ _set?: InputMaybe<CustomSqlColumns_Set_Input>;
2082
+ where: CustomSqlColumns_Bool_Exp;
2083
+ };
2084
+ /** mutation root */
2085
+ export declare type Mutation_RootUpdate_CustomSqlColumns_By_PkArgs = {
2086
+ _append?: InputMaybe<CustomSqlColumns_Append_Input>;
2087
+ _delete_at_path?: InputMaybe<CustomSqlColumns_Delete_At_Path_Input>;
2088
+ _delete_elem?: InputMaybe<CustomSqlColumns_Delete_Elem_Input>;
2089
+ _delete_key?: InputMaybe<CustomSqlColumns_Delete_Key_Input>;
2090
+ _prepend?: InputMaybe<CustomSqlColumns_Prepend_Input>;
2091
+ _set?: InputMaybe<CustomSqlColumns_Set_Input>;
2092
+ pk_columns: CustomSqlColumns_Pk_Columns_Input;
2093
+ };
2094
+ /** mutation root */
1824
2095
  export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
1825
2096
  _append?: InputMaybe<ExternalMetrics_Append_Input>;
1826
2097
  _delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
@@ -1900,6 +2171,10 @@ export declare type Query_Root = {
1900
2171
  /** fetch data from the table: "companyWorkspaces" using primary key columns */
1901
2172
  companyWorkspaces_by_pk?: Maybe<CompanyWorkspaces>;
1902
2173
  /** An array relationship */
2174
+ customSqlColumns: Array<CustomSqlColumns>;
2175
+ /** fetch data from the table: "customSqlColumns" using primary key columns */
2176
+ customSqlColumns_by_pk?: Maybe<CustomSqlColumns>;
2177
+ /** An array relationship */
1903
2178
  externalDashboardMetrics: Array<ExternalDashboardMetrics>;
1904
2179
  /** fetch data from the table: "externalDashboardMetrics" using primary key columns */
1905
2180
  externalDashboardMetrics_by_pk?: Maybe<ExternalDashboardMetrics>;
@@ -1916,6 +2191,10 @@ export declare type Query_Root = {
1916
2191
  /** fetch data from the table: "externalDashboards" using primary key columns */
1917
2192
  externalDashboards_by_pk?: Maybe<ExternalDashboards>;
1918
2193
  externalMetricQuery?: Maybe<ExternalMetricQueryOutput>;
2194
+ /** fetch data from the table: "externalMetricRawCsvUrls" */
2195
+ externalMetricRawCsvUrls: Array<ExternalMetricRawCsvUrls>;
2196
+ /** fetch data from the table: "externalMetricRawCsvUrls" using primary key columns */
2197
+ externalMetricRawCsvUrls_by_pk?: Maybe<ExternalMetricRawCsvUrls>;
1919
2198
  /** An array relationship */
1920
2199
  externalMetrics: Array<ExternalMetrics>;
1921
2200
  /** An array relationship */
@@ -2005,6 +2284,16 @@ export declare type Query_RootCompanyWorkspacesArgs = {
2005
2284
  export declare type Query_RootCompanyWorkspaces_By_PkArgs = {
2006
2285
  id: Scalars['uuid'];
2007
2286
  };
2287
+ export declare type Query_RootCustomSqlColumnsArgs = {
2288
+ distinct_on?: InputMaybe<Array<CustomSqlColumns_Select_Column>>;
2289
+ limit?: InputMaybe<Scalars['Int']>;
2290
+ offset?: InputMaybe<Scalars['Int']>;
2291
+ order_by?: InputMaybe<Array<CustomSqlColumns_Order_By>>;
2292
+ where?: InputMaybe<CustomSqlColumns_Bool_Exp>;
2293
+ };
2294
+ export declare type Query_RootCustomSqlColumns_By_PkArgs = {
2295
+ id: Scalars['uuid'];
2296
+ };
2008
2297
  export declare type Query_RootExternalDashboardMetricsArgs = {
2009
2298
  distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
2010
2299
  limit?: InputMaybe<Scalars['Int']>;
@@ -2049,6 +2338,16 @@ export declare type Query_RootExternalDashboards_By_PkArgs = {
2049
2338
  export declare type Query_RootExternalMetricQueryArgs = {
2050
2339
  input: ExternalMetricQueryInput;
2051
2340
  };
2341
+ export declare type Query_RootExternalMetricRawCsvUrlsArgs = {
2342
+ distinct_on?: InputMaybe<Array<ExternalMetricRawCsvUrls_Select_Column>>;
2343
+ limit?: InputMaybe<Scalars['Int']>;
2344
+ offset?: InputMaybe<Scalars['Int']>;
2345
+ order_by?: InputMaybe<Array<ExternalMetricRawCsvUrls_Order_By>>;
2346
+ where?: InputMaybe<ExternalMetricRawCsvUrls_Bool_Exp>;
2347
+ };
2348
+ export declare type Query_RootExternalMetricRawCsvUrls_By_PkArgs = {
2349
+ id: Scalars['uuid'];
2350
+ };
2052
2351
  export declare type Query_RootExternalMetricsArgs = {
2053
2352
  distinct_on?: InputMaybe<Array<ExternalMetrics_Select_Column>>;
2054
2353
  limit?: InputMaybe<Scalars['Int']>;
@@ -2156,7 +2455,9 @@ export declare type ScheduleEmailReportCharts_Bool_Exp = {
2156
2455
  /** unique or primary key constraints on table "scheduleEmailReportCharts" */
2157
2456
  export declare enum ScheduleEmailReportCharts_Constraint {
2158
2457
  /** unique or primary key constraint on columns "id" */
2159
- ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey"
2458
+ ScheduleEmailReportChartsPkey = "scheduleEmailReportCharts_pkey",
2459
+ /** unique or primary key constraint on columns "externalMetricId", "scheduleEmailReportId" */
2460
+ ScheduleEmailReportChartsUniqueKey = "scheduleEmailReportCharts_unique_key"
2160
2461
  }
2161
2462
  /** input type for inserting data into table "scheduleEmailReportCharts" */
2162
2463
  export declare type ScheduleEmailReportCharts_Insert_Input = {
@@ -2476,6 +2777,10 @@ export declare type Subscription_Root = {
2476
2777
  /** fetch data from the table: "companyWorkspaces" using primary key columns */
2477
2778
  companyWorkspaces_by_pk?: Maybe<CompanyWorkspaces>;
2478
2779
  /** An array relationship */
2780
+ customSqlColumns: Array<CustomSqlColumns>;
2781
+ /** fetch data from the table: "customSqlColumns" using primary key columns */
2782
+ customSqlColumns_by_pk?: Maybe<CustomSqlColumns>;
2783
+ /** An array relationship */
2479
2784
  externalDashboardMetrics: Array<ExternalDashboardMetrics>;
2480
2785
  /** fetch data from the table: "externalDashboardMetrics" using primary key columns */
2481
2786
  externalDashboardMetrics_by_pk?: Maybe<ExternalDashboardMetrics>;
@@ -2491,6 +2796,10 @@ export declare type Subscription_Root = {
2491
2796
  externalDashboards: Array<ExternalDashboards>;
2492
2797
  /** fetch data from the table: "externalDashboards" using primary key columns */
2493
2798
  externalDashboards_by_pk?: Maybe<ExternalDashboards>;
2799
+ /** fetch data from the table: "externalMetricRawCsvUrls" */
2800
+ externalMetricRawCsvUrls: Array<ExternalMetricRawCsvUrls>;
2801
+ /** fetch data from the table: "externalMetricRawCsvUrls" using primary key columns */
2802
+ externalMetricRawCsvUrls_by_pk?: Maybe<ExternalMetricRawCsvUrls>;
2494
2803
  /** An array relationship */
2495
2804
  externalMetrics: Array<ExternalMetrics>;
2496
2805
  /** An array relationship */
@@ -2580,6 +2889,16 @@ export declare type Subscription_RootCompanyWorkspacesArgs = {
2580
2889
  export declare type Subscription_RootCompanyWorkspaces_By_PkArgs = {
2581
2890
  id: Scalars['uuid'];
2582
2891
  };
2892
+ export declare type Subscription_RootCustomSqlColumnsArgs = {
2893
+ distinct_on?: InputMaybe<Array<CustomSqlColumns_Select_Column>>;
2894
+ limit?: InputMaybe<Scalars['Int']>;
2895
+ offset?: InputMaybe<Scalars['Int']>;
2896
+ order_by?: InputMaybe<Array<CustomSqlColumns_Order_By>>;
2897
+ where?: InputMaybe<CustomSqlColumns_Bool_Exp>;
2898
+ };
2899
+ export declare type Subscription_RootCustomSqlColumns_By_PkArgs = {
2900
+ id: Scalars['uuid'];
2901
+ };
2583
2902
  export declare type Subscription_RootExternalDashboardMetricsArgs = {
2584
2903
  distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
2585
2904
  limit?: InputMaybe<Scalars['Int']>;
@@ -2621,6 +2940,16 @@ export declare type Subscription_RootExternalDashboardsArgs = {
2621
2940
  export declare type Subscription_RootExternalDashboards_By_PkArgs = {
2622
2941
  id: Scalars['uuid'];
2623
2942
  };
2943
+ export declare type Subscription_RootExternalMetricRawCsvUrlsArgs = {
2944
+ distinct_on?: InputMaybe<Array<ExternalMetricRawCsvUrls_Select_Column>>;
2945
+ limit?: InputMaybe<Scalars['Int']>;
2946
+ offset?: InputMaybe<Scalars['Int']>;
2947
+ order_by?: InputMaybe<Array<ExternalMetricRawCsvUrls_Order_By>>;
2948
+ where?: InputMaybe<ExternalMetricRawCsvUrls_Bool_Exp>;
2949
+ };
2950
+ export declare type Subscription_RootExternalMetricRawCsvUrls_By_PkArgs = {
2951
+ id: Scalars['uuid'];
2952
+ };
2624
2953
  export declare type Subscription_RootExternalMetricsArgs = {
2625
2954
  distinct_on?: InputMaybe<Array<ExternalMetrics_Select_Column>>;
2626
2955
  limit?: InputMaybe<Scalars['Int']>;
@@ -3030,6 +3359,22 @@ export declare type ExternalDashboardListQuery = {
3030
3359
  id: any;
3031
3360
  }>;
3032
3361
  };
3362
+ export declare type ExternalMetricRawCsvUrlsQueryVariables = Exact<{
3363
+ externalMetricId?: InputMaybe<Scalars['uuid']>;
3364
+ }>;
3365
+ export declare type ExternalMetricRawCsvUrlsQuery = {
3366
+ __typename?: 'query_root';
3367
+ externalMetricRawCsvUrls: Array<{
3368
+ __typename?: 'externalMetricRawCsvUrls';
3369
+ configurations: any;
3370
+ error?: string | null;
3371
+ expireUrlIn: number;
3372
+ externalMetricId: any;
3373
+ id: any;
3374
+ lastUpdatedAt: any;
3375
+ urls: any;
3376
+ }>;
3377
+ };
3033
3378
  export declare type GuestTokenParamsQueryVariables = Exact<{
3034
3379
  id?: InputMaybe<Scalars['uuid']>;
3035
3380
  }>;
@@ -3112,6 +3457,23 @@ export declare type UnderlyingDataMutation = {
3112
3457
  timeTaken: number;
3113
3458
  } | null;
3114
3459
  };
3460
+ export declare type InvokeSaveRawCsvDetailsMutationVariables = Exact<{
3461
+ configurations?: InputMaybe<Scalars['json']>;
3462
+ expireCsvFileAt?: InputMaybe<Scalars['String']>;
3463
+ externalMetricId?: InputMaybe<Scalars['String']>;
3464
+ integrationId?: InputMaybe<Scalars['String']>;
3465
+ integrationName?: InputMaybe<Scalars['String']>;
3466
+ query?: InputMaybe<Scalars['String']>;
3467
+ expireUrlIn?: InputMaybe<Scalars['Int']>;
3468
+ }>;
3469
+ export declare type InvokeSaveRawCsvDetailsMutation = {
3470
+ __typename?: 'mutation_root';
3471
+ invokeSaveRawCsvDetails?: {
3472
+ __typename?: 'InvokeSaveRawCsvDetailsOutput';
3473
+ error?: string | null;
3474
+ statusCode?: number | null;
3475
+ } | null;
3476
+ };
3115
3477
  export declare type MarkArchiveMetricMutationVariables = Exact<{
3116
3478
  id?: Scalars['uuid'];
3117
3479
  clientId?: Scalars['String'];
@@ -3393,6 +3755,8 @@ export declare const GetExternalDashboardLayoutDocument = "\n query getExtern
3393
3755
  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>;
3394
3756
  export declare const ExternalDashboardListDocument = "\n query ExternalDashboardList($companyId: uuid = \"\") {\n externalDashboards(where: {companyId: {_eq: $companyId}}) {\n externalDashboardId\n name\n id\n }\n}\n ";
3395
3757
  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>;
3758
+ export declare const ExternalMetricRawCsvUrlsDocument = "\n query ExternalMetricRawCsvUrls($externalMetricId: uuid = \"\") {\n externalMetricRawCsvUrls(where: {externalMetricId: {_eq: $externalMetricId}}) {\n configurations\n error\n expireUrlIn\n externalMetricId\n id\n lastUpdatedAt\n urls\n }\n}\n ";
3759
+ export declare const useExternalMetricRawCsvUrlsQuery: <TData = ExternalMetricRawCsvUrlsQuery, TError = unknown>(variables?: ExternalMetricRawCsvUrlsQueryVariables, options?: UseQueryOptions<ExternalMetricRawCsvUrlsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
3396
3760
  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 ";
3397
3761
  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>;
3398
3762
  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 ";
@@ -3415,6 +3779,24 @@ export declare const useUnderlyingDataMutation: <TError = unknown, TContext = un
3415
3779
  query?: InputMaybe<string> | undefined;
3416
3780
  value?: InputMaybe<Scalars['json']>;
3417
3781
  }>, TContext>;
3782
+ export declare const InvokeSaveRawCsvDetailsDocument = "\n mutation InvokeSaveRawCsvDetails($configurations: json = \"\", $expireCsvFileAt: String = \"\", $externalMetricId: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\", $query: String = \"\", $expireUrlIn: Int = 60) {\n invokeSaveRawCsvDetails(\n input: {configurations: $configurations, expireCsvFileAt: $expireCsvFileAt, externalMetricId: $externalMetricId, integrationId: $integrationId, integrationName: $integrationName, query: $query, expireUrlIn: $expireUrlIn}\n ) {\n error\n statusCode\n }\n}\n ";
3783
+ export declare const useInvokeSaveRawCsvDetailsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<InvokeSaveRawCsvDetailsMutation, TError, Exact<{
3784
+ configurations?: InputMaybe<Scalars['json']>;
3785
+ expireCsvFileAt?: InputMaybe<string> | undefined;
3786
+ externalMetricId?: InputMaybe<string> | undefined;
3787
+ integrationId?: InputMaybe<string> | undefined;
3788
+ integrationName?: InputMaybe<string> | undefined;
3789
+ query?: InputMaybe<string> | undefined;
3790
+ expireUrlIn?: InputMaybe<number> | undefined;
3791
+ }>, TContext> | undefined) => import("react-query").UseMutationResult<InvokeSaveRawCsvDetailsMutation, TError, Exact<{
3792
+ configurations?: InputMaybe<Scalars['json']>;
3793
+ expireCsvFileAt?: InputMaybe<string> | undefined;
3794
+ externalMetricId?: InputMaybe<string> | undefined;
3795
+ integrationId?: InputMaybe<string> | undefined;
3796
+ integrationName?: InputMaybe<string> | undefined;
3797
+ query?: InputMaybe<string> | undefined;
3798
+ expireUrlIn?: InputMaybe<number> | undefined;
3799
+ }>, TContext>;
3418
3800
  export declare const MarkArchiveMetricDocument = "\n mutation MarkArchiveMetric($id: uuid! = \"\", $clientId: String! = \"\") {\n insert_clientDeletedMetrics_one(\n object: {externalMetricId: $id, clientId: $clientId}\n ) {\n clientId\n externalMetricId\n }\n}\n ";
3419
3801
  export declare const useMarkArchiveMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkArchiveMetricMutation, TError, Exact<{
3420
3802
  id?: Scalars['uuid'];