@devtable/dashboard 9.15.0 → 9.16.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 +11 -8
- package/dist/components/minimal-monaco-editor.d.ts +2 -1
- package/dist/dashboard.es.js +18846 -18843
- package/dist/dashboard.umd.js +159 -158
- package/dist/main/dashboard-editor/settings/content/utils.d.ts +1 -1
- package/dist/main/dashboard-editor/settings/content/view-query-vars/global-sql-snippets-table.d.ts +4 -0
- package/dist/main/dashboard-editor/settings/content/view-query-vars/index.d.ts +4 -0
- package/dist/main/dashboard-editor/settings/content/view-query-vars/query-variables-guide.d.ts +8 -0
- package/dist/main/dashboard-editor/settings/content/view-query-vars/query-variables-modal.d.ts +4 -0
- package/dist/model/editor/index.d.ts +2 -2
- package/dist/model/global-sql-snippets/global-sql-snippet.d.ts +7 -0
- package/dist/model/global-sql-snippets/index.d.ts +31 -0
- package/dist/utils/http-query.d.ts +1 -7
- package/dist/utils/sql.d.ts +3 -13
- package/package.json +1 -1
- package/dist/main/dashboard-editor/settings/content/view-global-vars/global-variables-guide.d.ts +0 -8
- package/dist/main/dashboard-editor/settings/content/view-global-vars/global-variables-modal.d.ts +0 -4
- package/dist/main/dashboard-editor/settings/content/view-global-vars/index.d.ts +0 -4
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContextInfoType } from '../model/context';
|
|
1
|
+
import { TPayloadForSQL } from '../model';
|
|
3
2
|
import { DataSourceType } from '../model/queries/types';
|
|
4
|
-
import { SQLSnippetModelInstance } from '../model/sql-snippets';
|
|
5
3
|
import { IDataSource } from './types';
|
|
6
4
|
export declare type QueryFailureError = {
|
|
7
5
|
code: 'BAD_REQUEST';
|
|
@@ -10,9 +8,6 @@ export declare type QueryFailureError = {
|
|
|
10
8
|
};
|
|
11
9
|
};
|
|
12
10
|
interface IQueryBySQL {
|
|
13
|
-
context: ContextInfoType;
|
|
14
|
-
mock_context: Record<string, $TSFixMe>;
|
|
15
|
-
sqlSnippets: SQLSnippetModelInstance[];
|
|
16
11
|
title: string;
|
|
17
12
|
query: {
|
|
18
13
|
type: DataSourceType;
|
|
@@ -21,9 +16,9 @@ interface IQueryBySQL {
|
|
|
21
16
|
pre_process: string;
|
|
22
17
|
post_process: string;
|
|
23
18
|
};
|
|
24
|
-
|
|
19
|
+
payload: TPayloadForSQL;
|
|
25
20
|
}
|
|
26
|
-
export declare function queryBySQL({
|
|
21
|
+
export declare function queryBySQL({ query, payload }: IQueryBySQL, signal: AbortSignal): Promise<any>;
|
|
27
22
|
interface IQueryByHTTP {
|
|
28
23
|
type: DataSourceType;
|
|
29
24
|
key: string;
|
|
@@ -32,4 +27,12 @@ interface IQueryByHTTP {
|
|
|
32
27
|
export declare function queryByHTTP({ type, key, configString }: IQueryByHTTP, signal: AbortSignal): Promise<any>;
|
|
33
28
|
export declare type TQuerySources = Record<string, string[]>;
|
|
34
29
|
export declare function listDataSources(): Promise<IDataSource[]>;
|
|
30
|
+
export declare type GlobalSQLSnippetDBType = {
|
|
31
|
+
id: string;
|
|
32
|
+
content: string;
|
|
33
|
+
is_preset: boolean;
|
|
34
|
+
create_time: string;
|
|
35
|
+
update_time: string;
|
|
36
|
+
};
|
|
37
|
+
export declare function listGlobalSQLSnippets(): Promise<GlobalSQLSnippetDBType[]>;
|
|
35
38
|
export {};
|
|
@@ -4,6 +4,7 @@ interface IMinimalMonacoEditor {
|
|
|
4
4
|
onChange?: (v: string) => void;
|
|
5
5
|
height?: string;
|
|
6
6
|
defaultLanguage?: string;
|
|
7
|
+
theme?: string;
|
|
7
8
|
}
|
|
8
|
-
export declare const MinimalMonacoEditor: ({ value, onChange, height, defaultLanguage, }: IMinimalMonacoEditor) => JSX.Element;
|
|
9
|
+
export declare const MinimalMonacoEditor: ({ value, onChange, height, defaultLanguage, theme, }: IMinimalMonacoEditor) => JSX.Element;
|
|
9
10
|
export {};
|