refactor: rewrite scheduler as functional

This commit is contained in:
Ali BARIN
2022-10-06 23:11:14 +02:00
committed by Faruk AYDIN
parent 0f3d1f0173
commit 45c0995d9d
16 changed files with 749 additions and 822 deletions

View File

@@ -1,15 +1,10 @@
import Triggers from './triggers';
import {
IService,
IConnection,
IFlow,
IStep,
} from '@automatisch/types';
export default class Scheduler implements IService {
triggers: Triggers;
constructor(connection: IConnection, flow: IFlow, step: IStep) {
this.triggers = new Triggers(step.parameters);
}
}
export default {
name: "Scheduler",
key: "scheduler",
iconUrl: "{BASE_URL}/apps/scheduler/assets/favicon.svg",
docUrl: "https://automatisch.io/docs/scheduler",
authDocUrl: "https://automatisch.io/docs/connections/scheduler",
primaryColor: "0059F7",
supportsConnections: false,
requiresAuthentication: false,
};