Implement collection suggestions and bulk show addition features
Added new API endpoints for suggesting collections based on existing shows and for bulk adding shows to collections. Enhanced the backend with necessary logic and DTOs to support these features. Updated the frontend to include new components for displaying collection suggestions and managing bulk additions, improving the user experience for collection management. Localization updates were made to support these new features in both English and Russian.
This commit is contained in:
@@ -9,6 +9,7 @@ import type {
|
||||
ShowDto,
|
||||
ShowKind,
|
||||
ShowSummaryDto,
|
||||
ShowUsageDto,
|
||||
} from '@/shared/api/types'
|
||||
|
||||
export function listShows(genreId?: string) {
|
||||
@@ -73,6 +74,11 @@ export function bulkEnrichShows(showIds: string[], provider: string) {
|
||||
})
|
||||
}
|
||||
|
||||
/** Где шоу задействовано: группы, коллекции, каналы. */
|
||||
export function getShowUsage(id: string) {
|
||||
return apiRequest<ShowUsageDto>(`/admin/shows/${id}/usage`)
|
||||
}
|
||||
|
||||
export function deleteShow(id: string) {
|
||||
return apiRequest<void>(`/admin/shows/${id}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user