ToolJet/plugins/_templates/plugin/new/index.ejs.t
Gandharv d367720c66
Add source options types for plugins (#1861)
* 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
2022-01-24 19:29:21 +05:30

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: {},
};
}
}