n8n/packages/nodes-base/nodes/Microsoft/Outlook/v2/MicrosoftOutlookV2.node.ts
Iván Ovejero 62c096710f
refactor: Run lintfix (no-changelog) (#7537)
- Fix autofixable violations
- Remove unused directives
- Allow for PascalCased variables - needed for dynamically imported or
assigned classes, decorators, routers, etc.
2023-10-27 14:15:02 +02:00

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);
}
}