@allurereport/plugin-dashboard
Version:
Allure Dashboard Plugin – plugin for generating dashboard with a mix of charts
10 lines (9 loc) • 1.11 kB
TypeScript
import type { SeverityLevel, TestStatus } from "@allurereport/core-api";
import type { BaseTrendSliceMetadata, GenericTrendChartData, TrendChartOptions } from "../model.js";
type TrendDataType = TestStatus | SeverityLevel;
export declare const createEmptyStats: <T extends TrendDataType>(items: readonly T[]) => Record<T, number>;
export declare const createEmptySeries: <T extends TrendDataType>(items: readonly T[]) => Record<T, string[]>;
export declare const normalizeStatistic: <T extends TrendDataType>(statistic: Partial<Record<T, number>>, itemType: readonly T[]) => Record<T, number>;
export declare const mergeTrendDataGeneric: <M extends BaseTrendSliceMetadata, T extends TrendDataType>(trendData: GenericTrendChartData<M, T>, trendDataPart: GenericTrendChartData<M, T>, itemType: readonly T[]) => GenericTrendChartData<M, T>;
export declare const getTrendDataGeneric: <M extends BaseTrendSliceMetadata, T extends TrendDataType>(stats: Record<T, number>, reportName: string, executionOrder: number, itemType: readonly T[], chartOptions: TrendChartOptions) => GenericTrendChartData<M, T>;
export {};