1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

fix(web): empty album is not auto deleted (#2283)

* fix(web): empty album is not auto deleted

* regenerate api

* fix test
This commit is contained in:
Alex
2023-04-18 11:26:04 -05:00
committed by GitHub
parent 8a421831ab
commit 975d23ee5c
42 changed files with 108 additions and 824 deletions

View File

@ -16,10 +16,7 @@ class OAuthApi {
final ApiClient apiClient;
///
///
/// Note: This method returns the HTTP [Response].
///
/// Performs an HTTP 'POST /oauth/callback' operation and returns the [Response].
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -48,8 +45,6 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -68,10 +63,7 @@ class OAuthApi {
return null;
}
///
///
/// Note: This method returns the HTTP [Response].
///
/// Performs an HTTP 'POST /oauth/config' operation and returns the [Response].
/// Parameters:
///
/// * [OAuthConfigDto] oAuthConfigDto (required):
@ -100,8 +92,6 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthConfigDto] oAuthConfigDto (required):
@ -120,10 +110,7 @@ class OAuthApi {
return null;
}
///
///
/// Note: This method returns the HTTP [Response].
///
/// Performs an HTTP 'POST /oauth/link' operation and returns the [Response].
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -152,8 +139,6 @@ class OAuthApi {
);
}
///
///
/// Parameters:
///
/// * [OAuthCallbackDto] oAuthCallbackDto (required):
@ -172,9 +157,7 @@ class OAuthApi {
return null;
}
///
///
/// Note: This method returns the HTTP [Response].
/// Performs an HTTP 'GET /oauth/mobile-redirect' operation and returns the [Response].
Future<Response> mobileRedirectWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/oauth/mobile-redirect';
@ -200,7 +183,6 @@ class OAuthApi {
);
}
///
Future<void> mobileRedirect() async {
final response = await mobileRedirectWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -208,9 +190,7 @@ class OAuthApi {
}
}
///
///
/// Note: This method returns the HTTP [Response].
/// Performs an HTTP 'POST /oauth/unlink' operation and returns the [Response].
Future<Response> unlinkWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/oauth/unlink';
@ -236,7 +216,6 @@ class OAuthApi {
);
}
///
Future<UserResponseDto?> unlink() async {
final response = await unlinkWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {