diff --git a/api/request/src/schema.ts b/api/request/src/schema.ts index bd11540..a797c91 100644 --- a/api/request/src/schema.ts +++ b/api/request/src/schema.ts @@ -50,7 +50,8 @@ export type IPaginatedResponse = IApiDataResponse<{ */ interface IMovieRequestInfo { plexLink: string | null, - ticketId: number | null + ticketId: number | null, + progress: number | null } /** diff --git a/api/request/src/websocket.ts b/api/request/src/websocket.ts index 1eb01c1..d446298 100644 --- a/api/request/src/websocket.ts +++ b/api/request/src/websocket.ts @@ -4,3 +4,15 @@ export enum WebSocketMethod { TicketProgress = "ticket_progress" } + +export interface IMovieProgressResponse { + [ticketId: number]: IMovieProgress +} + +/** + * The download progress of a movie + */ +export interface IMovieProgress { + progress?: number, + plexLink?: string +}