@databrainhq/plugin 0.8.2 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Charts/Table/TableChart.d.ts +3 -3
- package/dist/components/MetricChart/MetricChart.d.ts +2 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/Table/DebouncedInput.d.ts +6 -0
- package/dist/components/Table/index.d.ts +4 -1
- package/dist/consts/validations.d.ts +24 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +10 -0
- package/dist/hooks/useDownloadRawCsv.d.ts +18 -0
- package/dist/index.es.js +6928 -3006
- package/dist/index.umd.js +135 -61
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +229 -1
- package/dist/utils/theme.d.ts +1 -0
- package/package.json +3 -1
|
@@ -161,6 +161,16 @@ export declare type PreviewTableOutput = {
|
|
|
161
161
|
data?: Maybe<PreviewTableData>;
|
|
162
162
|
error?: Maybe<PreviewTableError>;
|
|
163
163
|
};
|
|
164
|
+
export declare type SendRawCsvInput = {
|
|
165
|
+
companyId: Scalars['String'];
|
|
166
|
+
recipientAddress: Scalars['String'];
|
|
167
|
+
sqlQuery: Scalars['String'];
|
|
168
|
+
};
|
|
169
|
+
export declare type SendRawCsvOutput = {
|
|
170
|
+
__typename?: 'SendRawCsvOutput';
|
|
171
|
+
error?: Maybe<Error>;
|
|
172
|
+
status?: Maybe<Scalars['String']>;
|
|
173
|
+
};
|
|
164
174
|
/** Boolean expression to compare columns of type "String". All fields are combined with logical 'AND'. */
|
|
165
175
|
export declare type String_Comparison_Exp = {
|
|
166
176
|
_eq?: InputMaybe<Scalars['String']>;
|
|
@@ -205,6 +215,63 @@ export declare type TableList = {
|
|
|
205
215
|
columns?: Maybe<Array<Maybe<SubsetColumns>>>;
|
|
206
216
|
tableName: Scalars['String'];
|
|
207
217
|
};
|
|
218
|
+
/** Client's dashboard metrics layout tracker. */
|
|
219
|
+
export declare type ClientDashboardMetrics = {
|
|
220
|
+
__typename?: 'clientDashboardMetrics';
|
|
221
|
+
clientId: Scalars['String'];
|
|
222
|
+
externalDashboardId: Scalars['uuid'];
|
|
223
|
+
};
|
|
224
|
+
/** Boolean expression to filter rows from the table "clientDashboardMetrics". All fields are combined with a logical 'AND'. */
|
|
225
|
+
export declare type ClientDashboardMetrics_Bool_Exp = {
|
|
226
|
+
_and?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
|
|
227
|
+
_not?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
228
|
+
_or?: InputMaybe<Array<ClientDashboardMetrics_Bool_Exp>>;
|
|
229
|
+
clientId?: InputMaybe<String_Comparison_Exp>;
|
|
230
|
+
externalDashboardId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
231
|
+
};
|
|
232
|
+
/** unique or primary key constraints on table "clientDashboardMetrics" */
|
|
233
|
+
export declare enum ClientDashboardMetrics_Constraint {
|
|
234
|
+
/** unique or primary key constraint on columns "clientId", "externalDashboardId" */
|
|
235
|
+
ClientDashboardMetricsClientIdExternalDashboardIdKey = "clientDashboardMetrics_clientId_externalDashboardId_key",
|
|
236
|
+
/** unique or primary key constraint on columns "clientId", "externalDashboardId" */
|
|
237
|
+
ClientDashboardMetricsPkey = "clientDashboardMetrics_pkey"
|
|
238
|
+
}
|
|
239
|
+
/** input type for inserting data into table "clientDashboardMetrics" */
|
|
240
|
+
export declare type ClientDashboardMetrics_Insert_Input = {
|
|
241
|
+
clientId?: InputMaybe<Scalars['String']>;
|
|
242
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
243
|
+
};
|
|
244
|
+
/** response of any mutation on the table "clientDashboardMetrics" */
|
|
245
|
+
export declare type ClientDashboardMetrics_Mutation_Response = {
|
|
246
|
+
__typename?: 'clientDashboardMetrics_mutation_response';
|
|
247
|
+
/** number of rows affected by the mutation */
|
|
248
|
+
affected_rows: Scalars['Int'];
|
|
249
|
+
/** data from the rows affected by the mutation */
|
|
250
|
+
returning: Array<ClientDashboardMetrics>;
|
|
251
|
+
};
|
|
252
|
+
/** on_conflict condition type for table "clientDashboardMetrics" */
|
|
253
|
+
export declare type ClientDashboardMetrics_On_Conflict = {
|
|
254
|
+
constraint: ClientDashboardMetrics_Constraint;
|
|
255
|
+
update_columns?: Array<ClientDashboardMetrics_Update_Column>;
|
|
256
|
+
where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
257
|
+
};
|
|
258
|
+
/** Ordering options when selecting data from "clientDashboardMetrics". */
|
|
259
|
+
export declare type ClientDashboardMetrics_Order_By = {
|
|
260
|
+
clientId?: InputMaybe<Order_By>;
|
|
261
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
262
|
+
};
|
|
263
|
+
/** select columns of table "clientDashboardMetrics" */
|
|
264
|
+
export declare enum ClientDashboardMetrics_Select_Column {
|
|
265
|
+
/** column name */
|
|
266
|
+
ClientId = "clientId",
|
|
267
|
+
/** column name */
|
|
268
|
+
ExternalDashboardId = "externalDashboardId"
|
|
269
|
+
}
|
|
270
|
+
/** placeholder for update columns of table "clientDashboardMetrics" (current role has no relevant permissions) */
|
|
271
|
+
export declare enum ClientDashboardMetrics_Update_Column {
|
|
272
|
+
/** placeholder (do not use) */
|
|
273
|
+
Placeholder = "_PLACEHOLDER"
|
|
274
|
+
}
|
|
208
275
|
/** columns and relationships of "companyIntegrations" */
|
|
209
276
|
export declare type CompanyIntegrations = {
|
|
210
277
|
__typename?: 'companyIntegrations';
|
|
@@ -744,6 +811,10 @@ export declare type ExternalMetrics_Aggregate_Order_By = {
|
|
|
744
811
|
max?: InputMaybe<ExternalMetrics_Max_Order_By>;
|
|
745
812
|
min?: InputMaybe<ExternalMetrics_Min_Order_By>;
|
|
746
813
|
};
|
|
814
|
+
/** append existing jsonb value of filtered columns with new jsonb value */
|
|
815
|
+
export declare type ExternalMetrics_Append_Input = {
|
|
816
|
+
resizeAttributes?: InputMaybe<Scalars['jsonb']>;
|
|
817
|
+
};
|
|
747
818
|
/** Boolean expression to filter rows from the table "externalMetrics". All fields are combined with a logical 'AND'. */
|
|
748
819
|
export declare type ExternalMetrics_Bool_Exp = {
|
|
749
820
|
_and?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
|
|
@@ -786,6 +857,18 @@ export declare enum ExternalMetrics_Constraint {
|
|
|
786
857
|
/** unique or primary key constraint on columns "id" */
|
|
787
858
|
ExternalMetricsPkey = "externalMetrics_pkey"
|
|
788
859
|
}
|
|
860
|
+
/** delete the field or element with specified path (for JSON arrays, negative integers count from the end) */
|
|
861
|
+
export declare type ExternalMetrics_Delete_At_Path_Input = {
|
|
862
|
+
resizeAttributes?: InputMaybe<Array<Scalars['String']>>;
|
|
863
|
+
};
|
|
864
|
+
/** delete the array element with specified index (negative integers count from the end). throws an error if top level container is not an array */
|
|
865
|
+
export declare type ExternalMetrics_Delete_Elem_Input = {
|
|
866
|
+
resizeAttributes?: InputMaybe<Scalars['Int']>;
|
|
867
|
+
};
|
|
868
|
+
/** delete key/value pair or string element. key/value pairs are matched based on their key value */
|
|
869
|
+
export declare type ExternalMetrics_Delete_Key_Input = {
|
|
870
|
+
resizeAttributes?: InputMaybe<Scalars['String']>;
|
|
871
|
+
};
|
|
789
872
|
/** input type for inserting data into table "externalMetrics" */
|
|
790
873
|
export declare type ExternalMetrics_Insert_Input = {
|
|
791
874
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -905,6 +988,10 @@ export declare type ExternalMetrics_Order_By = {
|
|
|
905
988
|
export declare type ExternalMetrics_Pk_Columns_Input = {
|
|
906
989
|
id: Scalars['uuid'];
|
|
907
990
|
};
|
|
991
|
+
/** prepend existing jsonb value of filtered columns with new jsonb value */
|
|
992
|
+
export declare type ExternalMetrics_Prepend_Input = {
|
|
993
|
+
resizeAttributes?: InputMaybe<Scalars['jsonb']>;
|
|
994
|
+
};
|
|
908
995
|
/** select columns of table "externalMetrics" */
|
|
909
996
|
export declare enum ExternalMetrics_Select_Column {
|
|
910
997
|
/** column name */
|
|
@@ -963,11 +1050,14 @@ export declare enum ExternalMetrics_Select_Column {
|
|
|
963
1050
|
/** input type for updating data in table "externalMetrics" */
|
|
964
1051
|
export declare type ExternalMetrics_Set_Input = {
|
|
965
1052
|
isMarkedDeleted?: InputMaybe<Scalars['Boolean']>;
|
|
1053
|
+
resizeAttributes?: InputMaybe<Scalars['jsonb']>;
|
|
966
1054
|
};
|
|
967
1055
|
/** update columns of table "externalMetrics" */
|
|
968
1056
|
export declare enum ExternalMetrics_Update_Column {
|
|
969
1057
|
/** column name */
|
|
970
|
-
IsMarkedDeleted = "isMarkedDeleted"
|
|
1058
|
+
IsMarkedDeleted = "isMarkedDeleted",
|
|
1059
|
+
/** column name */
|
|
1060
|
+
ResizeAttributes = "resizeAttributes"
|
|
971
1061
|
}
|
|
972
1062
|
/** columns and relationships of "guestTokens" */
|
|
973
1063
|
export declare type GuestTokens = {
|
|
@@ -1059,6 +1149,10 @@ export declare type Mutation_Root = {
|
|
|
1059
1149
|
generateExternalMetricQuery?: Maybe<GenerateExternalMetricQueryOutput>;
|
|
1060
1150
|
getUnderlyingData?: Maybe<GetUnderlyingDataOutput>;
|
|
1061
1151
|
getUnderlyingSqlQuery?: Maybe<GetUnderlyingSqlQueryOutput>;
|
|
1152
|
+
/** insert data into the table: "clientDashboardMetrics" */
|
|
1153
|
+
insert_clientDashboardMetrics?: Maybe<ClientDashboardMetrics_Mutation_Response>;
|
|
1154
|
+
/** insert a single row into the table: "clientDashboardMetrics" */
|
|
1155
|
+
insert_clientDashboardMetrics_one?: Maybe<ClientDashboardMetrics>;
|
|
1062
1156
|
/** insert data into the table: "externalDashboardMetrics" */
|
|
1063
1157
|
insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
|
|
1064
1158
|
/** insert a single row into the table: "externalDashboardMetrics" */
|
|
@@ -1072,6 +1166,7 @@ export declare type Mutation_Root = {
|
|
|
1072
1166
|
/** insert a single row into the table: "externalMetrics" */
|
|
1073
1167
|
insert_externalMetrics_one?: Maybe<ExternalMetrics>;
|
|
1074
1168
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
1169
|
+
sendRawCsv?: Maybe<SendRawCsvOutput>;
|
|
1075
1170
|
/** update data of the table: "externalMetrics" */
|
|
1076
1171
|
update_externalMetrics?: Maybe<ExternalMetrics_Mutation_Response>;
|
|
1077
1172
|
/** update single row of the table: "externalMetrics" */
|
|
@@ -1114,6 +1209,16 @@ export declare type Mutation_RootGetUnderlyingSqlQueryArgs = {
|
|
|
1114
1209
|
input: GetUnderlyingSqlQueryInput;
|
|
1115
1210
|
};
|
|
1116
1211
|
/** mutation root */
|
|
1212
|
+
export declare type Mutation_RootInsert_ClientDashboardMetricsArgs = {
|
|
1213
|
+
objects: Array<ClientDashboardMetrics_Insert_Input>;
|
|
1214
|
+
on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
|
|
1215
|
+
};
|
|
1216
|
+
/** mutation root */
|
|
1217
|
+
export declare type Mutation_RootInsert_ClientDashboardMetrics_OneArgs = {
|
|
1218
|
+
object: ClientDashboardMetrics_Insert_Input;
|
|
1219
|
+
on_conflict?: InputMaybe<ClientDashboardMetrics_On_Conflict>;
|
|
1220
|
+
};
|
|
1221
|
+
/** mutation root */
|
|
1117
1222
|
export declare type Mutation_RootInsert_ExternalDashboardMetricsArgs = {
|
|
1118
1223
|
objects: Array<ExternalDashboardMetrics_Insert_Input>;
|
|
1119
1224
|
on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
|
|
@@ -1148,12 +1253,26 @@ export declare type Mutation_RootPreviewTableArgs = {
|
|
|
1148
1253
|
input: PreviewTableInput;
|
|
1149
1254
|
};
|
|
1150
1255
|
/** mutation root */
|
|
1256
|
+
export declare type Mutation_RootSendRawCsvArgs = {
|
|
1257
|
+
input: SendRawCsvInput;
|
|
1258
|
+
};
|
|
1259
|
+
/** mutation root */
|
|
1151
1260
|
export declare type Mutation_RootUpdate_ExternalMetricsArgs = {
|
|
1261
|
+
_append?: InputMaybe<ExternalMetrics_Append_Input>;
|
|
1262
|
+
_delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
|
|
1263
|
+
_delete_elem?: InputMaybe<ExternalMetrics_Delete_Elem_Input>;
|
|
1264
|
+
_delete_key?: InputMaybe<ExternalMetrics_Delete_Key_Input>;
|
|
1265
|
+
_prepend?: InputMaybe<ExternalMetrics_Prepend_Input>;
|
|
1152
1266
|
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1153
1267
|
where: ExternalMetrics_Bool_Exp;
|
|
1154
1268
|
};
|
|
1155
1269
|
/** mutation root */
|
|
1156
1270
|
export declare type Mutation_RootUpdate_ExternalMetrics_By_PkArgs = {
|
|
1271
|
+
_append?: InputMaybe<ExternalMetrics_Append_Input>;
|
|
1272
|
+
_delete_at_path?: InputMaybe<ExternalMetrics_Delete_At_Path_Input>;
|
|
1273
|
+
_delete_elem?: InputMaybe<ExternalMetrics_Delete_Elem_Input>;
|
|
1274
|
+
_delete_key?: InputMaybe<ExternalMetrics_Delete_Key_Input>;
|
|
1275
|
+
_prepend?: InputMaybe<ExternalMetrics_Prepend_Input>;
|
|
1157
1276
|
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1158
1277
|
pk_columns: ExternalMetrics_Pk_Columns_Input;
|
|
1159
1278
|
};
|
|
@@ -1174,6 +1293,10 @@ export declare enum Order_By {
|
|
|
1174
1293
|
}
|
|
1175
1294
|
export declare type Query_Root = {
|
|
1176
1295
|
__typename?: 'query_root';
|
|
1296
|
+
/** fetch data from the table: "clientDashboardMetrics" */
|
|
1297
|
+
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1298
|
+
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
1299
|
+
clientDashboardMetrics_by_pk?: Maybe<ClientDashboardMetrics>;
|
|
1177
1300
|
/** fetch data from the table: "companyIntegrations" */
|
|
1178
1301
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1179
1302
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1214,6 +1337,17 @@ export declare type Query_Root = {
|
|
|
1214
1337
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1215
1338
|
themes_by_pk?: Maybe<Themes>;
|
|
1216
1339
|
};
|
|
1340
|
+
export declare type Query_RootClientDashboardMetricsArgs = {
|
|
1341
|
+
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
1342
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1343
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1344
|
+
order_by?: InputMaybe<Array<ClientDashboardMetrics_Order_By>>;
|
|
1345
|
+
where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
1346
|
+
};
|
|
1347
|
+
export declare type Query_RootClientDashboardMetrics_By_PkArgs = {
|
|
1348
|
+
clientId: Scalars['String'];
|
|
1349
|
+
externalDashboardId: Scalars['uuid'];
|
|
1350
|
+
};
|
|
1217
1351
|
export declare type Query_RootCompanyIntegrationsArgs = {
|
|
1218
1352
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1219
1353
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1317,6 +1451,10 @@ export declare type Query_RootThemes_By_PkArgs = {
|
|
|
1317
1451
|
};
|
|
1318
1452
|
export declare type Subscription_Root = {
|
|
1319
1453
|
__typename?: 'subscription_root';
|
|
1454
|
+
/** fetch data from the table: "clientDashboardMetrics" */
|
|
1455
|
+
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
1456
|
+
/** fetch data from the table: "clientDashboardMetrics" using primary key columns */
|
|
1457
|
+
clientDashboardMetrics_by_pk?: Maybe<ClientDashboardMetrics>;
|
|
1320
1458
|
/** fetch data from the table: "companyIntegrations" */
|
|
1321
1459
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1322
1460
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1356,6 +1494,17 @@ export declare type Subscription_Root = {
|
|
|
1356
1494
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1357
1495
|
themes_by_pk?: Maybe<Themes>;
|
|
1358
1496
|
};
|
|
1497
|
+
export declare type Subscription_RootClientDashboardMetricsArgs = {
|
|
1498
|
+
distinct_on?: InputMaybe<Array<ClientDashboardMetrics_Select_Column>>;
|
|
1499
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1500
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1501
|
+
order_by?: InputMaybe<Array<ClientDashboardMetrics_Order_By>>;
|
|
1502
|
+
where?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
1503
|
+
};
|
|
1504
|
+
export declare type Subscription_RootClientDashboardMetrics_By_PkArgs = {
|
|
1505
|
+
clientId: Scalars['String'];
|
|
1506
|
+
externalDashboardId: Scalars['uuid'];
|
|
1507
|
+
};
|
|
1359
1508
|
export declare type Subscription_RootCompanyIntegrationsArgs = {
|
|
1360
1509
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1361
1510
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1633,6 +1782,18 @@ export declare type GenerateEmbeddedMeticMutation = {
|
|
|
1633
1782
|
} | null;
|
|
1634
1783
|
} | null;
|
|
1635
1784
|
};
|
|
1785
|
+
export declare type GetClientDashboardLayoutQueryVariables = Exact<{
|
|
1786
|
+
clientId: Scalars['String'];
|
|
1787
|
+
externalDashboardId: Scalars['uuid'];
|
|
1788
|
+
}>;
|
|
1789
|
+
export declare type GetClientDashboardLayoutQuery = {
|
|
1790
|
+
__typename?: 'query_root';
|
|
1791
|
+
clientDashboardMetrics_by_pk?: {
|
|
1792
|
+
__typename?: 'clientDashboardMetrics';
|
|
1793
|
+
clientId: string;
|
|
1794
|
+
externalDashboardId: any;
|
|
1795
|
+
} | null;
|
|
1796
|
+
};
|
|
1636
1797
|
export declare type CompanySubsetTableDataMutationVariables = Exact<{
|
|
1637
1798
|
clientId?: InputMaybe<Scalars['String']>;
|
|
1638
1799
|
companyId?: InputMaybe<Scalars['String']>;
|
|
@@ -1794,6 +1955,18 @@ export declare type UnderlyingDataMutation = {
|
|
|
1794
1955
|
timeTaken: number;
|
|
1795
1956
|
} | null;
|
|
1796
1957
|
};
|
|
1958
|
+
export declare type MarkClientDashboardLayoutChangeMutationVariables = Exact<{
|
|
1959
|
+
clientId: Scalars['String'];
|
|
1960
|
+
externalDashboardId: Scalars['uuid'];
|
|
1961
|
+
}>;
|
|
1962
|
+
export declare type MarkClientDashboardLayoutChangeMutation = {
|
|
1963
|
+
__typename?: 'mutation_root';
|
|
1964
|
+
insert_clientDashboardMetrics_one?: {
|
|
1965
|
+
__typename?: 'clientDashboardMetrics';
|
|
1966
|
+
clientId: string;
|
|
1967
|
+
externalDashboardId: any;
|
|
1968
|
+
} | null;
|
|
1969
|
+
};
|
|
1797
1970
|
export declare type MarkDeleteMetricMutationVariables = Exact<{
|
|
1798
1971
|
id?: Scalars['uuid'];
|
|
1799
1972
|
}>;
|
|
@@ -1841,6 +2014,33 @@ export declare type QueryExternalMetricQuery = {
|
|
|
1841
2014
|
timeTaken?: number | null;
|
|
1842
2015
|
} | null;
|
|
1843
2016
|
};
|
|
2017
|
+
export declare type RawCsvMutationVariables = Exact<{
|
|
2018
|
+
companyId?: InputMaybe<Scalars['String']>;
|
|
2019
|
+
recipientAddress?: InputMaybe<Scalars['String']>;
|
|
2020
|
+
sqlQuery?: InputMaybe<Scalars['String']>;
|
|
2021
|
+
}>;
|
|
2022
|
+
export declare type RawCsvMutation = {
|
|
2023
|
+
__typename?: 'mutation_root';
|
|
2024
|
+
sendRawCsv?: {
|
|
2025
|
+
__typename?: 'SendRawCsvOutput';
|
|
2026
|
+
status?: string | null;
|
|
2027
|
+
error?: {
|
|
2028
|
+
__typename?: 'Error';
|
|
2029
|
+
message: string;
|
|
2030
|
+
} | null;
|
|
2031
|
+
} | null;
|
|
2032
|
+
};
|
|
2033
|
+
export declare type ResizeExternalMetricMutationVariables = Exact<{
|
|
2034
|
+
id: Scalars['uuid'];
|
|
2035
|
+
resizeAttributes: Scalars['jsonb'];
|
|
2036
|
+
}>;
|
|
2037
|
+
export declare type ResizeExternalMetricMutation = {
|
|
2038
|
+
__typename?: 'mutation_root';
|
|
2039
|
+
update_externalMetrics_by_pk?: {
|
|
2040
|
+
__typename?: 'externalMetrics';
|
|
2041
|
+
resizeAttributes: any;
|
|
2042
|
+
} | null;
|
|
2043
|
+
};
|
|
1844
2044
|
export declare const CreateExternalMetricDocument = "\n mutation CreateExternalMetric($chartOptions: jsonb = \"\", $companyId: uuid = \"\", $companyIntegrationId: uuid = \"\", $description: String = \"\", $inputFields: jsonb = \"\", $integrationName: String = \"\", $metricId: String = \"\", $metricQuery: String = \"\", $name: String = \"\", $outputColumns: String = \"\", $query: String = \"\", $isLive: Boolean, $clientId: String = \"\", $isCreatedByClient: Boolean = false, $createdBy: String = \"\", $timeGrain: String = \"\", $externalDashboardIds: [externalDashboardMetrics_insert_input!] = {}, $selectedGroupBy: jsonb = [], $isEnableGroupBy: Boolean = false, $groupBy: jsonb = {}) {\n insert_externalMetrics_one(\n object: {chartOptions: $chartOptions, companyId: $companyId, companyIntegrationId: $companyIntegrationId, description: $description, inputFields: $inputFields, integrationName: $integrationName, metricId: $metricId, metricQuery: $metricQuery, name: $name, outputColumns: $outputColumns, query: $query, isLive: $isLive, clientId: $clientId, isCreatedByClient: $isCreatedByClient, createdBy: $createdBy, timeGrain: $timeGrain, externalDashboardMetrics: {data: $externalDashboardIds}, selectedGroupBy: $selectedGroupBy, isEnableGroupBy: $isEnableGroupBy, groupBy: $groupBy}\n ) {\n id\n externalDashboardMetrics {\n externalDashboardId\n }\n }\n}\n ";
|
|
1845
2045
|
export declare const useCreateExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CreateExternalMetricMutation, TError, Exact<{
|
|
1846
2046
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -1915,6 +2115,8 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
|
|
|
1915
2115
|
queryPrompt?: InputMaybe<string> | undefined;
|
|
1916
2116
|
timeGrain?: InputMaybe<string> | undefined;
|
|
1917
2117
|
}>, TContext>;
|
|
2118
|
+
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 ";
|
|
2119
|
+
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>;
|
|
1918
2120
|
export declare const CompanySubsetTableDataDocument = "\n mutation CompanySubsetTableData($clientId: String = \"\", $companyId: String = \"\") {\n companySubsetTableData(input: {clientId: $clientId, companyId: $companyId}) {\n companyIntegrationId\n dbName\n error {\n message\n }\n tableList {\n tableName\n columns {\n datatype\n name\n as\n }\n clientColumn\n }\n }\n}\n ";
|
|
1919
2121
|
export declare const useCompanySubsetTableDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CompanySubsetTableDataMutation, TError, Exact<{
|
|
1920
2122
|
clientId?: InputMaybe<string> | undefined;
|
|
@@ -1949,6 +2151,14 @@ export declare const useUnderlyingDataMutation: <TError = unknown, TContext = un
|
|
|
1949
2151
|
query?: InputMaybe<string> | undefined;
|
|
1950
2152
|
value?: InputMaybe<Scalars['json']>;
|
|
1951
2153
|
}>, TContext>;
|
|
2154
|
+
export declare const MarkClientDashboardLayoutChangeDocument = "\n mutation MarkClientDashboardLayoutChange($clientId: String!, $externalDashboardId: uuid!) {\n insert_clientDashboardMetrics_one(\n object: {clientId: $clientId, externalDashboardId: $externalDashboardId}\n ) {\n clientId\n externalDashboardId\n }\n}\n ";
|
|
2155
|
+
export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
|
|
2156
|
+
clientId: Scalars['String'];
|
|
2157
|
+
externalDashboardId: Scalars['uuid'];
|
|
2158
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<MarkClientDashboardLayoutChangeMutation, TError, Exact<{
|
|
2159
|
+
clientId: Scalars['String'];
|
|
2160
|
+
externalDashboardId: Scalars['uuid'];
|
|
2161
|
+
}>, TContext>;
|
|
1952
2162
|
export declare const MarkDeleteMetricDocument = "\n mutation MarkDeleteMetric($id: uuid! = \"\") {\n update_externalMetrics_by_pk(\n pk_columns: {id: $id}\n _set: {isMarkedDeleted: true}\n ) {\n id\n }\n}\n ";
|
|
1953
2163
|
export declare const useMarkDeleteMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkDeleteMetricMutation, TError, Exact<{
|
|
1954
2164
|
id?: Scalars['uuid'];
|
|
@@ -1967,3 +2177,21 @@ export declare const usePreviewTableMutation: <TError = unknown, TContext = unkn
|
|
|
1967
2177
|
}>, TContext>;
|
|
1968
2178
|
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 ";
|
|
1969
2179
|
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>;
|
|
2180
|
+
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 ";
|
|
2181
|
+
export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<RawCsvMutation, TError, Exact<{
|
|
2182
|
+
companyId?: InputMaybe<string> | undefined;
|
|
2183
|
+
recipientAddress?: InputMaybe<string> | undefined;
|
|
2184
|
+
sqlQuery?: InputMaybe<string> | undefined;
|
|
2185
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<RawCsvMutation, TError, Exact<{
|
|
2186
|
+
companyId?: InputMaybe<string> | undefined;
|
|
2187
|
+
recipientAddress?: InputMaybe<string> | undefined;
|
|
2188
|
+
sqlQuery?: InputMaybe<string> | undefined;
|
|
2189
|
+
}>, TContext>;
|
|
2190
|
+
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 ";
|
|
2191
|
+
export declare const useResizeExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<ResizeExternalMetricMutation, TError, Exact<{
|
|
2192
|
+
id: Scalars['uuid'];
|
|
2193
|
+
resizeAttributes: Scalars['jsonb'];
|
|
2194
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<ResizeExternalMetricMutation, TError, Exact<{
|
|
2195
|
+
id: Scalars['uuid'];
|
|
2196
|
+
resizeAttributes: Scalars['jsonb'];
|
|
2197
|
+
}>, TContext>;
|
package/dist/utils/theme.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Databrain app dashboard ui plugin.",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -81,6 +81,8 @@
|
|
|
81
81
|
],
|
|
82
82
|
"dependencies": {
|
|
83
83
|
"@headlessui/react": "^1.7.2",
|
|
84
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
+
"@tanstack/react-table": "^8.7.9",
|
|
84
86
|
"classnames": "^2.3.2",
|
|
85
87
|
"echarts": "^5.4.1",
|
|
86
88
|
"echarts-for-react": "^3.0.2",
|