import type { Statistic, TestLink, TestParameter, TestStatus } from "@allurereport/core-api"; type JiraIssue = string; export type ForgePluginTestResult = { id: string; entries: { status: TestStatus; env?: string; date: number; }[]; keyParams: Pick[]; issue: TestLink; name: string; }; export type ForgePluginReport = { id: string; history: string[]; status: TestStatus; ciInfo?: { url: string; label?: string; }; statistic: Statistic; statisticByEnv: Record; name: string; url?: string; date: number; }; export type ForgeAppOperations = "upload-report" | "upload-results" | "clear"; export type ForgeAppVersions = "v1"; export type ClearPayload = { issues: string[]; reports?: boolean; results?: boolean; }; export type ForgeAppRequest = { operation: ForgeAppOperations; version: ForgeAppVersions; payload: Record; token: string; }; export type UploadReportPayload = { issue: JiraIssue; report: ForgePluginReport; }; export type UploadResultsPayload = { results: ForgePluginTestResult[]; reportUrl: string; }; export {};