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,9 @@ class SearchApi {
final ApiClient apiClient;
/// Performs an HTTP 'GET /search/explore' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getExploreDataWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/search/explore';
@@ -42,6 +44,7 @@ class SearchApi {
);
}
///
Future<List<SearchExploreResponseDto>?> getExploreData() async {
final response = await getExploreDataWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@@ -60,7 +63,9 @@ class SearchApi {
return null;
}
/// Performs an HTTP 'GET /search/config' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getSearchConfigWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/search/config';
@@ -86,6 +91,7 @@ class SearchApi {
);
}
///
Future<SearchConfigResponseDto?> getSearchConfig() async {
final response = await getSearchConfigWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@@ -101,7 +107,10 @@ class SearchApi {
return null;
}
/// Performs an HTTP 'GET /search' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] q:
@@ -199,6 +208,8 @@ class SearchApi {
);
}
///
///
/// Parameters:
///
/// * [String] q: