From 1b86c2ce89eea4fc0971a3346a67329eb3a2d5f8 Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Mon, 21 Jun 2021 13:03:16 -0500 Subject: [PATCH] Add progress to movie request info --- api/request/src/schema.ts | 3 ++- api/request/src/websocket.ts | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) 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 +}