@devtable/dashboard 13.44.1 → 14.0.0
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 +42 -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 +10958 -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
|
@@ -7,83 +7,181 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
7
7
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
8
8
|
config: import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>;
|
|
9
9
|
} & {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
dbInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
11
|
+
tables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
12
|
+
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]>;
|
|
13
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
14
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
15
|
+
}, {
|
|
16
|
+
readonly loading: boolean;
|
|
17
|
+
readonly empty: boolean;
|
|
18
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
19
|
+
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
20
|
+
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]>;
|
|
21
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
22
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
23
|
+
}, {
|
|
24
|
+
readonly loading: boolean;
|
|
25
|
+
readonly empty: boolean;
|
|
26
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
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<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").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;
|
|
38
|
+
};
|
|
39
|
+
readonly keywordString: string;
|
|
40
|
+
} & {
|
|
41
|
+
readonly loading: boolean;
|
|
42
|
+
readonly empty: boolean;
|
|
43
|
+
readonly maxPage: number;
|
|
44
|
+
readonly offset: number;
|
|
45
|
+
readonly countSql: string;
|
|
46
|
+
} & {
|
|
47
|
+
setPage(page: number): void;
|
|
48
|
+
resetPage(): void;
|
|
49
|
+
setLimit(limit: number): void;
|
|
50
|
+
} & {
|
|
51
|
+
afterCreate(): void;
|
|
52
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
53
|
+
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
54
|
+
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]>;
|
|
55
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
57
|
+
}, {
|
|
58
|
+
readonly loading: boolean;
|
|
59
|
+
readonly empty: boolean;
|
|
60
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
61
|
+
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
62
|
+
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
14
63
|
}, {
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
27
|
-
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
28
|
-
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<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>;
|
|
30
|
-
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
31
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
32
|
-
error: import("mobx-state-tree").IType<any, any, any>;
|
|
33
|
-
}, {
|
|
34
|
-
readonly keywords: {
|
|
35
|
-
table_name: string;
|
|
36
|
-
table_schema: string;
|
|
64
|
+
readonly dataSource: any;
|
|
65
|
+
readonly key: any;
|
|
66
|
+
readonly type: any;
|
|
67
|
+
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
68
|
+
readonly reloadConditionString: string;
|
|
69
|
+
} & {
|
|
70
|
+
controllers: {
|
|
71
|
+
tables: AbortController;
|
|
72
|
+
columns: AbortController;
|
|
73
|
+
indexes: AbortController;
|
|
74
|
+
tableData: AbortController;
|
|
37
75
|
};
|
|
38
|
-
readonly keywordString: string;
|
|
39
76
|
} & {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
77
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
78
|
+
} & {
|
|
79
|
+
initKeywords(): void;
|
|
80
|
+
} & {
|
|
81
|
+
loadTables: () => Promise<void>;
|
|
82
|
+
loadTablesIfEmpty(): void;
|
|
83
|
+
loadColumns: () => Promise<void>;
|
|
84
|
+
loadIndexes: () => Promise<void>;
|
|
85
|
+
loadTableData: () => Promise<void>;
|
|
45
86
|
} & {
|
|
46
|
-
|
|
47
|
-
resetPage(): void;
|
|
48
|
-
setLimit(limit: number): void;
|
|
87
|
+
afterCreate(): void;
|
|
49
88
|
} & {
|
|
50
89
|
afterCreate(): void;
|
|
51
90
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
91
|
+
mericoMetricInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
92
|
+
metrics: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
93
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
94
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>;
|
|
95
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
96
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
97
|
+
}, {
|
|
98
|
+
controller: AbortController;
|
|
99
|
+
} & {
|
|
100
|
+
readonly loading: boolean;
|
|
101
|
+
readonly empty: boolean;
|
|
102
|
+
readonly mmInfo: any;
|
|
103
|
+
} & {
|
|
104
|
+
setKeyword(v: string): void;
|
|
105
|
+
} & {
|
|
106
|
+
load: () => Promise<void>;
|
|
107
|
+
} & {
|
|
108
|
+
afterCreate(): void;
|
|
109
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
110
|
+
metricDetail: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
111
|
+
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]>;
|
|
112
|
+
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]>;
|
|
113
|
+
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]>;
|
|
114
|
+
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]>;
|
|
115
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
116
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
117
|
+
}, {
|
|
118
|
+
controller: AbortController;
|
|
119
|
+
} & {
|
|
120
|
+
readonly loading: boolean;
|
|
121
|
+
readonly hasData: boolean;
|
|
122
|
+
readonly mmInfo: any;
|
|
123
|
+
readonly metricID: string;
|
|
124
|
+
readonly metric: any;
|
|
125
|
+
readonly metricType: any;
|
|
126
|
+
readonly filterColOptions: {
|
|
127
|
+
group: string;
|
|
128
|
+
items: ({
|
|
129
|
+
name: string;
|
|
130
|
+
description: string;
|
|
131
|
+
dimension: null;
|
|
132
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
133
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
134
|
+
label: string;
|
|
135
|
+
value: string;
|
|
136
|
+
group?: undefined;
|
|
137
|
+
items?: undefined;
|
|
138
|
+
} | {
|
|
139
|
+
group: string;
|
|
140
|
+
description: string;
|
|
141
|
+
items: {
|
|
142
|
+
id: string;
|
|
143
|
+
description: string;
|
|
144
|
+
field: string;
|
|
145
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
146
|
+
label: string;
|
|
147
|
+
value: string;
|
|
148
|
+
}[];
|
|
149
|
+
})[];
|
|
150
|
+
}[];
|
|
151
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
152
|
+
readonly flatGroupByColOptions: {
|
|
153
|
+
label: string;
|
|
154
|
+
value: string;
|
|
155
|
+
description: string;
|
|
156
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
157
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
158
|
+
}[];
|
|
159
|
+
getGroupByOptions(values: string[]): {
|
|
160
|
+
label: string;
|
|
161
|
+
value: string;
|
|
162
|
+
description: string;
|
|
163
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
164
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
165
|
+
}[];
|
|
166
|
+
} & {
|
|
167
|
+
load: () => Promise<void>;
|
|
168
|
+
} & {
|
|
169
|
+
afterCreate(): void;
|
|
170
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
171
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
172
|
+
metricID: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
173
|
}, {
|
|
57
|
-
readonly
|
|
58
|
-
readonly
|
|
174
|
+
readonly rootModel: any;
|
|
175
|
+
readonly contentModel: any;
|
|
176
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
177
|
+
readonly dataSource: any;
|
|
178
|
+
readonly key: any;
|
|
179
|
+
readonly type: any;
|
|
180
|
+
readonly metric: import("./mm-info").MetricBriefInfo | null;
|
|
181
|
+
} & {
|
|
182
|
+
selectMetric(metricID: string): void;
|
|
59
183
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
60
|
-
|
|
61
|
-
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
62
|
-
}, {
|
|
63
|
-
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
64
|
-
readonly reloadConditionString: string;
|
|
65
|
-
} & {
|
|
66
|
-
controllers: {
|
|
67
|
-
tables: AbortController;
|
|
68
|
-
columns: AbortController;
|
|
69
|
-
indexes: AbortController;
|
|
70
|
-
tableData: AbortController;
|
|
71
|
-
};
|
|
72
|
-
} & {
|
|
73
|
-
setKeywords(table_schema: string, table_name: string): void;
|
|
74
|
-
} & {
|
|
75
|
-
initKeywords(): void;
|
|
76
|
-
} & {
|
|
77
|
-
loadTables: () => Promise<void>;
|
|
78
|
-
loadTablesIfEmpty(): void;
|
|
79
|
-
loadColumns: () => Promise<void>;
|
|
80
|
-
loadIndexes: () => Promise<void>;
|
|
81
|
-
loadTableData: () => Promise<void>;
|
|
82
|
-
} & {
|
|
83
|
-
afterCreate(): void;
|
|
84
|
-
} & {
|
|
85
|
-
afterCreate(): void;
|
|
86
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
184
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
87
185
|
}, {
|
|
88
186
|
find({ type, key }: {
|
|
89
187
|
type: DataSourceType;
|
|
@@ -92,212 +190,657 @@ export declare const DataSourcesModel: import("mobx-state-tree").IModelType<{
|
|
|
92
190
|
id: string;
|
|
93
191
|
type: DataSourceType;
|
|
94
192
|
key: string;
|
|
95
|
-
config: (import('../../../api-caller/types').TDataSourceConfig_DB & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>>) | (import('../../../api-caller/types').TDataSourceConfig_HTTP & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>>);
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
193
|
+
config: (import('../../../api-caller/types').TDataSourceConfig_DB & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>>) | (import('../../../api-caller/types').TDataSourceConfig_HTTP & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>>) | (import('../../../api-caller/types').TDataSourceConfig_MericoMetricSystem & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>>);
|
|
194
|
+
dbInfo: {
|
|
195
|
+
tables: {
|
|
196
|
+
data: import("./db-info/tables").TableInfoTreeType & import("mobx-state-tree").IStateTreeNode<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]>>;
|
|
197
|
+
state: string;
|
|
198
|
+
error: any;
|
|
199
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
200
|
+
readonly loading: boolean;
|
|
201
|
+
readonly empty: boolean;
|
|
202
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
203
|
+
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]>;
|
|
204
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
205
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
206
|
+
}, {
|
|
207
|
+
readonly loading: boolean;
|
|
208
|
+
readonly empty: boolean;
|
|
209
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
210
|
+
columns: {
|
|
211
|
+
data: import("./db-info/columns").ColumnInfoType[] & import("mobx-state-tree").IStateTreeNode<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]>>;
|
|
212
|
+
state: string;
|
|
213
|
+
error: any;
|
|
214
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
215
|
+
readonly loading: boolean;
|
|
216
|
+
readonly empty: boolean;
|
|
217
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
218
|
+
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]>;
|
|
219
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
220
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
221
|
+
}, {
|
|
222
|
+
readonly loading: boolean;
|
|
223
|
+
readonly empty: boolean;
|
|
224
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
225
|
+
tableData: {
|
|
226
|
+
page: number;
|
|
227
|
+
limit: number;
|
|
228
|
+
data: import("../../..").AnyObject[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>>;
|
|
229
|
+
total: number;
|
|
230
|
+
state: string;
|
|
231
|
+
error: any;
|
|
232
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
233
|
+
readonly keywords: {
|
|
234
|
+
table_name: string;
|
|
235
|
+
table_schema: string;
|
|
236
|
+
};
|
|
237
|
+
readonly keywordString: string;
|
|
238
|
+
} & {
|
|
239
|
+
readonly loading: boolean;
|
|
240
|
+
readonly empty: boolean;
|
|
241
|
+
readonly maxPage: number;
|
|
242
|
+
readonly offset: number;
|
|
243
|
+
readonly countSql: string;
|
|
244
|
+
} & {
|
|
245
|
+
setPage(page: number): void;
|
|
246
|
+
resetPage(): void;
|
|
247
|
+
setLimit(limit: number): void;
|
|
248
|
+
} & {
|
|
249
|
+
afterCreate(): void;
|
|
250
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
251
|
+
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
252
|
+
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
253
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>;
|
|
254
|
+
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
255
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
256
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
257
|
+
}, {
|
|
258
|
+
readonly keywords: {
|
|
259
|
+
table_name: string;
|
|
260
|
+
table_schema: string;
|
|
261
|
+
};
|
|
262
|
+
readonly keywordString: string;
|
|
263
|
+
} & {
|
|
264
|
+
readonly loading: boolean;
|
|
265
|
+
readonly empty: boolean;
|
|
266
|
+
readonly maxPage: number;
|
|
267
|
+
readonly offset: number;
|
|
268
|
+
readonly countSql: string;
|
|
269
|
+
} & {
|
|
270
|
+
setPage(page: number): void;
|
|
271
|
+
resetPage(): void;
|
|
272
|
+
setLimit(limit: number): void;
|
|
273
|
+
} & {
|
|
274
|
+
afterCreate(): void;
|
|
275
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
276
|
+
indexes: {
|
|
277
|
+
data: import("./db-info/indexes").IndexInfoType[] & import("mobx-state-tree").IStateTreeNode<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]>>;
|
|
278
|
+
state: string;
|
|
279
|
+
error: any;
|
|
280
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
281
|
+
readonly loading: boolean;
|
|
282
|
+
readonly empty: boolean;
|
|
283
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
284
|
+
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]>;
|
|
285
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
286
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
287
|
+
}, {
|
|
288
|
+
readonly loading: boolean;
|
|
289
|
+
readonly empty: boolean;
|
|
290
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
291
|
+
table_schema: string;
|
|
292
|
+
table_name: string;
|
|
100
293
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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]>>;
|
|
113
|
-
state: string;
|
|
114
|
-
error: any;
|
|
115
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
116
|
-
readonly loading: boolean;
|
|
117
|
-
readonly empty: boolean;
|
|
118
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
119
|
-
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[], import("./columns").ColumnInfoType[]>, [undefined]>;
|
|
120
|
-
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
121
|
-
error: import("mobx-state-tree").IType<any, any, any>;
|
|
122
|
-
}, {
|
|
123
|
-
readonly loading: boolean;
|
|
124
|
-
readonly empty: boolean;
|
|
125
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
126
|
-
tableData: {
|
|
127
|
-
page: number;
|
|
128
|
-
limit: number;
|
|
129
|
-
data: import("../../..").AnyObject[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>>;
|
|
130
|
-
total: number;
|
|
131
|
-
state: string;
|
|
132
|
-
error: any;
|
|
133
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
134
|
-
readonly keywords: {
|
|
135
|
-
table_name: string;
|
|
136
|
-
table_schema: string;
|
|
294
|
+
readonly dataSource: any;
|
|
295
|
+
readonly key: any;
|
|
296
|
+
readonly type: any;
|
|
297
|
+
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
298
|
+
readonly reloadConditionString: string;
|
|
299
|
+
} & {
|
|
300
|
+
controllers: {
|
|
301
|
+
tables: AbortController;
|
|
302
|
+
columns: AbortController;
|
|
303
|
+
indexes: AbortController;
|
|
304
|
+
tableData: AbortController;
|
|
137
305
|
};
|
|
138
|
-
readonly keywordString: string;
|
|
139
306
|
} & {
|
|
140
|
-
|
|
141
|
-
readonly empty: boolean;
|
|
142
|
-
readonly maxPage: number;
|
|
143
|
-
readonly offset: number;
|
|
144
|
-
readonly countSql: string;
|
|
307
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
145
308
|
} & {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
309
|
+
initKeywords(): void;
|
|
310
|
+
} & {
|
|
311
|
+
loadTables: () => Promise<void>;
|
|
312
|
+
loadTablesIfEmpty(): void;
|
|
313
|
+
loadColumns: () => Promise<void>;
|
|
314
|
+
loadIndexes: () => Promise<void>;
|
|
315
|
+
loadTableData: () => Promise<void>;
|
|
316
|
+
} & {
|
|
317
|
+
afterCreate(): void;
|
|
149
318
|
} & {
|
|
150
319
|
afterCreate(): void;
|
|
151
320
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
321
|
+
tables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
322
|
+
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]>;
|
|
323
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
324
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
325
|
+
}, {
|
|
326
|
+
readonly loading: boolean;
|
|
327
|
+
readonly empty: boolean;
|
|
328
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
329
|
+
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
330
|
+
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]>;
|
|
331
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
332
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
333
|
+
}, {
|
|
334
|
+
readonly loading: boolean;
|
|
335
|
+
readonly empty: boolean;
|
|
336
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
337
|
+
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
338
|
+
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
339
|
+
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
340
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>;
|
|
341
|
+
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
342
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
343
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
344
|
+
}, {
|
|
345
|
+
readonly keywords: {
|
|
346
|
+
table_name: string;
|
|
347
|
+
table_schema: string;
|
|
348
|
+
};
|
|
349
|
+
readonly keywordString: string;
|
|
350
|
+
} & {
|
|
351
|
+
readonly loading: boolean;
|
|
352
|
+
readonly empty: boolean;
|
|
353
|
+
readonly maxPage: number;
|
|
354
|
+
readonly offset: number;
|
|
355
|
+
readonly countSql: string;
|
|
356
|
+
} & {
|
|
357
|
+
setPage(page: number): void;
|
|
358
|
+
resetPage(): void;
|
|
359
|
+
setLimit(limit: number): void;
|
|
360
|
+
} & {
|
|
361
|
+
afterCreate(): void;
|
|
362
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
363
|
+
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
364
|
+
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]>;
|
|
365
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
366
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
367
|
+
}, {
|
|
368
|
+
readonly loading: boolean;
|
|
369
|
+
readonly empty: boolean;
|
|
370
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
371
|
+
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
372
|
+
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
158
373
|
}, {
|
|
159
|
-
readonly
|
|
160
|
-
|
|
161
|
-
|
|
374
|
+
readonly dataSource: any;
|
|
375
|
+
readonly key: any;
|
|
376
|
+
readonly type: any;
|
|
377
|
+
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
378
|
+
readonly reloadConditionString: string;
|
|
379
|
+
} & {
|
|
380
|
+
controllers: {
|
|
381
|
+
tables: AbortController;
|
|
382
|
+
columns: AbortController;
|
|
383
|
+
indexes: AbortController;
|
|
384
|
+
tableData: AbortController;
|
|
162
385
|
};
|
|
163
|
-
readonly keywordString: string;
|
|
164
386
|
} & {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
readonly offset: number;
|
|
169
|
-
readonly countSql: string;
|
|
387
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
388
|
+
} & {
|
|
389
|
+
initKeywords(): void;
|
|
170
390
|
} & {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
391
|
+
loadTables: () => Promise<void>;
|
|
392
|
+
loadTablesIfEmpty(): void;
|
|
393
|
+
loadColumns: () => Promise<void>;
|
|
394
|
+
loadIndexes: () => Promise<void>;
|
|
395
|
+
loadTableData: () => Promise<void>;
|
|
396
|
+
} & {
|
|
397
|
+
afterCreate(): void;
|
|
174
398
|
} & {
|
|
175
399
|
afterCreate(): void;
|
|
176
400
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
401
|
+
mericoMetricInfo: {
|
|
402
|
+
metrics: {
|
|
403
|
+
keyword: string;
|
|
404
|
+
data: import("./mm-info").MetricBriefInfo[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>>;
|
|
405
|
+
state: string;
|
|
406
|
+
error: any;
|
|
407
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
408
|
+
controller: AbortController;
|
|
409
|
+
} & {
|
|
410
|
+
readonly loading: boolean;
|
|
411
|
+
readonly empty: boolean;
|
|
412
|
+
readonly mmInfo: any;
|
|
413
|
+
} & {
|
|
414
|
+
setKeyword(v: string): void;
|
|
415
|
+
} & {
|
|
416
|
+
load: () => Promise<void>;
|
|
417
|
+
} & {
|
|
418
|
+
afterCreate(): void;
|
|
419
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
420
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
421
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>;
|
|
422
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
423
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
424
|
+
}, {
|
|
425
|
+
controller: AbortController;
|
|
426
|
+
} & {
|
|
427
|
+
readonly loading: boolean;
|
|
428
|
+
readonly empty: boolean;
|
|
429
|
+
readonly mmInfo: any;
|
|
430
|
+
} & {
|
|
431
|
+
setKeyword(v: string): void;
|
|
432
|
+
} & {
|
|
433
|
+
load: () => Promise<void>;
|
|
434
|
+
} & {
|
|
435
|
+
afterCreate(): void;
|
|
436
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
437
|
+
metricDetail: {
|
|
438
|
+
data: (import("./mm-info").DerivedMetric & import("mobx-state-tree").IStateTreeNode<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]>>) | (import("./mm-info").CombinedMetric & import("mobx-state-tree").IStateTreeNode<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]>>) | null;
|
|
439
|
+
filters: (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[] & import("mobx-state-tree").IStateTreeNode<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]>>;
|
|
440
|
+
groupBys: (import("./mm-info").MetricSourceCol | import("./mm-info").CombinedMetricCol)[] & import("mobx-state-tree").IStateTreeNode<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]>>;
|
|
441
|
+
trendingDateCol: (import("./mm-info").MetricSourceCol_Simple & import("mobx-state-tree").IStateTreeNode<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]>>) | (import("./mm-info").MetricSourceCol_Dimension & import("mobx-state-tree").IStateTreeNode<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]>>) | null;
|
|
442
|
+
state: string;
|
|
443
|
+
error: any;
|
|
444
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
445
|
+
controller: AbortController;
|
|
446
|
+
} & {
|
|
447
|
+
readonly loading: boolean;
|
|
448
|
+
readonly hasData: boolean;
|
|
449
|
+
readonly mmInfo: any;
|
|
450
|
+
readonly metricID: string;
|
|
451
|
+
readonly metric: any;
|
|
452
|
+
readonly metricType: any;
|
|
453
|
+
readonly filterColOptions: {
|
|
454
|
+
group: string;
|
|
455
|
+
items: ({
|
|
456
|
+
name: string;
|
|
457
|
+
description: string;
|
|
458
|
+
dimension: null;
|
|
459
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
460
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
461
|
+
label: string;
|
|
462
|
+
value: string;
|
|
463
|
+
group?: undefined;
|
|
464
|
+
items?: undefined;
|
|
465
|
+
} | {
|
|
466
|
+
group: string;
|
|
467
|
+
description: string;
|
|
468
|
+
items: {
|
|
469
|
+
id: string;
|
|
470
|
+
description: string;
|
|
471
|
+
field: string;
|
|
472
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
473
|
+
label: string;
|
|
474
|
+
value: string;
|
|
475
|
+
}[];
|
|
476
|
+
})[];
|
|
477
|
+
}[];
|
|
478
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
479
|
+
readonly flatGroupByColOptions: {
|
|
480
|
+
label: string;
|
|
481
|
+
value: string;
|
|
482
|
+
description: string;
|
|
483
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
484
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
485
|
+
}[];
|
|
486
|
+
getGroupByOptions(values: string[]): {
|
|
487
|
+
label: string;
|
|
488
|
+
value: string;
|
|
489
|
+
description: string;
|
|
490
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
491
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
492
|
+
}[];
|
|
493
|
+
} & {
|
|
494
|
+
load: () => Promise<void>;
|
|
495
|
+
} & {
|
|
496
|
+
afterCreate(): void;
|
|
497
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
498
|
+
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]>;
|
|
499
|
+
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]>;
|
|
500
|
+
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]>;
|
|
501
|
+
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]>;
|
|
502
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
503
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
504
|
+
}, {
|
|
505
|
+
controller: AbortController;
|
|
506
|
+
} & {
|
|
507
|
+
readonly loading: boolean;
|
|
508
|
+
readonly hasData: boolean;
|
|
509
|
+
readonly mmInfo: any;
|
|
510
|
+
readonly metricID: string;
|
|
511
|
+
readonly metric: any;
|
|
512
|
+
readonly metricType: any;
|
|
513
|
+
readonly filterColOptions: {
|
|
514
|
+
group: string;
|
|
515
|
+
items: ({
|
|
516
|
+
name: string;
|
|
517
|
+
description: string;
|
|
518
|
+
dimension: null;
|
|
519
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
520
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
521
|
+
label: string;
|
|
522
|
+
value: string;
|
|
523
|
+
group?: undefined;
|
|
524
|
+
items?: undefined;
|
|
525
|
+
} | {
|
|
526
|
+
group: string;
|
|
527
|
+
description: string;
|
|
528
|
+
items: {
|
|
529
|
+
id: string;
|
|
530
|
+
description: string;
|
|
531
|
+
field: string;
|
|
532
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
533
|
+
label: string;
|
|
534
|
+
value: string;
|
|
535
|
+
}[];
|
|
536
|
+
})[];
|
|
537
|
+
}[];
|
|
538
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
539
|
+
readonly flatGroupByColOptions: {
|
|
540
|
+
label: string;
|
|
541
|
+
value: string;
|
|
542
|
+
description: string;
|
|
543
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
544
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
545
|
+
}[];
|
|
546
|
+
getGroupByOptions(values: string[]): {
|
|
547
|
+
label: string;
|
|
548
|
+
value: string;
|
|
549
|
+
description: string;
|
|
550
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
551
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
552
|
+
}[];
|
|
553
|
+
} & {
|
|
554
|
+
load: () => Promise<void>;
|
|
555
|
+
} & {
|
|
556
|
+
afterCreate(): void;
|
|
557
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
558
|
+
keyword: string;
|
|
559
|
+
metricID: string;
|
|
181
560
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
182
|
-
readonly
|
|
183
|
-
readonly
|
|
561
|
+
readonly rootModel: any;
|
|
562
|
+
readonly contentModel: any;
|
|
563
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
564
|
+
readonly dataSource: any;
|
|
565
|
+
readonly key: any;
|
|
566
|
+
readonly type: any;
|
|
567
|
+
readonly metric: import("./mm-info").MetricBriefInfo | null;
|
|
568
|
+
} & {
|
|
569
|
+
selectMetric(metricID: string): void;
|
|
184
570
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
571
|
+
metrics: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
572
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
573
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>;
|
|
574
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
575
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
576
|
+
}, {
|
|
577
|
+
controller: AbortController;
|
|
578
|
+
} & {
|
|
579
|
+
readonly loading: boolean;
|
|
580
|
+
readonly empty: boolean;
|
|
581
|
+
readonly mmInfo: any;
|
|
582
|
+
} & {
|
|
583
|
+
setKeyword(v: string): void;
|
|
584
|
+
} & {
|
|
585
|
+
load: () => Promise<void>;
|
|
586
|
+
} & {
|
|
587
|
+
afterCreate(): void;
|
|
588
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
589
|
+
metricDetail: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
590
|
+
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]>;
|
|
591
|
+
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]>;
|
|
592
|
+
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]>;
|
|
593
|
+
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]>;
|
|
594
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
595
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
596
|
+
}, {
|
|
597
|
+
controller: AbortController;
|
|
598
|
+
} & {
|
|
599
|
+
readonly loading: boolean;
|
|
600
|
+
readonly hasData: boolean;
|
|
601
|
+
readonly mmInfo: any;
|
|
602
|
+
readonly metricID: string;
|
|
603
|
+
readonly metric: any;
|
|
604
|
+
readonly metricType: any;
|
|
605
|
+
readonly filterColOptions: {
|
|
606
|
+
group: string;
|
|
607
|
+
items: ({
|
|
608
|
+
name: string;
|
|
609
|
+
description: string;
|
|
610
|
+
dimension: null;
|
|
611
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
612
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
613
|
+
label: string;
|
|
614
|
+
value: string;
|
|
615
|
+
group?: undefined;
|
|
616
|
+
items?: undefined;
|
|
617
|
+
} | {
|
|
618
|
+
group: string;
|
|
619
|
+
description: string;
|
|
620
|
+
items: {
|
|
621
|
+
id: string;
|
|
622
|
+
description: string;
|
|
623
|
+
field: string;
|
|
624
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
625
|
+
label: string;
|
|
626
|
+
value: string;
|
|
627
|
+
}[];
|
|
628
|
+
})[];
|
|
629
|
+
}[];
|
|
630
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
631
|
+
readonly flatGroupByColOptions: {
|
|
632
|
+
label: string;
|
|
633
|
+
value: string;
|
|
634
|
+
description: string;
|
|
635
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
636
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
637
|
+
}[];
|
|
638
|
+
getGroupByOptions(values: string[]): {
|
|
639
|
+
label: string;
|
|
640
|
+
value: string;
|
|
641
|
+
description: string;
|
|
642
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
643
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
644
|
+
}[];
|
|
645
|
+
} & {
|
|
646
|
+
load: () => Promise<void>;
|
|
647
|
+
} & {
|
|
648
|
+
afterCreate(): void;
|
|
649
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
650
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
651
|
+
metricID: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
188
652
|
}, {
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
653
|
+
readonly rootModel: any;
|
|
654
|
+
readonly contentModel: any;
|
|
655
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
656
|
+
readonly dataSource: any;
|
|
657
|
+
readonly key: any;
|
|
658
|
+
readonly type: any;
|
|
659
|
+
readonly metric: import("./mm-info").MetricBriefInfo | null;
|
|
660
|
+
} & {
|
|
661
|
+
selectMetric(metricID: string): void;
|
|
191
662
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>;
|
|
192
|
-
|
|
193
|
-
table_name: string;
|
|
194
|
-
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
195
|
-
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
196
|
-
readonly reloadConditionString: string;
|
|
197
|
-
} & {
|
|
198
|
-
controllers: {
|
|
199
|
-
tables: AbortController;
|
|
200
|
-
columns: AbortController;
|
|
201
|
-
indexes: AbortController;
|
|
202
|
-
tableData: AbortController;
|
|
203
|
-
};
|
|
204
|
-
} & {
|
|
205
|
-
setKeywords(table_schema: string, table_name: string): void;
|
|
206
|
-
} & {
|
|
207
|
-
initKeywords(): void;
|
|
208
|
-
} & {
|
|
209
|
-
loadTables: () => Promise<void>;
|
|
210
|
-
loadTablesIfEmpty(): void;
|
|
211
|
-
loadColumns: () => Promise<void>;
|
|
212
|
-
loadIndexes: () => Promise<void>;
|
|
213
|
-
loadTableData: () => Promise<void>;
|
|
214
|
-
} & {
|
|
215
|
-
afterCreate(): void;
|
|
216
|
-
} & {
|
|
217
|
-
afterCreate(): void;
|
|
218
|
-
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
663
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
219
664
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
220
665
|
type: import("mobx-state-tree").ISimpleType<DataSourceType>;
|
|
221
666
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
222
667
|
config: import("mobx-state-tree").IType<import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig, import('../../../api-caller/types').TDataSourceConfig>;
|
|
223
668
|
} & {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
669
|
+
dbInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
670
|
+
tables: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
671
|
+
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]>;
|
|
672
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
673
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
674
|
+
}, {
|
|
675
|
+
readonly loading: boolean;
|
|
676
|
+
readonly empty: boolean;
|
|
677
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
678
|
+
columns: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
679
|
+
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]>;
|
|
680
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
681
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
682
|
+
}, {
|
|
683
|
+
readonly loading: boolean;
|
|
684
|
+
readonly empty: boolean;
|
|
685
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
686
|
+
tableData: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
687
|
+
page: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
688
|
+
limit: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
689
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("../../..").AnyObject[], import("../../..").AnyObject[], import("../../..").AnyObject[]>, [undefined]>;
|
|
690
|
+
total: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
691
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
692
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
693
|
+
}, {
|
|
694
|
+
readonly keywords: {
|
|
695
|
+
table_name: string;
|
|
696
|
+
table_schema: string;
|
|
697
|
+
};
|
|
698
|
+
readonly keywordString: string;
|
|
699
|
+
} & {
|
|
700
|
+
readonly loading: boolean;
|
|
701
|
+
readonly empty: boolean;
|
|
702
|
+
readonly maxPage: number;
|
|
703
|
+
readonly offset: number;
|
|
704
|
+
readonly countSql: string;
|
|
705
|
+
} & {
|
|
706
|
+
setPage(page: number): void;
|
|
707
|
+
resetPage(): void;
|
|
708
|
+
setLimit(limit: number): void;
|
|
709
|
+
} & {
|
|
710
|
+
afterCreate(): void;
|
|
711
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
712
|
+
indexes: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
713
|
+
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]>;
|
|
714
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
715
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
716
|
+
}, {
|
|
717
|
+
readonly loading: boolean;
|
|
718
|
+
readonly empty: boolean;
|
|
719
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
720
|
+
table_schema: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
721
|
+
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
236
722
|
}, {
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
readonly keywords: {
|
|
249
|
-
table_name: string;
|
|
250
|
-
table_schema: string;
|
|
723
|
+
readonly dataSource: any;
|
|
724
|
+
readonly key: any;
|
|
725
|
+
readonly type: any;
|
|
726
|
+
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
727
|
+
readonly reloadConditionString: string;
|
|
728
|
+
} & {
|
|
729
|
+
controllers: {
|
|
730
|
+
tables: AbortController;
|
|
731
|
+
columns: AbortController;
|
|
732
|
+
indexes: AbortController;
|
|
733
|
+
tableData: AbortController;
|
|
251
734
|
};
|
|
252
|
-
readonly keywordString: string;
|
|
253
735
|
} & {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
readonly offset: number;
|
|
258
|
-
readonly countSql: string;
|
|
736
|
+
setKeywords(table_schema: string, table_name: string): void;
|
|
737
|
+
} & {
|
|
738
|
+
initKeywords(): void;
|
|
259
739
|
} & {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
740
|
+
loadTables: () => Promise<void>;
|
|
741
|
+
loadTablesIfEmpty(): void;
|
|
742
|
+
loadColumns: () => Promise<void>;
|
|
743
|
+
loadIndexes: () => Promise<void>;
|
|
744
|
+
loadTableData: () => Promise<void>;
|
|
745
|
+
} & {
|
|
746
|
+
afterCreate(): void;
|
|
263
747
|
} & {
|
|
264
748
|
afterCreate(): void;
|
|
265
749
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
750
|
+
mericoMetricInfo: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
751
|
+
metrics: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
752
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
753
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[], import("./mm-info").MetricBriefInfo[]>, [undefined]>;
|
|
754
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
755
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
756
|
+
}, {
|
|
757
|
+
controller: AbortController;
|
|
758
|
+
} & {
|
|
759
|
+
readonly loading: boolean;
|
|
760
|
+
readonly empty: boolean;
|
|
761
|
+
readonly mmInfo: any;
|
|
762
|
+
} & {
|
|
763
|
+
setKeyword(v: string): void;
|
|
764
|
+
} & {
|
|
765
|
+
load: () => Promise<void>;
|
|
766
|
+
} & {
|
|
767
|
+
afterCreate(): void;
|
|
768
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
769
|
+
metricDetail: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
770
|
+
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]>;
|
|
771
|
+
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]>;
|
|
772
|
+
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]>;
|
|
773
|
+
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]>;
|
|
774
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
775
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
776
|
+
}, {
|
|
777
|
+
controller: AbortController;
|
|
778
|
+
} & {
|
|
779
|
+
readonly loading: boolean;
|
|
780
|
+
readonly hasData: boolean;
|
|
781
|
+
readonly mmInfo: any;
|
|
782
|
+
readonly metricID: string;
|
|
783
|
+
readonly metric: any;
|
|
784
|
+
readonly metricType: any;
|
|
785
|
+
readonly filterColOptions: {
|
|
786
|
+
group: string;
|
|
787
|
+
items: ({
|
|
788
|
+
name: string;
|
|
789
|
+
description: string;
|
|
790
|
+
dimension: null;
|
|
791
|
+
colType: "dimension" | "value_col" | "dimension_col";
|
|
792
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
793
|
+
label: string;
|
|
794
|
+
value: string;
|
|
795
|
+
group?: undefined;
|
|
796
|
+
items?: undefined;
|
|
797
|
+
} | {
|
|
798
|
+
group: string;
|
|
799
|
+
description: string;
|
|
800
|
+
items: {
|
|
801
|
+
id: string;
|
|
802
|
+
description: string;
|
|
803
|
+
field: string;
|
|
804
|
+
dataType: import("./mm-info").DimensionColDataType;
|
|
805
|
+
label: string;
|
|
806
|
+
value: string;
|
|
807
|
+
}[];
|
|
808
|
+
})[];
|
|
809
|
+
}[];
|
|
810
|
+
readonly groupByColOptions: import("./mm-info/metric-detail.utils").MetricGroupByColOption[];
|
|
811
|
+
readonly flatGroupByColOptions: {
|
|
812
|
+
label: string;
|
|
813
|
+
value: string;
|
|
814
|
+
description: string;
|
|
815
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
816
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
817
|
+
}[];
|
|
818
|
+
getGroupByOptions(values: string[]): {
|
|
819
|
+
label: string;
|
|
820
|
+
value: string;
|
|
821
|
+
description: string;
|
|
822
|
+
dataType: "dimension" | import("./mm-info").DimensionColDataType;
|
|
823
|
+
dimension: import("./mm-info").DimensionInfo | null;
|
|
824
|
+
}[];
|
|
825
|
+
} & {
|
|
826
|
+
load: () => Promise<void>;
|
|
827
|
+
} & {
|
|
828
|
+
afterCreate(): void;
|
|
829
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
830
|
+
keyword: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
831
|
+
metricID: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
270
832
|
}, {
|
|
271
|
-
readonly
|
|
272
|
-
readonly
|
|
833
|
+
readonly rootModel: any;
|
|
834
|
+
readonly contentModel: any;
|
|
835
|
+
readonly additionalQueryInfo: import("../../..").TAdditionalQueryInfo;
|
|
836
|
+
readonly dataSource: any;
|
|
837
|
+
readonly key: any;
|
|
838
|
+
readonly type: any;
|
|
839
|
+
readonly metric: import("./mm-info").MetricBriefInfo | null;
|
|
840
|
+
} & {
|
|
841
|
+
selectMetric(metricID: string): void;
|
|
273
842
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
274
|
-
|
|
275
|
-
table_name: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
276
|
-
}, {
|
|
277
|
-
readonly sqlDataSourceType: DataSourceType.Postgresql | DataSourceType.MySQL | DataSourceType.MericoMetricSystem;
|
|
278
|
-
readonly reloadConditionString: string;
|
|
279
|
-
} & {
|
|
280
|
-
controllers: {
|
|
281
|
-
tables: AbortController;
|
|
282
|
-
columns: AbortController;
|
|
283
|
-
indexes: AbortController;
|
|
284
|
-
tableData: AbortController;
|
|
285
|
-
};
|
|
286
|
-
} & {
|
|
287
|
-
setKeywords(table_schema: string, table_name: string): void;
|
|
288
|
-
} & {
|
|
289
|
-
initKeywords(): void;
|
|
290
|
-
} & {
|
|
291
|
-
loadTables: () => Promise<void>;
|
|
292
|
-
loadTablesIfEmpty(): void;
|
|
293
|
-
loadColumns: () => Promise<void>;
|
|
294
|
-
loadIndexes: () => Promise<void>;
|
|
295
|
-
loadTableData: () => Promise<void>;
|
|
296
|
-
} & {
|
|
297
|
-
afterCreate(): void;
|
|
298
|
-
} & {
|
|
299
|
-
afterCreate(): void;
|
|
300
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
843
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
301
844
|
readonly options: {
|
|
302
845
|
value: string;
|
|
303
846
|
label: string;
|