delegate-framework
Version:
A TypeScript framework for building robust, production-ready blockchain workflows with comprehensive error handling, logging, and testing. Maintained by delegate.fun
22 lines • 557 B
TypeScript
/**
* Core types for the delegate framework
*/
export type TaskStatus = 'completed' | 'running' | 'failed' | 'new';
export type ScheduleUnit = 'minutes' | 'hours' | 'days';
export interface ScheduleInterval {
unit: ScheduleUnit;
interval: number;
}
export interface BaseTask {
type: string;
id: string;
name: string;
status: TaskStatus;
lastRun: Date;
nextRun: Date | null;
scheduleEnabled: boolean;
scheduleInterval: ScheduleInterval;
createdAt: Date;
updatedAt: Date;
}
//# sourceMappingURL=types.d.ts.map