@databrainhq/plugin 0.8.20 → 0.8.22
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/AceEditorSql/AceEditorSql.d.ts +10 -0
- package/dist/components/FilterDropDown/index.d.ts +4 -2
- package/dist/components/FilterField/index.d.ts +2 -0
- package/dist/components/GlobalFilters/index.d.ts +1 -0
- package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
- package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
- package/dist/components/MetricFilterDropDown/index.d.ts +3 -1
- package/dist/consts/metricOptions.d.ts +1 -0
- package/dist/hooks/useGenerateDatasetMetrics.d.ts +4 -2
- package/dist/index.es.js +28846 -2537
- package/dist/index.umd.js +1279 -116
- package/dist/style.css +1 -1
- package/dist/types/app.d.ts +1 -0
- package/dist/types/metricCreate.d.ts +1 -0
- package/dist/utils/generated/graphql.d.ts +177 -19
- package/package.json +3 -5
package/dist/types/app.d.ts
CHANGED
|
@@ -84,7 +84,8 @@ export declare type ExternalMetricQueryOutput = {
|
|
|
84
84
|
};
|
|
85
85
|
export declare type FetchColumnDataInput = {
|
|
86
86
|
columnName: Scalars['String'];
|
|
87
|
-
|
|
87
|
+
integrationId: Scalars['String'];
|
|
88
|
+
integrationName: Scalars['String'];
|
|
88
89
|
tableName: Scalars['String'];
|
|
89
90
|
};
|
|
90
91
|
export declare type FetchColumnDataOutput = {
|
|
@@ -93,7 +94,8 @@ export declare type FetchColumnDataOutput = {
|
|
|
93
94
|
error?: Maybe<ColumnDataError>;
|
|
94
95
|
};
|
|
95
96
|
export declare type GenerateDatasetMetricsInput = {
|
|
96
|
-
|
|
97
|
+
integrationId: Scalars['String'];
|
|
98
|
+
integrationName: Scalars['String'];
|
|
97
99
|
userInputs: Scalars['json'];
|
|
98
100
|
};
|
|
99
101
|
export declare type GenerateDatasetMetricsOutput = {
|
|
@@ -153,7 +155,8 @@ export declare type PreviewTableError = {
|
|
|
153
155
|
message: Scalars['String'];
|
|
154
156
|
};
|
|
155
157
|
export declare type PreviewTableInput = {
|
|
156
|
-
|
|
158
|
+
integrationId: Scalars['String'];
|
|
159
|
+
integrationName: Scalars['String'];
|
|
157
160
|
limit: Scalars['Int'];
|
|
158
161
|
tableName: Scalars['String'];
|
|
159
162
|
};
|
|
@@ -493,6 +496,8 @@ export declare enum ClientDeletedMetrics_Update_Column {
|
|
|
493
496
|
export declare type CompanyIntegrations = {
|
|
494
497
|
__typename?: 'companyIntegrations';
|
|
495
498
|
companyId: Scalars['uuid'];
|
|
499
|
+
/** An object relationship */
|
|
500
|
+
companyWorkspace: CompanyWorkspaces;
|
|
496
501
|
/** An array relationship */
|
|
497
502
|
externalMetrics: Array<ExternalMetrics>;
|
|
498
503
|
id: Scalars['uuid'];
|
|
@@ -508,20 +513,44 @@ export declare type CompanyIntegrationsExternalMetricsArgs = {
|
|
|
508
513
|
order_by?: InputMaybe<Array<ExternalMetrics_Order_By>>;
|
|
509
514
|
where?: InputMaybe<ExternalMetrics_Bool_Exp>;
|
|
510
515
|
};
|
|
516
|
+
/** order by aggregate values of table "companyIntegrations" */
|
|
517
|
+
export declare type CompanyIntegrations_Aggregate_Order_By = {
|
|
518
|
+
count?: InputMaybe<Order_By>;
|
|
519
|
+
max?: InputMaybe<CompanyIntegrations_Max_Order_By>;
|
|
520
|
+
min?: InputMaybe<CompanyIntegrations_Min_Order_By>;
|
|
521
|
+
};
|
|
511
522
|
/** Boolean expression to filter rows from the table "companyIntegrations". All fields are combined with a logical 'AND'. */
|
|
512
523
|
export declare type CompanyIntegrations_Bool_Exp = {
|
|
513
524
|
_and?: InputMaybe<Array<CompanyIntegrations_Bool_Exp>>;
|
|
514
525
|
_not?: InputMaybe<CompanyIntegrations_Bool_Exp>;
|
|
515
526
|
_or?: InputMaybe<Array<CompanyIntegrations_Bool_Exp>>;
|
|
516
527
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
528
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
517
529
|
externalMetrics?: InputMaybe<ExternalMetrics_Bool_Exp>;
|
|
518
530
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
519
531
|
integrationId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
520
532
|
name?: InputMaybe<String_Comparison_Exp>;
|
|
521
533
|
};
|
|
534
|
+
/** order by max() on columns of table "companyIntegrations" */
|
|
535
|
+
export declare type CompanyIntegrations_Max_Order_By = {
|
|
536
|
+
companyId?: InputMaybe<Order_By>;
|
|
537
|
+
id?: InputMaybe<Order_By>;
|
|
538
|
+
/** connected source or destination id */
|
|
539
|
+
integrationId?: InputMaybe<Order_By>;
|
|
540
|
+
name?: InputMaybe<Order_By>;
|
|
541
|
+
};
|
|
542
|
+
/** order by min() on columns of table "companyIntegrations" */
|
|
543
|
+
export declare type CompanyIntegrations_Min_Order_By = {
|
|
544
|
+
companyId?: InputMaybe<Order_By>;
|
|
545
|
+
id?: InputMaybe<Order_By>;
|
|
546
|
+
/** connected source or destination id */
|
|
547
|
+
integrationId?: InputMaybe<Order_By>;
|
|
548
|
+
name?: InputMaybe<Order_By>;
|
|
549
|
+
};
|
|
522
550
|
/** Ordering options when selecting data from "companyIntegrations". */
|
|
523
551
|
export declare type CompanyIntegrations_Order_By = {
|
|
524
552
|
companyId?: InputMaybe<Order_By>;
|
|
553
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Order_By>;
|
|
525
554
|
externalMetrics_aggregate?: InputMaybe<ExternalMetrics_Aggregate_Order_By>;
|
|
526
555
|
id?: InputMaybe<Order_By>;
|
|
527
556
|
integrationId?: InputMaybe<Order_By>;
|
|
@@ -558,6 +587,8 @@ export declare type CompanySubsetTableDataOutput = {
|
|
|
558
587
|
export declare type CompanySubsetTables = {
|
|
559
588
|
__typename?: 'companySubsetTables';
|
|
560
589
|
companyId: Scalars['uuid'];
|
|
590
|
+
/** An object relationship */
|
|
591
|
+
companyWorkspace: CompanyWorkspaces;
|
|
561
592
|
isAllowMetricCreation: Scalars['Boolean'];
|
|
562
593
|
isAllowMetricDeletion: Scalars['Boolean'];
|
|
563
594
|
tableList: Scalars['jsonb'];
|
|
@@ -572,6 +603,7 @@ export declare type CompanySubsetTables_Bool_Exp = {
|
|
|
572
603
|
_not?: InputMaybe<CompanySubsetTables_Bool_Exp>;
|
|
573
604
|
_or?: InputMaybe<Array<CompanySubsetTables_Bool_Exp>>;
|
|
574
605
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
606
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
575
607
|
isAllowMetricCreation?: InputMaybe<Boolean_Comparison_Exp>;
|
|
576
608
|
isAllowMetricDeletion?: InputMaybe<Boolean_Comparison_Exp>;
|
|
577
609
|
tableList?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
@@ -579,6 +611,7 @@ export declare type CompanySubsetTables_Bool_Exp = {
|
|
|
579
611
|
/** Ordering options when selecting data from "companySubsetTables". */
|
|
580
612
|
export declare type CompanySubsetTables_Order_By = {
|
|
581
613
|
companyId?: InputMaybe<Order_By>;
|
|
614
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Order_By>;
|
|
582
615
|
isAllowMetricCreation?: InputMaybe<Order_By>;
|
|
583
616
|
isAllowMetricDeletion?: InputMaybe<Order_By>;
|
|
584
617
|
tableList?: InputMaybe<Order_By>;
|
|
@@ -594,6 +627,55 @@ export declare enum CompanySubsetTables_Select_Column {
|
|
|
594
627
|
/** column name */
|
|
595
628
|
TableList = "tableList"
|
|
596
629
|
}
|
|
630
|
+
/** columns and relationships of "companyWorkspaces" */
|
|
631
|
+
export declare type CompanyWorkspaces = {
|
|
632
|
+
__typename?: 'companyWorkspaces';
|
|
633
|
+
/** An array relationship */
|
|
634
|
+
companyIntegrations: Array<CompanyIntegrations>;
|
|
635
|
+
/** An object relationship */
|
|
636
|
+
companySubsetTable?: Maybe<CompanySubsetTables>;
|
|
637
|
+
/** An array relationship */
|
|
638
|
+
externalDashboards: Array<ExternalDashboards>;
|
|
639
|
+
id: Scalars['uuid'];
|
|
640
|
+
};
|
|
641
|
+
/** columns and relationships of "companyWorkspaces" */
|
|
642
|
+
export declare type CompanyWorkspacesCompanyIntegrationsArgs = {
|
|
643
|
+
distinct_on?: InputMaybe<Array<CompanyIntegrations_Select_Column>>;
|
|
644
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
645
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
646
|
+
order_by?: InputMaybe<Array<CompanyIntegrations_Order_By>>;
|
|
647
|
+
where?: InputMaybe<CompanyIntegrations_Bool_Exp>;
|
|
648
|
+
};
|
|
649
|
+
/** columns and relationships of "companyWorkspaces" */
|
|
650
|
+
export declare type CompanyWorkspacesExternalDashboardsArgs = {
|
|
651
|
+
distinct_on?: InputMaybe<Array<ExternalDashboards_Select_Column>>;
|
|
652
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
653
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
654
|
+
order_by?: InputMaybe<Array<ExternalDashboards_Order_By>>;
|
|
655
|
+
where?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
656
|
+
};
|
|
657
|
+
/** Boolean expression to filter rows from the table "companyWorkspaces". All fields are combined with a logical 'AND'. */
|
|
658
|
+
export declare type CompanyWorkspaces_Bool_Exp = {
|
|
659
|
+
_and?: InputMaybe<Array<CompanyWorkspaces_Bool_Exp>>;
|
|
660
|
+
_not?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
661
|
+
_or?: InputMaybe<Array<CompanyWorkspaces_Bool_Exp>>;
|
|
662
|
+
companyIntegrations?: InputMaybe<CompanyIntegrations_Bool_Exp>;
|
|
663
|
+
companySubsetTable?: InputMaybe<CompanySubsetTables_Bool_Exp>;
|
|
664
|
+
externalDashboards?: InputMaybe<ExternalDashboards_Bool_Exp>;
|
|
665
|
+
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
666
|
+
};
|
|
667
|
+
/** Ordering options when selecting data from "companyWorkspaces". */
|
|
668
|
+
export declare type CompanyWorkspaces_Order_By = {
|
|
669
|
+
companyIntegrations_aggregate?: InputMaybe<CompanyIntegrations_Aggregate_Order_By>;
|
|
670
|
+
companySubsetTable?: InputMaybe<CompanySubsetTables_Order_By>;
|
|
671
|
+
externalDashboards_aggregate?: InputMaybe<ExternalDashboards_Aggregate_Order_By>;
|
|
672
|
+
id?: InputMaybe<Order_By>;
|
|
673
|
+
};
|
|
674
|
+
/** select columns of table "companyWorkspaces" */
|
|
675
|
+
export declare enum CompanyWorkspaces_Select_Column {
|
|
676
|
+
/** column name */
|
|
677
|
+
Id = "id"
|
|
678
|
+
}
|
|
597
679
|
/** columns and relationships of "externalDashboardMetrics" */
|
|
598
680
|
export declare type ExternalDashboardMetrics = {
|
|
599
681
|
__typename?: 'externalDashboardMetrics';
|
|
@@ -805,6 +887,8 @@ export declare type ExternalDashboards = {
|
|
|
805
887
|
/** An array relationship */
|
|
806
888
|
clientDashboardMetrics: Array<ClientDashboardMetrics>;
|
|
807
889
|
companyId: Scalars['uuid'];
|
|
890
|
+
/** An object relationship */
|
|
891
|
+
companyWorkspace: CompanyWorkspaces;
|
|
808
892
|
externalDashboardId: Scalars['String'];
|
|
809
893
|
/** An array relationship */
|
|
810
894
|
externalDashboardMetrics: Array<ExternalDashboardMetrics>;
|
|
@@ -840,6 +924,12 @@ export declare type ExternalDashboardsExternalDashboardMetricsArgs = {
|
|
|
840
924
|
export declare type ExternalDashboardsFiltersArgs = {
|
|
841
925
|
path?: InputMaybe<Scalars['String']>;
|
|
842
926
|
};
|
|
927
|
+
/** order by aggregate values of table "externalDashboards" */
|
|
928
|
+
export declare type ExternalDashboards_Aggregate_Order_By = {
|
|
929
|
+
count?: InputMaybe<Order_By>;
|
|
930
|
+
max?: InputMaybe<ExternalDashboards_Max_Order_By>;
|
|
931
|
+
min?: InputMaybe<ExternalDashboards_Min_Order_By>;
|
|
932
|
+
};
|
|
843
933
|
/** Boolean expression to filter rows from the table "externalDashboards". All fields are combined with a logical 'AND'. */
|
|
844
934
|
export declare type ExternalDashboards_Bool_Exp = {
|
|
845
935
|
_and?: InputMaybe<Array<ExternalDashboards_Bool_Exp>>;
|
|
@@ -848,17 +938,33 @@ export declare type ExternalDashboards_Bool_Exp = {
|
|
|
848
938
|
clientDashboardLayouts?: InputMaybe<ClientDashboardLayout_Bool_Exp>;
|
|
849
939
|
clientDashboardMetrics?: InputMaybe<ClientDashboardMetrics_Bool_Exp>;
|
|
850
940
|
companyId?: InputMaybe<Uuid_Comparison_Exp>;
|
|
941
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
851
942
|
externalDashboardId?: InputMaybe<String_Comparison_Exp>;
|
|
852
943
|
externalDashboardMetrics?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
|
|
853
944
|
filters?: InputMaybe<Jsonb_Comparison_Exp>;
|
|
854
945
|
id?: InputMaybe<Uuid_Comparison_Exp>;
|
|
855
946
|
name?: InputMaybe<String_Comparison_Exp>;
|
|
856
947
|
};
|
|
948
|
+
/** order by max() on columns of table "externalDashboards" */
|
|
949
|
+
export declare type ExternalDashboards_Max_Order_By = {
|
|
950
|
+
companyId?: InputMaybe<Order_By>;
|
|
951
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
952
|
+
id?: InputMaybe<Order_By>;
|
|
953
|
+
name?: InputMaybe<Order_By>;
|
|
954
|
+
};
|
|
955
|
+
/** order by min() on columns of table "externalDashboards" */
|
|
956
|
+
export declare type ExternalDashboards_Min_Order_By = {
|
|
957
|
+
companyId?: InputMaybe<Order_By>;
|
|
958
|
+
externalDashboardId?: InputMaybe<Order_By>;
|
|
959
|
+
id?: InputMaybe<Order_By>;
|
|
960
|
+
name?: InputMaybe<Order_By>;
|
|
961
|
+
};
|
|
857
962
|
/** Ordering options when selecting data from "externalDashboards". */
|
|
858
963
|
export declare type ExternalDashboards_Order_By = {
|
|
859
964
|
clientDashboardLayouts_aggregate?: InputMaybe<ClientDashboardLayout_Aggregate_Order_By>;
|
|
860
965
|
clientDashboardMetrics_aggregate?: InputMaybe<ClientDashboardMetrics_Aggregate_Order_By>;
|
|
861
966
|
companyId?: InputMaybe<Order_By>;
|
|
967
|
+
companyWorkspace?: InputMaybe<CompanyWorkspaces_Order_By>;
|
|
862
968
|
externalDashboardId?: InputMaybe<Order_By>;
|
|
863
969
|
externalDashboardMetrics_aggregate?: InputMaybe<ExternalDashboardMetrics_Aggregate_Order_By>;
|
|
864
970
|
filters?: InputMaybe<Order_By>;
|
|
@@ -1641,12 +1747,16 @@ export declare type Query_Root = {
|
|
|
1641
1747
|
clientDeletedMetrics: Array<ClientDeletedMetrics>;
|
|
1642
1748
|
/** fetch data from the table: "clientDeletedMetrics" using primary key columns */
|
|
1643
1749
|
clientDeletedMetrics_by_pk?: Maybe<ClientDeletedMetrics>;
|
|
1644
|
-
/**
|
|
1750
|
+
/** An array relationship */
|
|
1645
1751
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1646
1752
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
1647
1753
|
companyIntegrations_by_pk?: Maybe<CompanyIntegrations>;
|
|
1648
1754
|
/** fetch data from the table: "companySubsetTables" */
|
|
1649
1755
|
companySubsetTables: Array<CompanySubsetTables>;
|
|
1756
|
+
/** fetch data from the table: "companyWorkspaces" */
|
|
1757
|
+
companyWorkspaces: Array<CompanyWorkspaces>;
|
|
1758
|
+
/** fetch data from the table: "companyWorkspaces" using primary key columns */
|
|
1759
|
+
companyWorkspaces_by_pk?: Maybe<CompanyWorkspaces>;
|
|
1650
1760
|
/** An array relationship */
|
|
1651
1761
|
externalDashboardMetrics: Array<ExternalDashboardMetrics>;
|
|
1652
1762
|
/** fetch data from the table: "externalDashboardMetrics" using primary key columns */
|
|
@@ -1659,7 +1769,7 @@ export declare type Query_Root = {
|
|
|
1659
1769
|
externalDashboardThemes: Array<ExternalDashboardThemes>;
|
|
1660
1770
|
/** fetch data from the table: "externalDashboardThemes" using primary key columns */
|
|
1661
1771
|
externalDashboardThemes_by_pk?: Maybe<ExternalDashboardThemes>;
|
|
1662
|
-
/**
|
|
1772
|
+
/** An array relationship */
|
|
1663
1773
|
externalDashboards: Array<ExternalDashboards>;
|
|
1664
1774
|
/** fetch data from the table: "externalDashboards" using primary key columns */
|
|
1665
1775
|
externalDashboards_by_pk?: Maybe<ExternalDashboards>;
|
|
@@ -1731,6 +1841,16 @@ export declare type Query_RootCompanySubsetTablesArgs = {
|
|
|
1731
1841
|
order_by?: InputMaybe<Array<CompanySubsetTables_Order_By>>;
|
|
1732
1842
|
where?: InputMaybe<CompanySubsetTables_Bool_Exp>;
|
|
1733
1843
|
};
|
|
1844
|
+
export declare type Query_RootCompanyWorkspacesArgs = {
|
|
1845
|
+
distinct_on?: InputMaybe<Array<CompanyWorkspaces_Select_Column>>;
|
|
1846
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
1847
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
1848
|
+
order_by?: InputMaybe<Array<CompanyWorkspaces_Order_By>>;
|
|
1849
|
+
where?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
1850
|
+
};
|
|
1851
|
+
export declare type Query_RootCompanyWorkspaces_By_PkArgs = {
|
|
1852
|
+
id: Scalars['uuid'];
|
|
1853
|
+
};
|
|
1734
1854
|
export declare type Query_RootExternalDashboardMetricsArgs = {
|
|
1735
1855
|
distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
|
|
1736
1856
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -1829,12 +1949,16 @@ export declare type Subscription_Root = {
|
|
|
1829
1949
|
clientDeletedMetrics: Array<ClientDeletedMetrics>;
|
|
1830
1950
|
/** fetch data from the table: "clientDeletedMetrics" using primary key columns */
|
|
1831
1951
|
clientDeletedMetrics_by_pk?: Maybe<ClientDeletedMetrics>;
|
|
1832
|
-
/**
|
|
1952
|
+
/** An array relationship */
|
|
1833
1953
|
companyIntegrations: Array<CompanyIntegrations>;
|
|
1834
1954
|
/** fetch data from the table: "companyIntegrations" using primary key columns */
|
|
1835
1955
|
companyIntegrations_by_pk?: Maybe<CompanyIntegrations>;
|
|
1836
1956
|
/** fetch data from the table: "companySubsetTables" */
|
|
1837
1957
|
companySubsetTables: Array<CompanySubsetTables>;
|
|
1958
|
+
/** fetch data from the table: "companyWorkspaces" */
|
|
1959
|
+
companyWorkspaces: Array<CompanyWorkspaces>;
|
|
1960
|
+
/** fetch data from the table: "companyWorkspaces" using primary key columns */
|
|
1961
|
+
companyWorkspaces_by_pk?: Maybe<CompanyWorkspaces>;
|
|
1838
1962
|
/** An array relationship */
|
|
1839
1963
|
externalDashboardMetrics: Array<ExternalDashboardMetrics>;
|
|
1840
1964
|
/** fetch data from the table: "externalDashboardMetrics" using primary key columns */
|
|
@@ -1847,7 +1971,7 @@ export declare type Subscription_Root = {
|
|
|
1847
1971
|
externalDashboardThemes: Array<ExternalDashboardThemes>;
|
|
1848
1972
|
/** fetch data from the table: "externalDashboardThemes" using primary key columns */
|
|
1849
1973
|
externalDashboardThemes_by_pk?: Maybe<ExternalDashboardThemes>;
|
|
1850
|
-
/**
|
|
1974
|
+
/** An array relationship */
|
|
1851
1975
|
externalDashboards: Array<ExternalDashboards>;
|
|
1852
1976
|
/** fetch data from the table: "externalDashboards" using primary key columns */
|
|
1853
1977
|
externalDashboards_by_pk?: Maybe<ExternalDashboards>;
|
|
@@ -1918,6 +2042,16 @@ export declare type Subscription_RootCompanySubsetTablesArgs = {
|
|
|
1918
2042
|
order_by?: InputMaybe<Array<CompanySubsetTables_Order_By>>;
|
|
1919
2043
|
where?: InputMaybe<CompanySubsetTables_Bool_Exp>;
|
|
1920
2044
|
};
|
|
2045
|
+
export declare type Subscription_RootCompanyWorkspacesArgs = {
|
|
2046
|
+
distinct_on?: InputMaybe<Array<CompanyWorkspaces_Select_Column>>;
|
|
2047
|
+
limit?: InputMaybe<Scalars['Int']>;
|
|
2048
|
+
offset?: InputMaybe<Scalars['Int']>;
|
|
2049
|
+
order_by?: InputMaybe<Array<CompanyWorkspaces_Order_By>>;
|
|
2050
|
+
where?: InputMaybe<CompanyWorkspaces_Bool_Exp>;
|
|
2051
|
+
};
|
|
2052
|
+
export declare type Subscription_RootCompanyWorkspaces_By_PkArgs = {
|
|
2053
|
+
id: Scalars['uuid'];
|
|
2054
|
+
};
|
|
1921
2055
|
export declare type Subscription_RootExternalDashboardMetricsArgs = {
|
|
1922
2056
|
distinct_on?: InputMaybe<Array<ExternalDashboardMetrics_Select_Column>>;
|
|
1923
2057
|
limit?: InputMaybe<Scalars['Int']>;
|
|
@@ -2128,9 +2262,10 @@ export declare type CreateExternalMetricMutation = {
|
|
|
2128
2262
|
} | null;
|
|
2129
2263
|
};
|
|
2130
2264
|
export declare type FetchColumnDataMutationVariables = Exact<{
|
|
2131
|
-
companyId?: InputMaybe<Scalars['String']>;
|
|
2132
2265
|
tableName?: InputMaybe<Scalars['String']>;
|
|
2133
2266
|
columnName?: InputMaybe<Scalars['String']>;
|
|
2267
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
2268
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
2134
2269
|
}>;
|
|
2135
2270
|
export declare type FetchColumnDataMutation = {
|
|
2136
2271
|
__typename?: 'mutation_root';
|
|
@@ -2148,8 +2283,9 @@ export declare type FetchColumnDataMutation = {
|
|
|
2148
2283
|
} | null;
|
|
2149
2284
|
};
|
|
2150
2285
|
export declare type GenerateDatasetMetricsMutationVariables = Exact<{
|
|
2151
|
-
companyId?: InputMaybe<Scalars['String']>;
|
|
2152
2286
|
userInputs?: InputMaybe<Scalars['json']>;
|
|
2287
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
2288
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
2153
2289
|
}>;
|
|
2154
2290
|
export declare type GenerateDatasetMetricsMutation = {
|
|
2155
2291
|
__typename?: 'mutation_root';
|
|
@@ -2190,6 +2326,19 @@ export declare type GetClientDashboardLayoutQuery = {
|
|
|
2190
2326
|
externalDashboardId: any;
|
|
2191
2327
|
} | null;
|
|
2192
2328
|
};
|
|
2329
|
+
export declare type CompanyIntegrationQueryVariables = Exact<{
|
|
2330
|
+
externalDashboardId?: InputMaybe<Scalars['uuid']>;
|
|
2331
|
+
}>;
|
|
2332
|
+
export declare type CompanyIntegrationQuery = {
|
|
2333
|
+
__typename?: 'query_root';
|
|
2334
|
+
companyIntegrations: Array<{
|
|
2335
|
+
__typename?: 'companyIntegrations';
|
|
2336
|
+
companyId: any;
|
|
2337
|
+
id: any;
|
|
2338
|
+
integrationId: any;
|
|
2339
|
+
name: string;
|
|
2340
|
+
}>;
|
|
2341
|
+
};
|
|
2193
2342
|
export declare type CompanySubsetTableDataMutationVariables = Exact<{
|
|
2194
2343
|
clientId?: InputMaybe<Scalars['String']>;
|
|
2195
2344
|
companyId?: InputMaybe<Scalars['String']>;
|
|
@@ -2392,9 +2541,10 @@ export declare type MarkClientDashboardLayoutChangeMutation = {
|
|
|
2392
2541
|
} | null;
|
|
2393
2542
|
};
|
|
2394
2543
|
export declare type PreviewTableMutationVariables = Exact<{
|
|
2395
|
-
companyId?: InputMaybe<Scalars['String']>;
|
|
2396
2544
|
tableName?: InputMaybe<Scalars['String']>;
|
|
2397
2545
|
limit?: InputMaybe<Scalars['Int']>;
|
|
2546
|
+
integrationId?: InputMaybe<Scalars['String']>;
|
|
2547
|
+
integrationName?: InputMaybe<Scalars['String']>;
|
|
2398
2548
|
}>;
|
|
2399
2549
|
export declare type PreviewTableMutation = {
|
|
2400
2550
|
__typename?: 'mutation_root';
|
|
@@ -2569,23 +2719,27 @@ export declare const useCreateExternalMetricMutation: <TError = unknown, TContex
|
|
|
2569
2719
|
isEnableGroupBy?: InputMaybe<boolean> | undefined;
|
|
2570
2720
|
groupBy?: InputMaybe<Scalars['jsonb']>;
|
|
2571
2721
|
}>, TContext>;
|
|
2572
|
-
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($
|
|
2722
|
+
export declare const FetchColumnDataDocument = "\n mutation FetchColumnData($tableName: String = \"\", $columnName: String = \"\", $integrationId: String = \"\", $integrationName: String = \"\") {\n fetchColumnData(\n input: {columnName: $columnName, tableName: $tableName, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n label\n value\n }\n error {\n message\n }\n }\n}\n ";
|
|
2573
2723
|
export declare const useFetchColumnDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<FetchColumnDataMutation, TError, Exact<{
|
|
2574
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2575
2724
|
tableName?: InputMaybe<string> | undefined;
|
|
2576
2725
|
columnName?: InputMaybe<string> | undefined;
|
|
2726
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2727
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2577
2728
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<FetchColumnDataMutation, TError, Exact<{
|
|
2578
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2579
2729
|
tableName?: InputMaybe<string> | undefined;
|
|
2580
2730
|
columnName?: InputMaybe<string> | undefined;
|
|
2731
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2732
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2581
2733
|
}>, TContext>;
|
|
2582
|
-
export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($
|
|
2734
|
+
export declare const GenerateDatasetMetricsDocument = "\n mutation GenerateDatasetMetrics($userInputs: json = \"\", $integrationName: String = \"\", $integrationId: String = \"\") {\n generateDatasetMetrics(\n input: {userInputs: $userInputs, integrationName: $integrationName, integrationId: $integrationId}\n ) {\n error\n query\n result\n }\n}\n ";
|
|
2583
2735
|
export declare const useGenerateDatasetMetricsMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateDatasetMetricsMutation, TError, Exact<{
|
|
2584
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2585
2736
|
userInputs?: InputMaybe<Scalars['json']>;
|
|
2737
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2738
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2586
2739
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<GenerateDatasetMetricsMutation, TError, Exact<{
|
|
2587
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2588
2740
|
userInputs?: InputMaybe<Scalars['json']>;
|
|
2741
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2742
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2589
2743
|
}>, TContext>;
|
|
2590
2744
|
export declare const GenerateEmbeddedMeticDocument = "\n mutation GenerateEmbeddedMetic($clientId: String = \"\", $companyId: String = \"\", $queryPrompt: String = \"\", $timeGrain: String = \"\") {\n generateEmbeddedMetic(\n input: {clientId: $clientId, companyId: $companyId, queryPrompt: $queryPrompt, timeGrain: $timeGrain}\n ) {\n query\n result\n error {\n message\n }\n }\n}\n ";
|
|
2591
2745
|
export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<GenerateEmbeddedMeticMutation, TError, Exact<{
|
|
@@ -2601,6 +2755,8 @@ export declare const useGenerateEmbeddedMeticMutation: <TError = unknown, TConte
|
|
|
2601
2755
|
}>, TContext>;
|
|
2602
2756
|
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 ";
|
|
2603
2757
|
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>;
|
|
2758
|
+
export declare const CompanyIntegrationDocument = "\n query CompanyIntegration($externalDashboardId: uuid = \"\") {\n companyIntegrations(\n where: {companyWorkspace: {externalDashboards: {id: {_eq: $externalDashboardId}}}}\n ) {\n companyId\n id\n integrationId\n name\n }\n}\n ";
|
|
2759
|
+
export declare const useCompanyIntegrationQuery: <TData = CompanyIntegrationQuery, TError = unknown>(variables?: CompanyIntegrationQueryVariables, options?: UseQueryOptions<CompanyIntegrationQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
2604
2760
|
export declare const CompanySubsetTableDataDocument = "\n mutation CompanySubsetTableData($clientId: String = \"\", $companyId: String = \"\", $workspaceId: String = \"\") {\n companySubsetTableData(\n input: {clientId: $clientId, companyId: $companyId, workspaceId: $workspaceId}\n ) {\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 ";
|
|
2605
2761
|
export declare const useCompanySubsetTableDataMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<CompanySubsetTableDataMutation, TError, Exact<{
|
|
2606
2762
|
clientId?: InputMaybe<string> | undefined;
|
|
@@ -2655,15 +2811,17 @@ export declare const useMarkClientDashboardLayoutChangeMutation: <TError = unkno
|
|
|
2655
2811
|
clientId: Scalars['String'];
|
|
2656
2812
|
externalDashboardId: Scalars['uuid'];
|
|
2657
2813
|
}>, TContext>;
|
|
2658
|
-
export declare const PreviewTableDocument = "\n mutation PreviewTable($
|
|
2814
|
+
export declare const PreviewTableDocument = "\n mutation PreviewTable($tableName: String = \"\", $limit: Int = 10, $integrationId: String = \"\", $integrationName: String = \"\") {\n previewTable(\n input: {tableName: $tableName, limit: $limit, integrationId: $integrationId, integrationName: $integrationName}\n ) {\n data {\n data\n isError\n name\n }\n error {\n message\n }\n }\n}\n ";
|
|
2659
2815
|
export declare const usePreviewTableMutation: <TError = unknown, TContext = unknown>(options?: UseMutationOptions<PreviewTableMutation, TError, Exact<{
|
|
2660
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2661
2816
|
tableName?: InputMaybe<string> | undefined;
|
|
2662
2817
|
limit?: InputMaybe<number> | undefined;
|
|
2818
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2819
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2663
2820
|
}>, TContext> | undefined) => import("react-query").UseMutationResult<PreviewTableMutation, TError, Exact<{
|
|
2664
|
-
companyId?: InputMaybe<string> | undefined;
|
|
2665
2821
|
tableName?: InputMaybe<string> | undefined;
|
|
2666
2822
|
limit?: InputMaybe<number> | undefined;
|
|
2823
|
+
integrationId?: InputMaybe<string> | undefined;
|
|
2824
|
+
integrationName?: InputMaybe<string> | undefined;
|
|
2667
2825
|
}>, TContext>;
|
|
2668
2826
|
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 ";
|
|
2669
2827
|
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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databrainhq/plugin",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.22",
|
|
4
4
|
"description": "Databrain app dashboard ui plugin.",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
},
|
|
17
17
|
"./dist/style.css": "./dist/style.css"
|
|
18
18
|
},
|
|
19
|
-
"engines": {
|
|
20
|
-
"node": "^14.13.1 || >=16.15.1",
|
|
21
|
-
"yarn": "please-use-npm"
|
|
22
|
-
},
|
|
23
19
|
"scripts": {
|
|
24
20
|
"serve": "vite --port 3005",
|
|
25
21
|
"build:css": "tailwindcss build -i src/index.css -o dist/index.css",
|
|
@@ -83,9 +79,11 @@
|
|
|
83
79
|
"@headlessui/react": "^1.7.2",
|
|
84
80
|
"@tanstack/match-sorter-utils": "^8.8.4",
|
|
85
81
|
"@tanstack/react-table": "^8.7.9",
|
|
82
|
+
"ace-builds": "^1.17.0",
|
|
86
83
|
"classnames": "^2.3.2",
|
|
87
84
|
"echarts": "^5.4.1",
|
|
88
85
|
"echarts-for-react": "^3.0.2",
|
|
86
|
+
"react-ace": "^10.1.0",
|
|
89
87
|
"react-error-boundary": "^3.1.4",
|
|
90
88
|
"react-grid-layout": "^1.3.4",
|
|
91
89
|
"react-hook-form": "^7.33.1",
|