Final report summarizing a completed sync batch operation. Includes success/failure counts, errors, and timestamp for statistics tracking.

export interface SyncReport {
totalEntries: number;
successfulUpdates: number;
failedUpdates: number;
skippedEntries: number;
errors: {
mediaId: number;
error: string;
recoveryAction?: string; // Suggested action to recover (e.g., "Refresh Token", "Retry")
recoveryMessage?: string; // User-friendly message explaining the action
recoveryActionType?:
| "retry"
| "refresh-token"
| "check-connection"
| "wait";
}[];
/** ISO 8601 timestamp string of when the sync was performed */
timestamp: string;
}
interface SyncReport {
    totalEntries: number;
    successfulUpdates: number;
    failedUpdates: number;
    skippedEntries: number;
    errors: {
        mediaId: number;
        error: string;
        recoveryAction?: string;
        recoveryMessage?: string;
        recoveryActionType?:
            | "retry"
            | "refresh-token"
            | "check-connection"
            | "wait";
    }[];
    timestamp: string;
}

Properties

totalEntries: number
successfulUpdates: number
failedUpdates: number
skippedEntries: number
errors: {
    mediaId: number;
    error: string;
    recoveryAction?: string;
    recoveryMessage?: string;
    recoveryActionType?:
        | "retry"
        | "refresh-token"
        | "check-connection"
        | "wait";
}[]
timestamp: string

ISO 8601 timestamp string of when the sync was performed