Update API spec and API interfaces with new fields.

This commit is contained in:
Buster Neece 2024-04-21 04:55:04 -05:00
parent c881a28be4
commit 17e83547f7
No known key found for this signature in database
2 changed files with 46 additions and 5 deletions

View File

@ -611,6 +611,8 @@ export type ApiPodcast = HasLinks & {
link?: string | null; link?: string | null;
description?: string; description?: string;
description_short?: string; description_short?: string;
/** An array containing podcast-specific branding configuration */
branding_config?: any[];
language?: string; language?: string;
language_name?: string; language_name?: string;
author?: string; author?: string;
@ -633,12 +635,15 @@ export interface ApiPodcastCategory {
export type ApiPodcastEpisode = HasLinks & { export type ApiPodcastEpisode = HasLinks & {
id?: string; id?: string;
title?: string; title?: string;
link?: string | null;
description?: string; description?: string;
description_short?: string; description_short?: string;
explicit?: boolean; explicit?: boolean;
season_number?: number | null;
episode_number?: number | null;
created_at?: number; created_at?: number;
publish_at?: number;
is_published?: boolean; is_published?: boolean;
publish_at?: number | null;
has_media?: boolean; has_media?: boolean;
playlist_media_id?: string | null; playlist_media_id?: string | null;
playlist_media?: ApiSong | null; playlist_media?: ApiSong | null;
@ -1501,6 +1506,8 @@ export type StationPlaylist = HasAutoIncrementId & {
avoid_duplicates?: boolean; avoid_duplicates?: boolean;
/** StationSchedule> */ /** StationSchedule> */
schedule_items?: any[]; schedule_items?: any[];
/** Podcast> */
podcasts?: any[];
}; };
export type StationSchedule = HasAutoIncrementId & { export type StationSchedule = HasAutoIncrementId & {

View File

@ -3944,6 +3944,13 @@ components:
type: string type: string
storage_location_id: storage_location_id:
type: integer type: integer
source:
type: string
playlist_id:
type: integer
nullable: true
playlist_auto_publish:
type: boolean
title: title:
type: string type: string
link: link:
@ -3953,6 +3960,10 @@ components:
type: string type: string
description_short: description_short:
type: string type: string
branding_config:
description: 'An array containing podcast-specific branding configuration'
type: array
items: { }
language: language:
type: string type: string
language_name: language_name:
@ -3999,23 +4010,42 @@ components:
type: string type: string
title: title:
type: string type: string
link:
type: string
nullable: true
description: description:
type: string type: string
description_short: description_short:
type: string type: string
explicit: explicit:
type: boolean type: boolean
season_number:
type: integer
nullable: true
episode_number:
type: integer
nullable: true
created_at: created_at:
type: integer type: integer
publish_at:
type: integer
is_published: is_published:
type: boolean type: boolean
publish_at:
type: integer
nullable: true
has_media: has_media:
type: boolean type: boolean
playlist_media_id:
type: string
nullable: true
playlist_media:
nullable: true
oneOf:
-
$ref: '#/components/schemas/Api_Song'
media: media:
$ref: '#/components/schemas/Api_PodcastMedia' nullable: true
oneOf:
-
$ref: '#/components/schemas/Api_PodcastMedia'
has_custom_art: has_custom_art:
type: boolean type: boolean
art: art:
@ -5012,6 +5042,10 @@ components:
description: StationSchedule> description: StationSchedule>
type: array type: array
items: { } items: { }
podcasts:
description: Podcast>
type: array
items: { }
type: object type: object
StationSchedule: StationSchedule:
type: object type: object