Files
interfaces/ts/data/checkcollection.ts

25 lines
754 B
TypeScript

import type * as checks from './checks/index.js';
/**
* A collection of checks to run against a property/service.
*
* Two storage modes supported:
* 1. Legacy: Separate arrays for each check type (assumptionChecks, functionChecks, etc.)
* 2. Modern: Single unified array using discriminated union (checks)
*/
export interface ICheckCollection {
id: string;
name?: string;
description?: string;
intervalMs: number;
// Modern: Single array with discriminated union
checks?: checks.TCheckConfig[];
// Legacy: Separate arrays by type (for backward compatibility)
assumptionChecks?: checks.IAssumptionCheck[];
functionChecks?: checks.IFunctionCheck[];
pwaChecks?: checks.IPwaCheck[];
pageRankChecks?: checks.IPageRankCheck[];
}