1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

30 lines
606 B
TypeScript
Raw Normal View History

2019-12-15 15:36:05 +01:00
export type fieldType = 'string' | 'number' | 'boolean' | 'number-array';
2019-07-27 22:56:12 +02:00
2019-12-24 12:22:25 +01:00
export enum DefaultsJobs {
2019-12-26 21:03:10 +01:00
Indexing = 1,
'Database Reset' = 2,
'Video Converting' = 3,
'Photo Converting' = 4,
'Thumbnail Generation' = 5,
'Temp Folder Cleaning' = 6
2019-07-27 22:56:12 +02:00
}
export interface ConfigTemplateEntry {
id: string;
name: string;
type: fieldType;
defaultValue: any;
}
2019-12-24 12:22:25 +01:00
export interface JobDTO {
2019-07-27 22:56:12 +02:00
Name: string;
ConfigTemplate: ConfigTemplateEntry[];
}
2019-12-29 00:35:41 +01:00
export module JobDTO {
export const getHashName = (jobName: string, config: any = {}) => {
return jobName + '-' + JSON.stringify(config);
};
}