mirror of
https://git.vectorsigma.ru/public/tubearchivist.git
synced 2026-08-04 20:09:35 +00:00
28 lines
547 B
TypeScript
28 lines
547 B
TypeScript
import APIClient from '../../functions/APIClient';
|
|
|
|
export type WatchProgressStatsType = {
|
|
total: {
|
|
duration: number;
|
|
duration_str: string;
|
|
items: number;
|
|
};
|
|
unwatched: {
|
|
duration: number;
|
|
duration_str: string;
|
|
progress: number;
|
|
items: number;
|
|
};
|
|
watched: {
|
|
duration: number;
|
|
duration_str: string;
|
|
progress: number;
|
|
items: number;
|
|
};
|
|
};
|
|
|
|
const loadStatsWatchProgress = async () => {
|
|
return APIClient<WatchProgressStatsType>('/api/stats/watch/');
|
|
};
|
|
|
|
export default loadStatsWatchProgress;
|