ToolJet/plugins/_templates/plugin/new/index.ejs.t
Midhun G S 72db6f6d8c
Tooljet CLI deployment and sanity check (#2096)
* feature-2054 plugin cli

* plugin cli

* readme changes

* npm publish

* Review comments

* Review comments

* cli fix

* added build flag
2022-02-05 06:49:49 +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: {},
};
}
}