@devtable/dashboard 5.7.2 → 5.8.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/commits.structure.26a44e4e.mjs +13 -0
- package/dist/dashboard.es.js +10137 -9223
- package/dist/dashboard.umd.js +135 -28
- package/dist/definition-editor/query-editor/delete-query.d.ts +8 -0
- package/dist/efficiency.schema.5ba0fdb1.mjs +82 -0
- package/dist/efficiency.structure.8ac41504.mjs +12 -0
- package/dist/efficiency.structure.cf755f40.mjs +12 -0
- package/dist/heatmap.structure.75d4a09a.mjs +11 -0
- package/dist/interactions/components/index.d.ts +2 -0
- package/dist/interactions/hooks/index.d.ts +2 -0
- package/dist/interactions/index.d.ts +5 -0
- package/dist/interactions/operation/index.d.ts +2 -0
- package/dist/interactions/operation/operation-manager-impl.d.ts +3 -0
- package/dist/interactions/trigger/index.d.ts +1 -0
- package/dist/interactions/trigger/trigger-manager-impl.d.ts +3 -0
- package/dist/main/use-panel-full-screen.d.ts +136 -0
- package/dist/model/mock-context.d.ts +0 -3
- package/dist/model/queries/index.d.ts +69 -17
- package/dist/model/sql-snippets/index.d.ts +0 -14
- package/dist/model/views/index.d.ts +21911 -0
- package/dist/model/views/view/index.d.ts +612 -0
- package/dist/model/views/view/panels/index.d.ts +204 -0
- package/dist/model/views/view/panels/panel.d.ts +68 -0
- package/dist/panel/plugin-adaptor.d.ts +5 -3
- package/dist/panel/use-config-viz-instance-service.d.ts +3 -0
- package/dist/pareto.structure.64175247.mjs +11 -0
- package/dist/pareto.structure.870fcfae.mjs +11 -0
- package/dist/plugins/instance-migrator/index.d.ts +29 -0
- package/dist/plugins/plugin-context.d.ts +18 -1
- package/dist/plugins/plugin-data-migrator/version-based-migrator.d.ts +4 -4
- package/dist/plugins/viz-components/expert-system/index.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/metric-set-selector.d.ts +8 -0
- package/dist/plugins/viz-components/expert-system/request/call-expert-system.d.ts +6 -0
- package/dist/plugins/viz-components/expert-system/request/payload/comparison/efficiency.d.ts +10 -0
- package/dist/plugins/viz-components/expert-system/request/payload/comparison/index.d.ts +8 -0
- package/dist/plugins/viz-components/expert-system/request/payload/dev_load/heatmap.d.ts +9 -0
- package/dist/plugins/viz-components/expert-system/request/payload/dev_load/index.d.ts +14 -0
- package/dist/plugins/viz-components/expert-system/request/payload/dev_load/pareto.d.ts +9 -0
- package/dist/plugins/viz-components/expert-system/request/payload/dev_load/productivity.d.ts +11 -0
- package/dist/plugins/viz-components/expert-system/request/payload/index.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/payload/performance/efficiency.d.ts +10 -0
- package/dist/plugins/viz-components/expert-system/request/payload/performance/index.d.ts +31 -0
- package/dist/plugins/viz-components/expert-system/request/payload/performance/pareto.d.ts +9 -0
- package/dist/plugins/viz-components/expert-system/request/payload/performance/quality.d.ts +34 -0
- package/dist/plugins/viz-components/expert-system/request/payload/performance/quality_history.d.ts +12 -0
- package/dist/plugins/viz-components/expert-system/request/payload/personal_report/commits.d.ts +11 -0
- package/dist/plugins/viz-components/expert-system/request/payload/personal_report/index.d.ts +14 -0
- package/dist/plugins/viz-components/expert-system/request/payload/personal_report/quality.d.ts +13 -0
- package/dist/plugins/viz-components/expert-system/request/payload/personal_report/skills.d.ts +8 -0
- package/dist/plugins/viz-components/expert-system/request/schema/comparison/efficiency.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/dev_load/heatmap.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/dev_load/pareto.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/dev_load/productivity.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/index.d.ts +3 -0
- package/dist/plugins/viz-components/expert-system/request/schema/performance/efficiency.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/performance/pareto.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/performance/quality.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/performance/quality_history.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/personal_report/commits.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/personal_report/quality.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema/personal_report/skills.structure.d.ts +2 -0
- package/dist/plugins/viz-components/expert-system/request/schema-and-validation.d.ts +8 -0
- package/dist/plugins/viz-components/expert-system/scenario-selector.d.ts +8 -0
- package/dist/plugins/viz-components/expert-system/type.d.ts +22 -0
- package/dist/plugins/viz-components/expert-system/viz-expert-system-panel.d.ts +3 -0
- package/dist/plugins/viz-components/expert-system/viz-expert-system.d.ts +3 -0
- package/dist/productivity.structure.1fc6f3e4.mjs +13 -0
- package/dist/quality.schema.4f5a1bc0.mjs +182 -0
- package/dist/quality.structure.b1ac00db.mjs +15 -0
- package/dist/quality.structure.bb057537.mjs +19 -0
- package/dist/quality_history.schema.5c04f870.mjs +118 -0
- package/dist/quality_history.structure.ffc4ca11.mjs +24 -0
- package/dist/service-locator/index.d.ts +27 -0
- package/dist/service-locator/use-service-locator.d.ts +8 -0
- package/dist/skills.structure.8ceda40e.mjs +10 -0
- package/dist/types/plugin/index.d.ts +14 -6
- package/package.json +2 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { QueryModelInstance } from '~/model';
|
|
3
|
+
export interface IDeleteQueryProps {
|
|
4
|
+
queryModel: QueryModelInstance;
|
|
5
|
+
}
|
|
6
|
+
export declare const DeleteQuery: ((props: IDeleteQueryProps) => JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const e = "array", t = "Root Schema", a = {
|
|
2
|
+
type: "object",
|
|
3
|
+
default: {},
|
|
4
|
+
title: "A Schema",
|
|
5
|
+
required: [
|
|
6
|
+
"actor",
|
|
7
|
+
"eloc_type",
|
|
8
|
+
"ref_date",
|
|
9
|
+
"eloc"
|
|
10
|
+
],
|
|
11
|
+
properties: {
|
|
12
|
+
actor: {
|
|
13
|
+
type: "string",
|
|
14
|
+
default: "",
|
|
15
|
+
title: "The actor Schema",
|
|
16
|
+
examples: [
|
|
17
|
+
"Name of the subject"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
eloc_type: {
|
|
21
|
+
type: "string",
|
|
22
|
+
default: "",
|
|
23
|
+
title: "The eloc_type Schema",
|
|
24
|
+
enum: [
|
|
25
|
+
"new",
|
|
26
|
+
"accumulated"
|
|
27
|
+
],
|
|
28
|
+
examples: [
|
|
29
|
+
"new"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
ref_date: {
|
|
33
|
+
type: "string",
|
|
34
|
+
default: "",
|
|
35
|
+
title: "The ref_date Schema",
|
|
36
|
+
examples: [
|
|
37
|
+
"2021-12-31"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
eloc: {
|
|
41
|
+
type: [
|
|
42
|
+
"number",
|
|
43
|
+
"string"
|
|
44
|
+
],
|
|
45
|
+
default: 0,
|
|
46
|
+
title: "The eloc Schema",
|
|
47
|
+
examples: [
|
|
48
|
+
999
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
examples: [
|
|
53
|
+
{
|
|
54
|
+
actor: "Name of the subject",
|
|
55
|
+
eloc_type: "new",
|
|
56
|
+
ref_date: "2021-12-31",
|
|
57
|
+
eloc: 999
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}, c = [
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
actor: "Name of the subject",
|
|
64
|
+
eloc_type: "new",
|
|
65
|
+
ref_date: "2021-12-31",
|
|
66
|
+
eloc: 999
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
], l = {
|
|
70
|
+
type: e,
|
|
71
|
+
default: [],
|
|
72
|
+
title: t,
|
|
73
|
+
items: a,
|
|
74
|
+
examples: c
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
l as default,
|
|
78
|
+
c as examples,
|
|
79
|
+
a as items,
|
|
80
|
+
t as title,
|
|
81
|
+
e as type
|
|
82
|
+
};
|
|
@@ -5,6 +5,9 @@ export declare class OperationManager implements IVizOperationManager {
|
|
|
5
5
|
protected attachments: AttachmentInstanceManager<IDashboardOperation>;
|
|
6
6
|
constructor(instance: VizInstance, operations?: IDashboardOperationSchema[]);
|
|
7
7
|
runOperation(operationId: string, payload: Record<string, unknown>): Promise<void>;
|
|
8
|
+
private tryGetSchema;
|
|
9
|
+
needMigration(): Promise<boolean>;
|
|
10
|
+
runMigration(): Promise<void>;
|
|
8
11
|
createOrGetOperation(id: string, schema: IDashboardOperationSchema): Promise<IDashboardOperation>;
|
|
9
12
|
getOperationList(): Promise<IDashboardOperation[]>;
|
|
10
13
|
getOperationSchemaList(): IDashboardOperationSchema[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './trigger-manager-impl';
|
|
@@ -15,4 +15,7 @@ export declare class VizTriggerManager implements IVizTriggerManager {
|
|
|
15
15
|
getTriggerSchemaList(): ITriggerSchema[];
|
|
16
16
|
removeTrigger(triggerId: string): Promise<void>;
|
|
17
17
|
retrieveTrigger(id: string): Promise<ITrigger | undefined>;
|
|
18
|
+
protected getMigrationTasks(): Promise<(() => Promise<void>)[]>;
|
|
19
|
+
needMigration(): Promise<boolean>;
|
|
20
|
+
runMigration(): Promise<void>;
|
|
18
21
|
}
|
|
@@ -110,6 +110,74 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
110
110
|
};
|
|
111
111
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
112
112
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
113
|
+
readonly query: ({
|
|
114
|
+
id: string;
|
|
115
|
+
type: import("../model/queries/types").DataSourceType;
|
|
116
|
+
key: string;
|
|
117
|
+
sql: string;
|
|
118
|
+
state: "idle" | "loading" | "error";
|
|
119
|
+
data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
|
|
120
|
+
error: any;
|
|
121
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
122
|
+
readonly valid: string;
|
|
123
|
+
readonly configurations: {
|
|
124
|
+
id: string;
|
|
125
|
+
type: import("../model/queries/types").DataSourceType;
|
|
126
|
+
key: string;
|
|
127
|
+
sql: string;
|
|
128
|
+
};
|
|
129
|
+
} & {
|
|
130
|
+
readonly formattedSQL: any;
|
|
131
|
+
} & {
|
|
132
|
+
readonly json: {
|
|
133
|
+
id: string;
|
|
134
|
+
type: import("../model/queries/types").DataSourceType;
|
|
135
|
+
key: string;
|
|
136
|
+
sql: string;
|
|
137
|
+
};
|
|
138
|
+
} & {
|
|
139
|
+
setID(id: string): void;
|
|
140
|
+
setKey(key: string): void;
|
|
141
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
142
|
+
setSQL(sql: string): void;
|
|
143
|
+
fetchData: () => Promise<void>;
|
|
144
|
+
} & {
|
|
145
|
+
afterCreate(): void;
|
|
146
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
147
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
148
|
+
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
149
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
150
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
151
|
+
} & {
|
|
152
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
|
|
153
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
|
|
154
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
155
|
+
}, {
|
|
156
|
+
readonly valid: string;
|
|
157
|
+
readonly configurations: {
|
|
158
|
+
id: string;
|
|
159
|
+
type: import("../model/queries/types").DataSourceType;
|
|
160
|
+
key: string;
|
|
161
|
+
sql: string;
|
|
162
|
+
};
|
|
163
|
+
} & {
|
|
164
|
+
readonly formattedSQL: any;
|
|
165
|
+
} & {
|
|
166
|
+
readonly json: {
|
|
167
|
+
id: string;
|
|
168
|
+
type: import("../model/queries/types").DataSourceType;
|
|
169
|
+
key: string;
|
|
170
|
+
sql: string;
|
|
171
|
+
};
|
|
172
|
+
} & {
|
|
173
|
+
setID(id: string): void;
|
|
174
|
+
setKey(key: string): void;
|
|
175
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
176
|
+
setSQL(sql: string): void;
|
|
177
|
+
fetchData: () => Promise<void>;
|
|
178
|
+
} & {
|
|
179
|
+
afterCreate(): void;
|
|
180
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
113
181
|
readonly json: {
|
|
114
182
|
id: string;
|
|
115
183
|
title: string;
|
|
@@ -192,6 +260,74 @@ export declare function usePanelFullScreen(view: ViewModelInstance, panelID: str
|
|
|
192
260
|
};
|
|
193
261
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
194
262
|
}, {
|
|
263
|
+
readonly query: ({
|
|
264
|
+
id: string;
|
|
265
|
+
type: import("../model/queries/types").DataSourceType;
|
|
266
|
+
key: string;
|
|
267
|
+
sql: string;
|
|
268
|
+
state: "idle" | "loading" | "error";
|
|
269
|
+
data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
|
|
270
|
+
error: any;
|
|
271
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
272
|
+
readonly valid: string;
|
|
273
|
+
readonly configurations: {
|
|
274
|
+
id: string;
|
|
275
|
+
type: import("../model/queries/types").DataSourceType;
|
|
276
|
+
key: string;
|
|
277
|
+
sql: string;
|
|
278
|
+
};
|
|
279
|
+
} & {
|
|
280
|
+
readonly formattedSQL: any;
|
|
281
|
+
} & {
|
|
282
|
+
readonly json: {
|
|
283
|
+
id: string;
|
|
284
|
+
type: import("../model/queries/types").DataSourceType;
|
|
285
|
+
key: string;
|
|
286
|
+
sql: string;
|
|
287
|
+
};
|
|
288
|
+
} & {
|
|
289
|
+
setID(id: string): void;
|
|
290
|
+
setKey(key: string): void;
|
|
291
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
292
|
+
setSQL(sql: string): void;
|
|
293
|
+
fetchData: () => Promise<void>;
|
|
294
|
+
} & {
|
|
295
|
+
afterCreate(): void;
|
|
296
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
297
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
298
|
+
type: import("mobx-state-tree").ISimpleType<import("../model/queries/types").DataSourceType>;
|
|
299
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
300
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
301
|
+
} & {
|
|
302
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
|
|
303
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
|
|
304
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
305
|
+
}, {
|
|
306
|
+
readonly valid: string;
|
|
307
|
+
readonly configurations: {
|
|
308
|
+
id: string;
|
|
309
|
+
type: import("../model/queries/types").DataSourceType;
|
|
310
|
+
key: string;
|
|
311
|
+
sql: string;
|
|
312
|
+
};
|
|
313
|
+
} & {
|
|
314
|
+
readonly formattedSQL: any;
|
|
315
|
+
} & {
|
|
316
|
+
readonly json: {
|
|
317
|
+
id: string;
|
|
318
|
+
type: import("../model/queries/types").DataSourceType;
|
|
319
|
+
key: string;
|
|
320
|
+
sql: string;
|
|
321
|
+
};
|
|
322
|
+
} & {
|
|
323
|
+
setID(id: string): void;
|
|
324
|
+
setKey(key: string): void;
|
|
325
|
+
setType(type: import("../model/queries/types").DataSourceType): void;
|
|
326
|
+
setSQL(sql: string): void;
|
|
327
|
+
fetchData: () => Promise<void>;
|
|
328
|
+
} & {
|
|
329
|
+
afterCreate(): void;
|
|
330
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
|
|
195
331
|
readonly json: {
|
|
196
332
|
id: string;
|
|
197
333
|
title: string;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
export declare const MockContextModel: import("mobx-state-tree").IModelType<{
|
|
2
|
-
original: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
3
2
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<any, any, any>, [undefined]>;
|
|
4
3
|
}, {
|
|
5
4
|
readonly keys: string[];
|
|
6
5
|
readonly entries: [string, unknown][];
|
|
7
|
-
readonly changed: boolean;
|
|
8
6
|
} & {
|
|
9
7
|
replace(record: Record<string, $TSFixMe>): void;
|
|
10
8
|
get(key: string): any;
|
|
11
9
|
set(key: string, value: $TSFixMe): void;
|
|
12
|
-
reset(): void;
|
|
13
10
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
14
11
|
export declare type MockContextInfoType = Record<string, $TSFixMe>;
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
import { QueryModelInstance } from './query';
|
|
2
2
|
export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
3
|
-
original: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
4
|
-
id: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
-
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
6
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
8
|
-
}, {
|
|
9
|
-
readonly valid: string;
|
|
10
|
-
readonly configurations: {
|
|
11
|
-
id: string;
|
|
12
|
-
type: import("./types").DataSourceType;
|
|
13
|
-
key: string;
|
|
14
|
-
sql: string;
|
|
15
|
-
};
|
|
16
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
17
3
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
18
4
|
id: import("mobx-state-tree").ISimpleType<string>;
|
|
19
5
|
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
@@ -50,7 +36,6 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
50
36
|
afterCreate(): void;
|
|
51
37
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
52
38
|
}, {
|
|
53
|
-
readonly changed: boolean;
|
|
54
39
|
readonly firstID: string | undefined;
|
|
55
40
|
findByID(id: string): ({
|
|
56
41
|
id: string;
|
|
@@ -132,13 +117,80 @@ export declare const QueriesModel: import("mobx-state-tree").IModelType<{
|
|
|
132
117
|
sql: string;
|
|
133
118
|
}[];
|
|
134
119
|
} & {
|
|
135
|
-
reset(): void;
|
|
136
120
|
replace(current: Array<QueryModelInstance>): void;
|
|
137
121
|
append(item: QueryModelInstance): void;
|
|
138
122
|
remove(index: number): void;
|
|
139
123
|
replaceByIndex(index: number, replacement: QueryModelInstance): void;
|
|
140
124
|
downloadAllData(): void;
|
|
141
|
-
downloadDataByQueryID(
|
|
125
|
+
downloadDataByQueryID(query?: ({
|
|
126
|
+
id: string;
|
|
127
|
+
type: import("./types").DataSourceType;
|
|
128
|
+
key: string;
|
|
129
|
+
sql: string;
|
|
130
|
+
state: "idle" | "loading" | "error";
|
|
131
|
+
data: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>>;
|
|
132
|
+
error: any;
|
|
133
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
134
|
+
readonly valid: string;
|
|
135
|
+
readonly configurations: {
|
|
136
|
+
id: string;
|
|
137
|
+
type: import("./types").DataSourceType;
|
|
138
|
+
key: string;
|
|
139
|
+
sql: string;
|
|
140
|
+
};
|
|
141
|
+
} & {
|
|
142
|
+
readonly formattedSQL: any;
|
|
143
|
+
} & {
|
|
144
|
+
readonly json: {
|
|
145
|
+
id: string;
|
|
146
|
+
type: import("./types").DataSourceType;
|
|
147
|
+
key: string;
|
|
148
|
+
sql: string;
|
|
149
|
+
};
|
|
150
|
+
} & {
|
|
151
|
+
setID(id: string): void;
|
|
152
|
+
setKey(key: string): void;
|
|
153
|
+
setType(type: import("./types").DataSourceType): void;
|
|
154
|
+
setSQL(sql: string): void;
|
|
155
|
+
fetchData: () => Promise<void>;
|
|
156
|
+
} & {
|
|
157
|
+
afterCreate(): void;
|
|
158
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
159
|
+
id: import("mobx-state-tree").ISimpleType<string>;
|
|
160
|
+
type: import("mobx-state-tree").ISimpleType<import("./types").DataSourceType>;
|
|
161
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
162
|
+
sql: import("mobx-state-tree").ISimpleType<string>;
|
|
163
|
+
} & {
|
|
164
|
+
state: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<"idle" | "loading" | "error">, [undefined]>;
|
|
165
|
+
data: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<string[] | number[], string[] | number[], string[] | number[]>>, [undefined]>;
|
|
166
|
+
error: import("mobx-state-tree").IType<any, any, any>;
|
|
167
|
+
}, {
|
|
168
|
+
readonly valid: string;
|
|
169
|
+
readonly configurations: {
|
|
170
|
+
id: string;
|
|
171
|
+
type: import("./types").DataSourceType;
|
|
172
|
+
key: string;
|
|
173
|
+
sql: string;
|
|
174
|
+
};
|
|
175
|
+
} & {
|
|
176
|
+
readonly formattedSQL: any;
|
|
177
|
+
} & {
|
|
178
|
+
readonly json: {
|
|
179
|
+
id: string;
|
|
180
|
+
type: import("./types").DataSourceType;
|
|
181
|
+
key: string;
|
|
182
|
+
sql: string;
|
|
183
|
+
};
|
|
184
|
+
} & {
|
|
185
|
+
setID(id: string): void;
|
|
186
|
+
setKey(key: string): void;
|
|
187
|
+
setType(type: import("./types").DataSourceType): void;
|
|
188
|
+
setSQL(sql: string): void;
|
|
189
|
+
fetchData: () => Promise<void>;
|
|
190
|
+
} & {
|
|
191
|
+
afterCreate(): void;
|
|
192
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined): void;
|
|
142
193
|
refetchDataByQueryID(queryID: string): Promise<void> | undefined;
|
|
194
|
+
removeQuery(queryID: string): void;
|
|
143
195
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
144
196
|
export * from './query';
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { SQLSnippetModelInstance } from './sql-snippet';
|
|
2
2
|
export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
|
|
3
|
-
original: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
4
|
-
key: import("mobx-state-tree").ISimpleType<string>;
|
|
5
|
-
value: import("mobx-state-tree").ISimpleType<string>;
|
|
6
|
-
}, {
|
|
7
|
-
readonly json: {
|
|
8
|
-
key: string;
|
|
9
|
-
value: string;
|
|
10
|
-
};
|
|
11
|
-
} & {
|
|
12
|
-
setKey(key: string): void;
|
|
13
|
-
setValue(value: string): void;
|
|
14
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
15
3
|
current: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
16
4
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
17
5
|
value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -25,14 +13,12 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
|
|
|
25
13
|
setValue(value: string): void;
|
|
26
14
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>, [undefined]>;
|
|
27
15
|
}, {
|
|
28
|
-
readonly changed: boolean;
|
|
29
16
|
readonly json: {
|
|
30
17
|
key: string;
|
|
31
18
|
value: string;
|
|
32
19
|
}[];
|
|
33
20
|
readonly record: Record<string, string>;
|
|
34
21
|
} & {
|
|
35
|
-
reset(): void;
|
|
36
22
|
replace(current: Array<SQLSnippetModelInstance>): void;
|
|
37
23
|
append(item: SQLSnippetModelInstance): void;
|
|
38
24
|
remove(index: number): void;
|