25 lines
489 B
TypeScript
25 lines
489 B
TypeScript
import { IsArray, IsObject, IsOptional, IsString } from 'class-validator';
|
|
import { ProcessGraphDefinition } from '../ai-processes.types';
|
|
|
|
export class CreateAiProcessDto {
|
|
@IsString()
|
|
name!: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
description?: string;
|
|
|
|
@IsObject()
|
|
graph!: ProcessGraphDefinition;
|
|
}
|
|
|
|
export class UpdateAiProcessDto {
|
|
@IsObject()
|
|
graph!: ProcessGraphDefinition;
|
|
}
|
|
|
|
export class AiProcessListResponseDto {
|
|
@IsArray()
|
|
items!: Record<string, unknown>[];
|
|
}
|