mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00

* build: bump deps and add some new eslint rules * refactor: run eslint --fix on code to convert to type imports where possible
30 lines
688 B
TypeScript
30 lines
688 B
TypeScript
import type Media from '../../entity/Media';
|
|
import type { MediaRequest } from '../../entity/MediaRequest';
|
|
import type { User } from '../../entity/User';
|
|
import type { PaginatedResponse } from './common';
|
|
|
|
export interface UserResultsResponse extends PaginatedResponse {
|
|
results: User[];
|
|
}
|
|
|
|
export interface UserRequestsResponse extends PaginatedResponse {
|
|
results: MediaRequest[];
|
|
}
|
|
|
|
export interface QuotaStatus {
|
|
days?: number;
|
|
limit?: number;
|
|
used: number;
|
|
remaining?: number;
|
|
restricted: boolean;
|
|
}
|
|
|
|
export interface QuotaResponse {
|
|
movie: QuotaStatus;
|
|
tv: QuotaStatus;
|
|
}
|
|
export interface UserWatchDataResponse {
|
|
recentlyWatched: Media[];
|
|
playCount: number;
|
|
}
|