@databrainhq/plugin 0.9.6 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -26
- package/dist/components/MetricCreation/components/MetricOutput/index.d.ts +2 -0
- package/dist/components/MetricList/components/DownloadRawCsvModal.d.ts +2 -1
- package/dist/components/MetricList/components/MetricCard.d.ts +1 -1
- package/dist/consts/app.d.ts +3 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +11 -3
- package/dist/index.es.js +685 -320
- package/dist/index.umd.js +149 -125
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +208 -2
- package/package.json +96 -96
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
|
+
}
|
|
@@ -705,6 +705,7 @@ export declare type CompanyWorkspaces = {
|
|
|
705
705
|
/** An array relationship */
|
|
706
706
|
externalDashboards: Array<ExternalDashboards>;
|
|
707
707
|
id: Scalars['uuid'];
|
|
708
|
+
rawCsvSettings: Scalars['jsonb'];
|
|
708
709
|
};
|
|
709
710
|
/** columns and relationships of "companyWorkspaces" */
|
|
710
711
|
export declare type CompanyWorkspacesCompanyIntegrationsArgs = {
|
|
@@ -722,6 +723,10 @@ export declare type CompanyWorkspacesExternalDashboardsArgs = {
|
|
|
722
723
|
order_by?: InputMaybe<Array<ExternalDashboards_Order_By>>;
|
|
723
724
|
where?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
724
725
|
};
|
|
726
|
+
/** columns and relationships of "companyWorkspaces" */
|
|
727
|
+
export declare type CompanyWorkspacesRawCsvSettingsArgs = {
|
|
728
|
+
path?: InputMaybe<Scalars['String']>;
|
|
729
|
+
};
|
|
725
730
|
/** Boolean expression to filter rows from the table "companyWorkspaces". All fields are combined with a logical 'AND'. */
|
|
726
731
|
export declare type CompanyWorkspaces_Bool_Exp = {
|
|
727
732
|
_and?: InputMaybe<Array<CompanyWorkspaces_Bool_Exp>>;
|
|
@@ -731,6 +736,7 @@ export declare type CompanyWorkspaces_Bool_Exp = {
|
|
|
731
736
|
companySubsetTable?: InputMaybe<CompanySubsetTables_Bool_Exp>;
|
|
732
737
|
externalDashboards?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
733
738
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
739
|
+
rawCsvSettings?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
734
740
|
};
|
|
735
741
|
/** Ordering options when selecting data from "companyWorkspaces". */
|
|
736
742
|
export declare type CompanyWorkspaces_Order_By = {
|
|
@@ -738,11 +744,14 @@ export declare type CompanyWorkspaces_Order_By = {
|
|
|
738
744
|
companySubsetTable?: InputMaybe<CompanySubsetTables_Order_By>;
|
|
739
745
|
externalDashboards_aggregate?: InputMaybe<ExternalDashboards_Aggregate_Order_By>;
|
|
740
746
|
id?: InputMaybe<Order_By>;
|
|
747
|
+
rawCsvSettings?: InputMaybe<Order_By>;
|
|
741
748
|
};
|
|
742
749
|
/** select columns of table "companyWorkspaces" */
|
|
743
750
|
export declare enum CompanyWorkspaces_Select_Column {
|
|
744
751
|
/** column name */
|
|
745
|
-
Id = "id"
|
|
752
|
+
Id = "id",
|
|
753
|
+
/** column name */
|
|
754
|
+
RawCsvSettings = "rawCsvSettings"
|
|
746
755
|
}
|
|
747
756
|
/** columns and relationships of "customSqlColumns" */
|
|
748
757
|
export declare type CustomSqlColumns = {
|
|
@@ -1198,6 +1207,7 @@ export declare type ExternalMetricRawCsvUrls = {
|
|
|
1198
1207
|
externalMetricId: Scalars['uuid'];
|
|
1199
1208
|
id: Scalars['uuid'];
|
|
1200
1209
|
lastUpdatedAt: Scalars['timestamptz'];
|
|
1210
|
+
requestStatus: Scalars['String'];
|
|
1201
1211
|
urls: Scalars['jsonb'];
|
|
1202
1212
|
};
|
|
1203
1213
|
/** columns and relationships of "externalMetricRawCsvUrls" */
|
|
@@ -1208,6 +1218,11 @@ export declare type ExternalMetricRawCsvUrlsConfigurationsArgs = {
|
|
|
1208
1218
|
export declare type ExternalMetricRawCsvUrlsUrlsArgs = {
|
|
1209
1219
|
path?: InputMaybe<Scalars['String']>;
|
|
1210
1220
|
};
|
|
1221
|
+
/** append existing jsonb value of filtered columns with new jsonb value */
|
|
1222
|
+
export declare type ExternalMetricRawCsvUrls_Append_Input = {
|
|
1223
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
1224
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
1225
|
+
};
|
|
1211
1226
|
/** Boolean expression to filter rows from the table "externalMetricRawCsvUrls". All fields are combined with a logical 'AND'. */
|
|
1212
1227
|
export declare type ExternalMetricRawCsvUrls_Bool_Exp = {
|
|
1213
1228
|
_and?: InputMaybe<Array<ExternalMetricRawCsvUrls_Bool_Exp>>;
|
|
@@ -1220,8 +1235,67 @@ export declare type ExternalMetricRawCsvUrls_Bool_Exp = {
|
|
|
1220
1235
|
externalMetricId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
1221
1236
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
1222
1237
|
lastUpdatedAt?: InputMaybe<Timestamptz_Comparison_Exp>;
|
|
1238
|
+
requestStatus?: InputMaybe<String_Comparison_Exp>;
|
|
1223
1239
|
urls?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
1224
1240
|
};
|
|
1241
|
+
/** unique or primary key constraints on table "externalMetricRawCsvUrls" */
|
|
1242
|
+
export declare enum ExternalMetricRawCsvUrls_Constraint {
|
|
1243
|
+
/** unique or primary key constraint on columns "externalMetricId" */
|
|
1244
|
+
ExternalMetricRawCsvUrlsExternalMetricIdKey = "externalMetricRawCsvUrls_externalMetricId_key",
|
|
1245
|
+
/** unique or primary key constraint on columns "id" */
|
|
1246
|
+
ExternalMetricRawCsvUrlsPkey = "externalMetricRawCsvUrls_pkey"
|
|
1247
|
+
}
|
|
1248
|
+
/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */
|
|
1249
|
+
export declare type ExternalMetricRawCsvUrls_Delete_At_Path_Input = {
|
|
1250
|
+
configurations?: InputMaybe<Array<Scalars['String']>>;
|
|
1251
|
+
urls?: InputMaybe<Array<Scalars['String']>>;
|
|
1252
|
+
};
|
|
1253
|
+
/** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */
|
|
1254
|
+
export declare type ExternalMetricRawCsvUrls_Delete_Elem_Input = {
|
|
1255
|
+
configurations?: InputMaybe<Scalars['Int']>;
|
|
1256
|
+
urls?: InputMaybe<Scalars['Int']>;
|
|
1257
|
+
};
|
|
1258
|
+
/** delete key/value pair or string element. key/value pairs are matched based on their key value */
|
|
1259
|
+
export declare type ExternalMetricRawCsvUrls_Delete_Key_Input = {
|
|
1260
|
+
configurations?: InputMaybe<Scalars['String']>;
|
|
1261
|
+
urls?: InputMaybe<Scalars['String']>;
|
|
1262
|
+
};
|
|
1263
|
+
/** input type for incrementing numeric columns in table "externalMetricRawCsvUrls" */
|
|
1264
|
+
export declare type ExternalMetricRawCsvUrls_Inc_Input = {
|
|
1265
|
+
expireUrlIn?: InputMaybe<Scalars['Int']>;
|
|
1266
|
+
};
|
|
1267
|
+
/** input type for inserting data into table "externalMetricRawCsvUrls" */
|
|
1268
|
+
export declare type ExternalMetricRawCsvUrls_Insert_Input = {
|
|
1269
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
1270
|
+
error?: InputMaybe<Scalars['String']>;
|
|
1271
|
+
expireUrlIn?: InputMaybe<Scalars['Int']>;
|
|
1272
|
+
externalMetric?: InputMaybe<ExternalMetrics_Obj_Rel_Insert_Input>;
|
|
1273
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
1274
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
1275
|
+
lastUpdatedAt?: InputMaybe<Scalars['timestamptz']>;
|
|
1276
|
+
requestStatus?: InputMaybe<Scalars['String']>;
|
|
1277
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
1278
|
+
};
|
|
1279
|
+
/** response of any mutation on the table "externalMetricRawCsvUrls" */
|
|
1280
|
+
export declare type ExternalMetricRawCsvUrls_Mutation_Response = {
|
|
1281
|
+
__typename?: 'externalMetricRawCsvUrls_mutation_response';
|
|
1282
|
+
/** number of rows affected by the mutation */
|
|
1283
|
+
affected_rows: Scalars['Int'];
|
|
1284
|
+
/** data from the rows affected by the mutation */
|
|
1285
|
+
returning: Array<ExternalMetricRawCsvUrls>;
|
|
1286
|
+
};
|
|
1287
|
+
/** input type for inserting object relation for remote table "externalMetricRawCsvUrls" */
|
|
1288
|
+
export declare type ExternalMetricRawCsvUrls_Obj_Rel_Insert_Input = {
|
|
1289
|
+
data: ExternalMetricRawCsvUrls_Insert_Input;
|
|
1290
|
+
/** upsert condition */
|
|
1291
|
+
on_conflict?: InputMaybe<ExternalMetricRawCsvUrls_On_Conflict>;
|
|
1292
|
+
};
|
|
1293
|
+
/** on_conflict condition type for table "externalMetricRawCsvUrls" */
|
|
1294
|
+
export declare type ExternalMetricRawCsvUrls_On_Conflict = {
|
|
1295
|
+
constraint: ExternalMetricRawCsvUrls_Constraint;
|
|
1296
|
+
update_columns?: Array<ExternalMetricRawCsvUrls_Update_Column>;
|
|
1297
|
+
where?: InputMaybe<ExternalMetricRawCsvUrls_Bool_Exp>;
|
|
1298
|
+
};
|
|
1225
1299
|
/** Ordering options when selecting data from "externalMetricRawCsvUrls". */
|
|
1226
1300
|
export declare type ExternalMetricRawCsvUrls_Order_By = {
|
|
1227
1301
|
configurations?: InputMaybe<Order_By>;
|
|
@@ -1231,8 +1305,18 @@ export declare type ExternalMetricRawCsvUrls_Order_By = {
|
|
|
1231
1305
|
externalMetricId?: InputMaybe<Order_By>;
|
|
1232
1306
|
id?: InputMaybe<Order_By>;
|
|
1233
1307
|
lastUpdatedAt?: InputMaybe<Order_By>;
|
|
1308
|
+
requestStatus?: InputMaybe<Order_By>;
|
|
1234
1309
|
urls?: InputMaybe<Order_By>;
|
|
1235
1310
|
};
|
|
1311
|
+
/** primary key columns input for table: externalMetricRawCsvUrls */
|
|
1312
|
+
export declare type ExternalMetricRawCsvUrls_Pk_Columns_Input = {
|
|
1313
|
+
id: Scalars['uuid'];
|
|
1314
|
+
};
|
|
1315
|
+
/** prepend existing jsonb value of filtered columns with new jsonb value */
|
|
1316
|
+
export declare type ExternalMetricRawCsvUrls_Prepend_Input = {
|
|
1317
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
1318
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
1319
|
+
};
|
|
1236
1320
|
/** select columns of table "externalMetricRawCsvUrls" */
|
|
1237
1321
|
export declare enum ExternalMetricRawCsvUrls_Select_Column {
|
|
1238
1322
|
/** column name */
|
|
@@ -1248,6 +1332,38 @@ export declare enum ExternalMetricRawCsvUrls_Select_Column {
|
|
|
1248
1332
|
/** column name */
|
|
1249
1333
|
LastUpdatedAt = "lastUpdatedAt",
|
|
1250
1334
|
/** column name */
|
|
1335
|
+
RequestStatus = "requestStatus",
|
|
1336
|
+
/** column name */
|
|
1337
|
+
Urls = "urls"
|
|
1338
|
+
}
|
|
1339
|
+
/** input type for updating data in table "externalMetricRawCsvUrls" */
|
|
1340
|
+
export declare type ExternalMetricRawCsvUrls_Set_Input = {
|
|
1341
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
1342
|
+
error?: InputMaybe<Scalars['String']>;
|
|
1343
|
+
expireUrlIn?: InputMaybe<Scalars['Int']>;
|
|
1344
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
1345
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
1346
|
+
lastUpdatedAt?: InputMaybe<Scalars['timestamptz']>;
|
|
1347
|
+
requestStatus?: InputMaybe<Scalars['String']>;
|
|
1348
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
1349
|
+
};
|
|
1350
|
+
/** update columns of table "externalMetricRawCsvUrls" */
|
|
1351
|
+
export declare enum ExternalMetricRawCsvUrls_Update_Column {
|
|
1352
|
+
/** column name */
|
|
1353
|
+
Configurations = "configurations",
|
|
1354
|
+
/** column name */
|
|
1355
|
+
Error = "error",
|
|
1356
|
+
/** column name */
|
|
1357
|
+
ExpireUrlIn = "expireUrlIn",
|
|
1358
|
+
/** column name */
|
|
1359
|
+
ExternalMetricId = "externalMetricId",
|
|
1360
|
+
/** column name */
|
|
1361
|
+
Id = "id",
|
|
1362
|
+
/** column name */
|
|
1363
|
+
LastUpdatedAt = "lastUpdatedAt",
|
|
1364
|
+
/** column name */
|
|
1365
|
+
RequestStatus = "requestStatus",
|
|
1366
|
+
/** column name */
|
|
1251
1367
|
Urls = "urls"
|
|
1252
1368
|
}
|
|
1253
1369
|
/** extrnal metrics table for users client-based query */
|
|
@@ -1535,6 +1651,7 @@ export declare type ExternalMetrics_Insert_Input = {
|
|
|
1535
1651
|
description?: InputMaybe<Scalars['String']>;
|
|
1536
1652
|
drillDownSettings?: InputMaybe<Scalars['jsonb']>;
|
|
1537
1653
|
externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Arr_Rel_Insert_Input>;
|
|
1654
|
+
externalMetricRawCsvUrl?: InputMaybe<ExternalMetricRawCsvUrls_Obj_Rel_Insert_Input>;
|
|
1538
1655
|
externalMetricsRlsFilters?: InputMaybe<ExternalMetricsRlsFilters_Arr_Rel_Insert_Input>;
|
|
1539
1656
|
groupBy?: InputMaybe<Scalars['jsonb']>;
|
|
1540
1657
|
inputFields?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -1857,6 +1974,10 @@ export declare type Mutation_Root = {
|
|
|
1857
1974
|
insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
|
|
1858
1975
|
/** insert a single row into the table: "externalDashboardMetrics" */
|
|
1859
1976
|
insert_externalDashboardMetrics_one?: Maybe<ExternalDashboardMetrics>;
|
|
1977
|
+
/** insert data into the table: "externalMetricRawCsvUrls" */
|
|
1978
|
+
insert_externalMetricRawCsvUrls?: Maybe<ExternalMetricRawCsvUrls_Mutation_Response>;
|
|
1979
|
+
/** insert a single row into the table: "externalMetricRawCsvUrls" */
|
|
1980
|
+
insert_externalMetricRawCsvUrls_one?: Maybe<ExternalMetricRawCsvUrls>;
|
|
1860
1981
|
/** insert data into the table: "externalMetrics" */
|
|
1861
1982
|
insert_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1862
1983
|
/** insert data into the table: "externalMetricsRlsFilters" */
|
|
@@ -1884,6 +2005,10 @@ export declare type Mutation_Root = {
|
|
|
1884
2005
|
update_customSqlColumns?: Maybe<CustomSqlColumns_Mutation_Response>;
|
|
1885
2006
|
/** update single row of the table: "customSqlColumns" */
|
|
1886
2007
|
update_customSqlColumns_by_pk?: Maybe<CustomSqlColumns>;
|
|
2008
|
+
/** update data of the table: "externalMetricRawCsvUrls" */
|
|
2009
|
+
update_externalMetricRawCsvUrls?: Maybe<ExternalMetricRawCsvUrls_Mutation_Response>;
|
|
2010
|
+
/** update single row of the table: "externalMetricRawCsvUrls" */
|
|
2011
|
+
update_externalMetricRawCsvUrls_by_pk?: Maybe<ExternalMetricRawCsvUrls>;
|
|
1887
2012
|
/** update data of the table: "externalMetrics" */
|
|
1888
2013
|
update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1889
2014
|
/** update single row of the table: "externalMetrics" */
|
|
@@ -2000,6 +2125,16 @@ export declare type Mutation_RootInsert_ExternalDashboardMetrics_OneArgs = {
|
|
|
2000
2125
|
on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
|
|
2001
2126
|
};
|
|
2002
2127
|
/** mutation root */
|
|
2128
|
+
export declare type Mutation_RootInsert_ExternalMetricRawCsvUrlsArgs = {
|
|
2129
|
+
objects: Array<ExternalMetricRawCsvUrls_Insert_Input>;
|
|
2130
|
+
on_conflict?: InputMaybe<ExternalMetricRawCsvUrls_On_Conflict>;
|
|
2131
|
+
};
|
|
2132
|
+
/** mutation root */
|
|
2133
|
+
export declare type Mutation_RootInsert_ExternalMetricRawCsvUrls_OneArgs = {
|
|
2134
|
+
object: ExternalMetricRawCsvUrls_Insert_Input;
|
|
2135
|
+
on_conflict?: InputMaybe<ExternalMetricRawCsvUrls_On_Conflict>;
|
|
2136
|
+
};
|
|
2137
|
+
/** mutation root */
|
|
2003
2138
|
export declare type Mutation_RootInsert_ExternalMetricsArgs = {
|
|
2004
2139
|
objects: Array<ExternalMetrics_Insert_Input>;
|
|
2005
2140
|
on_conflict?: InputMaybe<ExternalMetrics_On_Conflict>;
|
|
@@ -2092,6 +2227,28 @@ export declare type Mutation_RootUpdate_CustomSqlColumns_By_PkArgs = {
|
|
|
2092
2227
|
pk_columns: CustomSqlColumns_Pk_Columns_Input;
|
|
2093
2228
|
};
|
|
2094
2229
|
/** mutation root */
|
|
2230
|
+
export declare type Mutation_RootUpdate_ExternalMetricRawCsvUrlsArgs = {
|
|
2231
|
+
_append?: InputMaybe<ExternalMetricRawCsvUrls_Append_Input>;
|
|
2232
|
+
_delete_at_path?: InputMaybe<ExternalMetricRawCsvUrls_Delete_At_Path_Input>;
|
|
2233
|
+
_delete_elem?: InputMaybe<ExternalMetricRawCsvUrls_Delete_Elem_Input>;
|
|
2234
|
+
_delete_key?: InputMaybe<ExternalMetricRawCsvUrls_Delete_Key_Input>;
|
|
2235
|
+
_inc?: InputMaybe<ExternalMetricRawCsvUrls_Inc_Input>;
|
|
2236
|
+
_prepend?: InputMaybe<ExternalMetricRawCsvUrls_Prepend_Input>;
|
|
2237
|
+
_set?: InputMaybe<ExternalMetricRawCsvUrls_Set_Input>;
|
|
2238
|
+
where: ExternalMetricRawCsvUrls_Bool_Exp;
|
|
2239
|
+
};
|
|
2240
|
+
/** mutation root */
|
|
2241
|
+
export declare type Mutation_RootUpdate_ExternalMetricRawCsvUrls_By_PkArgs = {
|
|
2242
|
+
_append?: InputMaybe<ExternalMetricRawCsvUrls_Append_Input>;
|
|
2243
|
+
_delete_at_path?: InputMaybe<ExternalMetricRawCsvUrls_Delete_At_Path_Input>;
|
|
2244
|
+
_delete_elem?: InputMaybe<ExternalMetricRawCsvUrls_Delete_Elem_Input>;
|
|
2245
|
+
_delete_key?: InputMaybe<ExternalMetricRawCsvUrls_Delete_Key_Input>;
|
|
2246
|
+
_inc?: InputMaybe<ExternalMetricRawCsvUrls_Inc_Input>;
|
|
2247
|
+
_prepend?: InputMaybe<ExternalMetricRawCsvUrls_Prepend_Input>;
|
|
2248
|
+
_set?: InputMaybe<ExternalMetricRawCsvUrls_Set_Input>;
|
|
2249
|
+
pk_columns: ExternalMetricRawCsvUrls_Pk_Columns_Input;
|
|
2250
|
+
};
|
|
2251
|
+
/** mutation root */
|
|
2095
2252
|
export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
|
|
2096
2253
|
_append?: InputMaybe<ExternalMetrics_Append_Input>;
|
|
2097
2254
|
_delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
|
|
@@ -3373,6 +3530,7 @@ export declare type ExternalMetricRawCsvUrlsQuery = {
|
|
|
3373
3530
|
id: any;
|
|
3374
3531
|
lastUpdatedAt: any;
|
|
3375
3532
|
urls: any;
|
|
3533
|
+
requestStatus: string;
|
|
3376
3534
|
}>;
|
|
3377
3535
|
};
|
|
3378
3536
|
export declare type GuestTokenParamsQueryVariables = Exact<{
|
|
@@ -3401,6 +3559,17 @@ export declare type MetricAccessQuery = {
|
|
|
3401
3559
|
isAllowChangeLayout: boolean;
|
|
3402
3560
|
}>;
|
|
3403
3561
|
};
|
|
3562
|
+
export declare type RawCsvSettingsQueryVariables = Exact<{
|
|
3563
|
+
id?: InputMaybe<Scalars['uuid']>;
|
|
3564
|
+
}>;
|
|
3565
|
+
export declare type RawCsvSettingsQuery = {
|
|
3566
|
+
__typename?: 'query_root';
|
|
3567
|
+
companyWorkspaces_by_pk?: {
|
|
3568
|
+
__typename?: 'companyWorkspaces';
|
|
3569
|
+
rawCsvSettings: any;
|
|
3570
|
+
id: any;
|
|
3571
|
+
} | null;
|
|
3572
|
+
};
|
|
3404
3573
|
export declare type ScheduleEmailReportQueryVariables = Exact<{
|
|
3405
3574
|
token?: InputMaybe<Scalars['uuid']>;
|
|
3406
3575
|
}>;
|
|
@@ -3632,6 +3801,27 @@ export declare type UpdateAdminMetricMutation = {
|
|
|
3632
3801
|
};
|
|
3633
3802
|
} | null;
|
|
3634
3803
|
};
|
|
3804
|
+
export declare type UpdateCsvDownloadStatusMutationVariables = Exact<{
|
|
3805
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
3806
|
+
expireUrlIn?: InputMaybe<Scalars['Int']>;
|
|
3807
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
3808
|
+
requestStatus?: InputMaybe<Scalars['String']>;
|
|
3809
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
3810
|
+
}>;
|
|
3811
|
+
export declare type UpdateCsvDownloadStatusMutation = {
|
|
3812
|
+
__typename?: 'mutation_root';
|
|
3813
|
+
insert_externalMetricRawCsvUrls_one?: {
|
|
3814
|
+
__typename?: 'externalMetricRawCsvUrls';
|
|
3815
|
+
id: any;
|
|
3816
|
+
requestStatus: string;
|
|
3817
|
+
configurations: any;
|
|
3818
|
+
error?: string | null;
|
|
3819
|
+
expireUrlIn: number;
|
|
3820
|
+
externalMetricId: any;
|
|
3821
|
+
lastUpdatedAt: any;
|
|
3822
|
+
urls: any;
|
|
3823
|
+
} | null;
|
|
3824
|
+
};
|
|
3635
3825
|
export declare type UpdateExternalMetricMutationVariables = Exact<{
|
|
3636
3826
|
externalMetricId: Scalars['uuid'];
|
|
3637
3827
|
set: ExternalMetrics_Set_Input;
|
|
@@ -3755,12 +3945,14 @@ export declare const GetExternalDashboardLayoutDocument = "\n query getExtern
|
|
|
3755
3945
|
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>;
|
|
3756
3946
|
export declare const ExternalDashboardListDocument = "\n query ExternalDashboardList($companyId: uuid = \"\") {\n externalDashboards(where: {companyId: {_eq: $companyId}}) {\n externalDashboardId\n name\n id\n }\n}\n ";
|
|
3757
3947
|
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 ";
|
|
3948
|
+
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 requestStatus\n }\n}\n ";
|
|
3759
3949
|
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>;
|
|
3760
3950
|
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 ";
|
|
3761
3951
|
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>;
|
|
3762
3952
|
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 ";
|
|
3763
3953
|
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>;
|
|
3954
|
+
export declare const RawCsvSettingsDocument = "\n query RawCsvSettings($id: uuid = \"\") {\n companyWorkspaces_by_pk(id: $id) {\n rawCsvSettings\n id\n }\n}\n ";
|
|
3955
|
+
export declare const useRawCsvSettingsQuery: <TData = RawCsvSettingsQuery, TError = unknown>(variables?: RawCsvSettingsQueryVariables, options?: UseQueryOptions<RawCsvSettingsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
3764
3956
|
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 ";
|
|
3765
3957
|
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>;
|
|
3766
3958
|
export declare const SharingSettingsIdDocument = "\n query SharingSettingsId($companyId: uuid = \"\") {\n sharingSettings(where: {companyId: {_eq: $companyId}}) {\n id\n }\n}\n ";
|
|
@@ -3875,6 +4067,20 @@ export declare const useUpdateAdminMetricMutation: <TError = unknown, TContext =
|
|
|
3875
4067
|
object: ExternalMetrics_Insert_Input;
|
|
3876
4068
|
clientId: Scalars['String'];
|
|
3877
4069
|
}>, TContext>;
|
|
4070
|
+
export declare const UpdateCsvDownloadStatusDocument = "\n mutation UpdateCSVDownloadStatus($configurations: jsonb = \"\", $expireUrlIn: Int = 60, $externalMetricId: uuid = \"\", $requestStatus: String = \"\", $urls: jsonb = \"\") {\n insert_externalMetricRawCsvUrls_one(\n object: {configurations: $configurations, expireUrlIn: $expireUrlIn, externalMetricId: $externalMetricId, requestStatus: $requestStatus, urls: $urls}\n on_conflict: {constraint: externalMetricRawCsvUrls_externalMetricId_key, update_columns: [configurations, error, expireUrlIn, lastUpdatedAt, requestStatus, urls]}\n ) {\n id\n requestStatus\n configurations\n error\n expireUrlIn\n externalMetricId\n lastUpdatedAt\n urls\n }\n}\n ";
|
|
4071
|
+
export declare const useUpdateCsvDownloadStatusMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UpdateCsvDownloadStatusMutation, TError, Exact<{
|
|
4072
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
4073
|
+
expireUrlIn?: InputMaybe<number> | undefined;
|
|
4074
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
4075
|
+
requestStatus?: InputMaybe<string> | undefined;
|
|
4076
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
4077
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<UpdateCsvDownloadStatusMutation, TError, Exact<{
|
|
4078
|
+
configurations?: InputMaybe<Scalars['jsonb']>;
|
|
4079
|
+
expireUrlIn?: InputMaybe<number> | undefined;
|
|
4080
|
+
externalMetricId?: InputMaybe<Scalars['uuid']>;
|
|
4081
|
+
requestStatus?: InputMaybe<string> | undefined;
|
|
4082
|
+
urls?: InputMaybe<Scalars['jsonb']>;
|
|
4083
|
+
}>, TContext>;
|
|
3878
4084
|
export declare const UpdateExternalMetricDocument = "\n mutation UpdateExternalMetric($externalMetricId: uuid!, $set: externalMetrics_set_input!) {\n update_externalMetrics_by_pk(pk_columns: {id: $externalMetricId}, _set: $set) {\n id\n }\n}\n ";
|
|
3879
4085
|
export declare const useUpdateExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<UpdateExternalMetricMutation, TError, Exact<{
|
|
3880
4086
|
externalMetricId: Scalars['uuid'];
|
package/package.json
CHANGED
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "Databrain app dashboard ui plugin.",
|
|
5
|
-
"author": "",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "databrainhq/plugin",
|
|
8
|
-
"source": "src/index.ts",
|
|
9
|
-
"main": "./dist/index.umd.js",
|
|
10
|
-
"module": "./dist/index.es.js",
|
|
11
|
-
"types": "./dist/index.d.ts",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": {
|
|
14
|
-
"import": "./dist/index.es.js",
|
|
15
|
-
"require": "./dist/index.umd.js"
|
|
16
|
-
},
|
|
17
|
-
"./dist/style.css": "./dist/style.css"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"serve": "vite --port 3005",
|
|
21
|
-
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
22
|
-
"build": "tsc && vite build",
|
|
23
|
-
"husky": "husky install",
|
|
24
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
25
|
-
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
26
|
-
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
27
|
-
"prepare": "npm run build"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@commitlint/cli": "^17.0.3",
|
|
31
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
32
|
-
"@graphql-codegen/cli": "^2.16.4",
|
|
33
|
-
"@graphql-codegen/introspection": "^2.2.3",
|
|
34
|
-
"@graphql-codegen/typescript": "^2.8.7",
|
|
35
|
-
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
36
|
-
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
37
|
-
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
38
|
-
"@iconify/json": "^2.2.6",
|
|
39
|
-
"@svgr/core": "^6.5.1",
|
|
40
|
-
"@types/node": "^12.12.38",
|
|
41
|
-
"@types/react": "^18.0.26",
|
|
42
|
-
"@types/react-dom": "^18.0.10",
|
|
43
|
-
"@types/react-grid-layout": "^1.3.2",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
45
|
-
"@typescript-eslint/parser": "^4.31.1",
|
|
46
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
47
|
-
"autoprefixer": "^10.4.7",
|
|
48
|
-
"babel-eslint": "^10.0.3",
|
|
49
|
-
"cross-env": "^7.0.2",
|
|
50
|
-
"eslint": "^7.32.0",
|
|
51
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
52
|
-
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
53
|
-
"eslint-config-prettier": "^8.3.0",
|
|
54
|
-
"eslint-plugin-import": "^2.24.2",
|
|
55
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
56
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
57
|
-
"eslint-plugin-react": "^7.30.1",
|
|
58
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
59
|
-
"eslint-plugin-unicorn": "^36.0.0",
|
|
60
|
-
"graphql": "^16.6.0",
|
|
61
|
-
"husky": "^8.0.1",
|
|
62
|
-
"lint-staged": "^13.0.3",
|
|
63
|
-
"postcss": "^8.4.21",
|
|
64
|
-
"prettier": "^2.0.4",
|
|
65
|
-
"react": "^18.2.0",
|
|
66
|
-
"react-dom": "^18.2.0",
|
|
67
|
-
"tailwindcss": "^3.2.4",
|
|
68
|
-
"ts-node": "^10.9.1",
|
|
69
|
-
"typescript": "^4.6.3",
|
|
70
|
-
"unplugin-icons": "^0.14.7",
|
|
71
|
-
"vite": "^2.9.9",
|
|
72
|
-
"vite-plugin-dts": "^1.7.1",
|
|
73
|
-
"vite-tsconfig-paths": "^4.0.3"
|
|
74
|
-
},
|
|
75
|
-
"files": [
|
|
76
|
-
"dist"
|
|
77
|
-
],
|
|
78
|
-
"dependencies": {
|
|
79
|
-
"@headlessui/react": "^1.7.2",
|
|
80
|
-
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
81
|
-
"@tanstack/react-table": "^8.7.9",
|
|
82
|
-
"ace-builds": "^1.17.0",
|
|
83
|
-
"classnames": "^2.3.2",
|
|
84
|
-
"echarts": "^5.4.1",
|
|
85
|
-
"echarts-for-react": "^3.0.2",
|
|
86
|
-
"react-ace": "^10.1.0",
|
|
87
|
-
"react-error-boundary": "^3.1.4",
|
|
88
|
-
"react-grid-layout": "^1.3.4",
|
|
89
|
-
"react-hook-form": "^7.33.1",
|
|
90
|
-
"react-query": "^3.39.2"
|
|
91
|
-
},
|
|
92
|
-
"peerDependencies": {
|
|
93
|
-
"react": "^18.2.0",
|
|
94
|
-
"react-dom": "^18.2.0"
|
|
95
|
-
}
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@databrainhq/plugin",
|
|
3
|
+
"version": "0.9.8",
|
|
4
|
+
"description": "Databrain app dashboard ui plugin.",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "databrainhq/plugin",
|
|
8
|
+
"source": "src/index.ts",
|
|
9
|
+
"main": "./dist/index.umd.js",
|
|
10
|
+
"module": "./dist/index.es.js",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.es.js",
|
|
15
|
+
"require": "./dist/index.umd.js"
|
|
16
|
+
},
|
|
17
|
+
"./dist/style.css": "./dist/style.css"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"serve": "vite --port 3005",
|
|
21
|
+
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
22
|
+
"build": "tsc && vite build",
|
|
23
|
+
"husky": "husky install",
|
|
24
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
25
|
+
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
26
|
+
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
27
|
+
"prepare": "npm run build"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@commitlint/cli": "^17.0.3",
|
|
31
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
32
|
+
"@graphql-codegen/cli": "^2.16.4",
|
|
33
|
+
"@graphql-codegen/introspection": "^2.2.3",
|
|
34
|
+
"@graphql-codegen/typescript": "^2.8.7",
|
|
35
|
+
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
36
|
+
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
37
|
+
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
38
|
+
"@iconify/json": "^2.2.6",
|
|
39
|
+
"@svgr/core": "^6.5.1",
|
|
40
|
+
"@types/node": "^12.12.38",
|
|
41
|
+
"@types/react": "^18.0.26",
|
|
42
|
+
"@types/react-dom": "^18.0.10",
|
|
43
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
45
|
+
"@typescript-eslint/parser": "^4.31.1",
|
|
46
|
+
"@vitejs/plugin-react": "^1.3.0",
|
|
47
|
+
"autoprefixer": "^10.4.7",
|
|
48
|
+
"babel-eslint": "^10.0.3",
|
|
49
|
+
"cross-env": "^7.0.2",
|
|
50
|
+
"eslint": "^7.32.0",
|
|
51
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
52
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
53
|
+
"eslint-config-prettier": "^8.3.0",
|
|
54
|
+
"eslint-plugin-import": "^2.24.2",
|
|
55
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
56
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
57
|
+
"eslint-plugin-react": "^7.30.1",
|
|
58
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
59
|
+
"eslint-plugin-unicorn": "^36.0.0",
|
|
60
|
+
"graphql": "^16.6.0",
|
|
61
|
+
"husky": "^8.0.1",
|
|
62
|
+
"lint-staged": "^13.0.3",
|
|
63
|
+
"postcss": "^8.4.21",
|
|
64
|
+
"prettier": "^2.0.4",
|
|
65
|
+
"react": "^18.2.0",
|
|
66
|
+
"react-dom": "^18.2.0",
|
|
67
|
+
"tailwindcss": "^3.2.4",
|
|
68
|
+
"ts-node": "^10.9.1",
|
|
69
|
+
"typescript": "^4.6.3",
|
|
70
|
+
"unplugin-icons": "^0.14.7",
|
|
71
|
+
"vite": "^2.9.9",
|
|
72
|
+
"vite-plugin-dts": "^1.7.1",
|
|
73
|
+
"vite-tsconfig-paths": "^4.0.3"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist"
|
|
77
|
+
],
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@headlessui/react": "^1.7.2",
|
|
80
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
81
|
+
"@tanstack/react-table": "^8.7.9",
|
|
82
|
+
"ace-builds": "^1.17.0",
|
|
83
|
+
"classnames": "^2.3.2",
|
|
84
|
+
"echarts": "^5.4.1",
|
|
85
|
+
"echarts-for-react": "^3.0.2",
|
|
86
|
+
"react-ace": "^10.1.0",
|
|
87
|
+
"react-error-boundary": "^3.1.4",
|
|
88
|
+
"react-grid-layout": "^1.3.4",
|
|
89
|
+
"react-hook-form": "^7.33.1",
|
|
90
|
+
"react-query": "^3.39.2"
|
|
91
|
+
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"react": "^18.2.0",
|
|
94
|
+
"react-dom": "^18.2.0"
|
|
95
|
+
}
|
|
96
|
+
}
|