mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-22 16:38:21 +00:00
* add source options types * Remove query type * fix source options * add accesstoken - slack * add types.ts file * add idx files * Add query options type for plugins (#1878) * add query options type * add missing import
15 lines
463 B
Perl
15 lines
463 B
Perl
---
|
|
to: <%= plugins_path %>/packages/<%= name %>/lib/index.ts
|
|
---
|
|
|
|
import { QueryError, QueryResult, QueryService, ConnectionTestResult } from '@tooljet-plugins/common';
|
|
import { SourceOptions, QueryOptions } from './types'
|
|
|
|
export default class <%= Name %> implements QueryService {
|
|
async run(sourceOptions: SourceOptions, queryOptions: QueryOptions, dataSourceId: string): Promise<QueryResult> {
|
|
return {
|
|
status: 'ok',
|
|
data: {},
|
|
};
|
|
}
|
|
}
|