@databrainhq/plugin 0.8.3 → 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/README.md +26 -26
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +10 -0
- package/dist/index.es.js +300 -176
- package/dist/index.umd.js +93 -65
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +188 -1
- package/package.json +98 -98
package/dist/typings.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Default CSS definition for typescript,
|
|
3
|
-
* will be overridden with file-specific definitions by rollup
|
|
4
|
-
*/
|
|
5
|
-
declare module '*.css' {
|
|
6
|
-
const content: Record<string, string>;
|
|
7
|
-
export default content;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
|
|
11
|
-
|
|
12
|
-
declare module '*.svg' {
|
|
13
|
-
const svgUrl: string;
|
|
14
|
-
const svgComponent: SvgrComponent;
|
|
15
|
-
export default svgUrl;
|
|
16
|
-
export { svgComponent as ReactComponent };
|
|
17
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Default CSS definition for typescript,
|
|
3
|
+
* will be overridden with file-specific definitions by rollup
|
|
4
|
+
*/
|
|
5
|
+
declare module '*.css' {
|
|
6
|
+
const content: Record<string, string>;
|
|
7
|
+
export default content;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface SvgrComponent extends React.FC<React.SVGAttributes<SVGElement>> {}
|
|
11
|
+
|
|
12
|
+
declare module '*.svg' {
|
|
13
|
+
const svgUrl: string;
|
|
14
|
+
const svgComponent: SvgrComponent;
|
|
15
|
+
export default svgUrl;
|
|
16
|
+
export { svgComponent as ReactComponent };
|
|
17
|
+
}
|
|
@@ -215,6 +215,63 @@ export declare type TableList = {
|
|
|
215
215
|
columns?: Maybe<Array<Maybe<SubsetColumns>>>;
|
|
216
216
|
tableName: Scalars['String'];
|
|
217
217
|
};
|
|
218
|
+
/** Client's dashboard metrics layout tracker. */
|
|
219
|
+
export declare type ClientDashboardMetrics = {
|
|
220
|
+
__typename?: 'clientDashboardMetrics';
|
|
221
|
+
clientId: Scalars['String'];
|
|
222
|
+
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
|
+
}
|
|
218
275
|
/** columns and relationships of "companyIntegrations" */
|
|
219
276
|
export declare type CompanyIntegrations = {
|
|
220
277
|
__typename?: 'companyIntegrations';
|
|
@@ -754,6 +811,10 @@ export declare type ExternalMetrics_Aggregate_Order_By = {
|
|
|
754
811
|
max?: InputMaybe<ExternalMetrics_Max_Order_By>;
|
|
755
812
|
min?: InputMaybe<ExternalMetrics_Min_Order_By>;
|
|
756
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
|
+
};
|
|
757
818
|
/** Boolean expression to filter rows from the table "externalMetrics". All fields are combined with a logical 'AND'. */
|
|
758
819
|
export declare type ExternalMetrics_Bool_Exp = {
|
|
759
820
|
_and?: InputMaybe<Array<ExternalMetrics_Bool_Exp>>;
|
|
@@ -796,6 +857,18 @@ export declare enum ExternalMetrics_Constraint {
|
|
|
796
857
|
/** unique or primary key constraint on columns "id" */
|
|
797
858
|
ExternalMetricsPkey = "externalMetrics_pkey"
|
|
798
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
|
+
};
|
|
799
872
|
/** input type for inserting data into table "externalMetrics" */
|
|
800
873
|
export declare type ExternalMetrics_Insert_Input = {
|
|
801
874
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -915,6 +988,10 @@ export declare type ExternalMetrics_Order_By = {
|
|
|
915
988
|
export declare type ExternalMetrics_Pk_Columns_Input = {
|
|
916
989
|
id: Scalars['uuid'];
|
|
917
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
|
+
};
|
|
918
995
|
/** select columns of table "externalMetrics" */
|
|
919
996
|
export declare enum ExternalMetrics_Select_Column {
|
|
920
997
|
/** column name */
|
|
@@ -973,11 +1050,14 @@ export declare enum ExternalMetrics_Select_Column {
|
|
|
973
1050
|
/** input type for updating data in table "externalMetrics" */
|
|
974
1051
|
export declare type ExternalMetrics_Set_Input = {
|
|
975
1052
|
isMarkedDeleted?: InputMaybe<Scalars['Boolean']>;
|
|
1053
|
+
resizeAttributes?: InputMaybe<Scalars['jsonb']>;
|
|
976
1054
|
};
|
|
977
1055
|
/** update columns of table "externalMetrics" */
|
|
978
1056
|
export declare enum ExternalMetrics_Update_Column {
|
|
979
1057
|
/** column name */
|
|
980
|
-
IsMarkedDeleted = "isMarkedDeleted"
|
|
1058
|
+
IsMarkedDeleted = "isMarkedDeleted",
|
|
1059
|
+
/** column name */
|
|
1060
|
+
ResizeAttributes = "resizeAttributes"
|
|
981
1061
|
}
|
|
982
1062
|
/** columns and relationships of "guestTokens" */
|
|
983
1063
|
export declare type GuestTokens = {
|
|
@@ -1069,6 +1149,10 @@ export declare type Mutation_Root = {
|
|
|
1069
1149
|
generateExternalMetricQuery?: Maybe<GenerateExternalMetricQueryOutput>;
|
|
1070
1150
|
getUnderlyingData?: Maybe<GetUnderlyingDataOutput>;
|
|
1071
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>;
|
|
1072
1156
|
/** insert data into the table: "externalDashboardMetrics" */
|
|
1073
1157
|
insert_externalDashboardMetrics?: Maybe<ExternalDashboardMetrics_Mutation_Response>;
|
|
1074
1158
|
/** insert a single row into the table: "externalDashboardMetrics" */
|
|
@@ -1125,6 +1209,16 @@ export declare type Mutation_RootGetUnderlyingSqlQueryArgs = {
|
|
|
1125
1209
|
input: GetUnderlyingSqlQueryInput;
|
|
1126
1210
|
};
|
|
1127
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 */
|
|
1128
1222
|
export declare type Mutation_RootInsert_ExternalDashboardMetricsArgs = {
|
|
1129
1223
|
objects: Array<ExternalDashboardMetrics_Insert_Input>;
|
|
1130
1224
|
on_conflict?: InputMaybe<ExternalDashboardMetrics_On_Conflict>;
|
|
@@ -1164,11 +1258,21 @@ export declare type Mutation_RootSendRawCsvArgs = {
|
|
|
1164
1258
|
};
|
|
1165
1259
|
/** mutation root */
|
|
1166
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>;
|
|
1167
1266
|
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1168
1267
|
where: ExternalMetrics_Bool_Exp;
|
|
1169
1268
|
};
|
|
1170
1269
|
/** mutation root */
|
|
1171
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>;
|
|
1172
1276
|
_set?: InputMaybe<ExternalMetrics_Set_Input>;
|
|
1173
1277
|
pk_columns: ExternalMetrics_Pk_Columns_Input;
|
|
1174
1278
|
};
|
|
@@ -1189,6 +1293,10 @@ export declare enum Order_By {
|
|
|
1189
1293
|
}
|
|
1190
1294
|
export declare type Query_Root = {
|
|
1191
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>;
|
|
1192
1300
|
/** fetch data from the table: "companyIntegrations" */
|
|
1193
1301
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1194
1302
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1229,6 +1337,17 @@ export declare type Query_Root = {
|
|
|
1229
1337
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1230
1338
|
themes_by_pk?: Maybe<Themes>;
|
|
1231
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
|
+
};
|
|
1232
1351
|
export declare type Query_RootCompanyIntegrationsArgs = {
|
|
1233
1352
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1234
1353
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1332,6 +1451,10 @@ export declare type Query_RootThemes_By_PkArgs = {
|
|
|
1332
1451
|
};
|
|
1333
1452
|
export declare type Subscription_Root = {
|
|
1334
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>;
|
|
1335
1458
|
/** fetch data from the table: "companyIntegrations" */
|
|
1336
1459
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1337
1460
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
@@ -1371,6 +1494,17 @@ export declare type Subscription_Root = {
|
|
|
1371
1494
|
/** fetch data from the table: "themes" using primary key columns */
|
|
1372
1495
|
themes_by_pk?: Maybe<Themes>;
|
|
1373
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
|
+
};
|
|
1374
1508
|
export declare type Subscription_RootCompanyIntegrationsArgs = {
|
|
1375
1509
|
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
1376
1510
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1648,6 +1782,18 @@ export declare type GenerateEmbeddedMeticMutation = {
|
|
|
1648
1782
|
} | null;
|
|
1649
1783
|
} | null;
|
|
1650
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
|
+
};
|
|
1651
1797
|
export declare type CompanySubsetTableDataMutationVariables = Exact<{
|
|
1652
1798
|
clientId?: InputMaybe<Scalars['String']>;
|
|
1653
1799
|
companyId?: InputMaybe<Scalars['String']>;
|
|
@@ -1809,6 +1955,18 @@ export declare type UnderlyingDataMutation = {
|
|
|
1809
1955
|
timeTaken: number;
|
|
1810
1956
|
} | null;
|
|
1811
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
|
+
};
|
|
1812
1970
|
export declare type MarkDeleteMetricMutationVariables = Exact<{
|
|
1813
1971
|
id?: Scalars['uuid'];
|
|
1814
1972
|
}>;
|
|
@@ -1872,6 +2030,17 @@ export declare type RawCsvMutation = {
|
|
|
1872
2030
|
} | null;
|
|
1873
2031
|
} | null;
|
|
1874
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
|
+
};
|
|
1875
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 ";
|
|
1876
2045
|
export declare const useCreateExternalMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CreateExternalMetricMutation, TError, Exact<{
|
|
1877
2046
|
chartOptions?: InputMaybe<Scalars['jsonb']>;
|
|
@@ -1946,6 +2115,8 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
|
|
|
1946
2115
|
queryPrompt?: InputMaybe<string> | undefined;
|
|
1947
2116
|
timeGrain?: InputMaybe<string> | undefined;
|
|
1948
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>;
|
|
1949
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 ";
|
|
1950
2121
|
export declare const useCompanySubsetTableDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CompanySubsetTableDataMutation, TError, Exact<{
|
|
1951
2122
|
clientId?: InputMaybe<string> | undefined;
|
|
@@ -1980,6 +2151,14 @@ export declare const useUnderlyingDataMutation: <TError = unknown, TContext = un
|
|
|
1980
2151
|
query?: InputMaybe<string> | undefined;
|
|
1981
2152
|
value?: InputMaybe<Scalars['json']>;
|
|
1982
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>;
|
|
1983
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 ";
|
|
1984
2163
|
export declare const useMarkDeleteMetricMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<MarkDeleteMetricMutation, TError, Exact<{
|
|
1985
2164
|
id?: Scalars['uuid'];
|
|
@@ -2008,3 +2187,11 @@ export declare const useRawCsvMutation: <TError = unknown, TContext = unknown>(o
|
|
|
2008
2187
|
recipientAddress?: InputMaybe<string> | undefined;
|
|
2009
2188
|
sqlQuery?: InputMaybe<string> | undefined;
|
|
2010
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/package.json
CHANGED
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.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
|
-
"engines": {
|
|
20
|
-
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
-
"yarn": "please-use-npm"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"serve": "vite --port 3005",
|
|
25
|
-
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
-
"build": "tsc && vite build",
|
|
27
|
-
"husky": "husky install",
|
|
28
|
-
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
-
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
-
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
-
"prepare": "npm run build"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@commitlint/cli": "^17.0.3",
|
|
35
|
-
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
-
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
-
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
-
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
-
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
-
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
-
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
-
"@iconify/json": "^2.2.6",
|
|
43
|
-
"@svgr/core": "^6.5.1",
|
|
44
|
-
"@types/node": "^12.12.38",
|
|
45
|
-
"@types/react": "^18.0.26",
|
|
46
|
-
"@types/react-dom": "^18.0.10",
|
|
47
|
-
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
-
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
-
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
-
"autoprefixer": "^10.4.7",
|
|
52
|
-
"babel-eslint": "^10.0.3",
|
|
53
|
-
"cross-env": "^7.0.2",
|
|
54
|
-
"eslint": "^7.32.0",
|
|
55
|
-
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
-
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
-
"eslint-config-prettier": "^8.3.0",
|
|
58
|
-
"eslint-plugin-import": "^2.24.2",
|
|
59
|
-
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
-
"eslint-plugin-react": "^7.30.1",
|
|
62
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
-
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
-
"graphql": "^16.6.0",
|
|
65
|
-
"husky": "^8.0.1",
|
|
66
|
-
"lint-staged": "^13.0.3",
|
|
67
|
-
"postcss": "^8.4.21",
|
|
68
|
-
"prettier": "^2.0.4",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"tailwindcss": "^3.2.4",
|
|
72
|
-
"ts-node": "^10.9.1",
|
|
73
|
-
"typescript": "^4.6.3",
|
|
74
|
-
"unplugin-icons": "^0.14.7",
|
|
75
|
-
"vite": "^2.9.9",
|
|
76
|
-
"vite-plugin-dts": "^1.7.1",
|
|
77
|
-
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
-
},
|
|
79
|
-
"files": [
|
|
80
|
-
"dist"
|
|
81
|
-
],
|
|
82
|
-
"dependencies": {
|
|
83
|
-
"@headlessui/react": "^1.7.2",
|
|
84
|
-
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
-
"@tanstack/react-table": "^8.7.9",
|
|
86
|
-
"classnames": "^2.3.2",
|
|
87
|
-
"echarts": "^5.4.1",
|
|
88
|
-
"echarts-for-react": "^3.0.2",
|
|
89
|
-
"react-error-boundary": "^3.1.4",
|
|
90
|
-
"react-grid-layout": "^1.3.4",
|
|
91
|
-
"react-hook-form": "^7.33.1",
|
|
92
|
-
"react-query": "^3.39.2"
|
|
93
|
-
},
|
|
94
|
-
"peerDependencies": {
|
|
95
|
-
"react": "^18.2.0",
|
|
96
|
-
"react-dom": "^18.2.0"
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@databrainhq/plugin",
|
|
3
|
+
"version": "0.8.4",
|
|
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
|
+
"engines": {
|
|
20
|
+
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
+
"yarn": "please-use-npm"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"serve": "vite --port 3005",
|
|
25
|
+
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
26
|
+
"build": "tsc && vite build",
|
|
27
|
+
"husky": "husky install",
|
|
28
|
+
"predeploy": "cd example && npm install && npm run build",
|
|
29
|
+
"lint": "eslint --ext .tsx,.ts --ignore-path .gitignore --fix src",
|
|
30
|
+
"codegen": "graphql-codegen --config codegen.yml -r dotenv/config",
|
|
31
|
+
"prepare": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@commitlint/cli": "^17.0.3",
|
|
35
|
+
"@commitlint/config-conventional": "^17.0.3",
|
|
36
|
+
"@graphql-codegen/cli": "^2.16.4",
|
|
37
|
+
"@graphql-codegen/introspection": "^2.2.3",
|
|
38
|
+
"@graphql-codegen/typescript": "^2.8.7",
|
|
39
|
+
"@graphql-codegen/typescript-operations": "^2.5.12",
|
|
40
|
+
"@graphql-codegen/typescript-react-apollo": "^3.3.7",
|
|
41
|
+
"@graphql-codegen/typescript-react-query": "^3.6.2",
|
|
42
|
+
"@iconify/json": "^2.2.6",
|
|
43
|
+
"@svgr/core": "^6.5.1",
|
|
44
|
+
"@types/node": "^12.12.38",
|
|
45
|
+
"@types/react": "^18.0.26",
|
|
46
|
+
"@types/react-dom": "^18.0.10",
|
|
47
|
+
"@types/react-grid-layout": "^1.3.2",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^4.31.1",
|
|
49
|
+
"@typescript-eslint/parser": "^4.31.1",
|
|
50
|
+
"@vitejs/plugin-react": "^1.3.0",
|
|
51
|
+
"autoprefixer": "^10.4.7",
|
|
52
|
+
"babel-eslint": "^10.0.3",
|
|
53
|
+
"cross-env": "^7.0.2",
|
|
54
|
+
"eslint": "^7.32.0",
|
|
55
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
56
|
+
"eslint-config-airbnb-typescript": "^14.0.0",
|
|
57
|
+
"eslint-config-prettier": "^8.3.0",
|
|
58
|
+
"eslint-plugin-import": "^2.24.2",
|
|
59
|
+
"eslint-plugin-jsx-a11y": "^6.6.0",
|
|
60
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
61
|
+
"eslint-plugin-react": "^7.30.1",
|
|
62
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
|
+
"eslint-plugin-unicorn": "^36.0.0",
|
|
64
|
+
"graphql": "^16.6.0",
|
|
65
|
+
"husky": "^8.0.1",
|
|
66
|
+
"lint-staged": "^13.0.3",
|
|
67
|
+
"postcss": "^8.4.21",
|
|
68
|
+
"prettier": "^2.0.4",
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"tailwindcss": "^3.2.4",
|
|
72
|
+
"ts-node": "^10.9.1",
|
|
73
|
+
"typescript": "^4.6.3",
|
|
74
|
+
"unplugin-icons": "^0.14.7",
|
|
75
|
+
"vite": "^2.9.9",
|
|
76
|
+
"vite-plugin-dts": "^1.7.1",
|
|
77
|
+
"vite-tsconfig-paths": "^4.0.3"
|
|
78
|
+
},
|
|
79
|
+
"files": [
|
|
80
|
+
"dist"
|
|
81
|
+
],
|
|
82
|
+
"dependencies": {
|
|
83
|
+
"@headlessui/react": "^1.7.2",
|
|
84
|
+
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
|
+
"@tanstack/react-table": "^8.7.9",
|
|
86
|
+
"classnames": "^2.3.2",
|
|
87
|
+
"echarts": "^5.4.1",
|
|
88
|
+
"echarts-for-react": "^3.0.2",
|
|
89
|
+
"react-error-boundary": "^3.1.4",
|
|
90
|
+
"react-grid-layout": "^1.3.4",
|
|
91
|
+
"react-hook-form": "^7.33.1",
|
|
92
|
+
"react-query": "^3.39.2"
|
|
93
|
+
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"react": "^18.2.0",
|
|
96
|
+
"react-dom": "^18.2.0"
|
|
97
|
+
}
|
|
98
|
+
}
|