@devtable/settings-form 9.14.1 → 9.15.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 +1 -1
- package/dist/api-caller/sql_snippet.d.ts +8 -0
- package/dist/api-caller/sql_snippet.typed.d.ts +17 -0
- package/dist/components/minimal-mocaco-editor.d.ts +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/{package-f81dbd50.mjs → package-7cc82e0b.mjs} +1 -1
- package/dist/settings-form.es.js +5268 -1084
- package/dist/settings-form.umd.js +25 -12
- package/dist/sql_snippet/add-sql_snippet.d.ts +8 -0
- package/dist/sql_snippet/delete-sql_snippet.d.ts +9 -0
- package/dist/sql_snippet/index.d.ts +4 -0
- package/dist/sql_snippet/sql_snippet-list.d.ts +8 -0
- package/dist/sql_snippet/styles.d.ts +9 -0
- package/dist/sql_snippet/update-sql_snippet.d.ts +10 -0
- package/package.json +1 -1
|
@@ -26,4 +26,11 @@ export declare const APICaller: {
|
|
|
26
26
|
}>;
|
|
27
27
|
delete: (id: string) => Promise<void>;
|
|
28
28
|
};
|
|
29
|
+
sql_snippet: {
|
|
30
|
+
list: ({ pagination }: import("./sql_snippet.typed").ListSQLSnippetReqType, signal?: AbortSignal | undefined) => Promise<import("./sql_snippet.typed").ListSQLSnippetRespType>;
|
|
31
|
+
get: (id: string, signal?: AbortSignal | undefined) => Promise<import("./sql_snippet.typed").SQLSnippetDBType | null>;
|
|
32
|
+
create: (payload: import("./sql_snippet.typed").TCreateSQLSnippetPayload, signal?: AbortSignal | undefined) => Promise<import("./sql_snippet.typed").SQLSnippetDBType>;
|
|
33
|
+
update: (payload: import("./sql_snippet.typed").TCreateSQLSnippetPayload, signal?: AbortSignal | undefined) => Promise<import("./sql_snippet.typed").SQLSnippetDBType>;
|
|
34
|
+
delete: (id: string, signal?: AbortSignal | undefined) => Promise<void>;
|
|
35
|
+
};
|
|
29
36
|
};
|
|
@@ -8,6 +8,6 @@ export declare const APIClient: {
|
|
|
8
8
|
nonce_str: string;
|
|
9
9
|
sign: string;
|
|
10
10
|
} | undefined;
|
|
11
|
-
getRequest(method: Method): (url: string, data: $TSFixMe, options?: $TSFixMe) => Promise<any>;
|
|
11
|
+
getRequest(method: Method, signal?: AbortSignal | undefined): (url: string, data: $TSFixMe, options?: $TSFixMe) => Promise<any>;
|
|
12
12
|
};
|
|
13
13
|
export declare function configureAPIClient(config: ISettingsFormConfig): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ListSQLSnippetReqType, ListSQLSnippetRespType, SQLSnippetDBType, TCreateSQLSnippetPayload, TUpdateSQLSnippetPayload } from './sql_snippet.typed';
|
|
2
|
+
export declare const sql_snippet: {
|
|
3
|
+
list: ({ pagination }: ListSQLSnippetReqType, signal?: AbortSignal | undefined) => Promise<ListSQLSnippetRespType>;
|
|
4
|
+
get: (id: string, signal?: AbortSignal | undefined) => Promise<SQLSnippetDBType | null>;
|
|
5
|
+
create: (payload: TCreateSQLSnippetPayload, signal?: AbortSignal | undefined) => Promise<SQLSnippetDBType>;
|
|
6
|
+
update: (payload: TUpdateSQLSnippetPayload, signal?: AbortSignal | undefined) => Promise<SQLSnippetDBType>;
|
|
7
|
+
delete: (id: string, signal?: AbortSignal | undefined) => Promise<void>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PaginationResponse } from './types';
|
|
2
|
+
export declare type SQLSnippetDBType = {
|
|
3
|
+
id: string;
|
|
4
|
+
content: string;
|
|
5
|
+
is_preset: boolean;
|
|
6
|
+
create_time: string;
|
|
7
|
+
update_time: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type TCreateSQLSnippetPayload = Pick<SQLSnippetDBType, 'id' | 'content'>;
|
|
10
|
+
export declare type TUpdateSQLSnippetPayload = TCreateSQLSnippetPayload;
|
|
11
|
+
export declare type ListSQLSnippetReqType = {
|
|
12
|
+
pagination: {
|
|
13
|
+
page: number;
|
|
14
|
+
pagesize: number;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare type ListSQLSnippetRespType = PaginationResponse<SQLSnippetDBType>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface IMinimalMonacoEditor {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange?: (v: string) => void;
|
|
5
|
+
height?: string;
|
|
6
|
+
defaultLanguage?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const MinimalMonacoEditor: ({ value, onChange, height, defaultLanguage, }: IMinimalMonacoEditor) => JSX.Element;
|
|
9
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,10 +2,12 @@ export declare const getVersion: () => Promise<string>;
|
|
|
2
2
|
export * from './datasource';
|
|
3
3
|
export * from './account';
|
|
4
4
|
export * from './api-key';
|
|
5
|
+
export * from './sql_snippet';
|
|
5
6
|
export * from './api-caller/account.typed';
|
|
6
7
|
export * from './api-caller/api-key.typed';
|
|
7
8
|
export * from './api-caller/datasource.typed';
|
|
8
9
|
export * from './api-caller/role.typed';
|
|
10
|
+
export * from './api-caller/sql_snippet.typed';
|
|
9
11
|
export interface ISettingsFormConfig {
|
|
10
12
|
basename: string;
|
|
11
13
|
apiBaseURL: string;
|