From 63d4593705ba7e5505a46dfe715f1acf2884c17c Mon Sep 17 00:00:00 2001 From: Eduard Marbach Date: Sat, 16 Nov 2024 23:10:24 +0100 Subject: [PATCH] refactor: update sonarr/radarr apis --- src/__generated__/radarr/Api.ts | 5 +++-- src/__generated__/radarr/data-contracts.ts | 15 ++++++++++++++- src/__generated__/sonarr/Api.ts | 5 +++-- src/__generated__/sonarr/data-contracts.ts | 15 ++++++++++++++- 4 files changed, 34 insertions(+), 6 deletions(-) diff --git a/src/__generated__/radarr/Api.ts b/src/__generated__/radarr/Api.ts index d69ce28..f88aa93 100644 --- a/src/__generated__/radarr/Api.ts +++ b/src/__generated__/radarr/Api.ts @@ -70,6 +70,7 @@ import { QueueBulkResource, QueueResource, QueueResourcePagingResource, + QueueStatus, QueueStatusResource, ReleaseProfileResource, ReleaseResource, @@ -3586,8 +3587,8 @@ export class Api { movieIds?: number[]; protocol?: DownloadProtocol; languages?: number[]; - /** @format int32 */ - quality?: number; + quality?: number[]; + status?: QueueStatus[]; }, params: RequestParams = {}, ) => diff --git a/src/__generated__/radarr/data-contracts.ts b/src/__generated__/radarr/data-contracts.ts index 8d46e50..069bed9 100644 --- a/src/__generated__/radarr/data-contracts.ts +++ b/src/__generated__/radarr/data-contracts.ts @@ -1316,7 +1316,7 @@ export interface QueueResource { estimatedCompletionTime?: string | null; /** @format date-time */ added?: string | null; - status?: string | null; + status?: QueueStatus; trackedDownloadStatus?: TrackedDownloadStatus; trackedDownloadState?: TrackedDownloadState; statusMessages?: TrackedDownloadStatusMessage[] | null; @@ -1341,6 +1341,19 @@ export interface QueueResourcePagingResource { records?: QueueResource[] | null; } +export enum QueueStatus { + Unknown = "unknown", + Queued = "queued", + Paused = "paused", + Downloading = "downloading", + Completed = "completed", + Failed = "failed", + Warning = "warning", + Delay = "delay", + DownloadClientUnavailable = "downloadClientUnavailable", + Fallback = "fallback", +} + export interface QueueStatusResource { /** @format int32 */ id?: number; diff --git a/src/__generated__/sonarr/Api.ts b/src/__generated__/sonarr/Api.ts index 2eb208c..cff7052 100644 --- a/src/__generated__/sonarr/Api.ts +++ b/src/__generated__/sonarr/Api.ts @@ -64,6 +64,7 @@ import { QueueBulkResource, QueueResource, QueueResourcePagingResource, + QueueStatus, QueueStatusResource, ReleaseProfileResource, ReleaseResource, @@ -3374,8 +3375,8 @@ export class Api { seriesIds?: number[]; protocol?: DownloadProtocol; languages?: number[]; - /** @format int32 */ - quality?: number; + quality?: number[]; + status?: QueueStatus[]; }, params: RequestParams = {}, ) => diff --git a/src/__generated__/sonarr/data-contracts.ts b/src/__generated__/sonarr/data-contracts.ts index e3de0c7..71c1ede 100644 --- a/src/__generated__/sonarr/data-contracts.ts +++ b/src/__generated__/sonarr/data-contracts.ts @@ -1206,7 +1206,7 @@ export interface QueueResource { estimatedCompletionTime?: string | null; /** @format date-time */ added?: string | null; - status?: string | null; + status?: QueueStatus; trackedDownloadStatus?: TrackedDownloadStatus; trackedDownloadState?: TrackedDownloadState; statusMessages?: TrackedDownloadStatusMessage[] | null; @@ -1232,6 +1232,19 @@ export interface QueueResourcePagingResource { records?: QueueResource[] | null; } +export enum QueueStatus { + Unknown = "unknown", + Queued = "queued", + Paused = "paused", + Downloading = "downloading", + Completed = "completed", + Failed = "failed", + Warning = "warning", + Delay = "delay", + DownloadClientUnavailable = "downloadClientUnavailable", + Fallback = "fallback", +} + export interface QueueStatusResource { /** @format int32 */ id?: number;