@databrainhq/plugin 0.6.2 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +344 -359
- package/dist/index.umd.js +69 -75
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +63 -25
- package/package.json +1 -1
|
@@ -154,6 +154,17 @@ export declare type String_Comparison_Exp = {
|
|
|
154
154
|
/** does the column match the given SQL regular expression */
|
|
155
155
|
_similar?: InputMaybe<Scalars['String']>;
|
|
156
156
|
};
|
|
157
|
+
export declare type SubsetColumns = {
|
|
158
|
+
__typename?: 'SubsetColumns';
|
|
159
|
+
as: Scalars['String'];
|
|
160
|
+
datatype: Scalars['String'];
|
|
161
|
+
name: Scalars['String'];
|
|
162
|
+
};
|
|
163
|
+
export declare type TableList = {
|
|
164
|
+
__typename?: 'TableList';
|
|
165
|
+
columns?: Maybe<Array<Maybe<SubsetColumns>>>;
|
|
166
|
+
tableName: Scalars['String'];
|
|
167
|
+
};
|
|
157
168
|
/** columns and relationships of "companyIntegrations" */
|
|
158
169
|
export declare type CompanyIntegrations = {
|
|
159
170
|
__typename?: 'companyIntegrations';
|
|
@@ -203,6 +214,21 @@ export declare enum CompanyIntegrations_Select_Column {
|
|
|
203
214
|
/** column name */
|
|
204
215
|
Name = "name"
|
|
205
216
|
}
|
|
217
|
+
export declare type CompanySubsetTableDataError = {
|
|
218
|
+
__typename?: 'companySubsetTableDataError';
|
|
219
|
+
message: Scalars['String'];
|
|
220
|
+
};
|
|
221
|
+
export declare type CompanySubsetTableDataInput = {
|
|
222
|
+
clientId: Scalars['String'];
|
|
223
|
+
companyId: Scalars['String'];
|
|
224
|
+
};
|
|
225
|
+
export declare type CompanySubsetTableDataOutput = {
|
|
226
|
+
__typename?: 'companySubsetTableDataOutput';
|
|
227
|
+
companyIntegrationId?: Maybe<Scalars['String']>;
|
|
228
|
+
dbName?: Maybe<Scalars['String']>;
|
|
229
|
+
error?: Maybe<CompanySubsetTableDataError>;
|
|
230
|
+
tableList?: Maybe<Array<Maybe<TableList>>>;
|
|
231
|
+
};
|
|
206
232
|
/** subset of tables of user database */
|
|
207
233
|
export declare type CompanySubsetTables = {
|
|
208
234
|
__typename?: 'companySubsetTables';
|
|
@@ -945,6 +971,7 @@ export declare type Jsonb_Comparison_Exp = {
|
|
|
945
971
|
/** mutation root */
|
|
946
972
|
export declare type Mutation_Root = {
|
|
947
973
|
__typename?: 'mutation_root';
|
|
974
|
+
companySubsetTableData?: Maybe<CompanySubsetTableDataOutput>;
|
|
948
975
|
fetchColumnData?: Maybe<FetchColumnDataOutput>;
|
|
949
976
|
generateDatasetMetrics?: Maybe<GenerateDatasetMetricsOutput>;
|
|
950
977
|
generateEmbeddedMetic?: Maybe<GenerateEmbeddedMeticOutput>;
|
|
@@ -964,6 +991,10 @@ export declare type Mutation_Root = {
|
|
|
964
991
|
previewTable?: Maybe<PreviewTableOutput>;
|
|
965
992
|
};
|
|
966
993
|
/** mutation root */
|
|
994
|
+
export declare type Mutation_RootCompanySubsetTableDataArgs = {
|
|
995
|
+
input: CompanySubsetTableDataInput;
|
|
996
|
+
};
|
|
997
|
+
/** mutation root */
|
|
967
998
|
export declare type Mutation_RootFetchColumnDataArgs = {
|
|
968
999
|
input: FetchColumnDataInput;
|
|
969
1000
|
};
|
|
@@ -1390,28 +1421,31 @@ export declare type GenerateEmbeddedMeticMutation = {
|
|
|
1390
1421
|
} | null;
|
|
1391
1422
|
} | null;
|
|
1392
1423
|
};
|
|
1393
|
-
export declare type
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
export declare type CompanyIntegrationQuery = {
|
|
1397
|
-
__typename?: 'query_root';
|
|
1398
|
-
companyIntegrations: Array<{
|
|
1399
|
-
__typename?: 'companyIntegrations';
|
|
1400
|
-
companyId: any;
|
|
1401
|
-
id: any;
|
|
1402
|
-
integrationId: any;
|
|
1403
|
-
name: string;
|
|
1404
|
-
}>;
|
|
1405
|
-
};
|
|
1406
|
-
export declare type CompanySubsetTableListQueryVariables = Exact<{
|
|
1407
|
-
companyId?: InputMaybe<Scalars['uuid']>;
|
|
1424
|
+
export declare type CompanySubsetTableDataMutationVariables = Exact<{
|
|
1425
|
+
clientId?: InputMaybe<Scalars['String']>;
|
|
1426
|
+
companyId?: InputMaybe<Scalars['String']>;
|
|
1408
1427
|
}>;
|
|
1409
|
-
export declare type
|
|
1410
|
-
__typename?: '
|
|
1411
|
-
|
|
1412
|
-
__typename?: '
|
|
1413
|
-
|
|
1414
|
-
|
|
1428
|
+
export declare type CompanySubsetTableDataMutation = {
|
|
1429
|
+
__typename?: 'mutation_root';
|
|
1430
|
+
companySubsetTableData?: {
|
|
1431
|
+
__typename?: 'companySubsetTableDataOutput';
|
|
1432
|
+
companyIntegrationId?: string | null;
|
|
1433
|
+
dbName?: string | null;
|
|
1434
|
+
error?: {
|
|
1435
|
+
__typename?: 'companySubsetTableDataError';
|
|
1436
|
+
message: string;
|
|
1437
|
+
} | null;
|
|
1438
|
+
tableList?: Array<{
|
|
1439
|
+
__typename?: 'TableList';
|
|
1440
|
+
tableName: string;
|
|
1441
|
+
columns?: Array<{
|
|
1442
|
+
__typename?: 'SubsetColumns';
|
|
1443
|
+
datatype: string;
|
|
1444
|
+
name: string;
|
|
1445
|
+
as: string;
|
|
1446
|
+
} | null> | null;
|
|
1447
|
+
} | null> | null;
|
|
1448
|
+
} | null;
|
|
1415
1449
|
};
|
|
1416
1450
|
export declare type EmbeddedDashboardMetricsQueryVariables = Exact<{
|
|
1417
1451
|
where?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
|
|
@@ -1626,10 +1660,14 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
|
|
|
1626
1660
|
queryPrompt?: InputMaybe<string> | undefined;
|
|
1627
1661
|
timeGrain?: InputMaybe<string> | undefined;
|
|
1628
1662
|
}>, TContext>;
|
|
1629
|
-
export declare const
|
|
1630
|
-
export declare const
|
|
1631
|
-
|
|
1632
|
-
|
|
1663
|
+
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 }\n }\n}\n ";
|
|
1664
|
+
export declare const useCompanySubsetTableDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CompanySubsetTableDataMutation, TError, Exact<{
|
|
1665
|
+
clientId?: InputMaybe<string> | undefined;
|
|
1666
|
+
companyId?: InputMaybe<string> | undefined;
|
|
1667
|
+
}>, TContext> | undefined) => import("react-query").UseMutationResult<CompanySubsetTableDataMutation, TError, Exact<{
|
|
1668
|
+
clientId?: InputMaybe<string> | undefined;
|
|
1669
|
+
companyId?: InputMaybe<string> | undefined;
|
|
1670
|
+
}>, TContext>;
|
|
1633
1671
|
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($where: externalDashboardMetrics_bool_exp) {\n externalDashboardMetrics(where: $where) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n resizeAttributes\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n }\n }\n}\n ";
|
|
1634
1672
|
export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
1635
1673
|
export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
|