n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -7,30 +7,32 @@ import {
MoveHandler,
ReopenHandler,
SyncHandler,
UpdateHandler
UpdateHandler,
} from './OperationHandler';
import {Context} from './GenericFunctions';
import { Context } from './GenericFunctions';
import { IDataObject } from 'n8n-workflow';
export class TodoistService implements Service {
async execute(ctx: Context, operation: OperationType, itemIndex: number): Promise<TodoistResponse> {
async execute(
ctx: Context,
operation: OperationType,
itemIndex: number,
): Promise<TodoistResponse> {
return this.handlers[operation].handleOperation(ctx, itemIndex);
}
private handlers = {
'create': new CreateHandler(),
'close': new CloseHandler(),
'delete': new DeleteHandler(),
'get': new GetHandler(),
'getAll': new GetAllHandler(),
'reopen': new ReopenHandler(),
'update': new UpdateHandler(),
'move': new MoveHandler(),
'sync': new SyncHandler(),
create: new CreateHandler(),
close: new CloseHandler(),
delete: new DeleteHandler(),
get: new GetHandler(),
getAll: new GetAllHandler(),
reopen: new ReopenHandler(),
update: new UpdateHandler(),
move: new MoveHandler(),
sync: new SyncHandler(),
};
}
export enum OperationType {