Represents the set of actions available for synchronization.

interface SynchronizationActions {
startSync: (
entries: AniListMediaEntry[],
token: string,
_?: undefined,
displayOrderMediaIds?: number[],
) => Promise<void>;
cancelSync: () => void;
exportErrors: () => void;
exportReport: () => void;
reset: () => void;
}
interface SynchronizationActions {
    startSync: (
        entries: AniListMediaEntry[],
        token: string,
        _?: undefined,
        displayOrderMediaIds?: number[],
    ) => Promise<void>;
    cancelSync: () => void;
    exportErrors: () => void;
    exportReport: () => void;
    reset: () => void;
}

Properties

startSync: (
    entries: AniListMediaEntry[],
    token: string,
    _?: undefined,
    displayOrderMediaIds?: number[],
) => Promise<void>

Starts the synchronization process.

cancelSync: () => void

Cancels the ongoing synchronization.

exportErrors: () => void

Exports the error log from the last sync.

exportReport: () => void

Exports the full sync report.

reset: () => void

Resets the synchronization state.