1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-10 23:22:22 +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

@@ -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