application: library bounded context

This commit is contained in:
2026-07-12 02:08:04 +02:00
parent ef86a967cd
commit ebf0614fdf
22 changed files with 1184 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/// Search library items with filters.
pub struct SearchItemsQuery {
pub provider_id: Option<String>,
pub content_type: Option<String>,
pub genres: Vec<String>,
pub search_term: Option<String>,
pub collection_id: Option<String>,
pub series_names: Vec<String>,
pub season_number: Option<u32>,
pub decade: Option<u16>,
pub offset: u32,
pub limit: u32,
}
/// List library collections.
pub struct ListCollectionsQuery {
pub provider_id: Option<String>,
}
/// List TV show summaries.
pub struct ListShowsQuery {
pub provider_id: Option<String>,
pub search_term: Option<String>,
pub genres: Vec<String>,
}
/// List seasons for a specific series.
pub struct ListSeasonsQuery {
pub series_name: String,
pub provider_id: Option<String>,
}
/// List genres available in the library.
pub struct ListGenresQuery {
pub content_type: Option<String>,
pub provider_id: Option<String>,
}
/// Get a single library item by its composite ID.
pub struct GetItemQuery {
pub item_id: String,
}
/// Get the latest sync status per provider.
pub struct GetSyncStatusQuery;