- add ScenarioRunLogEntity to persist step script output to DB - stepLogger dual-writes to NestJS logger and DB (fire-and-forget) - add GET /scenarios/:id/run/:runId returning run, stepRuns and logs - add POST /scenarios/:id/run/:runId/wait (polls until terminal state) - 9 new integration tests for the two endpoints (136 total) - add eslint with typescript-eslint and eslint-config-prettier - add npm scripts: format, lint, lint:fix - resolve all lint errors across src and test (no any types) - add CONTRIBUTING.md covering dev workflow
31 lines
756 B
TypeScript
31 lines
756 B
TypeScript
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
import { IsNotEmpty, IsOptional, IsString } from "class-validator";
|
|
|
|
export class LoginDto {
|
|
@ApiProperty({
|
|
description:
|
|
"Key identifier — filename (without extension) from the keys/ directory",
|
|
example: "3273334361",
|
|
})
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
key: string;
|
|
|
|
@ApiProperty({
|
|
description: "Environment name to resolve login/cabinet URLs from",
|
|
example: "liquio-diia-stg",
|
|
})
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
environmentName: string;
|
|
|
|
@ApiPropertyOptional({
|
|
description:
|
|
"Session name to store credentials under. Auto-generated UUID if omitted.",
|
|
example: "my-test-session",
|
|
})
|
|
@IsOptional()
|
|
@IsString()
|
|
sessionName?: string;
|
|
}
|