mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-15 00:54:06 -08:00
62c096710f
- Fix autofixable violations - Remove unused directives - Allow for PascalCased variables - needed for dynamically imported or assigned classes, decorators, routers, etc.
28 lines
615 B
TypeScript
28 lines
615 B
TypeScript
import type {
|
|
IExecuteFunctions,
|
|
INodeType,
|
|
INodeTypeBaseDescription,
|
|
INodeTypeDescription,
|
|
} from 'n8n-workflow';
|
|
|
|
import { loadOptions, listSearch } from './methods';
|
|
import { description } from './actions/node.description';
|
|
import { router } from './actions/router';
|
|
|
|
export class MicrosoftOutlookV2 implements INodeType {
|
|
description: INodeTypeDescription;
|
|
|
|
constructor(baseDescription: INodeTypeBaseDescription) {
|
|
this.description = {
|
|
...baseDescription,
|
|
...description,
|
|
};
|
|
}
|
|
|
|
methods = { loadOptions, listSearch };
|
|
|
|
async execute(this: IExecuteFunctions) {
|
|
return router.call(this);
|
|
}
|
|
}
|