Refactors the book, artist, and album slices across the stack

This commit is contained in:
BinaryAlley committed 2026-09-17 13:30:48 -07:00
1 parent 8aaf9fe64e
commit ea6eb9f796
439 files changed
+28235 -3156

No files matched your search

@@ -196,7 +196,7 @@ public class BookDto
public List<IsbnDto> ISBNs { get; set; } = [];
/// <summary>
/// Gets the list of media contributors (actors, directors, etc) starring in this book.
/// Gets the list of media contributors that contributed to this book.
/// </summary>
//public List<ContributorIdModel> ContributorIds { get; init; } = [];
@@ -0,0 +1,17 @@
#region ========================================================================= USING =====================================================================================
using System.Diagnostics;
#endregion
namespace Lumina.Presentation.Web.Common.DTO.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Data transfer object for the response of an update book cover operation.
/// </summary>
[DebuggerDisplay("CoverPath: {CoverPath}")]
public class UpdateBookCoverDto
{
/// <summary>
/// Gets or sets the relative path of the stored cover image.
/// </summary>
public string? CoverPath { get; set; }
}
@@ -1,4 +1,5 @@
#region ========================================================================= USING =====================================================================================
using System;
using System.Diagnostics;
#endregion
@@ -7,8 +8,10 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// <summary>
/// Represents a request to get a book by the specified Id.
/// </summary>
/// <param name="Id">The unique identifier of the book to retrieve, taken from the route. Required.</param>
[DebuggerDisplay("Id: {Id}")]
/// <param name="BookId">The unique identifier of the book to retrieve, taken from the route. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record GetBookRequest(
string Id
string BookId,
Guid LibraryId
);
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// Represents a request to check the reading availability of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading availability is checked. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record GetBookReadingAvailabilityRequest(
Guid BookId
Guid BookId,
Guid LibraryId
);
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// Represents a request to get the reading manifest of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading manifest is retrieved. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record GetBookReadingManifestRequest(
Guid BookId
Guid BookId,
Guid LibraryId
);
@@ -10,8 +10,10 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose resource is retrieved. Required.</param>
/// <param name="ResourceKey">The opaque resource key of the resource. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}, ResourceKey: {ResourceKey}")]
public record GetBookReadingResourceRequest(
Guid BookId,
string ResourceKey
string ResourceKey,
Guid LibraryId
);
@@ -10,8 +10,10 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// </summary>
/// <param name="BookId">The unique identifier of the book whose reading section is retrieved. Required.</param>
/// <param name="LocationRef">The opaque location reference of the reading section. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}, LocationRef: {LocationRef}")]
public record GetBookReadingSectionRequest(
Guid BookId,
string LocationRef
string LocationRef,
Guid LibraryId
);
@@ -9,7 +9,9 @@ namespace Lumina.Presentation.Web.Common.Requests.Library.WrittenContentLibrary.
/// Represents the request for displaying the reading view of a book.
/// </summary>
/// <param name="BookId">The unique identifier of the book to read. Required.</param>
/// <param name="LibraryId">The Id of the media library the book belongs to. Required.</param>
[DebuggerDisplay("BookId: {BookId}")]
public record ReadBookViewRequest(
Guid BookId
Guid BookId,
Guid LibraryId
);
@@ -10,13 +10,13 @@ public static partial class ApiRoutes
/// </summary>
public static class Books
{
public const string GET_BOOKS_LITE = "books/lite";
public const string GET_BOOK = "books/{id}";
public const string UPDATE_BOOK = "books/{id}";
public const string UPDATE_BOOK_COVER = "books/{id}/cover";
public const string GET_BOOK_READING_MANIFEST = "books/{bookId}/reading/manifest";
public const string GET_BOOK_READING_AVAILABILITY = "books/{bookId}/reading/availability";
public const string GET_BOOK_READING_SECTION = "books/{bookId}/reading/sections/{locationRef}";
public const string GET_BOOK_READING_RESOURCE = "books/{bookId}/reading/resources/{resourceKey}";
public const string GET_BOOKS_LITE = "libraries/{libraryId}/books/lite";
public const string GET_BOOK = "libraries/{libraryId}/books/{bookId}";
public const string UPDATE_BOOK = "libraries/{libraryId}/books/{bookId}";
public const string UPDATE_BOOK_COVER = "libraries/{libraryId}/books/{bookId}/cover";
public const string GET_BOOK_READING_MANIFEST = "libraries/{libraryId}/books/{bookId}/reading/manifest";
public const string GET_BOOK_READING_AVAILABILITY = "libraries/{libraryId}/books/{bookId}/reading/availability";
public const string GET_BOOK_READING_SECTION = "libraries/{libraryId}/books/{bookId}/reading/sections/{locationRef}";
public const string GET_BOOK_READING_RESOURCE = "libraries/{libraryId}/books/{bookId}/reading/resources/{resourceKey}";
}
}
@@ -12,10 +12,10 @@ public static partial class WebRoutes
{
public const string INDEX = "{culture}/library/written-content-library/books-library/books";
public const string GET_LIBRARY_ITEMS = "{culture}/library/written-content-library/books-library/books/api-get-library-items";
public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{id}";
public const string GET_BOOK_DETAILS = "{culture}/library/written-content-library/books-library/books/{id}/api-get-book";
public const string SAVE_BOOK = "{culture}/library/written-content-library/books-library/books/{id}/api-save-book";
public const string UPDATE_BOOK_COVER = "{culture}/library/written-content-library/books-library/books/{id}/api-update-cover";
public const string EDIT_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}";
public const string GET_BOOK_DETAILS = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-book";
public const string SAVE_BOOK = "{culture}/library/written-content-library/books-library/books/{bookId}/api-save-book";
public const string UPDATE_BOOK_COVER = "{culture}/library/written-content-library/books-library/books/{bookId}/api-update-cover";
public const string READ = "{culture}/library/written-content-library/books-library/books/{bookId}/read";
public const string GET_READING_MANIFEST = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-manifest";
public const string GET_READING_AVAILABILITY = "{culture}/library/written-content-library/books-library/books/{bookId}/api-get-reading-availability";