import { DyFM_AnyError, DyFM_Error, DyFM_ErrorLevel, DyFM_Errors, DyFM_RelativeDate, DyFM_Paged, DyFM_SearchQuery, DyFM_SearchResult, DyFM_Errors_FixAttempt } from '@futdevpro/fsm-dynamo'; import { DyNTS_Errors_ControlService } from './errors.control-service'; import { DyNTS_DataService } from '../../../_services/base/data.service'; export declare class DyNTS_Errors_DataService> extends DyNTS_DataService implements DyNTS_Errors_ControlService { debugLog: boolean; readonly version: string; duplicationCounter: number; recordError(errorsRecord: T_ErrorsRecord, issuer: string, alwaysRecord?: boolean): Promise; protected createErrorRecord(error: DyFM_AnyError | any, issuer: string): Promise; handleExternalError(error: T_Error, issuer: string, alwaysRecord?: boolean): Promise; handleInternalError(error: DyFM_AnyError | any, issuer: string, alwaysRecord?: boolean): Promise; checkErrorIsStringifyableOrResolvable(error: T_Error, issuer: string): T_Error | 'UNRESOLVABLE'; getPriorityMultiplierByLevel(level: DyFM_ErrorLevel): number; getErrorsFromDate(date: Date, issuer: string): Promise>; deleteError(errorId: string, issuer: string, alwaysDelete?: boolean): Promise; deleteAllErrors(issuer: string, alwaysDelete?: boolean): Promise; /** * Record a "we think this is fixed" claim on an existing error. * * Append-only: every call pushes a new `DyFM_Errors_FixAttempt` to * `fixAttempts[]` and updates the `last*` aliases for quick reads. * Also clears `regressedAfterFix` so the dashboard treats the error as * freshly-claimed-fixed; if a new occurrence arrives with a version * `>= version`, `recordError` will flip the flag back on. */ recordFixAttempt(errorId: string, version: string, hypothesis: string, issuer: string, notes?: string): Promise; /** * Soft-resolve an error: set `status = fixed` and KEEP the record (unlike * `deleteError` / `markErrorDone` which hard-delete). Keeping the record is * what enables auto-reactivation — a later recurrence (`recordError`) with a * version >= the last claimed-fix version flips it to `regressed`. * * Optional `notes` are stored on `resolutionNotes`. Clears `regressedAfterFix`. * Does NOT append a `fixAttempt` (use `recordFixAttempt` when there is a * version + hypothesis to log); this is the lightweight "mark as handled" path. */ resolveError(errorId: string, issuer: string, notes?: string): Promise; /** * Paged errors filtered by lifecycle `status` (active / investigating / fixed * / regressed). An empty or `'all'` status returns everything (same semantics * as `getErrorsPaged`). Mirrors `getErrorsByCategoryPaged`. */ getErrorsByStatusPaged(status: string, range: DyFM_RelativeDate, pageSize: number, pageIndex: number, issuer: string): Promise>; /** * Loose numeric compare of two version strings of shape `MAJOR.MINOR.PATCH` * (`01.15.117`). Pads missing segments with 0. Non-numeric segments are * treated as 0 — version strings carrying prefixes like `SERVER-` from * `recordError` are caller-stripped before this is invoked. * * Returns true when `a >= b`. */ static isVersionAtLeast(a: string, b: string): boolean; getErrorsInRange(range: DyFM_RelativeDate, issuer: string): Promise>; getErrorsPaged(range: DyFM_RelativeDate, pageSize: number, pageIndex: number, issuer: string): Promise>; /** * Paged-eredmenyek a `category` mezo szerint. A frontend "Errors" page tab-jai * (Application / System Unreachable / Build Failure) ezt hivjak. Egy ures- * vagy `'all'` kategoria mindent visszaad (azonos szemantikaval mint a * `getErrorsPaged`-tel). */ getErrorsByCategoryPaged(category: string, range: DyFM_RelativeDate, pageSize: number, pageIndex: number, issuer: string): Promise>; getLastErrors(range: DyFM_RelativeDate, pageSize: number, pageIndex: number, issuer: string): Promise>; searchErrors(searchQuery: DyFM_SearchQuery, issuer: string): Promise>; } //# sourceMappingURL=errors.data-service.d.ts.map