- add timeoutSeconds field to scenario and step entities - add timeoutSeconds to create/update DTOs for scenario and step - enforce timeout via scheduler: abort run if step exceeds limit - expose timeoutSeconds in MCP create/update scenario and step tools - add client-side type, API, i18n, and form support for timeoutSeconds - add integration tests for timeout persistence via REST and MCP
27 lines
747 B
TypeScript
27 lines
747 B
TypeScript
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { IsInt, IsNotEmpty, IsOptional, IsString, IsUUID, Min } from "class-validator";
|
|
|
|
export class UpdateScenarioDto {
|
|
@ApiPropertyOptional({ example: "Updated scenario name" })
|
|
@IsOptional()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
name?: string;
|
|
|
|
@ApiPropertyOptional({ description: "Optional markdown description" })
|
|
@IsOptional()
|
|
@IsString()
|
|
description?: string;
|
|
|
|
@ApiPropertyOptional({ description: "Linked environment ID (null to unlink)" })
|
|
@IsOptional()
|
|
@IsUUID()
|
|
environmentId?: string | null;
|
|
|
|
@ApiPropertyOptional({ description: "Scenario timeout in seconds (null to use default of 600)" })
|
|
@IsOptional()
|
|
@IsInt()
|
|
@Min(1)
|
|
timeoutSeconds?: number | null;
|
|
}
|