@devtable/dashboard 10.41.0 → 10.42.1
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/api-caller/index.d.ts +5 -2
- package/dist/api-caller/request.d.ts +25 -8
- package/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +4 -4
- package/dist/components/plugins/plugin-context.d.ts +4 -4
- package/dist/contexts/panel-context.d.ts +8 -8
- package/dist/dashboard-editor/model/datasources/columns.d.ts +0 -1
- package/dist/dashboard-editor/model/datasources/datasource.d.ts +10 -7
- package/dist/dashboard-editor/model/datasources/index.d.ts +13 -16
- package/dist/dashboard-editor/model/datasources/indexes.d.ts +0 -1
- package/dist/dashboard-editor/model/datasources/table-data.d.ts +1 -1
- package/dist/dashboard-editor/model/datasources/tables.d.ts +0 -1
- package/dist/dashboard-editor/model/panels/panel.d.ts +2 -2
- package/dist/dashboard-editor/model/panels/panels.d.ts +16 -16
- package/dist/dashboard-editor/model/queries/index.d.ts +7 -7
- package/dist/dashboard.es.js +1271 -1286
- package/dist/dashboard.umd.js +47 -107
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +2 -2
- package/dist/model/render-model/dashboard/content/panels/panels.d.ts +14 -14
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +5 -5
- package/dist/model/render-model/dashboard/content/queries/query.d.ts +2 -1
- package/dist/stats.html +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DataSourceType, TPayloadForSQL } from '~/model';
|
|
2
|
+
import { TAdditionalQueryInfo } from './request';
|
|
2
3
|
import { IDataSource } from './types';
|
|
3
4
|
import { AxiosError } from 'axios';
|
|
4
5
|
import { AnyObject } from '..';
|
|
@@ -18,15 +19,17 @@ interface IQueryBySQL {
|
|
|
18
19
|
post_process: string;
|
|
19
20
|
};
|
|
20
21
|
payload: TPayloadForSQL;
|
|
22
|
+
additionals: TAdditionalQueryInfo;
|
|
21
23
|
}
|
|
22
|
-
export declare function queryBySQL({ query, name, payload }: IQueryBySQL, signal: AbortSignal): Promise<any>;
|
|
24
|
+
export declare function queryBySQL({ query, name, payload, additionals }: IQueryBySQL, signal: AbortSignal): Promise<any>;
|
|
23
25
|
interface IQueryByHTTP {
|
|
24
26
|
type: DataSourceType;
|
|
25
27
|
key: string;
|
|
26
28
|
configString: string;
|
|
27
29
|
name: string;
|
|
30
|
+
additionals: TAdditionalQueryInfo;
|
|
28
31
|
}
|
|
29
|
-
export declare function queryByHTTP({ type, key, configString, name }: IQueryByHTTP, signal: AbortSignal): Promise<import("axios").AxiosResponse<AnyObject, any> | AxiosError<AnyObject, any>>;
|
|
32
|
+
export declare function queryByHTTP({ type, key, configString, name, additionals }: IQueryByHTTP, signal: AbortSignal): Promise<import("axios").AxiosResponse<AnyObject, any> | AxiosError<AnyObject, any>>;
|
|
30
33
|
export declare type TQuerySources = Record<string, string[]>;
|
|
31
34
|
export declare function listDataSources(): Promise<IDataSource[]>;
|
|
32
35
|
export declare type GlobalSQLSnippetDBType = {
|
|
@@ -1,33 +1,50 @@
|
|
|
1
|
-
import { DataSourceType } from '~/model';
|
|
2
|
-
import { AnyObject, IDashboardConfig } from '..';
|
|
3
|
-
import { DefaultApiClient, IAPIClient, IAPIClientRequestOptions } from '../shared';
|
|
4
1
|
import { AxiosResponse, Method } from 'axios';
|
|
5
|
-
|
|
2
|
+
import { DataSourceType, TDashboardState } from '~/model';
|
|
3
|
+
import { AnyObject, IDashboardConfig } from '..';
|
|
4
|
+
import { DefaultApiClient, IAPIClient } from '../shared';
|
|
5
|
+
export { DefaultApiClient, FacadeApiClient } from '../shared';
|
|
6
6
|
export type { IAPIClient, IAPIClientRequestOptions } from '../shared';
|
|
7
|
+
export declare type TAdditionalQueryInfo = {
|
|
8
|
+
content_id: string;
|
|
9
|
+
query_id: string;
|
|
10
|
+
params: TDashboardState;
|
|
11
|
+
};
|
|
7
12
|
export declare type TQueryPayload = {
|
|
8
13
|
type: DataSourceType;
|
|
9
14
|
key: string;
|
|
10
15
|
query: string;
|
|
11
16
|
env?: AnyObject;
|
|
17
|
+
} & TAdditionalQueryInfo;
|
|
18
|
+
export declare type TQueryStructureRequest = {
|
|
19
|
+
query_type: 'TABLES' | 'COLUMNS' | 'DATA' | 'INDEXES' | 'COUNT';
|
|
20
|
+
type: 'postgresql' | 'mysql';
|
|
21
|
+
key: string;
|
|
22
|
+
table_schema: string;
|
|
23
|
+
table_name: string;
|
|
24
|
+
limit?: number;
|
|
25
|
+
offset?: number;
|
|
12
26
|
};
|
|
13
27
|
export interface IDashboardAPIClient extends IAPIClient {
|
|
14
28
|
query: <T = $TSFixMe>(signal?: AbortSignal) => (data: TQueryPayload, options?: AnyObject) => Promise<T>;
|
|
15
29
|
httpDataSourceQuery: <T = $TSFixMe>(signal?: AbortSignal) => (data: TQueryPayload, options?: AnyObject) => Promise<AxiosResponse<T>>;
|
|
30
|
+
structure: <T = $TSFixMe>(signal?: AbortSignal) => (data: TQueryStructureRequest, options?: AnyObject) => Promise<T>;
|
|
16
31
|
}
|
|
17
32
|
export declare class DashboardApiClient extends DefaultApiClient implements IDashboardAPIClient {
|
|
18
33
|
makeQueryENV?: (() => AnyObject) | null;
|
|
19
34
|
query<T>(signal: AbortSignal | undefined): (data: TQueryPayload, options?: AnyObject) => Promise<T>;
|
|
20
35
|
httpDataSourceQuery<T>(signal: AbortSignal | undefined): (data: TQueryPayload, options?: AnyObject) => Promise<AxiosResponse<T>>;
|
|
36
|
+
structure<T>(signal?: AbortSignal): (data: TQueryStructureRequest, options?: AnyObject) => Promise<T>;
|
|
21
37
|
}
|
|
22
38
|
export declare class DashboardApiFacadeClient implements IDashboardAPIClient {
|
|
23
39
|
implementation: IDashboardAPIClient;
|
|
24
40
|
constructor(implementation: IDashboardAPIClient);
|
|
25
41
|
query<T>(signal?: AbortSignal): (data: TQueryPayload, options?: AnyObject | undefined) => Promise<T>;
|
|
26
42
|
httpDataSourceQuery<T>(signal?: AbortSignal): (data: TQueryPayload, options?: AnyObject | undefined) => Promise<AxiosResponse<T, any>>;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
structure(signal?: AbortSignal): (data: TQueryStructureRequest, options?: AnyObject | undefined) => Promise<any>;
|
|
44
|
+
getRequest<T>(method: Method, signal?: AbortSignal): (url: string, data: import("../shared").AnyObject, options: import("..").IAPIClientRequestOptions, forResponse?: boolean | undefined) => Promise<T>;
|
|
45
|
+
get<T>(signal?: AbortSignal): (url: string, data: import("../shared").AnyObject, options: import("..").IAPIClientRequestOptions, forResponse?: boolean | undefined) => Promise<T>;
|
|
46
|
+
post<T>(signal?: AbortSignal): (url: string, data: import("../shared").AnyObject, options: import("..").IAPIClientRequestOptions, forResponse?: boolean | undefined) => Promise<T>;
|
|
47
|
+
put<T>(signal?: AbortSignal): (url: string, data: import("../shared").AnyObject, options: import("..").IAPIClientRequestOptions, forResponse?: boolean | undefined) => Promise<T>;
|
|
31
48
|
}
|
|
32
49
|
export declare function configureAPIClient(config: IDashboardConfig): void;
|
|
33
50
|
/**
|
|
@@ -2013,12 +2013,12 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
2013
2013
|
readonly rootModel: any;
|
|
2014
2014
|
readonly contentModel: any;
|
|
2015
2015
|
readonly payload: any;
|
|
2016
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
2017
2016
|
readonly formattedSQL: any;
|
|
2018
2017
|
readonly typedAsSQL: boolean;
|
|
2019
2018
|
readonly typedAsHTTP: boolean;
|
|
2020
2019
|
readonly datasource: any;
|
|
2021
2020
|
readonly httpConfigString: string;
|
|
2021
|
+
readonly additionalQueryInfo: import("../../../..").TAdditionalQueryInfo;
|
|
2022
2022
|
} & {
|
|
2023
2023
|
readonly stateMessage: string;
|
|
2024
2024
|
} & {
|
|
@@ -2083,12 +2083,12 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
2083
2083
|
readonly rootModel: any;
|
|
2084
2084
|
readonly contentModel: any;
|
|
2085
2085
|
readonly payload: any;
|
|
2086
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
2087
2086
|
readonly formattedSQL: any;
|
|
2088
2087
|
readonly typedAsSQL: boolean;
|
|
2089
2088
|
readonly typedAsHTTP: boolean;
|
|
2090
2089
|
readonly datasource: any;
|
|
2091
2090
|
readonly httpConfigString: string;
|
|
2091
|
+
readonly additionalQueryInfo: import("../../../..").TAdditionalQueryInfo;
|
|
2092
2092
|
} & {
|
|
2093
2093
|
readonly stateMessage: string;
|
|
2094
2094
|
} & {
|
|
@@ -3734,12 +3734,12 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
3734
3734
|
readonly rootModel: any;
|
|
3735
3735
|
readonly contentModel: any;
|
|
3736
3736
|
readonly payload: any;
|
|
3737
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3738
3737
|
readonly formattedSQL: any;
|
|
3739
3738
|
readonly typedAsSQL: boolean;
|
|
3740
3739
|
readonly typedAsHTTP: boolean;
|
|
3741
3740
|
readonly datasource: any;
|
|
3742
3741
|
readonly httpConfigString: string;
|
|
3742
|
+
readonly additionalQueryInfo: import("../../../..").TAdditionalQueryInfo;
|
|
3743
3743
|
} & {
|
|
3744
3744
|
readonly stateMessage: string;
|
|
3745
3745
|
} & {
|
|
@@ -3804,12 +3804,12 @@ export declare function usePanelFullScreen(view: ViewMetaInstance, panelID: stri
|
|
|
3804
3804
|
readonly rootModel: any;
|
|
3805
3805
|
readonly contentModel: any;
|
|
3806
3806
|
readonly payload: any;
|
|
3807
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3808
3807
|
readonly formattedSQL: any;
|
|
3809
3808
|
readonly typedAsSQL: boolean;
|
|
3810
3809
|
readonly typedAsHTTP: boolean;
|
|
3811
3810
|
readonly datasource: any;
|
|
3812
3811
|
readonly httpConfigString: string;
|
|
3812
|
+
readonly additionalQueryInfo: import("../../../..").TAdditionalQueryInfo;
|
|
3813
3813
|
} & {
|
|
3814
3814
|
readonly stateMessage: string;
|
|
3815
3815
|
} & {
|
|
@@ -2029,12 +2029,12 @@ export declare const tokens: {
|
|
|
2029
2029
|
readonly rootModel: any;
|
|
2030
2030
|
readonly contentModel: any;
|
|
2031
2031
|
readonly payload: any;
|
|
2032
|
-
readonly dashboardState: import("../../model").TDashboardState;
|
|
2033
2032
|
readonly formattedSQL: any;
|
|
2034
2033
|
readonly typedAsSQL: boolean;
|
|
2035
2034
|
readonly typedAsHTTP: boolean;
|
|
2036
2035
|
readonly datasource: any;
|
|
2037
2036
|
readonly httpConfigString: string;
|
|
2037
|
+
readonly additionalQueryInfo: import("../..").TAdditionalQueryInfo;
|
|
2038
2038
|
} & {
|
|
2039
2039
|
readonly stateMessage: string;
|
|
2040
2040
|
} & {
|
|
@@ -2099,12 +2099,12 @@ export declare const tokens: {
|
|
|
2099
2099
|
readonly rootModel: any;
|
|
2100
2100
|
readonly contentModel: any;
|
|
2101
2101
|
readonly payload: any;
|
|
2102
|
-
readonly dashboardState: import("../../model").TDashboardState;
|
|
2103
2102
|
readonly formattedSQL: any;
|
|
2104
2103
|
readonly typedAsSQL: boolean;
|
|
2105
2104
|
readonly typedAsHTTP: boolean;
|
|
2106
2105
|
readonly datasource: any;
|
|
2107
2106
|
readonly httpConfigString: string;
|
|
2107
|
+
readonly additionalQueryInfo: import("../..").TAdditionalQueryInfo;
|
|
2108
2108
|
} & {
|
|
2109
2109
|
readonly stateMessage: string;
|
|
2110
2110
|
} & {
|
|
@@ -3760,12 +3760,12 @@ export declare const tokens: {
|
|
|
3760
3760
|
readonly rootModel: any;
|
|
3761
3761
|
readonly contentModel: any;
|
|
3762
3762
|
readonly payload: any;
|
|
3763
|
-
readonly dashboardState: import("../../model").TDashboardState;
|
|
3764
3763
|
readonly formattedSQL: any;
|
|
3765
3764
|
readonly typedAsSQL: boolean;
|
|
3766
3765
|
readonly typedAsHTTP: boolean;
|
|
3767
3766
|
readonly datasource: any;
|
|
3768
3767
|
readonly httpConfigString: string;
|
|
3768
|
+
readonly additionalQueryInfo: import("../..").TAdditionalQueryInfo;
|
|
3769
3769
|
} & {
|
|
3770
3770
|
readonly stateMessage: string;
|
|
3771
3771
|
} & {
|
|
@@ -3830,12 +3830,12 @@ export declare const tokens: {
|
|
|
3830
3830
|
readonly rootModel: any;
|
|
3831
3831
|
readonly contentModel: any;
|
|
3832
3832
|
readonly payload: any;
|
|
3833
|
-
readonly dashboardState: import("../../model").TDashboardState;
|
|
3834
3833
|
readonly formattedSQL: any;
|
|
3835
3834
|
readonly typedAsSQL: boolean;
|
|
3836
3835
|
readonly typedAsHTTP: boolean;
|
|
3837
3836
|
readonly datasource: any;
|
|
3838
3837
|
readonly httpConfigString: string;
|
|
3838
|
+
readonly additionalQueryInfo: import("../..").TAdditionalQueryInfo;
|
|
3839
3839
|
} & {
|
|
3840
3840
|
readonly stateMessage: string;
|
|
3841
3841
|
} & {
|
|
@@ -2019,12 +2019,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
2019
2019
|
readonly rootModel: any;
|
|
2020
2020
|
readonly contentModel: any;
|
|
2021
2021
|
readonly payload: any;
|
|
2022
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
2023
2022
|
readonly formattedSQL: any;
|
|
2024
2023
|
readonly typedAsSQL: boolean;
|
|
2025
2024
|
readonly typedAsHTTP: boolean;
|
|
2026
2025
|
readonly datasource: any;
|
|
2027
2026
|
readonly httpConfigString: string;
|
|
2027
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
2028
2028
|
} & {
|
|
2029
2029
|
readonly stateMessage: string;
|
|
2030
2030
|
} & {
|
|
@@ -2089,12 +2089,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
2089
2089
|
readonly rootModel: any;
|
|
2090
2090
|
readonly contentModel: any;
|
|
2091
2091
|
readonly payload: any;
|
|
2092
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
2093
2092
|
readonly formattedSQL: any;
|
|
2094
2093
|
readonly typedAsSQL: boolean;
|
|
2095
2094
|
readonly typedAsHTTP: boolean;
|
|
2096
2095
|
readonly datasource: any;
|
|
2097
2096
|
readonly httpConfigString: string;
|
|
2097
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
2098
2098
|
} & {
|
|
2099
2099
|
readonly stateMessage: string;
|
|
2100
2100
|
} & {
|
|
@@ -3740,12 +3740,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
3740
3740
|
readonly rootModel: any;
|
|
3741
3741
|
readonly contentModel: any;
|
|
3742
3742
|
readonly payload: any;
|
|
3743
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3744
3743
|
readonly formattedSQL: any;
|
|
3745
3744
|
readonly typedAsSQL: boolean;
|
|
3746
3745
|
readonly typedAsHTTP: boolean;
|
|
3747
3746
|
readonly datasource: any;
|
|
3748
3747
|
readonly httpConfigString: string;
|
|
3748
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
3749
3749
|
} & {
|
|
3750
3750
|
readonly stateMessage: string;
|
|
3751
3751
|
} & {
|
|
@@ -3810,12 +3810,12 @@ export declare const useRenderPanelContext: () => {
|
|
|
3810
3810
|
readonly rootModel: any;
|
|
3811
3811
|
readonly contentModel: any;
|
|
3812
3812
|
readonly payload: any;
|
|
3813
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
3814
3813
|
readonly formattedSQL: any;
|
|
3815
3814
|
readonly typedAsSQL: boolean;
|
|
3816
3815
|
readonly typedAsHTTP: boolean;
|
|
3817
3816
|
readonly datasource: any;
|
|
3818
3817
|
readonly httpConfigString: string;
|
|
3818
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
3819
3819
|
} & {
|
|
3820
3820
|
readonly stateMessage: string;
|
|
3821
3821
|
} & {
|
|
@@ -5854,12 +5854,12 @@ export declare const useEditPanelContext: () => {
|
|
|
5854
5854
|
readonly rootModel: any;
|
|
5855
5855
|
readonly contentModel: any;
|
|
5856
5856
|
readonly payload: any;
|
|
5857
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
5858
5857
|
readonly formattedSQL: any;
|
|
5859
5858
|
readonly typedAsSQL: boolean;
|
|
5860
5859
|
readonly typedAsHTTP: boolean;
|
|
5861
5860
|
readonly datasource: any;
|
|
5862
5861
|
readonly httpConfigString: string;
|
|
5862
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
5863
5863
|
} & {
|
|
5864
5864
|
readonly stateMessage: string;
|
|
5865
5865
|
} & {
|
|
@@ -5924,12 +5924,12 @@ export declare const useEditPanelContext: () => {
|
|
|
5924
5924
|
readonly rootModel: any;
|
|
5925
5925
|
readonly contentModel: any;
|
|
5926
5926
|
readonly payload: any;
|
|
5927
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
5928
5927
|
readonly formattedSQL: any;
|
|
5929
5928
|
readonly typedAsSQL: boolean;
|
|
5930
5929
|
readonly typedAsHTTP: boolean;
|
|
5931
5930
|
readonly datasource: any;
|
|
5932
5931
|
readonly httpConfigString: string;
|
|
5932
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
5933
5933
|
} & {
|
|
5934
5934
|
readonly stateMessage: string;
|
|
5935
5935
|
} & {
|
|
@@ -7585,12 +7585,12 @@ export declare const useEditPanelContext: () => {
|
|
|
7585
7585
|
readonly rootModel: any;
|
|
7586
7586
|
readonly contentModel: any;
|
|
7587
7587
|
readonly payload: any;
|
|
7588
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
7589
7588
|
readonly formattedSQL: any;
|
|
7590
7589
|
readonly typedAsSQL: boolean;
|
|
7591
7590
|
readonly typedAsHTTP: boolean;
|
|
7592
7591
|
readonly datasource: any;
|
|
7593
7592
|
readonly httpConfigString: string;
|
|
7593
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
7594
7594
|
} & {
|
|
7595
7595
|
readonly stateMessage: string;
|
|
7596
7596
|
} & {
|
|
@@ -7655,12 +7655,12 @@ export declare const useEditPanelContext: () => {
|
|
|
7655
7655
|
readonly rootModel: any;
|
|
7656
7656
|
readonly contentModel: any;
|
|
7657
7657
|
readonly payload: any;
|
|
7658
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
7659
7658
|
readonly formattedSQL: any;
|
|
7660
7659
|
readonly typedAsSQL: boolean;
|
|
7661
7660
|
readonly typedAsHTTP: boolean;
|
|
7662
7661
|
readonly datasource: any;
|
|
7663
7662
|
readonly httpConfigString: string;
|
|
7663
|
+
readonly additionalQueryInfo: import("..").TAdditionalQueryInfo;
|
|
7664
7664
|
} & {
|
|
7665
7665
|
readonly stateMessage: string;
|
|
7666
7666
|
} & {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
+
import { AnyObject } from '~/types';
|
|
3
|
+
import { ColumnInfoType } from './columns';
|
|
4
|
+
import { IndexInfoType } from './indexes';
|
|
2
5
|
export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
3
6
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
4
7
|
type: import("mobx-state-tree").ISimpleType<import("../../../model").DataSourceType>;
|
|
@@ -12,21 +15,19 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
12
15
|
}, {
|
|
13
16
|
readonly loading: boolean;
|
|
14
17
|
readonly empty: boolean;
|
|
15
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
16
18
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
17
19
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
18
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
20
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ColumnInfoType[], ColumnInfoType[], ColumnInfoType[]>, [undefined]>;
|
|
19
21
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
20
22
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
21
23
|
}, {
|
|
22
24
|
readonly loading: boolean;
|
|
23
25
|
readonly empty: boolean;
|
|
24
|
-
readonly sql: string;
|
|
25
26
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
26
27
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
27
28
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
28
29
|
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
29
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
30
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<AnyObject[], AnyObject[], AnyObject[]>, [undefined]>;
|
|
30
31
|
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
31
32
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
32
33
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
@@ -40,7 +41,7 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
40
41
|
readonly loading: boolean;
|
|
41
42
|
readonly empty: boolean;
|
|
42
43
|
readonly maxPage: number;
|
|
43
|
-
readonly
|
|
44
|
+
readonly offset: number;
|
|
44
45
|
readonly countSql: string;
|
|
45
46
|
} & {
|
|
46
47
|
setPage(page: number): void;
|
|
@@ -50,17 +51,19 @@ export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
|
50
51
|
afterCreate(): void;
|
|
51
52
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
52
53
|
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
53
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<
|
|
54
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<IndexInfoType[], IndexInfoType[], IndexInfoType[]>, [undefined]>;
|
|
54
55
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
55
56
|
error: import("mobx-state-tree").IType<any, any, any>;
|
|
56
57
|
}, {
|
|
57
58
|
readonly loading: boolean;
|
|
58
59
|
readonly empty: boolean;
|
|
59
|
-
readonly sql: string;
|
|
60
60
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
61
61
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
62
62
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
63
|
}, {
|
|
64
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
65
|
+
readonly reloadConditionString: string;
|
|
66
|
+
} & {
|
|
64
67
|
controllers: {
|
|
65
68
|
tables: AbortController;
|
|
66
69
|
columns: AbortController;
|
|
@@ -14,7 +14,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
14
14
|
}, {
|
|
15
15
|
readonly loading: boolean;
|
|
16
16
|
readonly empty: boolean;
|
|
17
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
18
17
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
19
18
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
20
19
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
@@ -23,7 +22,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
23
22
|
}, {
|
|
24
23
|
readonly loading: boolean;
|
|
25
24
|
readonly empty: boolean;
|
|
26
|
-
readonly sql: string;
|
|
27
25
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
28
26
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
29
27
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -42,7 +40,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
42
40
|
readonly loading: boolean;
|
|
43
41
|
readonly empty: boolean;
|
|
44
42
|
readonly maxPage: number;
|
|
45
|
-
readonly
|
|
43
|
+
readonly offset: number;
|
|
46
44
|
readonly countSql: string;
|
|
47
45
|
} & {
|
|
48
46
|
setPage(page: number): void;
|
|
@@ -58,11 +56,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
58
56
|
}, {
|
|
59
57
|
readonly loading: boolean;
|
|
60
58
|
readonly empty: boolean;
|
|
61
|
-
readonly sql: string;
|
|
62
59
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
63
60
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
64
61
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
65
62
|
}, {
|
|
63
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
64
|
+
readonly reloadConditionString: string;
|
|
65
|
+
} & {
|
|
66
66
|
controllers: {
|
|
67
67
|
tables: AbortController;
|
|
68
68
|
columns: AbortController;
|
|
@@ -100,7 +100,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
100
100
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
101
101
|
readonly loading: boolean;
|
|
102
102
|
readonly empty: boolean;
|
|
103
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
104
103
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
105
104
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType>, [undefined]>;
|
|
106
105
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -108,7 +107,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
108
107
|
}, {
|
|
109
108
|
readonly loading: boolean;
|
|
110
109
|
readonly empty: boolean;
|
|
111
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
112
110
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
113
111
|
columns: {
|
|
114
112
|
data: import("./columns").ColumnInfoType[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>>;
|
|
@@ -117,7 +115,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
117
115
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
118
116
|
readonly loading: boolean;
|
|
119
117
|
readonly empty: boolean;
|
|
120
|
-
readonly sql: string;
|
|
121
118
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
122
119
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
123
120
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -125,7 +122,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
125
122
|
}, {
|
|
126
123
|
readonly loading: boolean;
|
|
127
124
|
readonly empty: boolean;
|
|
128
|
-
readonly sql: string;
|
|
129
125
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
130
126
|
tableData: {
|
|
131
127
|
page: number;
|
|
@@ -144,7 +140,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
144
140
|
readonly loading: boolean;
|
|
145
141
|
readonly empty: boolean;
|
|
146
142
|
readonly maxPage: number;
|
|
147
|
-
readonly
|
|
143
|
+
readonly offset: number;
|
|
148
144
|
readonly countSql: string;
|
|
149
145
|
} & {
|
|
150
146
|
setPage(page: number): void;
|
|
@@ -169,7 +165,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
169
165
|
readonly loading: boolean;
|
|
170
166
|
readonly empty: boolean;
|
|
171
167
|
readonly maxPage: number;
|
|
172
|
-
readonly
|
|
168
|
+
readonly offset: number;
|
|
173
169
|
readonly countSql: string;
|
|
174
170
|
} & {
|
|
175
171
|
setPage(page: number): void;
|
|
@@ -185,7 +181,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
185
181
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
186
182
|
readonly loading: boolean;
|
|
187
183
|
readonly empty: boolean;
|
|
188
|
-
readonly sql: string;
|
|
189
184
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
190
185
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./indexes").IndexInfoType[], import("./indexes").IndexInfoType[], import("./indexes").IndexInfoType[]>, [undefined]>;
|
|
191
186
|
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"error" | "loading" | "idle">, [undefined]>;
|
|
@@ -193,11 +188,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
193
188
|
}, {
|
|
194
189
|
readonly loading: boolean;
|
|
195
190
|
readonly empty: boolean;
|
|
196
|
-
readonly sql: string;
|
|
197
191
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
198
192
|
table_schema: string;
|
|
199
193
|
table_name: string;
|
|
200
194
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
195
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
196
|
+
readonly reloadConditionString: string;
|
|
197
|
+
} & {
|
|
201
198
|
controllers: {
|
|
202
199
|
tables: AbortController;
|
|
203
200
|
columns: AbortController;
|
|
@@ -231,7 +228,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
231
228
|
}, {
|
|
232
229
|
readonly loading: boolean;
|
|
233
230
|
readonly empty: boolean;
|
|
234
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
235
231
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
236
232
|
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
237
233
|
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
@@ -240,7 +236,6 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
240
236
|
}, {
|
|
241
237
|
readonly loading: boolean;
|
|
242
238
|
readonly empty: boolean;
|
|
243
|
-
readonly sql: string;
|
|
244
239
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
245
240
|
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
246
241
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
@@ -259,7 +254,7 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
259
254
|
readonly loading: boolean;
|
|
260
255
|
readonly empty: boolean;
|
|
261
256
|
readonly maxPage: number;
|
|
262
|
-
readonly
|
|
257
|
+
readonly offset: number;
|
|
263
258
|
readonly countSql: string;
|
|
264
259
|
} & {
|
|
265
260
|
setPage(page: number): void;
|
|
@@ -275,11 +270,13 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
275
270
|
}, {
|
|
276
271
|
readonly loading: boolean;
|
|
277
272
|
readonly empty: boolean;
|
|
278
|
-
readonly sql: string;
|
|
279
273
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
280
274
|
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
281
275
|
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
282
276
|
}, {
|
|
277
|
+
readonly sqlDataSourceType: "postgresql" | "mysql";
|
|
278
|
+
readonly reloadConditionString: string;
|
|
279
|
+
} & {
|
|
283
280
|
controllers: {
|
|
284
281
|
tables: AbortController;
|
|
285
282
|
columns: AbortController;
|
|
@@ -16,7 +16,7 @@ export declare const TableDataModel: import("mobx-state-tree").IModelType<{
|
|
|
16
16
|
readonly loading: boolean;
|
|
17
17
|
readonly empty: boolean;
|
|
18
18
|
readonly maxPage: number;
|
|
19
|
-
readonly
|
|
19
|
+
readonly offset: number;
|
|
20
20
|
readonly countSql: string;
|
|
21
21
|
} & {
|
|
22
22
|
setPage(page: number): void;
|
|
@@ -11,5 +11,4 @@ export declare const TablesModel: import("mobx-state-tree").IModelType<{
|
|
|
11
11
|
}, {
|
|
12
12
|
readonly loading: boolean;
|
|
13
13
|
readonly empty: boolean;
|
|
14
|
-
readonly sql: "" | "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name";
|
|
15
14
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -1623,12 +1623,12 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
1623
1623
|
readonly rootModel: any;
|
|
1624
1624
|
readonly contentModel: any;
|
|
1625
1625
|
readonly payload: any;
|
|
1626
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
1627
1626
|
readonly formattedSQL: any;
|
|
1628
1627
|
readonly typedAsSQL: boolean;
|
|
1629
1628
|
readonly typedAsHTTP: boolean;
|
|
1630
1629
|
readonly datasource: any;
|
|
1631
1630
|
readonly httpConfigString: string;
|
|
1631
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
1632
1632
|
} & {
|
|
1633
1633
|
readonly stateMessage: string;
|
|
1634
1634
|
} & {
|
|
@@ -1693,12 +1693,12 @@ export declare const PanelModel: import("mobx-state-tree").IModelType<{
|
|
|
1693
1693
|
readonly rootModel: any;
|
|
1694
1694
|
readonly contentModel: any;
|
|
1695
1695
|
readonly payload: any;
|
|
1696
|
-
readonly dashboardState: import("~/model").TDashboardState;
|
|
1697
1696
|
readonly formattedSQL: any;
|
|
1698
1697
|
readonly typedAsSQL: boolean;
|
|
1699
1698
|
readonly typedAsHTTP: boolean;
|
|
1700
1699
|
readonly datasource: any;
|
|
1701
1700
|
readonly httpConfigString: string;
|
|
1701
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
1702
1702
|
} & {
|
|
1703
1703
|
readonly stateMessage: string;
|
|
1704
1704
|
} & {
|