view data fixes

This commit is contained in:
2026-01-24 12:47:49 +01:00
parent 6749fe326b
commit c1750a33dd
105 changed files with 474 additions and 498 deletions

View File

@@ -3,9 +3,9 @@
* Allows developers to replay errors with the exact same context
*/
import { getGlobalErrorHandler } from './GlobalErrorHandler';
import { ApiError } from '../gateways/api/base/ApiError';
import { getGlobalApiLogger } from './ApiRequestLogger';
import { ApiError } from '../api/base/ApiError';
import { getGlobalErrorHandler } from './GlobalErrorHandler';
export interface ReplayContext {
timestamp: string;
@@ -178,7 +178,7 @@ export class ErrorReplaySystem {
const error = replay.error.type === 'ApiError'
? new ApiError(
replay.error.message,
((replay.error.context as { type?: string } | undefined)?.type as import('../api/base/ApiError').ApiErrorType) || 'UNKNOWN_ERROR',
((replay.error.context as { type?: string } | undefined)?.type as import('../gateways/api/base/ApiError').ApiErrorType) || 'UNKNOWN_ERROR',
{
timestamp: replay.timestamp,
...(replay.error.context as Record<string, unknown> | undefined),