application: library bounded context
This commit is contained in:
45
crates/application/src/library/queries.rs
Normal file
45
crates/application/src/library/queries.rs
Normal 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;
|
||||
Reference in New Issue
Block a user