Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

820 B
Raw Blame
export interface NotificationContainer<T> {
    /**
     * Represents underlying type of event
     */
    type: string;
    /**
     * How many events are in this object
     */
     size: number;

     events: Array<T>;
}

export interface ActivityNotification {
    type: string; // library.update.section
    /**
     * If this notification has some sort of cancellable operation
     */
    cancellable: boolean;

    userId: number;
    /**
     * Main action title ie) Scanning LIBRARY_NAME
     */
    title: string;
    /**
     * Detail information about action. ie) Series Name
     */
    subtitle: string;
    /**
     * Progress of this action [0-100]
     */
    progress: number;
    /**
     * Any additional context backend needs to send to UI
     */
    context: {
        libraryId: number;
    };
}