import { TestStepType } from './test-step'; import { Attachment } from './attachment'; import { TestExecution } from './test-execution'; /** * Project code to test case IDs mapping for multi-project support. * Key: project code (string), Value: array of test case IDs (numbers). */ export type TestopsProjectMapping = Record; export declare class TestResultType { id: string; title: string; signature: string; run_id: number | null; testops_id: number | number[] | null; /** * Multi-project mapping: project code -> array of test case IDs. * When set, overrides testops_id for multi-project mode. * If empty/null, fall back to testops_id for single project. */ testops_project_mapping: TestopsProjectMapping | null; execution: TestExecution; fields: Record; attachments: Attachment[]; steps: TestStepType[]; params: Record; group_params: Record; author: string | null; relations: Relation | null; muted: boolean; message: string | null; tags: string[]; preparedAttachments?: string[]; constructor(title: string); /** * Set test case IDs for a specific project in multi-project mapping. */ setTestopsProjectMapping(projectCode: string, testopsIds: number[]): void; /** * Get the entire project-to-IDs mapping. */ getTestopsProjectMapping(): TestopsProjectMapping | null; /** * Get test case IDs for a specific project. */ getTestopsIdsForProject(projectCode: string): number[] | undefined; /** * Get list of all project codes in the mapping. */ getProjects(): string[]; } export interface Relation { suite?: Suite; } export interface Suite { data: SuiteData[]; } export interface SuiteData { title: string; public_id: number | null; }