1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/task/TaskDTO.ts
2019-07-27 22:56:12 +02:00

24 lines
414 B
TypeScript

export type fieldType = 'string' | 'number' | 'boolean';
export enum DefaultsTasks {
Indexing, 'Database Reset', Dummy
}
export interface ConfigTemplateEntry {
id: string;
name: string;
type: fieldType;
defaultValue: any;
}
/*
export interface NestedFieldType {
[key: string]: fieldType | NestedFieldType;
}*/
export interface TaskDTO {
Name: string;
ConfigTemplate: ConfigTemplateEntry[];
}