@devtable/dashboard 13.44.2 → 14.0.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 +7 -0
- package/dist/api-caller/request.d.ts +21 -0
- package/dist/api-caller/types.d.ts +8 -1
- package/dist/components/filter/filter-select/editor/editor.d.ts +8 -0
- package/dist/components/filter/filter-select/editor/index.d.ts +1 -0
- package/dist/components/filter/filter-select/editor/preset-option-series.d.ts +2 -0
- package/dist/components/filter/filter-select/editor/static-options.d.ts +8 -0
- package/dist/components/panel/panel-render/full-screen-render/use-panel-full-screen.d.ts +7636 -336
- package/dist/components/plugins/plugin-context.d.ts +7636 -336
- package/dist/contexts/panel-context.d.ts +15113 -513
- package/dist/dashboard-editor/model/datasources/datasource.d.ts +166 -71
- package/dist/dashboard-editor/model/datasources/db-info/db-info.d.ts +84 -0
- package/dist/dashboard-editor/model/datasources/db-info/index.d.ts +1 -0
- package/dist/dashboard-editor/model/datasources/{table-data.d.ts → db-info/table-data.d.ts} +1 -1
- package/dist/dashboard-editor/model/datasources/index.d.ts +785 -242
- package/dist/dashboard-editor/model/datasources/mm-info/index.d.ts +4 -0
- package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.d.ts +63 -0
- package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.types.d.ts +50 -0
- package/dist/dashboard-editor/model/datasources/mm-info/metric-detail.utils.d.ts +46 -0
- package/dist/dashboard-editor/model/datasources/mm-info/metrics.d.ts +24 -0
- package/dist/dashboard-editor/model/datasources/mm-info/mm-info.d.ts +96 -0
- package/dist/dashboard-editor/model/panels/panel.d.ts +3727 -77
- package/dist/dashboard-editor/model/queries/queries.d.ts +4514 -118
- package/dist/dashboard-editor/model/queries/query.d.ts +251 -12
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/merico-icons/play.d.ts +1 -1
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/dimension-icon/dimension-icon.d.ts +2 -2
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/dimension-icon/dimension.d.ts +1 -0
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/dimension-selector.d.ts +4 -4
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/styles.d.ts +60 -0
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/set-groupby-metrics.d.ts +1 -1
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/variable-selector.d.ts +2 -1
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/preview-metric-query.d.ts +8 -0
- package/dist/dashboard.es.js +10964 -10233
- package/dist/dashboard.umd.js +110 -109
- package/dist/i18n/en.d.ts +4 -0
- package/dist/i18n/zh.d.ts +4 -0
- package/dist/model/meta-model/dashboard/content/filter/widgets/multi-select.d.ts +6 -12
- package/dist/model/meta-model/dashboard/content/filter/widgets/select-base.d.ts +4 -4
- package/dist/model/meta-model/dashboard/content/filter/widgets/select.d.ts +6 -12
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select-base.d.ts +2 -4
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-select.d.ts +6 -12
- package/dist/model/meta-model/dashboard/content/filter/widgets/tree-single-select.d.ts +6 -12
- package/dist/model/meta-model/dashboard/content/initial-content.d.ts +1 -1
- package/dist/model/meta-model/dashboard/content/query/db-query.d.ts +42 -0
- package/dist/model/meta-model/dashboard/content/query/http-query.d.ts +39 -0
- package/dist/model/meta-model/dashboard/content/query/index.d.ts +1 -0
- package/dist/model/meta-model/dashboard/content/query/merico-metric-query.d.ts +237 -0
- package/dist/model/meta-model/dashboard/content/query/query.d.ts +231 -12
- package/dist/model/meta-model/dashboard/content/query/transform-query.d.ts +39 -0
- package/dist/model/meta-model/datasources/datasources.d.ts +1 -1
- package/dist/model/render-model/dashboard/content/panels/panel.d.ts +3727 -77
- package/dist/model/render-model/dashboard/content/queries/mute-query.d.ts +254 -13
- package/dist/model/render-model/dashboard/content/queries/queries.d.ts +2781 -70
- package/dist/model/render-model/dashboard/content/queries/query.d.ts +251 -12
- package/dist/stats.html +1 -1
- package/dist/version.json +2 -2
- package/package.json +1 -1
- package/dist/components/filter/filter-select/editor.d.ts +0 -7
- package/dist/dashboard-editor/ui/settings/content/edit-query/merico-metric-query-editor-form/query-tabs/edit-metric-query/dimension-selector/type.d.ts +0 -8
- /package/dist/dashboard-editor/model/datasources/{columns.d.ts → db-info/columns.d.ts} +0 -0
- /package/dist/dashboard-editor/model/datasources/{indexes.d.ts → db-info/indexes.d.ts} +0 -0
- /package/dist/dashboard-editor/model/datasources/{tables.d.ts → db-info/tables.d.ts} +0 -0
|
@@ -1,88 +1,183 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
-
import { AnyObject } from '../../../types';
|
|
3
|
-
import { ColumnInfoType } from './columns';
|
|
4
|
-
import { IndexInfoType } from './indexes';
|
|
5
2
|
export declare const DataSourceModel: import("mobx-state-tree").IModelType<{
|
|
6
3
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
7
4
|
type: import("mobx-state-tree").ISimpleType<import("../../..").DataSourceType>;
|
|
8
5
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
9
6
|
config: import("mobx-state-tree").IType<import("../../../api-caller/types").TDataSourceConfig, import("../../../api-caller/types").TDataSourceConfig, import("../../../api-caller/types").TDataSourceConfig>;
|
|
10
7
|
} & {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
dbInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
9
|
+
tables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
10
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./db-info/tables").TableInfoTreeType, import("./db-info/tables").TableInfoTreeType, import("./db-info/tables").TableInfoTreeType>, [undefined]>;
|
|
11
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
13
|
+
}, {
|
|
14
|
+
readonly loading: boolean;
|
|
15
|
+
readonly empty: boolean;
|
|
16
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
17
|
+
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
18
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./db-info/columns").ColumnInfoType[], import("./db-info/columns").ColumnInfoType[], import("./db-info/columns").ColumnInfoType[]>, [undefined]>;
|
|
19
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
20
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
21
|
+
}, {
|
|
22
|
+
readonly loading: boolean;
|
|
23
|
+
readonly empty: boolean;
|
|
24
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
25
|
+
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
26
|
+
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
27
|
+
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
28
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>;
|
|
29
|
+
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
30
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
31
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
32
|
+
}, {
|
|
33
|
+
readonly keywords: {
|
|
34
|
+
table_name: string;
|
|
35
|
+
table_schema: string;
|
|
36
|
+
};
|
|
37
|
+
readonly keywordString: string;
|
|
38
|
+
} & {
|
|
39
|
+
readonly loading: boolean;
|
|
40
|
+
readonly empty: boolean;
|
|
41
|
+
readonly maxPage: number;
|
|
42
|
+
readonly offset: number;
|
|
43
|
+
readonly countSql: string;
|
|
44
|
+
} & {
|
|
45
|
+
setPage(page: number): void;
|
|
46
|
+
resetPage(): void;
|
|
47
|
+
setLimit(limit: number): void;
|
|
48
|
+
} & {
|
|
49
|
+
afterCreate(): void;
|
|
50
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
51
|
+
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
52
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./db-info/indexes").IndexInfoType[], import("./db-info/indexes").IndexInfoType[], import("./db-info/indexes").IndexInfoType[]>, [undefined]>;
|
|
53
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
54
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
55
|
+
}, {
|
|
56
|
+
readonly loading: boolean;
|
|
57
|
+
readonly empty: boolean;
|
|
58
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
59
|
+
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
60
|
+
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
15
61
|
}, {
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
28
|
-
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
29
|
-
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
30
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<AnyObject[], AnyObject[], AnyObject[]>, [undefined]>;
|
|
31
|
-
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
32
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
33
|
-
error: import("mobx-state-tree").IType<any, any, any>;
|
|
34
|
-
}, {
|
|
35
|
-
readonly keywords: {
|
|
36
|
-
table_name: string;
|
|
37
|
-
table_schema: string;
|
|
62
|
+
readonly dataSource: any;
|
|
63
|
+
readonly key: any;
|
|
64
|
+
readonly type: any;
|
|
65
|
+
readonly sqlDataSourceType: import("../../..").DataSourceType.Postgresql | import("../../..").DataSourceType.MySQL | import("../../..").DataSourceType.MericoMetricSystem;
|
|
66
|
+
readonly reloadConditionString: string;
|
|
67
|
+
} & {
|
|
68
|
+
controllers: {
|
|
69
|
+
tables: AbortController;
|
|
70
|
+
columns: AbortController;
|
|
71
|
+
indexes: AbortController;
|
|
72
|
+
tableData: AbortController;
|
|
38
73
|
};
|
|
39
|
-
readonly keywordString: string;
|
|
40
74
|
} & {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
readonly offset: number;
|
|
45
|
-
readonly countSql: string;
|
|
75
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
76
|
+
} & {
|
|
77
|
+
initKeywords(): void;
|
|
46
78
|
} & {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
79
|
+
loadTables: () => Promise<void>;
|
|
80
|
+
loadTablesIfEmpty(): void;
|
|
81
|
+
loadColumns: () => Promise<void>;
|
|
82
|
+
loadIndexes: () => Promise<void>;
|
|
83
|
+
loadTableData: () => Promise<void>;
|
|
84
|
+
} & {
|
|
85
|
+
afterCreate(): void;
|
|
50
86
|
} & {
|
|
51
87
|
afterCreate(): void;
|
|
52
88
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
89
|
+
mericoMetricInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
90
|
+
metrics: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
91
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
92
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>;
|
|
93
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
94
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
95
|
+
}, {
|
|
96
|
+
controller: AbortController;
|
|
97
|
+
} & {
|
|
98
|
+
readonly loading: boolean;
|
|
99
|
+
readonly empty: boolean;
|
|
100
|
+
readonly mmInfo: any;
|
|
101
|
+
} & {
|
|
102
|
+
setKeyword(v: string): void;
|
|
103
|
+
} & {
|
|
104
|
+
load: () => Promise<void>;
|
|
105
|
+
} & {
|
|
106
|
+
afterCreate(): void;
|
|
107
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
108
|
+
metricDetail: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
109
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricDetail | null, import("./mm-info").MetricDetail | null, import("./mm-info").MetricDetail | null>, [undefined]>;
|
|
110
|
+
filters: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<(import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[], (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[], (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[]>, [undefined]>;
|
|
111
|
+
groupBys: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<(import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[], (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[], (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[]>, [undefined]>;
|
|
112
|
+
trendingDateCol: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricSourceCol | null, import("./mm-info").MetricSourceCol | null, import("./mm-info").MetricSourceCol | null>, [undefined]>;
|
|
113
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
114
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
115
|
+
}, {
|
|
116
|
+
controller: AbortController;
|
|
117
|
+
} & {
|
|
118
|
+
readonly loading: boolean;
|
|
119
|
+
readonly hasData: boolean;
|
|
120
|
+
readonly mmInfo: any;
|
|
121
|
+
readonly metricID: string;
|
|
122
|
+
readonly metric: any;
|
|
123
|
+
readonly metricType: any;
|
|
124
|
+
readonly filterColOptions: {
|
|
125
|
+
group: string;
|
|
126
|
+
items: ({
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
dimension: null;
|
|
130
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
131
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
132
|
+
label: string;
|
|
133
|
+
value: string;
|
|
134
|
+
group?: undefined;
|
|
135
|
+
items?: undefined;
|
|
136
|
+
} | {
|
|
137
|
+
group: string;
|
|
138
|
+
description: string;
|
|
139
|
+
items: {
|
|
140
|
+
id: string;
|
|
141
|
+
description: string;
|
|
142
|
+
field: string;
|
|
143
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
144
|
+
label: string;
|
|
145
|
+
value: string;
|
|
146
|
+
}[];
|
|
147
|
+
})[];
|
|
148
|
+
}[];
|
|
149
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
150
|
+
readonly flatGroupByColOptions: {
|
|
151
|
+
label: string;
|
|
152
|
+
value: string;
|
|
153
|
+
description: string;
|
|
154
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
155
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
156
|
+
}[];
|
|
157
|
+
getGroupByOptions(values: string[]): {
|
|
158
|
+
label: string;
|
|
159
|
+
value: string;
|
|
160
|
+
description: string;
|
|
161
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
162
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
163
|
+
}[];
|
|
164
|
+
} & {
|
|
165
|
+
load: () => Promise<void>;
|
|
166
|
+
} & {
|
|
167
|
+
afterCreate(): void;
|
|
168
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
169
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
170
|
+
metricID: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
57
171
|
}, {
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
172
|
+
readonly rootModel: any;
|
|
173
|
+
readonly contentModel: any;
|
|
174
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
175
|
+
readonly dataSource: any;
|
|
176
|
+
readonly key: any;
|
|
177
|
+
readonly type: any;
|
|
178
|
+
readonly metric: import("./mm-info").MetricBriefInfo | null;
|
|
179
|
+
} & {
|
|
180
|
+
selectMetric(metricID: string): void;
|
|
60
181
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
61
|
-
|
|
62
|
-
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
63
|
-
}, {
|
|
64
|
-
readonly sqlDataSourceType: import("../../..").DataSourceType.Postgresql | import("../../..").DataSourceType.MySQL | import("../../..").DataSourceType.MericoMetricSystem;
|
|
65
|
-
readonly reloadConditionString: string;
|
|
66
|
-
} & {
|
|
67
|
-
controllers: {
|
|
68
|
-
tables: AbortController;
|
|
69
|
-
columns: AbortController;
|
|
70
|
-
indexes: AbortController;
|
|
71
|
-
tableData: AbortController;
|
|
72
|
-
};
|
|
73
|
-
} & {
|
|
74
|
-
setKeywords(table_schema: string, table_name: string): void;
|
|
75
|
-
} & {
|
|
76
|
-
initKeywords(): void;
|
|
77
|
-
} & {
|
|
78
|
-
loadTables: () => Promise<void>;
|
|
79
|
-
loadTablesIfEmpty(): void;
|
|
80
|
-
loadColumns: () => Promise<void>;
|
|
81
|
-
loadIndexes: () => Promise<void>;
|
|
82
|
-
loadTableData: () => Promise<void>;
|
|
83
|
-
} & {
|
|
84
|
-
afterCreate(): void;
|
|
85
|
-
} & {
|
|
86
|
-
afterCreate(): void;
|
|
87
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
182
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
88
183
|
export type DataSourceModelInstance = Instance<typeof DataSourceModel>;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../types';
|
|
2
|
+
import { ColumnInfoType } from './columns';
|
|
3
|
+
import { IndexInfoType } from './indexes';
|
|
4
|
+
export declare const DBInfoModel: import("mobx-state-tree").IModelType<{
|
|
5
|
+
tables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
6
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType, import("./tables").TableInfoTreeType>, [undefined]>;
|
|
7
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
8
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
9
|
+
}, {
|
|
10
|
+
readonly loading: boolean;
|
|
11
|
+
readonly empty: boolean;
|
|
12
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
13
|
+
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
14
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ColumnInfoType[], ColumnInfoType[], ColumnInfoType[]>, [undefined]>;
|
|
15
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
16
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
17
|
+
}, {
|
|
18
|
+
readonly loading: boolean;
|
|
19
|
+
readonly empty: boolean;
|
|
20
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
21
|
+
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
22
|
+
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
23
|
+
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
24
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<AnyObject[], AnyObject[], AnyObject[]>, [undefined]>;
|
|
25
|
+
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
26
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
27
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
28
|
+
}, {
|
|
29
|
+
readonly keywords: {
|
|
30
|
+
table_name: string;
|
|
31
|
+
table_schema: string;
|
|
32
|
+
};
|
|
33
|
+
readonly keywordString: string;
|
|
34
|
+
} & {
|
|
35
|
+
readonly loading: boolean;
|
|
36
|
+
readonly empty: boolean;
|
|
37
|
+
readonly maxPage: number;
|
|
38
|
+
readonly offset: number;
|
|
39
|
+
readonly countSql: string;
|
|
40
|
+
} & {
|
|
41
|
+
setPage(page: number): void;
|
|
42
|
+
resetPage(): void;
|
|
43
|
+
setLimit(limit: number): void;
|
|
44
|
+
} & {
|
|
45
|
+
afterCreate(): void;
|
|
46
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
47
|
+
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
48
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<IndexInfoType[], IndexInfoType[], IndexInfoType[]>, [undefined]>;
|
|
49
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
50
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
51
|
+
}, {
|
|
52
|
+
readonly loading: boolean;
|
|
53
|
+
readonly empty: boolean;
|
|
54
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
55
|
+
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
|
+
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
57
|
+
}, {
|
|
58
|
+
readonly dataSource: any;
|
|
59
|
+
readonly key: any;
|
|
60
|
+
readonly type: any;
|
|
61
|
+
readonly sqlDataSourceType: import("../../../..").DataSourceType.Postgresql | import("../../../..").DataSourceType.MySQL | import("../../../..").DataSourceType.MericoMetricSystem;
|
|
62
|
+
readonly reloadConditionString: string;
|
|
63
|
+
} & {
|
|
64
|
+
controllers: {
|
|
65
|
+
tables: AbortController;
|
|
66
|
+
columns: AbortController;
|
|
67
|
+
indexes: AbortController;
|
|
68
|
+
tableData: AbortController;
|
|
69
|
+
};
|
|
70
|
+
} & {
|
|
71
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
72
|
+
} & {
|
|
73
|
+
initKeywords(): void;
|
|
74
|
+
} & {
|
|
75
|
+
loadTables: () => Promise<void>;
|
|
76
|
+
loadTablesIfEmpty(): void;
|
|
77
|
+
loadColumns: () => Promise<void>;
|
|
78
|
+
loadIndexes: () => Promise<void>;
|
|
79
|
+
loadTableData: () => Promise<void>;
|
|
80
|
+
} & {
|
|
81
|
+
afterCreate(): void;
|
|
82
|
+
} & {
|
|
83
|
+
afterCreate(): void;
|
|
84
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './db-info';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject } from '
|
|
1
|
+
import { AnyObject } from '../../../../types';
|
|
2
2
|
export declare const TableDataModel: import("mobx-state-tree").IModelType<{
|
|
3
3
|
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
4
4
|
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|