1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-14 07:04:24 +02:00

fix(web): show OAuth login button when disabled (#2219)

* fix(web): show OAuth login button when disable

* update api
This commit is contained in:
Alex
2023-04-08 22:18:22 -05:00
committed by GitHub
parent 983abf5e14
commit e9c171f7ab
41 changed files with 802 additions and 78 deletions

View File

@ -16,7 +16,10 @@ class ShareApi {
final ApiClient apiClient;
/// Performs an HTTP 'PATCH /share/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -48,6 +51,8 @@ class ShareApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -68,7 +73,9 @@ class ShareApi {
return null;
}
/// Performs an HTTP 'GET /share' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getAllSharedLinksWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/share';
@ -94,6 +101,7 @@ class ShareApi {
);
}
///
Future<List<SharedLinkResponseDto>?> getAllSharedLinks() async {
final response = await getAllSharedLinksWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -112,7 +120,10 @@ class ShareApi {
return null;
}
/// Performs an HTTP 'GET /share/me' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] key:
@ -145,6 +156,8 @@ class ShareApi {
);
}
///
///
/// Parameters:
///
/// * [String] key:
@ -163,7 +176,10 @@ class ShareApi {
return null;
}
/// Performs an HTTP 'GET /share/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -193,6 +209,8 @@ class ShareApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -211,7 +229,10 @@ class ShareApi {
return null;
}
/// Performs an HTTP 'DELETE /share/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -241,6 +262,8 @@ class ShareApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):