mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-01 08:52:45 +00:00
[2/3] update openapi spec: generate code
This updates the openapi spec and invokes the code generator to update to the Jellyfin 10.10.6 API. A big motivation to do this was because some mandatory fields have been made obsolete and are no longer included in responses. Sailfin tries to deserialize these mandatory fields and fails deserializing. It was evident in the list of sessions to control. The failing was a bit too gracefully in my opinion, it did not even show that an error occurred, nor was it logged anywhere. It took some time to debug.
This commit is contained in:
parent
f71c7a991b
commit
9e1a20cd3a
504 changed files with 62190 additions and 41202 deletions
|
@ -40,6 +40,8 @@
|
|||
|
||||
#include "JellyfinQt/dto/imagetype.h"
|
||||
#include "JellyfinQt/dto/itemfields.h"
|
||||
#include "JellyfinQt/dto/itemsortby.h"
|
||||
#include "JellyfinQt/dto/sortorder.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
namespace Jellyfin {
|
||||
|
@ -52,10 +54,8 @@ namespace DTO {
|
|||
|
||||
class GetProgramsDto {
|
||||
public:
|
||||
GetProgramsDto(
|
||||
QString userId,
|
||||
bool enableTotalRecordCount,
|
||||
QString librarySeriesId
|
||||
GetProgramsDto(
|
||||
std::optional<bool> enableTotalRecordCount
|
||||
);
|
||||
|
||||
GetProgramsDto(const GetProgramsDto &other);
|
||||
|
@ -89,197 +89,171 @@ public:
|
|||
* @brief Gets or sets optional. Filter by user id.
|
||||
*/
|
||||
void setUserId(QString newUserId);
|
||||
bool userIdNull() const;
|
||||
void setUserIdNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the minimum premiere start date.
|
||||
Optional.
|
||||
* @brief Gets or sets the minimum premiere start date.
|
||||
*/
|
||||
QDateTime minStartDate() const;
|
||||
/**
|
||||
* @brief Gets or sets the minimum premiere start date.
|
||||
Optional.
|
||||
* @brief Gets or sets the minimum premiere start date.
|
||||
*/
|
||||
void setMinStartDate(QDateTime newMinStartDate);
|
||||
bool minStartDateNull() const;
|
||||
void setMinStartDateNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter by programs that have completed airing, or not.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by programs that have completed airing, or not.
|
||||
*/
|
||||
std::optional<bool> hasAired() const;
|
||||
/**
|
||||
* @brief Gets or sets filter by programs that have completed airing, or not.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by programs that have completed airing, or not.
|
||||
*/
|
||||
void setHasAired(std::optional<bool> newHasAired);
|
||||
bool hasAiredNull() const;
|
||||
void setHasAiredNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter by programs that are currently airing, or not.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by programs that are currently airing, or not.
|
||||
*/
|
||||
std::optional<bool> isAiring() const;
|
||||
/**
|
||||
* @brief Gets or sets filter by programs that are currently airing, or not.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by programs that are currently airing, or not.
|
||||
*/
|
||||
void setIsAiring(std::optional<bool> newIsAiring);
|
||||
bool isAiringNull() const;
|
||||
void setIsAiringNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the maximum premiere start date.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum premiere start date.
|
||||
*/
|
||||
QDateTime maxStartDate() const;
|
||||
/**
|
||||
* @brief Gets or sets the maximum premiere start date.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum premiere start date.
|
||||
*/
|
||||
void setMaxStartDate(QDateTime newMaxStartDate);
|
||||
bool maxStartDateNull() const;
|
||||
void setMaxStartDateNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the minimum premiere end date.
|
||||
Optional.
|
||||
* @brief Gets or sets the minimum premiere end date.
|
||||
*/
|
||||
QDateTime minEndDate() const;
|
||||
/**
|
||||
* @brief Gets or sets the minimum premiere end date.
|
||||
Optional.
|
||||
* @brief Gets or sets the minimum premiere end date.
|
||||
*/
|
||||
void setMinEndDate(QDateTime newMinEndDate);
|
||||
bool minEndDateNull() const;
|
||||
void setMinEndDateNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the maximum premiere end date.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum premiere end date.
|
||||
*/
|
||||
QDateTime maxEndDate() const;
|
||||
/**
|
||||
* @brief Gets or sets the maximum premiere end date.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum premiere end date.
|
||||
*/
|
||||
void setMaxEndDate(QDateTime newMaxEndDate);
|
||||
bool maxEndDateNull() const;
|
||||
void setMaxEndDateNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter for movies.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for movies.
|
||||
*/
|
||||
std::optional<bool> isMovie() const;
|
||||
/**
|
||||
* @brief Gets or sets filter for movies.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for movies.
|
||||
*/
|
||||
void setIsMovie(std::optional<bool> newIsMovie);
|
||||
bool isMovieNull() const;
|
||||
void setIsMovieNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter for series.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for series.
|
||||
*/
|
||||
std::optional<bool> isSeries() const;
|
||||
/**
|
||||
* @brief Gets or sets filter for series.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for series.
|
||||
*/
|
||||
void setIsSeries(std::optional<bool> newIsSeries);
|
||||
bool isSeriesNull() const;
|
||||
void setIsSeriesNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter for news.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for news.
|
||||
*/
|
||||
std::optional<bool> isNews() const;
|
||||
/**
|
||||
* @brief Gets or sets filter for news.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for news.
|
||||
*/
|
||||
void setIsNews(std::optional<bool> newIsNews);
|
||||
bool isNewsNull() const;
|
||||
void setIsNewsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter for kids.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for kids.
|
||||
*/
|
||||
std::optional<bool> isKids() const;
|
||||
/**
|
||||
* @brief Gets or sets filter for kids.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for kids.
|
||||
*/
|
||||
void setIsKids(std::optional<bool> newIsKids);
|
||||
bool isKidsNull() const;
|
||||
void setIsKidsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter for sports.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for sports.
|
||||
*/
|
||||
std::optional<bool> isSports() const;
|
||||
/**
|
||||
* @brief Gets or sets filter for sports.
|
||||
Optional.
|
||||
* @brief Gets or sets filter for sports.
|
||||
*/
|
||||
void setIsSports(std::optional<bool> newIsSports);
|
||||
bool isSportsNull() const;
|
||||
void setIsSportsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
|
||||
Optional.
|
||||
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
|
||||
*/
|
||||
std::optional<qint32> startIndex() const;
|
||||
/**
|
||||
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
|
||||
Optional.
|
||||
* @brief Gets or sets the record index to start at. All items with a lower index will be dropped from the results.
|
||||
*/
|
||||
void setStartIndex(std::optional<qint32> newStartIndex);
|
||||
bool startIndexNull() const;
|
||||
void setStartIndexNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the maximum number of records to return.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum number of records to return.
|
||||
*/
|
||||
std::optional<qint32> limit() const;
|
||||
/**
|
||||
* @brief Gets or sets the maximum number of records to return.
|
||||
Optional.
|
||||
* @brief Gets or sets the maximum number of records to return.
|
||||
*/
|
||||
void setLimit(std::optional<qint32> newLimit);
|
||||
bool limitNull() const;
|
||||
void setLimitNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
|
||||
Optional.
|
||||
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
|
||||
*/
|
||||
QString sortBy() const;
|
||||
QList<ItemSortBy> sortBy() const;
|
||||
/**
|
||||
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
|
||||
Optional.
|
||||
* @brief Gets or sets specify one or more sort orders, comma delimited. Options: Name, StartDate.
|
||||
*/
|
||||
void setSortBy(QString newSortBy);
|
||||
void setSortBy(QList<ItemSortBy> newSortBy);
|
||||
bool sortByNull() const;
|
||||
void setSortByNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets sort Order - Ascending,Descending.
|
||||
* @brief Gets or sets sort order.
|
||||
*/
|
||||
QString sortOrder() const;
|
||||
QList<SortOrder> sortOrder() const;
|
||||
/**
|
||||
* @brief Gets or sets sort Order - Ascending,Descending.
|
||||
* @brief Gets or sets sort order.
|
||||
*/
|
||||
void setSortOrder(QString newSortOrder);
|
||||
void setSortOrder(QList<SortOrder> newSortOrder);
|
||||
bool sortOrderNull() const;
|
||||
void setSortOrderNull();
|
||||
|
||||
|
@ -306,13 +280,11 @@ Optional.
|
|||
void setGenreIdsNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets include image information in output.
|
||||
Optional.
|
||||
* @brief Gets or sets include image information in output.
|
||||
*/
|
||||
std::optional<bool> enableImages() const;
|
||||
/**
|
||||
* @brief Gets or sets include image information in output.
|
||||
Optional.
|
||||
* @brief Gets or sets include image information in output.
|
||||
*/
|
||||
void setEnableImages(std::optional<bool> newEnableImages);
|
||||
bool enableImagesNull() const;
|
||||
|
@ -321,83 +293,73 @@ Optional.
|
|||
/**
|
||||
* @brief Gets or sets a value indicating whether retrieve total record count.
|
||||
*/
|
||||
bool enableTotalRecordCount() const;
|
||||
std::optional<bool> enableTotalRecordCount() const;
|
||||
/**
|
||||
* @brief Gets or sets a value indicating whether retrieve total record count.
|
||||
*/
|
||||
void setEnableTotalRecordCount(bool newEnableTotalRecordCount);
|
||||
void setEnableTotalRecordCount(std::optional<bool> newEnableTotalRecordCount);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the max number of images to return, per image type.
|
||||
Optional.
|
||||
* @brief Gets or sets the max number of images to return, per image type.
|
||||
*/
|
||||
std::optional<qint32> imageTypeLimit() const;
|
||||
/**
|
||||
* @brief Gets or sets the max number of images to return, per image type.
|
||||
Optional.
|
||||
* @brief Gets or sets the max number of images to return, per image type.
|
||||
*/
|
||||
void setImageTypeLimit(std::optional<qint32> newImageTypeLimit);
|
||||
bool imageTypeLimitNull() const;
|
||||
void setImageTypeLimitNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the image types to include in the output.
|
||||
Optional.
|
||||
* @brief Gets or sets the image types to include in the output.
|
||||
*/
|
||||
QList<ImageType> enableImageTypes() const;
|
||||
/**
|
||||
* @brief Gets or sets the image types to include in the output.
|
||||
Optional.
|
||||
* @brief Gets or sets the image types to include in the output.
|
||||
*/
|
||||
void setEnableImageTypes(QList<ImageType> newEnableImageTypes);
|
||||
bool enableImageTypesNull() const;
|
||||
void setEnableImageTypesNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets include user data.
|
||||
Optional.
|
||||
* @brief Gets or sets include user data.
|
||||
*/
|
||||
std::optional<bool> enableUserData() const;
|
||||
/**
|
||||
* @brief Gets or sets include user data.
|
||||
Optional.
|
||||
* @brief Gets or sets include user data.
|
||||
*/
|
||||
void setEnableUserData(std::optional<bool> newEnableUserData);
|
||||
bool enableUserDataNull() const;
|
||||
void setEnableUserDataNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter by series timer id.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by series timer id.
|
||||
*/
|
||||
QString seriesTimerId() const;
|
||||
/**
|
||||
* @brief Gets or sets filter by series timer id.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by series timer id.
|
||||
*/
|
||||
void setSeriesTimerId(QString newSeriesTimerId);
|
||||
bool seriesTimerIdNull() const;
|
||||
void setSeriesTimerIdNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets filter by library series id.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by library series id.
|
||||
*/
|
||||
QString librarySeriesId() const;
|
||||
/**
|
||||
* @brief Gets or sets filter by library series id.
|
||||
Optional.
|
||||
* @brief Gets or sets filter by library series id.
|
||||
*/
|
||||
void setLibrarySeriesId(QString newLibrarySeriesId);
|
||||
bool librarySeriesIdNull() const;
|
||||
void setLibrarySeriesIdNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
|
||||
Optional.
|
||||
* @brief Gets or sets specify additional fields of information to return in the output.
|
||||
*/
|
||||
QList<ItemFields> fields() const;
|
||||
/**
|
||||
* @brief Gets or sets specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines.
|
||||
Optional.
|
||||
* @brief Gets or sets specify additional fields of information to return in the output.
|
||||
*/
|
||||
void setFields(QList<ItemFields> newFields);
|
||||
bool fieldsNull() const;
|
||||
|
@ -420,12 +382,12 @@ protected:
|
|||
std::optional<bool> m_isSports = std::nullopt;
|
||||
std::optional<qint32> m_startIndex = std::nullopt;
|
||||
std::optional<qint32> m_limit = std::nullopt;
|
||||
QString m_sortBy;
|
||||
QString m_sortOrder;
|
||||
QList<ItemSortBy> m_sortBy;
|
||||
QList<SortOrder> m_sortOrder;
|
||||
QStringList m_genres;
|
||||
QStringList m_genreIds;
|
||||
std::optional<bool> m_enableImages = std::nullopt;
|
||||
bool m_enableTotalRecordCount;
|
||||
std::optional<bool> m_enableTotalRecordCount = std::nullopt;
|
||||
std::optional<qint32> m_imageTypeLimit = std::nullopt;
|
||||
QList<ImageType> m_enableImageTypes;
|
||||
std::optional<bool> m_enableUserData = std::nullopt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue