feat(web): timeline bucket for albums (4) (#3604)

* feat: server changes for album timeline

* feat(web): album timeline view

* chore: open api

* chore: remove archive action

* fix: favorite for non-owners
This commit is contained in:
Jason Rasmussen 2023-08-11 12:00:51 -04:00 committed by GitHub
parent 36dc7bd924
commit 5cd13227ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 1014 additions and 757 deletions

View file

@ -264,8 +264,10 @@ class AlbumApi {
///
/// * [String] id (required):
///
/// * [bool] withoutAssets:
///
/// * [String] key:
Future<Response> getAlbumInfoWithHttpInfo(String id, { String? key, }) async {
Future<Response> getAlbumInfoWithHttpInfo(String id, { bool? withoutAssets, String? key, }) async {
// ignore: prefer_const_declarations
final path = r'/album/{id}'
.replaceAll('{id}', id);
@ -277,6 +279,9 @@ class AlbumApi {
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (withoutAssets != null) {
queryParams.addAll(_queryParams('', 'withoutAssets', withoutAssets));
}
if (key != null) {
queryParams.addAll(_queryParams('', 'key', key));
}
@ -299,9 +304,11 @@ class AlbumApi {
///
/// * [String] id (required):
///
/// * [bool] withoutAssets:
///
/// * [String] key:
Future<AlbumResponseDto?> getAlbumInfo(String id, { String? key, }) async {
final response = await getAlbumInfoWithHttpInfo(id, key: key, );
Future<AlbumResponseDto?> getAlbumInfo(String id, { bool? withoutAssets, String? key, }) async {
final response = await getAlbumInfoWithHttpInfo(id, withoutAssets: withoutAssets, key: key, );
if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
}