mirror of
https://github.com/immich-app/immich.git
synced 2025-11-29 14:39:48 +09:00
21 lines
364 B
TypeScript
21 lines
364 B
TypeScript
export const ICronRepository = 'ICronRepository';
|
|
|
|
type CronBase = {
|
|
name: string;
|
|
start?: boolean;
|
|
};
|
|
|
|
export type CronCreate = CronBase & {
|
|
expression: string;
|
|
onTick: () => void;
|
|
};
|
|
|
|
export type CronUpdate = CronBase & {
|
|
expression?: string;
|
|
};
|
|
|
|
export interface ICronRepository {
|
|
create(cron: CronCreate): void;
|
|
update(cron: CronUpdate): void;
|
|
}
|