mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
16 lines
676 B
TypeScript
16 lines
676 B
TypeScript
import { App } from './app.type';
|
|
import { ConnectionTestResult } from './connection_test_result.type';
|
|
import { QueryResult } from './query_result.type';
|
|
import { User } from './user.type';
|
|
export interface QueryService {
|
|
run(
|
|
sourceOptions: object,
|
|
queryOptions: object,
|
|
dataSourceId?: string,
|
|
dataSourceUpdatedAt?: string,
|
|
context?: { user?: User; app?: App }
|
|
): Promise<QueryResult>;
|
|
getConnection?(queryOptions: object, options: any, checkCache: boolean, dataSourceId: string): Promise<object>;
|
|
testConnection?(sourceOptions: object): Promise<ConnectionTestResult>;
|
|
invokeMethod?(methodName: string, ...args: any[]): Promise<QueryResult>;
|
|
}
|