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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 802 additions and 78 deletions

View file

@ -21,6 +21,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -72,6 +74,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -122,6 +126,8 @@ void (empty response body)
### Example
```dart
import 'package:openapi/api.dart';
@ -173,6 +179,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -220,6 +228,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -28,6 +28,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -83,6 +85,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -136,6 +140,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -187,6 +193,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -238,6 +246,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -288,6 +298,8 @@ void (empty response body)
### Example
```dart
import 'package:openapi/api.dart';
@ -345,6 +357,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -392,6 +406,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -445,6 +461,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -498,6 +516,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -551,6 +571,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -603,6 +625,8 @@ void (empty response body)
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -39,6 +39,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -200,6 +202,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -251,6 +255,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -302,6 +308,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -355,6 +363,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -577,6 +587,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -628,6 +640,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -679,6 +693,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -726,6 +742,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -773,6 +791,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -828,6 +848,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -875,6 +897,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -975,6 +999,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -1028,6 +1054,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -1079,6 +1107,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -1191,6 +1221,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -21,6 +21,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -62,6 +64,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -113,6 +117,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -154,6 +160,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -201,6 +209,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -17,6 +17,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -18,6 +18,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -65,6 +67,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -21,6 +21,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -62,6 +64,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -103,6 +107,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -154,6 +160,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -190,6 +198,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -19,6 +19,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -66,6 +68,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -113,6 +117,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -20,6 +20,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -67,6 +69,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -104,6 +108,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -151,6 +157,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -21,6 +21,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -74,6 +76,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -121,6 +125,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -172,6 +178,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -223,6 +231,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -20,6 +20,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -67,6 +69,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -114,6 +118,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -161,6 +167,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -21,6 +21,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -72,6 +74,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -122,6 +126,8 @@ void (empty response body)
### Example
```dart
import 'package:openapi/api.dart';
@ -169,6 +175,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -220,6 +228,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -26,6 +26,8 @@ Method | HTTP request | Description
### Example
```dart
import 'package:openapi/api.dart';
@ -77,6 +79,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -128,6 +132,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -179,6 +185,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -230,6 +238,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -277,6 +287,8 @@ This endpoint does not need any parameter.
### Example
```dart
import 'package:openapi/api.dart';
@ -328,6 +340,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -379,6 +393,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';
@ -420,6 +436,8 @@ No authorization required
### Example
```dart
import 'package:openapi/api.dart';
@ -471,6 +489,8 @@ Name | Type | Description | Notes
### Example
```dart
import 'package:openapi/api.dart';

View file

@ -16,7 +16,10 @@ class AlbumApi {
final ApiClient apiClient;
/// Performs an HTTP 'PUT /album/{albumId}/assets' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -54,6 +57,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -76,7 +81,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'PUT /album/{albumId}/users' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -108,6 +116,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -128,7 +138,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'POST /album' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [CreateAlbumDto] createAlbumDto (required):
@ -157,6 +170,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [CreateAlbumDto] createAlbumDto (required):
@ -175,7 +190,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'POST /album/create-shared-link' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [CreateAlbumShareLinkDto] createAlbumShareLinkDto (required):
@ -204,6 +222,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [CreateAlbumShareLinkDto] createAlbumShareLinkDto (required):
@ -222,7 +242,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{albumId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -252,6 +275,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -262,7 +287,10 @@ class AlbumApi {
}
}
/// Performs an HTTP 'GET /album/{albumId}/download' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -308,6 +336,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -332,7 +362,9 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'GET /album/count-by-user-id' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getAlbumCountByUserIdWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/album/count-by-user-id';
@ -358,6 +390,7 @@ class AlbumApi {
);
}
///
Future<AlbumCountResponseDto?> getAlbumCountByUserId() async {
final response = await getAlbumCountByUserIdWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -373,7 +406,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'GET /album/{albumId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -409,6 +445,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -429,7 +467,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'GET /album' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [bool] shared:
@ -468,6 +509,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [bool] shared:
@ -492,7 +535,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{albumId}/assets' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -524,6 +570,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -544,7 +592,10 @@ class AlbumApi {
return null;
}
/// Performs an HTTP 'DELETE /album/{albumId}/user/{userId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -577,6 +628,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):
@ -589,7 +642,10 @@ class AlbumApi {
}
}
/// Performs an HTTP 'PATCH /album/{albumId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] albumId (required):
@ -621,6 +677,8 @@ class AlbumApi {
);
}
///
///
/// Parameters:
///
/// * [String] albumId (required):

View file

@ -16,7 +16,10 @@ class APIKeyApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /api-key' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [APIKeyCreateDto] aPIKeyCreateDto (required):
@ -45,6 +48,8 @@ class APIKeyApi {
);
}
///
///
/// Parameters:
///
/// * [APIKeyCreateDto] aPIKeyCreateDto (required):
@ -63,7 +68,10 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'DELETE /api-key/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -93,6 +101,8 @@ class APIKeyApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -103,7 +113,10 @@ class APIKeyApi {
}
}
/// Performs an HTTP 'GET /api-key/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -133,6 +146,8 @@ class APIKeyApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -151,7 +166,9 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'GET /api-key' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getKeysWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/api-key';
@ -177,6 +194,7 @@ class APIKeyApi {
);
}
///
Future<List<APIKeyResponseDto>?> getKeys() async {
final response = await getKeysWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -195,7 +213,10 @@ class APIKeyApi {
return null;
}
/// Performs an HTTP 'PUT /api-key/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -227,6 +248,8 @@ class APIKeyApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):

View file

@ -16,7 +16,10 @@ class AssetApi {
final ApiClient apiClient;
/// Performs an HTTP 'PATCH /asset/shared-link/add' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [AddAssetsDto] addAssetsDto (required):
@ -51,6 +54,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [AddAssetsDto] addAssetsDto (required):
@ -183,7 +188,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/shared-link' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [CreateAssetsShareLinkDto] createAssetsShareLinkDto (required):
@ -212,6 +220,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [CreateAssetsShareLinkDto] createAssetsShareLinkDto (required):
@ -230,7 +240,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'DELETE /asset' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [DeleteAssetDto] deleteAssetDto (required):
@ -259,6 +272,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [DeleteAssetDto] deleteAssetDto (required):
@ -280,7 +295,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/download/{assetId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] assetId (required):
@ -316,6 +334,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [String] assetId (required):
@ -336,7 +356,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/download-files' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [DownloadFilesDto] downloadFilesDto (required):
@ -371,6 +394,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [DownloadFilesDto] downloadFilesDto (required):
@ -598,7 +623,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/time-bucket' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required):
@ -627,6 +655,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required):
@ -648,7 +678,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/count-by-time-bucket' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required):
@ -677,6 +710,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required):
@ -695,7 +730,9 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/count-by-user-id' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getAssetCountByUserIdWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/asset/count-by-user-id';
@ -721,6 +758,7 @@ class AssetApi {
);
}
///
Future<AssetCountByUserIdResponseDto?> getAssetCountByUserId() async {
final response = await getAssetCountByUserIdWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -736,7 +774,9 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/search-terms' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getAssetSearchTermsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/asset/search-terms';
@ -762,6 +802,7 @@ class AssetApi {
);
}
///
Future<List<String>?> getAssetSearchTerms() async {
final response = await getAssetSearchTermsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -780,7 +821,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/thumbnail/{assetId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] assetId (required):
@ -821,6 +865,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [String] assetId (required):
@ -843,7 +889,9 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/curated-locations' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getCuratedLocationsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/asset/curated-locations';
@ -869,6 +917,7 @@ class AssetApi {
);
}
///
Future<List<CuratedLocationsResponseDto>?> getCuratedLocations() async {
final response = await getCuratedLocationsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -887,7 +936,9 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/curated-objects' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getCuratedObjectsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/asset/curated-objects';
@ -913,6 +964,7 @@ class AssetApi {
);
}
///
Future<List<CuratedObjectsResponseDto>?> getCuratedObjects() async {
final response = await getCuratedObjectsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -987,7 +1039,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'PATCH /asset/shared-link/remove' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [RemoveAssetsDto] removeAssetsDto (required):
@ -1022,6 +1077,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [RemoveAssetsDto] removeAssetsDto (required):
@ -1042,7 +1099,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/search' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [SearchAssetDto] searchAssetDto (required):
@ -1071,6 +1131,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [SearchAssetDto] searchAssetDto (required):
@ -1092,7 +1154,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'GET /asset/file/{assetId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] assetId (required):
@ -1138,6 +1203,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [String] assetId (required):
@ -1219,7 +1286,10 @@ class AssetApi {
return null;
}
/// Performs an HTTP 'POST /asset/upload' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [AssetTypeEnum] assetType (required):
@ -1325,6 +1395,8 @@ class AssetApi {
);
}
///
///
/// Parameters:
///
/// * [AssetTypeEnum] assetType (required):

View file

@ -16,7 +16,10 @@ class AuthenticationApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /auth/admin-sign-up' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [SignUpDto] signUpDto (required):
@ -45,6 +48,8 @@ class AuthenticationApi {
);
}
///
///
/// Parameters:
///
/// * [SignUpDto] signUpDto (required):
@ -63,7 +68,10 @@ class AuthenticationApi {
return null;
}
/// Performs an HTTP 'POST /auth/change-password' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [ChangePasswordDto] changePasswordDto (required):
@ -92,6 +100,8 @@ class AuthenticationApi {
);
}
///
///
/// Parameters:
///
/// * [ChangePasswordDto] changePasswordDto (required):
@ -110,7 +120,10 @@ class AuthenticationApi {
return null;
}
/// Performs an HTTP 'POST /auth/login' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [LoginCredentialDto] loginCredentialDto (required):
@ -139,6 +152,8 @@ class AuthenticationApi {
);
}
///
///
/// Parameters:
///
/// * [LoginCredentialDto] loginCredentialDto (required):
@ -157,7 +172,9 @@ class AuthenticationApi {
return null;
}
/// Performs an HTTP 'POST /auth/logout' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> logoutWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/auth/logout';
@ -183,6 +200,7 @@ class AuthenticationApi {
);
}
///
Future<LogoutResponseDto?> logout() async {
final response = await logoutWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -198,7 +216,9 @@ class AuthenticationApi {
return null;
}
/// Performs an HTTP 'POST /auth/validateToken' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> validateAccessTokenWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/auth/validateToken';
@ -224,6 +244,7 @@ class AuthenticationApi {
);
}
///
Future<ValidateAccessTokenResponseDto?> validateAccessToken() async {
final response = await validateAccessTokenWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {

View file

@ -16,7 +16,10 @@ class DeviceInfoApi {
final ApiClient apiClient;
/// Performs an HTTP 'PUT /device-info' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [UpsertDeviceInfoDto] upsertDeviceInfoDto (required):
@ -45,6 +48,8 @@ class DeviceInfoApi {
);
}
///
///
/// Parameters:
///
/// * [UpsertDeviceInfoDto] upsertDeviceInfoDto (required):

View file

@ -16,7 +16,9 @@ class JobApi {
final ApiClient apiClient;
/// Performs an HTTP 'GET /jobs' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getAllJobsStatusWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/jobs';
@ -42,6 +44,7 @@ class JobApi {
);
}
///
Future<AllJobStatusResponseDto?> getAllJobsStatus() async {
final response = await getAllJobsStatusWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -57,7 +60,10 @@ class JobApi {
return null;
}
/// Performs an HTTP 'PUT /jobs/{jobId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [JobName] jobId (required):
@ -89,6 +95,8 @@ class JobApi {
);
}
///
///
/// Parameters:
///
/// * [JobName] jobId (required):

View file

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

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:

View file

@ -16,7 +16,9 @@ class ServerInfoApi {
final ApiClient apiClient;
/// Performs an HTTP 'GET /server-info' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getServerInfoWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/server-info';
@ -42,6 +44,7 @@ class ServerInfoApi {
);
}
///
Future<ServerInfoResponseDto?> getServerInfo() async {
final response = await getServerInfoWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -57,7 +60,9 @@ class ServerInfoApi {
return null;
}
/// Performs an HTTP 'GET /server-info/version' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getServerVersionWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/server-info/version';
@ -83,6 +88,7 @@ class ServerInfoApi {
);
}
///
Future<ServerVersionReponseDto?> getServerVersion() async {
final response = await getServerVersionWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -98,7 +104,9 @@ class ServerInfoApi {
return null;
}
/// Performs an HTTP 'GET /server-info/stats' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getStatsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/server-info/stats';
@ -124,6 +132,7 @@ class ServerInfoApi {
);
}
///
Future<ServerStatsResponseDto?> getStats() async {
final response = await getStatsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -139,7 +148,9 @@ class ServerInfoApi {
return null;
}
/// Performs an HTTP 'GET /server-info/ping' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> pingServerWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/server-info/ping';
@ -165,6 +176,7 @@ class ServerInfoApi {
);
}
///
Future<ServerPingResponse?> pingServer() async {
final response = await pingServerWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {

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):

View file

@ -16,7 +16,9 @@ class SystemConfigApi {
final ApiClient apiClient;
/// Performs an HTTP 'GET /system-config' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getConfigWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/system-config';
@ -42,6 +44,7 @@ class SystemConfigApi {
);
}
///
Future<SystemConfigDto?> getConfig() async {
final response = await getConfigWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -57,7 +60,9 @@ class SystemConfigApi {
return null;
}
/// Performs an HTTP 'GET /system-config/defaults' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getDefaultsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/system-config/defaults';
@ -83,6 +88,7 @@ class SystemConfigApi {
);
}
///
Future<SystemConfigDto?> getDefaults() async {
final response = await getDefaultsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -98,7 +104,9 @@ class SystemConfigApi {
return null;
}
/// Performs an HTTP 'GET /system-config/storage-template-options' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getStorageTemplateOptionsWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/system-config/storage-template-options';
@ -124,6 +132,7 @@ class SystemConfigApi {
);
}
///
Future<SystemConfigTemplateStorageOptionDto?> getStorageTemplateOptions() async {
final response = await getStorageTemplateOptionsWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -139,7 +148,10 @@ class SystemConfigApi {
return null;
}
/// Performs an HTTP 'PUT /system-config' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [SystemConfigDto] systemConfigDto (required):
@ -168,6 +180,8 @@ class SystemConfigApi {
);
}
///
///
/// Parameters:
///
/// * [SystemConfigDto] systemConfigDto (required):

View file

@ -16,7 +16,10 @@ class TagApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /tag' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [CreateTagDto] createTagDto (required):
@ -45,6 +48,8 @@ class TagApi {
);
}
///
///
/// Parameters:
///
/// * [CreateTagDto] createTagDto (required):
@ -63,7 +68,10 @@ class TagApi {
return null;
}
/// Performs an HTTP 'DELETE /tag/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -93,6 +101,8 @@ class TagApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -103,7 +113,9 @@ class TagApi {
}
}
/// Performs an HTTP 'GET /tag' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> findAllWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/tag';
@ -129,6 +141,7 @@ class TagApi {
);
}
///
Future<List<TagResponseDto>?> findAll() async {
final response = await findAllWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -147,7 +160,10 @@ class TagApi {
return null;
}
/// Performs an HTTP 'GET /tag/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -177,6 +193,8 @@ class TagApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):
@ -195,7 +213,10 @@ class TagApi {
return null;
}
/// Performs an HTTP 'PATCH /tag/{id}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] id (required):
@ -227,6 +248,8 @@ class TagApi {
);
}
///
///
/// Parameters:
///
/// * [String] id (required):

View file

@ -16,7 +16,10 @@ class UserApi {
final ApiClient apiClient;
/// Performs an HTTP 'POST /user/profile-image' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [MultipartFile] file (required):
@ -55,6 +58,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [MultipartFile] file (required):
@ -73,7 +78,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'POST /user' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [CreateUserDto] createUserDto (required):
@ -102,6 +110,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [CreateUserDto] createUserDto (required):
@ -120,7 +130,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'DELETE /user/{userId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] userId (required):
@ -150,6 +163,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [String] userId (required):
@ -168,7 +183,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [bool] isAll (required):
@ -199,6 +217,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [bool] isAll (required):
@ -220,7 +240,9 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/me' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
Future<Response> getMyUserInfoWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/user/me';
@ -246,6 +268,7 @@ class UserApi {
);
}
///
Future<UserResponseDto?> getMyUserInfo() async {
final response = await getMyUserInfoWithHttpInfo();
if (response.statusCode >= HttpStatus.badRequest) {
@ -261,7 +284,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/profile-image/{userId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] userId (required):
@ -291,6 +317,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [String] userId (required):
@ -309,7 +337,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/info/{userId}' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] userId (required):
@ -339,6 +370,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [String] userId (required):
@ -357,7 +390,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'GET /user/count' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [bool] admin:
@ -390,6 +426,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [bool] admin:
@ -408,7 +446,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'POST /user/{userId}/restore' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [String] userId (required):
@ -438,6 +479,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [String] userId (required):
@ -456,7 +499,10 @@ class UserApi {
return null;
}
/// Performs an HTTP 'PUT /user' operation and returns the [Response].
///
///
/// Note: This method returns the HTTP [Response].
///
/// Parameters:
///
/// * [UpdateUserDto] updateUserDto (required):
@ -485,6 +531,8 @@ class UserApi {
);
}
///
///
/// Parameters:
///
/// * [UpdateUserDto] updateUserDto (required):

View file

@ -17,61 +17,85 @@ void main() {
// final instance = AlbumApi();
group('tests for AlbumApi', () {
//
//
//Future<AddAssetsResponseDto> addAssetsToAlbum(String albumId, AddAssetsDto addAssetsDto, { String key }) async
test('test addAssetsToAlbum', () async {
// TODO
});
//
//
//Future<AlbumResponseDto> addUsersToAlbum(String albumId, AddUsersDto addUsersDto) async
test('test addUsersToAlbum', () async {
// TODO
});
//
//
//Future<AlbumResponseDto> createAlbum(CreateAlbumDto createAlbumDto) async
test('test createAlbum', () async {
// TODO
});
//
//
//Future<SharedLinkResponseDto> createAlbumSharedLink(CreateAlbumShareLinkDto createAlbumShareLinkDto) async
test('test createAlbumSharedLink', () async {
// TODO
});
//
//
//Future deleteAlbum(String albumId) async
test('test deleteAlbum', () async {
// TODO
});
//
//
//Future<MultipartFile> downloadArchive(String albumId, { String name, num skip, String key }) async
test('test downloadArchive', () async {
// TODO
});
//
//
//Future<AlbumCountResponseDto> getAlbumCountByUserId() async
test('test getAlbumCountByUserId', () async {
// TODO
});
//
//
//Future<AlbumResponseDto> getAlbumInfo(String albumId, { String key }) async
test('test getAlbumInfo', () async {
// TODO
});
//
//
//Future<List<AlbumResponseDto>> getAllAlbums({ bool shared, String assetId }) async
test('test getAllAlbums', () async {
// TODO
});
//
//
//Future<AlbumResponseDto> removeAssetFromAlbum(String albumId, RemoveAssetsDto removeAssetsDto) async
test('test removeAssetFromAlbum', () async {
// TODO
});
//
//
//Future removeUserFromAlbum(String albumId, String userId) async
test('test removeUserFromAlbum', () async {
// TODO
});
//
//
//Future<AlbumResponseDto> updateAlbumInfo(String albumId, UpdateAlbumDto updateAlbumDto) async
test('test updateAlbumInfo', () async {
// TODO

View file

@ -17,26 +17,36 @@ void main() {
// final instance = APIKeyApi();
group('tests for APIKeyApi', () {
//
//
//Future<APIKeyCreateResponseDto> createKey(APIKeyCreateDto aPIKeyCreateDto) async
test('test createKey', () async {
// TODO
});
//
//
//Future deleteKey(String id) async
test('test deleteKey', () async {
// TODO
});
//
//
//Future<APIKeyResponseDto> getKey(String id) async
test('test getKey', () async {
// TODO
});
//
//
//Future<List<APIKeyResponseDto>> getKeys() async
test('test getKeys', () async {
// TODO
});
//
//
//Future<APIKeyResponseDto> updateKey(String id, APIKeyUpdateDto aPIKeyUpdateDto) async
test('test updateKey', () async {
// TODO

View file

@ -17,6 +17,8 @@ void main() {
// final instance = AssetApi();
group('tests for AssetApi', () {
//
//
//Future<SharedLinkResponseDto> addAssetsToSharedLink(AddAssetsDto addAssetsDto, { String key }) async
test('test addAssetsToSharedLink', () async {
// TODO
@ -36,21 +38,29 @@ void main() {
// TODO
});
//
//
//Future<SharedLinkResponseDto> createAssetsSharedLink(CreateAssetsShareLinkDto createAssetsShareLinkDto) async
test('test createAssetsSharedLink', () async {
// TODO
});
//
//
//Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
test('test deleteAsset', () async {
// TODO
});
//
//
//Future<MultipartFile> downloadFile(String assetId, { String key }) async
test('test downloadFile', () async {
// TODO
});
//
//
//Future<MultipartFile> downloadFiles(DownloadFilesDto downloadFilesDto, { String key }) async
test('test downloadFiles', () async {
// TODO
@ -77,36 +87,50 @@ void main() {
// TODO
});
//
//
//Future<List<AssetResponseDto>> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto) async
test('test getAssetByTimeBucket', () async {
// TODO
});
//
//
//Future<AssetCountByTimeBucketResponseDto> getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto) async
test('test getAssetCountByTimeBucket', () async {
// TODO
});
//
//
//Future<AssetCountByUserIdResponseDto> getAssetCountByUserId() async
test('test getAssetCountByUserId', () async {
// TODO
});
//
//
//Future<List<String>> getAssetSearchTerms() async
test('test getAssetSearchTerms', () async {
// TODO
});
//
//
//Future<MultipartFile> getAssetThumbnail(String assetId, { ThumbnailFormat format, String key }) async
test('test getAssetThumbnail', () async {
// TODO
});
//
//
//Future<List<CuratedLocationsResponseDto>> getCuratedLocations() async
test('test getCuratedLocations', () async {
// TODO
});
//
//
//Future<List<CuratedObjectsResponseDto>> getCuratedObjects() async
test('test getCuratedObjects', () async {
// TODO
@ -119,16 +143,22 @@ void main() {
// TODO
});
//
//
//Future<SharedLinkResponseDto> removeAssetsFromSharedLink(RemoveAssetsDto removeAssetsDto, { String key }) async
test('test removeAssetsFromSharedLink', () async {
// TODO
});
//
//
//Future<List<AssetResponseDto>> searchAsset(SearchAssetDto searchAssetDto) async
test('test searchAsset', () async {
// TODO
});
//
//
//Future<MultipartFile> serveFile(String assetId, { bool isThumb, bool isWeb, String key }) async
test('test serveFile', () async {
// TODO
@ -141,6 +171,8 @@ void main() {
// TODO
});
//
//
//Future<AssetFileUploadResponseDto> uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String deviceAssetId, String deviceId, String fileCreatedAt, String fileModifiedAt, bool isFavorite, String fileExtension, { String key, MultipartFile livePhotoData, bool isVisible, String duration }) async
test('test uploadFile', () async {
// TODO

View file

@ -17,26 +17,36 @@ void main() {
// final instance = AuthenticationApi();
group('tests for AuthenticationApi', () {
//
//
//Future<AdminSignupResponseDto> adminSignUp(SignUpDto signUpDto) async
test('test adminSignUp', () async {
// TODO
});
//
//
//Future<UserResponseDto> changePassword(ChangePasswordDto changePasswordDto) async
test('test changePassword', () async {
// TODO
});
//
//
//Future<LoginResponseDto> login(LoginCredentialDto loginCredentialDto) async
test('test login', () async {
// TODO
});
//
//
//Future<LogoutResponseDto> logout() async
test('test logout', () async {
// TODO
});
//
//
//Future<ValidateAccessTokenResponseDto> validateAccessToken() async
test('test validateAccessToken', () async {
// TODO

View file

@ -17,6 +17,8 @@ void main() {
// final instance = DeviceInfoApi();
group('tests for DeviceInfoApi', () {
//
//
//Future<DeviceInfoResponseDto> upsertDeviceInfo(UpsertDeviceInfoDto upsertDeviceInfoDto) async
test('test upsertDeviceInfo', () async {
// TODO

View file

@ -17,11 +17,15 @@ void main() {
// final instance = JobApi();
group('tests for JobApi', () {
//
//
//Future<AllJobStatusResponseDto> getAllJobsStatus() async
test('test getAllJobsStatus', () async {
// TODO
});
//
//
//Future<JobStatusDto> sendJobCommand(JobName jobId, JobCommandDto jobCommandDto) async
test('test sendJobCommand', () async {
// TODO

View file

@ -17,26 +17,36 @@ void main() {
// final instance = OAuthApi();
group('tests for OAuthApi', () {
//
//
//Future<LoginResponseDto> callback(OAuthCallbackDto oAuthCallbackDto) async
test('test callback', () async {
// TODO
});
//
//
//Future<OAuthConfigResponseDto> generateConfig(OAuthConfigDto oAuthConfigDto) async
test('test generateConfig', () async {
// TODO
});
//
//
//Future<UserResponseDto> link(OAuthCallbackDto oAuthCallbackDto) async
test('test link', () async {
// TODO
});
//
//
//Future mobileRedirect() async
test('test mobileRedirect', () async {
// TODO
});
//
//
//Future<UserResponseDto> unlink() async
test('test unlink', () async {
// TODO

View file

@ -17,16 +17,22 @@ void main() {
// final instance = SearchApi();
group('tests for SearchApi', () {
//
//
//Future<List<SearchExploreResponseDto>> getExploreData() async
test('test getExploreData', () async {
// TODO
});
//
//
//Future<SearchConfigResponseDto> getSearchConfig() async
test('test getSearchConfig', () async {
// TODO
});
//
//
//Future<SearchResponseDto> search({ String q, String query, bool clip, String type, bool isFavorite, String exifInfoPeriodCity, String exifInfoPeriodState, String exifInfoPeriodCountry, String exifInfoPeriodMake, String exifInfoPeriodModel, List<String> smartInfoPeriodObjects, List<String> smartInfoPeriodTags, bool recent, bool motion }) async
test('test search', () async {
// TODO

View file

@ -17,21 +17,29 @@ void main() {
// final instance = ServerInfoApi();
group('tests for ServerInfoApi', () {
//
//
//Future<ServerInfoResponseDto> getServerInfo() async
test('test getServerInfo', () async {
// TODO
});
//
//
//Future<ServerVersionReponseDto> getServerVersion() async
test('test getServerVersion', () async {
// TODO
});
//
//
//Future<ServerStatsResponseDto> getStats() async
test('test getStats', () async {
// TODO
});
//
//
//Future<ServerPingResponse> pingServer() async
test('test pingServer', () async {
// TODO

View file

@ -17,26 +17,36 @@ void main() {
// final instance = ShareApi();
group('tests for ShareApi', () {
//
//
//Future<SharedLinkResponseDto> editSharedLink(String id, EditSharedLinkDto editSharedLinkDto) async
test('test editSharedLink', () async {
// TODO
});
//
//
//Future<List<SharedLinkResponseDto>> getAllSharedLinks() async
test('test getAllSharedLinks', () async {
// TODO
});
//
//
//Future<SharedLinkResponseDto> getMySharedLink({ String key }) async
test('test getMySharedLink', () async {
// TODO
});
//
//
//Future<SharedLinkResponseDto> getSharedLinkById(String id) async
test('test getSharedLinkById', () async {
// TODO
});
//
//
//Future removeSharedLink(String id) async
test('test removeSharedLink', () async {
// TODO

View file

@ -17,21 +17,29 @@ void main() {
// final instance = SystemConfigApi();
group('tests for SystemConfigApi', () {
//
//
//Future<SystemConfigDto> getConfig() async
test('test getConfig', () async {
// TODO
});
//
//
//Future<SystemConfigDto> getDefaults() async
test('test getDefaults', () async {
// TODO
});
//
//
//Future<SystemConfigTemplateStorageOptionDto> getStorageTemplateOptions() async
test('test getStorageTemplateOptions', () async {
// TODO
});
//
//
//Future<SystemConfigDto> updateConfig(SystemConfigDto systemConfigDto) async
test('test updateConfig', () async {
// TODO

View file

@ -17,26 +17,36 @@ void main() {
// final instance = TagApi();
group('tests for TagApi', () {
//
//
//Future<TagResponseDto> create(CreateTagDto createTagDto) async
test('test create', () async {
// TODO
});
//
//
//Future delete(String id) async
test('test delete', () async {
// TODO
});
//
//
//Future<List<TagResponseDto>> findAll() async
test('test findAll', () async {
// TODO
});
//
//
//Future<TagResponseDto> findOne(String id) async
test('test findOne', () async {
// TODO
});
//
//
//Future<TagResponseDto> update(String id, UpdateTagDto updateTagDto) async
test('test update', () async {
// TODO

View file

@ -17,51 +17,71 @@ void main() {
// final instance = UserApi();
group('tests for UserApi', () {
//
//
//Future<CreateProfileImageResponseDto> createProfileImage(MultipartFile file) async
test('test createProfileImage', () async {
// TODO
});
//
//
//Future<UserResponseDto> createUser(CreateUserDto createUserDto) async
test('test createUser', () async {
// TODO
});
//
//
//Future<UserResponseDto> deleteUser(String userId) async
test('test deleteUser', () async {
// TODO
});
//
//
//Future<List<UserResponseDto>> getAllUsers(bool isAll) async
test('test getAllUsers', () async {
// TODO
});
//
//
//Future<UserResponseDto> getMyUserInfo() async
test('test getMyUserInfo', () async {
// TODO
});
//
//
//Future<Object> getProfileImage(String userId) async
test('test getProfileImage', () async {
// TODO
});
//
//
//Future<UserResponseDto> getUserById(String userId) async
test('test getUserById', () async {
// TODO
});
//
//
//Future<UserCountResponseDto> getUserCount({ bool admin }) async
test('test getUserCount', () async {
// TODO
});
//
//
//Future<UserResponseDto> restoreUser(String userId) async
test('test restoreUser', () async {
// TODO
});
//
//
//Future<UserResponseDto> updateUser(UpdateUserDto updateUserDto) async
test('test updateUser', () async {
// TODO

View file

@ -4,6 +4,7 @@
"/album": {
"get": {
"operationId": "getAllAlbums",
"description": "",
"parameters": [
{
"name": "shared",
@ -53,6 +54,7 @@
},
"post": {
"operationId": "createAlbum",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -92,6 +94,7 @@
"/api-key": {
"post": {
"operationId": "createKey",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -129,6 +132,7 @@
},
"get": {
"operationId": "getKeys",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -161,6 +165,7 @@
"/api-key/{id}": {
"get": {
"operationId": "getKey",
"description": "",
"parameters": [
{
"name": "id",
@ -198,6 +203,7 @@
},
"put": {
"operationId": "updateKey",
"description": "",
"parameters": [
{
"name": "id",
@ -245,6 +251,7 @@
},
"delete": {
"operationId": "deleteKey",
"description": "",
"parameters": [
{
"name": "id",
@ -277,6 +284,7 @@
"/auth/login": {
"post": {
"operationId": "login",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -308,6 +316,7 @@
"/auth/admin-sign-up": {
"post": {
"operationId": "adminSignUp",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -342,6 +351,7 @@
"/auth/validateToken": {
"post": {
"operationId": "validateAccessToken",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -371,6 +381,7 @@
"/auth/change-password": {
"post": {
"operationId": "changePassword",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -410,6 +421,7 @@
"/auth/logout": {
"post": {
"operationId": "logout",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -439,6 +451,7 @@
"/device-info": {
"put": {
"operationId": "upsertDeviceInfo",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -478,6 +491,7 @@
"/jobs": {
"get": {
"operationId": "getAllJobsStatus",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -507,6 +521,7 @@
"/jobs/{jobId}": {
"put": {
"operationId": "sendJobCommand",
"description": "",
"parameters": [
{
"name": "jobId",
@ -555,6 +570,7 @@
"/oauth/mobile-redirect": {
"get": {
"operationId": "mobileRedirect",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -569,6 +585,7 @@
"/oauth/config": {
"post": {
"operationId": "generateConfig",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -600,6 +617,7 @@
"/oauth/callback": {
"post": {
"operationId": "callback",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -631,6 +649,7 @@
"/oauth/link": {
"post": {
"operationId": "link",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -670,6 +689,7 @@
"/oauth/unlink": {
"post": {
"operationId": "unlink",
"description": "",
"parameters": [],
"responses": {
"201": {
@ -699,6 +719,7 @@
"/search": {
"get": {
"operationId": "search",
"description": "",
"parameters": [
{
"name": "q",
@ -853,6 +874,7 @@
"/search/config": {
"get": {
"operationId": "getSearchConfig",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -882,6 +904,7 @@
"/search/explore": {
"get": {
"operationId": "getExploreData",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -914,6 +937,7 @@
"/server-info": {
"get": {
"operationId": "getServerInfo",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -943,6 +967,7 @@
"/server-info/ping": {
"get": {
"operationId": "pingServer",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -964,6 +989,7 @@
"/server-info/version": {
"get": {
"operationId": "getServerVersion",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -985,6 +1011,7 @@
"/server-info/stats": {
"get": {
"operationId": "getStats",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1014,6 +1041,7 @@
"/share": {
"get": {
"operationId": "getAllSharedLinks",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1046,6 +1074,7 @@
"/share/me": {
"get": {
"operationId": "getMySharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -1084,6 +1113,7 @@
"/share/{id}": {
"get": {
"operationId": "getSharedLinkById",
"description": "",
"parameters": [
{
"name": "id",
@ -1121,6 +1151,7 @@
},
"delete": {
"operationId": "removeSharedLink",
"description": "",
"parameters": [
{
"name": "id",
@ -1151,6 +1182,7 @@
},
"patch": {
"operationId": "editSharedLink",
"description": "",
"parameters": [
{
"name": "id",
@ -1200,6 +1232,7 @@
"/system-config": {
"get": {
"operationId": "getConfig",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1227,6 +1260,7 @@
},
"put": {
"operationId": "updateConfig",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1266,6 +1300,7 @@
"/system-config/defaults": {
"get": {
"operationId": "getDefaults",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1295,6 +1330,7 @@
"/system-config/storage-template-options": {
"get": {
"operationId": "getStorageTemplateOptions",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1324,6 +1360,7 @@
"/user": {
"get": {
"operationId": "getAllUsers",
"description": "",
"parameters": [
{
"name": "isAll",
@ -1363,6 +1400,7 @@
},
"post": {
"operationId": "createUser",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1400,6 +1438,7 @@
},
"put": {
"operationId": "updateUser",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1439,6 +1478,7 @@
"/user/info/{userId}": {
"get": {
"operationId": "getUserById",
"description": "",
"parameters": [
{
"name": "userId",
@ -1478,6 +1518,7 @@
"/user/me": {
"get": {
"operationId": "getMyUserInfo",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -1507,6 +1548,7 @@
"/user/count": {
"get": {
"operationId": "getUserCount",
"description": "",
"parameters": [
{
"name": "admin",
@ -1538,6 +1580,7 @@
"/user/{userId}": {
"delete": {
"operationId": "deleteUser",
"description": "",
"parameters": [
{
"name": "userId",
@ -1577,6 +1620,7 @@
"/user/{userId}/restore": {
"post": {
"operationId": "restoreUser",
"description": "",
"parameters": [
{
"name": "userId",
@ -1616,6 +1660,7 @@
"/user/profile-image": {
"post": {
"operationId": "createProfileImage",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -1656,6 +1701,7 @@
"/user/profile-image/{userId}": {
"get": {
"operationId": "getProfileImage",
"description": "",
"parameters": [
{
"name": "userId",
@ -1695,6 +1741,7 @@
"/asset/upload": {
"post": {
"operationId": "uploadFile",
"description": "",
"parameters": [
{
"name": "key",
@ -1744,6 +1791,7 @@
"/asset/download/{assetId}": {
"get": {
"operationId": "downloadFile",
"description": "",
"parameters": [
{
"name": "assetId",
@ -1792,6 +1840,7 @@
"/asset/download-files": {
"post": {
"operationId": "downloadFiles",
"description": "",
"parameters": [
{
"name": "key",
@ -1900,6 +1949,7 @@
"/asset/file/{assetId}": {
"get": {
"operationId": "serveFile",
"description": "",
"parameters": [
{
"name": "isThumb",
@ -1966,6 +2016,7 @@
"/asset/thumbnail/{assetId}": {
"get": {
"operationId": "getAssetThumbnail",
"description": "",
"parameters": [
{
"name": "assetId",
@ -2022,6 +2073,7 @@
"/asset/curated-objects": {
"get": {
"operationId": "getCuratedObjects",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2054,6 +2106,7 @@
"/asset/curated-locations": {
"get": {
"operationId": "getCuratedLocations",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2086,6 +2139,7 @@
"/asset/search-terms": {
"get": {
"operationId": "getAssetSearchTerms",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2118,6 +2172,7 @@
"/asset/search": {
"post": {
"operationId": "searchAsset",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2160,6 +2215,7 @@
"/asset/count-by-time-bucket": {
"post": {
"operationId": "getAssetCountByTimeBucket",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2199,6 +2255,7 @@
"/asset/count-by-user-id": {
"get": {
"operationId": "getAssetCountByUserId",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2285,6 +2342,7 @@
},
"delete": {
"operationId": "deleteAsset",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2327,6 +2385,7 @@
"/asset/time-bucket": {
"post": {
"operationId": "getAssetByTimeBucket",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2599,6 +2658,7 @@
"/asset/shared-link": {
"post": {
"operationId": "createAssetsSharedLink",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2638,6 +2698,7 @@
"/asset/shared-link/add": {
"patch": {
"operationId": "addAssetsToSharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -2686,6 +2747,7 @@
"/asset/shared-link/remove": {
"patch": {
"operationId": "removeAssetsFromSharedLink",
"description": "",
"parameters": [
{
"name": "key",
@ -2734,6 +2796,7 @@
"/tag": {
"post": {
"operationId": "create",
"description": "",
"parameters": [],
"requestBody": {
"required": true,
@ -2771,6 +2834,7 @@
},
"get": {
"operationId": "findAll",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2803,6 +2867,7 @@
"/tag/{id}": {
"get": {
"operationId": "findOne",
"description": "",
"parameters": [
{
"name": "id",
@ -2840,6 +2905,7 @@
},
"patch": {
"operationId": "update",
"description": "",
"parameters": [
{
"name": "id",
@ -2887,6 +2953,7 @@
},
"delete": {
"operationId": "delete",
"description": "",
"parameters": [
{
"name": "id",
@ -2919,6 +2986,7 @@
"/album/count-by-user-id": {
"get": {
"operationId": "getAlbumCountByUserId",
"description": "",
"parameters": [],
"responses": {
"200": {
@ -2948,6 +3016,7 @@
"/album/{albumId}/users": {
"put": {
"operationId": "addUsersToAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -2997,6 +3066,7 @@
"/album/{albumId}/assets": {
"put": {
"operationId": "addAssetsToAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3052,6 +3122,7 @@
},
"delete": {
"operationId": "removeAssetFromAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3101,6 +3172,7 @@
"/album/{albumId}": {
"get": {
"operationId": "getAlbumInfo",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3146,6 +3218,7 @@
},
"delete": {
"operationId": "deleteAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3176,6 +3249,7 @@
},
"patch": {
"operationId": "updateAlbumInfo",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3225,6 +3299,7 @@
"/album/{albumId}/user/{userId}": {
"delete": {
"operationId": "removeUserFromAlbum",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3265,6 +3340,7 @@
"/album/{albumId}/download": {
"get": {
"operationId": "downloadArchive",
"description": "",
"parameters": [
{
"name": "albumId",
@ -3329,6 +3405,7 @@
"/album/create-shared-link": {
"post": {
"operationId": "createAlbumSharedLink",
"description": "",
"parameters": [],
"requestBody": {
"required": true,

View file

@ -124,7 +124,7 @@
</form>
{/if}
{#if !authConfig.enabled}
{#if authConfig.enabled}
{#if authConfig.passwordLoginEnabled}
<div class="inline-flex items-center justify-center w-full">
<hr class="w-3/4 h-px my-4 bg-gray-200 border-0 dark:bg-gray-600" />