You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
927 B
38 lines
927 B
import type { MediaType } from '@server/constants/media';
|
|
import type { MediaRequest } from '@server/entity/MediaRequest';
|
|
import type { PaginatedResponse } from './common';
|
|
|
|
export interface RequestResultsResponse extends PaginatedResponse {
|
|
results: MediaRequest[];
|
|
}
|
|
|
|
interface MediaRequestBody {
|
|
mediaType: MediaType;
|
|
mediaId: number | string;
|
|
serverId?: number;
|
|
profileId?: number;
|
|
rootFolder?: string;
|
|
languageProfileId?: number;
|
|
userId?: number;
|
|
tags?: number[];
|
|
}
|
|
|
|
export interface VideoRequestBody extends MediaRequestBody {
|
|
mediaType: MediaType.MOVIE | MediaType.TV;
|
|
mediaId: number;
|
|
seasons?: number[] | 'all';
|
|
is4k?: boolean;
|
|
tvdbId?: number;
|
|
}
|
|
|
|
export interface TvRequestBody extends VideoRequestBody {
|
|
mediaType: MediaType.TV;
|
|
}
|
|
|
|
export interface MusicRequestBody extends MediaRequestBody {
|
|
mediaType: MediaType.MUSIC;
|
|
mediaId: string;
|
|
albumId?: number;
|
|
artistId?: number;
|
|
}
|