diff --git a/mobile/openapi/doc/APIKeyApi.md b/mobile/openapi/doc/APIKeyApi.md index f28922c0d3..b3815f7da3 100644 --- a/mobile/openapi/doc/APIKeyApi.md +++ b/mobile/openapi/doc/APIKeyApi.md @@ -21,8 +21,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -74,8 +72,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -126,8 +122,6 @@ void (empty response body) - - ### Example ```dart import 'package:openapi/api.dart'; @@ -179,8 +173,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -228,8 +220,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/AlbumApi.md b/mobile/openapi/doc/AlbumApi.md index c711e6a78b..8f9ae1699a 100644 --- a/mobile/openapi/doc/AlbumApi.md +++ b/mobile/openapi/doc/AlbumApi.md @@ -28,8 +28,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -85,8 +83,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -140,8 +136,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -193,8 +187,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -246,8 +238,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -298,8 +288,6 @@ void (empty response body) - - ### Example ```dart import 'package:openapi/api.dart'; @@ -357,8 +345,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -406,8 +392,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -461,8 +445,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -516,8 +498,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -571,8 +551,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -625,8 +603,6 @@ void (empty response body) - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/AssetApi.md b/mobile/openapi/doc/AssetApi.md index 2012f41c06..5752cb086e 100644 --- a/mobile/openapi/doc/AssetApi.md +++ b/mobile/openapi/doc/AssetApi.md @@ -40,8 +40,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -203,8 +201,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -256,8 +252,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -309,8 +303,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -364,8 +356,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -535,8 +525,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -639,8 +627,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -692,8 +678,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -745,8 +729,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -794,8 +776,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -843,8 +823,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -900,8 +878,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -949,8 +925,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -1051,8 +1025,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -1106,8 +1078,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -1159,8 +1129,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -1273,8 +1241,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/AuthenticationApi.md b/mobile/openapi/doc/AuthenticationApi.md index 4ce630177a..5b529cadb1 100644 --- a/mobile/openapi/doc/AuthenticationApi.md +++ b/mobile/openapi/doc/AuthenticationApi.md @@ -21,8 +21,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -64,8 +62,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -117,8 +113,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -160,8 +154,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -209,8 +201,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/DeviceInfoApi.md b/mobile/openapi/doc/DeviceInfoApi.md index e0a9a7de3a..0924871512 100644 --- a/mobile/openapi/doc/DeviceInfoApi.md +++ b/mobile/openapi/doc/DeviceInfoApi.md @@ -17,8 +17,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/JobApi.md b/mobile/openapi/doc/JobApi.md index 96979c4e19..5c6dff1cc3 100644 --- a/mobile/openapi/doc/JobApi.md +++ b/mobile/openapi/doc/JobApi.md @@ -18,8 +18,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -67,8 +65,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/OAuthApi.md b/mobile/openapi/doc/OAuthApi.md index e6ceb2bdc3..b0952f865c 100644 --- a/mobile/openapi/doc/OAuthApi.md +++ b/mobile/openapi/doc/OAuthApi.md @@ -21,8 +21,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -64,8 +62,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -107,8 +103,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -160,8 +154,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -198,8 +190,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/SearchApi.md b/mobile/openapi/doc/SearchApi.md index 3cd5f5e2d6..a5e22f2b0d 100644 --- a/mobile/openapi/doc/SearchApi.md +++ b/mobile/openapi/doc/SearchApi.md @@ -19,8 +19,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -68,8 +66,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -117,8 +113,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/ServerInfoApi.md b/mobile/openapi/doc/ServerInfoApi.md index aa74bf56ca..b9d3ab5a22 100644 --- a/mobile/openapi/doc/ServerInfoApi.md +++ b/mobile/openapi/doc/ServerInfoApi.md @@ -20,8 +20,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -69,8 +67,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -108,8 +104,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -157,8 +151,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/ShareApi.md b/mobile/openapi/doc/ShareApi.md index 335c39d08a..e669d1c41f 100644 --- a/mobile/openapi/doc/ShareApi.md +++ b/mobile/openapi/doc/ShareApi.md @@ -21,8 +21,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -76,8 +74,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -125,8 +121,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -178,8 +172,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -231,8 +223,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/SystemConfigApi.md b/mobile/openapi/doc/SystemConfigApi.md index d033f2f8d6..9cd479fc89 100644 --- a/mobile/openapi/doc/SystemConfigApi.md +++ b/mobile/openapi/doc/SystemConfigApi.md @@ -20,8 +20,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -69,8 +67,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -118,8 +114,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -167,8 +161,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/TagApi.md b/mobile/openapi/doc/TagApi.md index ba0aea9c26..c3cf63232b 100644 --- a/mobile/openapi/doc/TagApi.md +++ b/mobile/openapi/doc/TagApi.md @@ -21,8 +21,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -74,8 +72,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -126,8 +122,6 @@ void (empty response body) - - ### Example ```dart import 'package:openapi/api.dart'; @@ -175,8 +169,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -228,8 +220,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/doc/UserApi.md b/mobile/openapi/doc/UserApi.md index d820878b43..872a6cb5f3 100644 --- a/mobile/openapi/doc/UserApi.md +++ b/mobile/openapi/doc/UserApi.md @@ -26,8 +26,6 @@ Method | HTTP request | Description - - ### Example ```dart import 'package:openapi/api.dart'; @@ -79,8 +77,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -132,8 +128,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -185,8 +179,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -238,8 +230,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -287,8 +277,6 @@ This endpoint does not need any parameter. - - ### Example ```dart import 'package:openapi/api.dart'; @@ -340,8 +328,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -393,8 +379,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; @@ -436,8 +420,6 @@ No authorization required - - ### Example ```dart import 'package:openapi/api.dart'; @@ -489,8 +471,6 @@ Name | Type | Description | Notes - - ### Example ```dart import 'package:openapi/api.dart'; diff --git a/mobile/openapi/lib/api/album_api.dart b/mobile/openapi/lib/api/album_api.dart index 8f7fe5ab37..c0f5c0da5c 100644 --- a/mobile/openapi/lib/api/album_api.dart +++ b/mobile/openapi/lib/api/album_api.dart @@ -16,10 +16,7 @@ class AlbumApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /album/{albumId}/assets' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -57,8 +54,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -81,10 +76,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /album/{albumId}/users' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -116,8 +108,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -138,10 +128,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /album' operation and returns the [Response]. /// Parameters: /// /// * [CreateAlbumDto] createAlbumDto (required): @@ -170,8 +157,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [CreateAlbumDto] createAlbumDto (required): @@ -190,10 +175,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /album/create-shared-link' operation and returns the [Response]. /// Parameters: /// /// * [CreateAlbumShareLinkDto] createAlbumShareLinkDto (required): @@ -222,8 +204,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [CreateAlbumShareLinkDto] createAlbumShareLinkDto (required): @@ -242,10 +222,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /album/{albumId}' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -275,8 +252,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -287,10 +262,7 @@ class AlbumApi { } } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /album/{albumId}/download' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -336,8 +308,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -362,9 +332,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /album/count-by-user-id' operation and returns the [Response]. Future getAlbumCountByUserIdWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/album/count-by-user-id'; @@ -390,7 +358,6 @@ class AlbumApi { ); } - /// Future getAlbumCountByUserId() async { final response = await getAlbumCountByUserIdWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -406,10 +373,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /album/{albumId}' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -445,8 +409,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -467,10 +429,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /album' operation and returns the [Response]. /// Parameters: /// /// * [bool] shared: @@ -509,8 +468,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [bool] shared: @@ -535,10 +492,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /album/{albumId}/assets' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -570,8 +524,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -592,10 +544,7 @@ class AlbumApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /album/{albumId}/user/{userId}' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -628,8 +577,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): @@ -642,10 +589,7 @@ class AlbumApi { } } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PATCH /album/{albumId}' operation and returns the [Response]. /// Parameters: /// /// * [String] albumId (required): @@ -677,8 +621,6 @@ class AlbumApi { ); } - /// - /// /// Parameters: /// /// * [String] albumId (required): diff --git a/mobile/openapi/lib/api/api_key_api.dart b/mobile/openapi/lib/api/api_key_api.dart index e13eb32e1a..fb6cc9941d 100644 --- a/mobile/openapi/lib/api/api_key_api.dart +++ b/mobile/openapi/lib/api/api_key_api.dart @@ -16,10 +16,7 @@ class APIKeyApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /api-key' operation and returns the [Response]. /// Parameters: /// /// * [APIKeyCreateDto] aPIKeyCreateDto (required): @@ -48,8 +45,6 @@ class APIKeyApi { ); } - /// - /// /// Parameters: /// /// * [APIKeyCreateDto] aPIKeyCreateDto (required): @@ -68,10 +63,7 @@ class APIKeyApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /api-key/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -101,8 +93,6 @@ class APIKeyApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -113,10 +103,7 @@ class APIKeyApi { } } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /api-key/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -146,8 +133,6 @@ class APIKeyApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -166,9 +151,7 @@ class APIKeyApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /api-key' operation and returns the [Response]. Future getKeysWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/api-key'; @@ -194,7 +177,6 @@ class APIKeyApi { ); } - /// Future?> getKeys() async { final response = await getKeysWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -213,10 +195,7 @@ class APIKeyApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /api-key/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -248,8 +227,6 @@ class APIKeyApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): diff --git a/mobile/openapi/lib/api/asset_api.dart b/mobile/openapi/lib/api/asset_api.dart index 4c9732518c..79e853b97c 100644 --- a/mobile/openapi/lib/api/asset_api.dart +++ b/mobile/openapi/lib/api/asset_api.dart @@ -16,10 +16,7 @@ class AssetApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PATCH /asset/shared-link/add' operation and returns the [Response]. /// Parameters: /// /// * [AddAssetsDto] addAssetsDto (required): @@ -54,8 +51,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [AddAssetsDto] addAssetsDto (required): @@ -188,10 +183,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/shared-link' operation and returns the [Response]. /// Parameters: /// /// * [CreateAssetsShareLinkDto] createAssetsShareLinkDto (required): @@ -220,8 +212,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [CreateAssetsShareLinkDto] createAssetsShareLinkDto (required): @@ -240,10 +230,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /asset' operation and returns the [Response]. /// Parameters: /// /// * [DeleteAssetDto] deleteAssetDto (required): @@ -272,8 +259,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [DeleteAssetDto] deleteAssetDto (required): @@ -295,10 +280,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /asset/download/{assetId}' operation and returns the [Response]. /// Parameters: /// /// * [String] assetId (required): @@ -334,8 +316,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [String] assetId (required): @@ -356,10 +336,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/download-files' operation and returns the [Response]. /// Parameters: /// /// * [DownloadFilesDto] downloadFilesDto (required): @@ -394,8 +371,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [DownloadFilesDto] downloadFilesDto (required): @@ -569,9 +544,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /asset/stat/archive' operation and returns the [Response]. Future getArchivedAssetCountByUserIdWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/asset/stat/archive'; @@ -597,7 +570,6 @@ class AssetApi { ); } - /// Future getArchivedAssetCountByUserId() async { final response = await getArchivedAssetCountByUserIdWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -674,10 +646,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/time-bucket' operation and returns the [Response]. /// Parameters: /// /// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required): @@ -706,8 +675,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [GetAssetByTimeBucketDto] getAssetByTimeBucketDto (required): @@ -729,10 +696,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/count-by-time-bucket' operation and returns the [Response]. /// Parameters: /// /// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required): @@ -761,8 +725,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [GetAssetCountByTimeBucketDto] getAssetCountByTimeBucketDto (required): @@ -781,9 +743,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /asset/count-by-user-id' operation and returns the [Response]. Future getAssetCountByUserIdWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/asset/count-by-user-id'; @@ -809,7 +769,6 @@ class AssetApi { ); } - /// Future getAssetCountByUserId() async { final response = await getAssetCountByUserIdWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -825,9 +784,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /asset/search-terms' operation and returns the [Response]. Future getAssetSearchTermsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/asset/search-terms'; @@ -853,7 +810,6 @@ class AssetApi { ); } - /// Future?> getAssetSearchTerms() async { final response = await getAssetSearchTermsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -872,10 +828,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /asset/thumbnail/{assetId}' operation and returns the [Response]. /// Parameters: /// /// * [String] assetId (required): @@ -916,8 +869,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [String] assetId (required): @@ -940,9 +891,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /asset/curated-locations' operation and returns the [Response]. Future getCuratedLocationsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/asset/curated-locations'; @@ -968,7 +917,6 @@ class AssetApi { ); } - /// Future?> getCuratedLocations() async { final response = await getCuratedLocationsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -987,9 +935,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /asset/curated-objects' operation and returns the [Response]. Future getCuratedObjectsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/asset/curated-objects'; @@ -1015,7 +961,6 @@ class AssetApi { ); } - /// Future?> getCuratedObjects() async { final response = await getCuratedObjectsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -1090,10 +1035,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PATCH /asset/shared-link/remove' operation and returns the [Response]. /// Parameters: /// /// * [RemoveAssetsDto] removeAssetsDto (required): @@ -1128,8 +1070,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [RemoveAssetsDto] removeAssetsDto (required): @@ -1150,10 +1090,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/search' operation and returns the [Response]. /// Parameters: /// /// * [SearchAssetDto] searchAssetDto (required): @@ -1182,8 +1119,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [SearchAssetDto] searchAssetDto (required): @@ -1205,10 +1140,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /asset/file/{assetId}' operation and returns the [Response]. /// Parameters: /// /// * [String] assetId (required): @@ -1254,8 +1186,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [String] assetId (required): @@ -1337,10 +1267,7 @@ class AssetApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /asset/upload' operation and returns the [Response]. /// Parameters: /// /// * [AssetTypeEnum] assetType (required): @@ -1452,8 +1379,6 @@ class AssetApi { ); } - /// - /// /// Parameters: /// /// * [AssetTypeEnum] assetType (required): diff --git a/mobile/openapi/lib/api/authentication_api.dart b/mobile/openapi/lib/api/authentication_api.dart index 628ee2f1f5..39888550dc 100644 --- a/mobile/openapi/lib/api/authentication_api.dart +++ b/mobile/openapi/lib/api/authentication_api.dart @@ -16,10 +16,7 @@ class AuthenticationApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /auth/admin-sign-up' operation and returns the [Response]. /// Parameters: /// /// * [SignUpDto] signUpDto (required): @@ -48,8 +45,6 @@ class AuthenticationApi { ); } - /// - /// /// Parameters: /// /// * [SignUpDto] signUpDto (required): @@ -68,10 +63,7 @@ class AuthenticationApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /auth/change-password' operation and returns the [Response]. /// Parameters: /// /// * [ChangePasswordDto] changePasswordDto (required): @@ -100,8 +92,6 @@ class AuthenticationApi { ); } - /// - /// /// Parameters: /// /// * [ChangePasswordDto] changePasswordDto (required): @@ -120,10 +110,7 @@ class AuthenticationApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /auth/login' operation and returns the [Response]. /// Parameters: /// /// * [LoginCredentialDto] loginCredentialDto (required): @@ -152,8 +139,6 @@ class AuthenticationApi { ); } - /// - /// /// Parameters: /// /// * [LoginCredentialDto] loginCredentialDto (required): @@ -172,9 +157,7 @@ class AuthenticationApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'POST /auth/logout' operation and returns the [Response]. Future logoutWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/auth/logout'; @@ -200,7 +183,6 @@ class AuthenticationApi { ); } - /// Future logout() async { final response = await logoutWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -216,9 +198,7 @@ class AuthenticationApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'POST /auth/validateToken' operation and returns the [Response]. Future validateAccessTokenWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/auth/validateToken'; @@ -244,7 +224,6 @@ class AuthenticationApi { ); } - /// Future validateAccessToken() async { final response = await validateAccessTokenWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { diff --git a/mobile/openapi/lib/api/device_info_api.dart b/mobile/openapi/lib/api/device_info_api.dart index ac3c81842d..b65b6bd713 100644 --- a/mobile/openapi/lib/api/device_info_api.dart +++ b/mobile/openapi/lib/api/device_info_api.dart @@ -16,10 +16,7 @@ class DeviceInfoApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /device-info' operation and returns the [Response]. /// Parameters: /// /// * [UpsertDeviceInfoDto] upsertDeviceInfoDto (required): @@ -48,8 +45,6 @@ class DeviceInfoApi { ); } - /// - /// /// Parameters: /// /// * [UpsertDeviceInfoDto] upsertDeviceInfoDto (required): diff --git a/mobile/openapi/lib/api/job_api.dart b/mobile/openapi/lib/api/job_api.dart index a3c0e87aab..7e4037832c 100644 --- a/mobile/openapi/lib/api/job_api.dart +++ b/mobile/openapi/lib/api/job_api.dart @@ -16,9 +16,7 @@ class JobApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /jobs' operation and returns the [Response]. Future getAllJobsStatusWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/jobs'; @@ -44,7 +42,6 @@ class JobApi { ); } - /// Future getAllJobsStatus() async { final response = await getAllJobsStatusWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -60,10 +57,7 @@ class JobApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /jobs/{jobId}' operation and returns the [Response]. /// Parameters: /// /// * [JobName] jobId (required): @@ -95,8 +89,6 @@ class JobApi { ); } - /// - /// /// Parameters: /// /// * [JobName] jobId (required): diff --git a/mobile/openapi/lib/api/o_auth_api.dart b/mobile/openapi/lib/api/o_auth_api.dart index 61165c9a2d..b8778596a7 100644 --- a/mobile/openapi/lib/api/o_auth_api.dart +++ b/mobile/openapi/lib/api/o_auth_api.dart @@ -16,10 +16,7 @@ class OAuthApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /oauth/callback' operation and returns the [Response]. /// Parameters: /// /// * [OAuthCallbackDto] oAuthCallbackDto (required): @@ -48,8 +45,6 @@ class OAuthApi { ); } - /// - /// /// Parameters: /// /// * [OAuthCallbackDto] oAuthCallbackDto (required): @@ -68,10 +63,7 @@ class OAuthApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /oauth/config' operation and returns the [Response]. /// Parameters: /// /// * [OAuthConfigDto] oAuthConfigDto (required): @@ -100,8 +92,6 @@ class OAuthApi { ); } - /// - /// /// Parameters: /// /// * [OAuthConfigDto] oAuthConfigDto (required): @@ -120,10 +110,7 @@ class OAuthApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /oauth/link' operation and returns the [Response]. /// Parameters: /// /// * [OAuthCallbackDto] oAuthCallbackDto (required): @@ -152,8 +139,6 @@ class OAuthApi { ); } - /// - /// /// Parameters: /// /// * [OAuthCallbackDto] oAuthCallbackDto (required): @@ -172,9 +157,7 @@ class OAuthApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /oauth/mobile-redirect' operation and returns the [Response]. Future mobileRedirectWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/oauth/mobile-redirect'; @@ -200,7 +183,6 @@ class OAuthApi { ); } - /// Future mobileRedirect() async { final response = await mobileRedirectWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -208,9 +190,7 @@ class OAuthApi { } } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'POST /oauth/unlink' operation and returns the [Response]. Future unlinkWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/oauth/unlink'; @@ -236,7 +216,6 @@ class OAuthApi { ); } - /// Future unlink() async { final response = await unlinkWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { diff --git a/mobile/openapi/lib/api/search_api.dart b/mobile/openapi/lib/api/search_api.dart index b4ff53e9ea..9df6c79d07 100644 --- a/mobile/openapi/lib/api/search_api.dart +++ b/mobile/openapi/lib/api/search_api.dart @@ -16,9 +16,7 @@ class SearchApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /search/explore' operation and returns the [Response]. Future getExploreDataWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/search/explore'; @@ -44,7 +42,6 @@ class SearchApi { ); } - /// Future?> getExploreData() async { final response = await getExploreDataWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -63,9 +60,7 @@ class SearchApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /search/config' operation and returns the [Response]. Future getSearchConfigWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/search/config'; @@ -91,7 +86,6 @@ class SearchApi { ); } - /// Future getSearchConfig() async { final response = await getSearchConfigWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -107,10 +101,7 @@ class SearchApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /search' operation and returns the [Response]. /// Parameters: /// /// * [String] q: @@ -213,8 +204,6 @@ class SearchApi { ); } - /// - /// /// Parameters: /// /// * [String] q: diff --git a/mobile/openapi/lib/api/server_info_api.dart b/mobile/openapi/lib/api/server_info_api.dart index a939f885ea..8cc3460c9b 100644 --- a/mobile/openapi/lib/api/server_info_api.dart +++ b/mobile/openapi/lib/api/server_info_api.dart @@ -16,9 +16,7 @@ class ServerInfoApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /server-info' operation and returns the [Response]. Future getServerInfoWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/server-info'; @@ -44,7 +42,6 @@ class ServerInfoApi { ); } - /// Future getServerInfo() async { final response = await getServerInfoWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -60,9 +57,7 @@ class ServerInfoApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /server-info/version' operation and returns the [Response]. Future getServerVersionWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/server-info/version'; @@ -88,7 +83,6 @@ class ServerInfoApi { ); } - /// Future getServerVersion() async { final response = await getServerVersionWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -104,9 +98,7 @@ class ServerInfoApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /server-info/stats' operation and returns the [Response]. Future getStatsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/server-info/stats'; @@ -132,7 +124,6 @@ class ServerInfoApi { ); } - /// Future getStats() async { final response = await getStatsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -148,9 +139,7 @@ class ServerInfoApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /server-info/ping' operation and returns the [Response]. Future pingServerWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/server-info/ping'; @@ -176,7 +165,6 @@ class ServerInfoApi { ); } - /// Future pingServer() async { final response = await pingServerWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { diff --git a/mobile/openapi/lib/api/share_api.dart b/mobile/openapi/lib/api/share_api.dart index ce0e4d8d02..53993285ab 100644 --- a/mobile/openapi/lib/api/share_api.dart +++ b/mobile/openapi/lib/api/share_api.dart @@ -16,10 +16,7 @@ class ShareApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PATCH /share/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -51,8 +48,6 @@ class ShareApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -73,9 +68,7 @@ class ShareApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /share' operation and returns the [Response]. Future getAllSharedLinksWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/share'; @@ -101,7 +94,6 @@ class ShareApi { ); } - /// Future?> getAllSharedLinks() async { final response = await getAllSharedLinksWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -120,10 +112,7 @@ class ShareApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /share/me' operation and returns the [Response]. /// Parameters: /// /// * [String] key: @@ -156,8 +145,6 @@ class ShareApi { ); } - /// - /// /// Parameters: /// /// * [String] key: @@ -176,10 +163,7 @@ class ShareApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /share/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -209,8 +193,6 @@ class ShareApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -229,10 +211,7 @@ class ShareApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /share/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -262,8 +241,6 @@ class ShareApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): diff --git a/mobile/openapi/lib/api/system_config_api.dart b/mobile/openapi/lib/api/system_config_api.dart index 328a1fc3b7..d2d0ac5ba5 100644 --- a/mobile/openapi/lib/api/system_config_api.dart +++ b/mobile/openapi/lib/api/system_config_api.dart @@ -16,9 +16,7 @@ class SystemConfigApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /system-config' operation and returns the [Response]. Future getConfigWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/system-config'; @@ -44,7 +42,6 @@ class SystemConfigApi { ); } - /// Future getConfig() async { final response = await getConfigWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -60,9 +57,7 @@ class SystemConfigApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /system-config/defaults' operation and returns the [Response]. Future getDefaultsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/system-config/defaults'; @@ -88,7 +83,6 @@ class SystemConfigApi { ); } - /// Future getDefaults() async { final response = await getDefaultsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -104,9 +98,7 @@ class SystemConfigApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /system-config/storage-template-options' operation and returns the [Response]. Future getStorageTemplateOptionsWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/system-config/storage-template-options'; @@ -132,7 +124,6 @@ class SystemConfigApi { ); } - /// Future getStorageTemplateOptions() async { final response = await getStorageTemplateOptionsWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -148,10 +139,7 @@ class SystemConfigApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /system-config' operation and returns the [Response]. /// Parameters: /// /// * [SystemConfigDto] systemConfigDto (required): @@ -180,8 +168,6 @@ class SystemConfigApi { ); } - /// - /// /// Parameters: /// /// * [SystemConfigDto] systemConfigDto (required): diff --git a/mobile/openapi/lib/api/tag_api.dart b/mobile/openapi/lib/api/tag_api.dart index 1869e0adec..3591cf11cb 100644 --- a/mobile/openapi/lib/api/tag_api.dart +++ b/mobile/openapi/lib/api/tag_api.dart @@ -16,10 +16,7 @@ class TagApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /tag' operation and returns the [Response]. /// Parameters: /// /// * [CreateTagDto] createTagDto (required): @@ -48,8 +45,6 @@ class TagApi { ); } - /// - /// /// Parameters: /// /// * [CreateTagDto] createTagDto (required): @@ -68,10 +63,7 @@ class TagApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /tag/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -101,8 +93,6 @@ class TagApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -113,9 +103,7 @@ class TagApi { } } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /tag' operation and returns the [Response]. Future findAllWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/tag'; @@ -141,7 +129,6 @@ class TagApi { ); } - /// Future?> findAll() async { final response = await findAllWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -160,10 +147,7 @@ class TagApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /tag/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -193,8 +177,6 @@ class TagApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): @@ -213,10 +195,7 @@ class TagApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PATCH /tag/{id}' operation and returns the [Response]. /// Parameters: /// /// * [String] id (required): @@ -248,8 +227,6 @@ class TagApi { ); } - /// - /// /// Parameters: /// /// * [String] id (required): diff --git a/mobile/openapi/lib/api/user_api.dart b/mobile/openapi/lib/api/user_api.dart index 51bd6180fb..f187652ac2 100644 --- a/mobile/openapi/lib/api/user_api.dart +++ b/mobile/openapi/lib/api/user_api.dart @@ -16,10 +16,7 @@ class UserApi { final ApiClient apiClient; - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /user/profile-image' operation and returns the [Response]. /// Parameters: /// /// * [MultipartFile] file (required): @@ -58,8 +55,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [MultipartFile] file (required): @@ -78,10 +73,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /user' operation and returns the [Response]. /// Parameters: /// /// * [CreateUserDto] createUserDto (required): @@ -110,8 +102,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [CreateUserDto] createUserDto (required): @@ -130,10 +120,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'DELETE /user/{userId}' operation and returns the [Response]. /// Parameters: /// /// * [String] userId (required): @@ -163,8 +150,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [String] userId (required): @@ -183,10 +168,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /user' operation and returns the [Response]. /// Parameters: /// /// * [bool] isAll (required): @@ -217,8 +199,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [bool] isAll (required): @@ -240,9 +220,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. + /// Performs an HTTP 'GET /user/me' operation and returns the [Response]. Future getMyUserInfoWithHttpInfo() async { // ignore: prefer_const_declarations final path = r'/user/me'; @@ -268,7 +246,6 @@ class UserApi { ); } - /// Future getMyUserInfo() async { final response = await getMyUserInfoWithHttpInfo(); if (response.statusCode >= HttpStatus.badRequest) { @@ -284,10 +261,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /user/profile-image/{userId}' operation and returns the [Response]. /// Parameters: /// /// * [String] userId (required): @@ -317,8 +291,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [String] userId (required): @@ -337,10 +309,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /user/info/{userId}' operation and returns the [Response]. /// Parameters: /// /// * [String] userId (required): @@ -370,8 +339,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [String] userId (required): @@ -390,10 +357,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'GET /user/count' operation and returns the [Response]. /// Parameters: /// /// * [bool] admin: @@ -426,8 +390,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [bool] admin: @@ -446,10 +408,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'POST /user/{userId}/restore' operation and returns the [Response]. /// Parameters: /// /// * [String] userId (required): @@ -479,8 +438,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [String] userId (required): @@ -499,10 +456,7 @@ class UserApi { return null; } - /// - /// - /// Note: This method returns the HTTP [Response]. - /// + /// Performs an HTTP 'PUT /user' operation and returns the [Response]. /// Parameters: /// /// * [UpdateUserDto] updateUserDto (required): @@ -531,8 +485,6 @@ class UserApi { ); } - /// - /// /// Parameters: /// /// * [UpdateUserDto] updateUserDto (required): diff --git a/mobile/openapi/test/album_api_test.dart b/mobile/openapi/test/album_api_test.dart index fbb2e166c7..8dde0b9f00 100644 --- a/mobile/openapi/test/album_api_test.dart +++ b/mobile/openapi/test/album_api_test.dart @@ -17,85 +17,61 @@ void main() { // final instance = AlbumApi(); group('tests for AlbumApi', () { - // - // //Future addAssetsToAlbum(String albumId, AddAssetsDto addAssetsDto, { String key }) async test('test addAssetsToAlbum', () async { // TODO }); - // - // //Future addUsersToAlbum(String albumId, AddUsersDto addUsersDto) async test('test addUsersToAlbum', () async { // TODO }); - // - // //Future createAlbum(CreateAlbumDto createAlbumDto) async test('test createAlbum', () async { // TODO }); - // - // //Future createAlbumSharedLink(CreateAlbumShareLinkDto createAlbumShareLinkDto) async test('test createAlbumSharedLink', () async { // TODO }); - // - // //Future deleteAlbum(String albumId) async test('test deleteAlbum', () async { // TODO }); - // - // //Future downloadArchive(String albumId, { String name, num skip, String key }) async test('test downloadArchive', () async { // TODO }); - // - // //Future getAlbumCountByUserId() async test('test getAlbumCountByUserId', () async { // TODO }); - // - // //Future getAlbumInfo(String albumId, { String key }) async test('test getAlbumInfo', () async { // TODO }); - // - // //Future> getAllAlbums({ bool shared, String assetId }) async test('test getAllAlbums', () async { // TODO }); - // - // //Future removeAssetFromAlbum(String albumId, RemoveAssetsDto removeAssetsDto) async test('test removeAssetFromAlbum', () async { // TODO }); - // - // //Future removeUserFromAlbum(String albumId, String userId) async test('test removeUserFromAlbum', () async { // TODO }); - // - // //Future updateAlbumInfo(String albumId, UpdateAlbumDto updateAlbumDto) async test('test updateAlbumInfo', () async { // TODO diff --git a/mobile/openapi/test/api_key_api_test.dart b/mobile/openapi/test/api_key_api_test.dart index a91662168b..2e02bae722 100644 --- a/mobile/openapi/test/api_key_api_test.dart +++ b/mobile/openapi/test/api_key_api_test.dart @@ -17,36 +17,26 @@ void main() { // final instance = APIKeyApi(); group('tests for APIKeyApi', () { - // - // //Future createKey(APIKeyCreateDto aPIKeyCreateDto) async test('test createKey', () async { // TODO }); - // - // //Future deleteKey(String id) async test('test deleteKey', () async { // TODO }); - // - // //Future getKey(String id) async test('test getKey', () async { // TODO }); - // - // //Future> getKeys() async test('test getKeys', () async { // TODO }); - // - // //Future updateKey(String id, APIKeyUpdateDto aPIKeyUpdateDto) async test('test updateKey', () async { // TODO diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dart index fdd4307958..ee25a55269 100644 --- a/mobile/openapi/test/asset_api_test.dart +++ b/mobile/openapi/test/asset_api_test.dart @@ -17,8 +17,6 @@ void main() { // final instance = AssetApi(); group('tests for AssetApi', () { - // - // //Future addAssetsToSharedLink(AddAssetsDto addAssetsDto, { String key }) async test('test addAssetsToSharedLink', () async { // TODO @@ -38,29 +36,21 @@ void main() { // TODO }); - // - // //Future createAssetsSharedLink(CreateAssetsShareLinkDto createAssetsShareLinkDto) async test('test createAssetsSharedLink', () async { // TODO }); - // - // //Future> deleteAsset(DeleteAssetDto deleteAssetDto) async test('test deleteAsset', () async { // TODO }); - // - // //Future downloadFile(String assetId, { String key }) async test('test downloadFile', () async { // TODO }); - // - // //Future downloadFiles(DownloadFilesDto downloadFilesDto, { String key }) async test('test downloadFiles', () async { // TODO @@ -80,8 +70,6 @@ void main() { // TODO }); - // - // //Future getArchivedAssetCountByUserId() async test('test getArchivedAssetCountByUserId', () async { // TODO @@ -94,50 +82,36 @@ void main() { // TODO }); - // - // //Future> getAssetByTimeBucket(GetAssetByTimeBucketDto getAssetByTimeBucketDto) async test('test getAssetByTimeBucket', () async { // TODO }); - // - // //Future getAssetCountByTimeBucket(GetAssetCountByTimeBucketDto getAssetCountByTimeBucketDto) async test('test getAssetCountByTimeBucket', () async { // TODO }); - // - // //Future getAssetCountByUserId() async test('test getAssetCountByUserId', () async { // TODO }); - // - // //Future> getAssetSearchTerms() async test('test getAssetSearchTerms', () async { // TODO }); - // - // //Future getAssetThumbnail(String assetId, { ThumbnailFormat format, String key }) async test('test getAssetThumbnail', () async { // TODO }); - // - // //Future> getCuratedLocations() async test('test getCuratedLocations', () async { // TODO }); - // - // //Future> getCuratedObjects() async test('test getCuratedObjects', () async { // TODO @@ -150,22 +124,16 @@ void main() { // TODO }); - // - // //Future removeAssetsFromSharedLink(RemoveAssetsDto removeAssetsDto, { String key }) async test('test removeAssetsFromSharedLink', () async { // TODO }); - // - // //Future> searchAsset(SearchAssetDto searchAssetDto) async test('test searchAsset', () async { // TODO }); - // - // //Future serveFile(String assetId, { bool isThumb, bool isWeb, String key }) async test('test serveFile', () async { // TODO @@ -178,8 +146,6 @@ void main() { // TODO }); - // - // //Future uploadFile(AssetTypeEnum assetType, MultipartFile assetData, String deviceAssetId, String deviceId, String fileCreatedAt, String fileModifiedAt, bool isFavorite, String fileExtension, { String key, MultipartFile livePhotoData, bool isArchived, bool isVisible, String duration }) async test('test uploadFile', () async { // TODO diff --git a/mobile/openapi/test/authentication_api_test.dart b/mobile/openapi/test/authentication_api_test.dart index 45f283f8a9..f855d32390 100644 --- a/mobile/openapi/test/authentication_api_test.dart +++ b/mobile/openapi/test/authentication_api_test.dart @@ -17,36 +17,26 @@ void main() { // final instance = AuthenticationApi(); group('tests for AuthenticationApi', () { - // - // //Future adminSignUp(SignUpDto signUpDto) async test('test adminSignUp', () async { // TODO }); - // - // //Future changePassword(ChangePasswordDto changePasswordDto) async test('test changePassword', () async { // TODO }); - // - // //Future login(LoginCredentialDto loginCredentialDto) async test('test login', () async { // TODO }); - // - // //Future logout() async test('test logout', () async { // TODO }); - // - // //Future validateAccessToken() async test('test validateAccessToken', () async { // TODO diff --git a/mobile/openapi/test/device_info_api_test.dart b/mobile/openapi/test/device_info_api_test.dart index 94897849a9..9fd25bcd34 100644 --- a/mobile/openapi/test/device_info_api_test.dart +++ b/mobile/openapi/test/device_info_api_test.dart @@ -17,8 +17,6 @@ void main() { // final instance = DeviceInfoApi(); group('tests for DeviceInfoApi', () { - // - // //Future upsertDeviceInfo(UpsertDeviceInfoDto upsertDeviceInfoDto) async test('test upsertDeviceInfo', () async { // TODO diff --git a/mobile/openapi/test/job_api_test.dart b/mobile/openapi/test/job_api_test.dart index 7cc1a4b2a0..54d9a510dd 100644 --- a/mobile/openapi/test/job_api_test.dart +++ b/mobile/openapi/test/job_api_test.dart @@ -17,15 +17,11 @@ void main() { // final instance = JobApi(); group('tests for JobApi', () { - // - // //Future getAllJobsStatus() async test('test getAllJobsStatus', () async { // TODO }); - // - // //Future sendJobCommand(JobName jobId, JobCommandDto jobCommandDto) async test('test sendJobCommand', () async { // TODO diff --git a/mobile/openapi/test/o_auth_api_test.dart b/mobile/openapi/test/o_auth_api_test.dart index db5e6c0a21..bc8b5f3810 100644 --- a/mobile/openapi/test/o_auth_api_test.dart +++ b/mobile/openapi/test/o_auth_api_test.dart @@ -17,36 +17,26 @@ void main() { // final instance = OAuthApi(); group('tests for OAuthApi', () { - // - // //Future callback(OAuthCallbackDto oAuthCallbackDto) async test('test callback', () async { // TODO }); - // - // //Future generateConfig(OAuthConfigDto oAuthConfigDto) async test('test generateConfig', () async { // TODO }); - // - // //Future link(OAuthCallbackDto oAuthCallbackDto) async test('test link', () async { // TODO }); - // - // //Future mobileRedirect() async test('test mobileRedirect', () async { // TODO }); - // - // //Future unlink() async test('test unlink', () async { // TODO diff --git a/mobile/openapi/test/search_api_test.dart b/mobile/openapi/test/search_api_test.dart index 1bd93ca6b9..a65075d1eb 100644 --- a/mobile/openapi/test/search_api_test.dart +++ b/mobile/openapi/test/search_api_test.dart @@ -17,22 +17,16 @@ void main() { // final instance = SearchApi(); group('tests for SearchApi', () { - // - // //Future> getExploreData() async test('test getExploreData', () async { // TODO }); - // - // //Future getSearchConfig() async test('test getSearchConfig', () async { // TODO }); - // - // //Future search({ String q, String query, bool clip, String type, bool isFavorite, bool isArchived, String exifInfoPeriodCity, String exifInfoPeriodState, String exifInfoPeriodCountry, String exifInfoPeriodMake, String exifInfoPeriodModel, List smartInfoPeriodObjects, List smartInfoPeriodTags, bool recent, bool motion }) async test('test search', () async { // TODO diff --git a/mobile/openapi/test/server_info_api_test.dart b/mobile/openapi/test/server_info_api_test.dart index e2222244eb..b662587eef 100644 --- a/mobile/openapi/test/server_info_api_test.dart +++ b/mobile/openapi/test/server_info_api_test.dart @@ -17,29 +17,21 @@ void main() { // final instance = ServerInfoApi(); group('tests for ServerInfoApi', () { - // - // //Future getServerInfo() async test('test getServerInfo', () async { // TODO }); - // - // //Future getServerVersion() async test('test getServerVersion', () async { // TODO }); - // - // //Future getStats() async test('test getStats', () async { // TODO }); - // - // //Future pingServer() async test('test pingServer', () async { // TODO diff --git a/mobile/openapi/test/share_api_test.dart b/mobile/openapi/test/share_api_test.dart index d746800de4..e05839a792 100644 --- a/mobile/openapi/test/share_api_test.dart +++ b/mobile/openapi/test/share_api_test.dart @@ -17,36 +17,26 @@ void main() { // final instance = ShareApi(); group('tests for ShareApi', () { - // - // //Future editSharedLink(String id, EditSharedLinkDto editSharedLinkDto) async test('test editSharedLink', () async { // TODO }); - // - // //Future> getAllSharedLinks() async test('test getAllSharedLinks', () async { // TODO }); - // - // //Future getMySharedLink({ String key }) async test('test getMySharedLink', () async { // TODO }); - // - // //Future getSharedLinkById(String id) async test('test getSharedLinkById', () async { // TODO }); - // - // //Future removeSharedLink(String id) async test('test removeSharedLink', () async { // TODO diff --git a/mobile/openapi/test/system_config_api_test.dart b/mobile/openapi/test/system_config_api_test.dart index 28a3b0ed26..6cb7aa79d1 100644 --- a/mobile/openapi/test/system_config_api_test.dart +++ b/mobile/openapi/test/system_config_api_test.dart @@ -17,29 +17,21 @@ void main() { // final instance = SystemConfigApi(); group('tests for SystemConfigApi', () { - // - // //Future getConfig() async test('test getConfig', () async { // TODO }); - // - // //Future getDefaults() async test('test getDefaults', () async { // TODO }); - // - // //Future getStorageTemplateOptions() async test('test getStorageTemplateOptions', () async { // TODO }); - // - // //Future updateConfig(SystemConfigDto systemConfigDto) async test('test updateConfig', () async { // TODO diff --git a/mobile/openapi/test/tag_api_test.dart b/mobile/openapi/test/tag_api_test.dart index ffb6c70a49..a504aedfae 100644 --- a/mobile/openapi/test/tag_api_test.dart +++ b/mobile/openapi/test/tag_api_test.dart @@ -17,36 +17,26 @@ void main() { // final instance = TagApi(); group('tests for TagApi', () { - // - // //Future create(CreateTagDto createTagDto) async test('test create', () async { // TODO }); - // - // //Future delete(String id) async test('test delete', () async { // TODO }); - // - // //Future> findAll() async test('test findAll', () async { // TODO }); - // - // //Future findOne(String id) async test('test findOne', () async { // TODO }); - // - // //Future update(String id, UpdateTagDto updateTagDto) async test('test update', () async { // TODO diff --git a/mobile/openapi/test/user_api_test.dart b/mobile/openapi/test/user_api_test.dart index d24f365906..5163a15004 100644 --- a/mobile/openapi/test/user_api_test.dart +++ b/mobile/openapi/test/user_api_test.dart @@ -17,71 +17,51 @@ void main() { // final instance = UserApi(); group('tests for UserApi', () { - // - // //Future createProfileImage(MultipartFile file) async test('test createProfileImage', () async { // TODO }); - // - // //Future createUser(CreateUserDto createUserDto) async test('test createUser', () async { // TODO }); - // - // //Future deleteUser(String userId) async test('test deleteUser', () async { // TODO }); - // - // //Future> getAllUsers(bool isAll) async test('test getAllUsers', () async { // TODO }); - // - // //Future getMyUserInfo() async test('test getMyUserInfo', () async { // TODO }); - // - // //Future getProfileImage(String userId) async test('test getProfileImage', () async { // TODO }); - // - // //Future getUserById(String userId) async test('test getUserById', () async { // TODO }); - // - // //Future getUserCount({ bool admin }) async test('test getUserCount', () async { // TODO }); - // - // //Future restoreUser(String userId) async test('test restoreUser', () async { // TODO }); - // - // //Future updateUser(UpdateUserDto updateUserDto) async test('test updateUser', () async { // TODO diff --git a/server/immich-openapi-specs.json b/server/immich-openapi-specs.json index 42fd6e3cc2..5828349f3a 100644 --- a/server/immich-openapi-specs.json +++ b/server/immich-openapi-specs.json @@ -4,7 +4,6 @@ "/album": { "get": { "operationId": "getAllAlbums", - "description": "", "parameters": [ { "name": "shared", @@ -54,7 +53,6 @@ }, "post": { "operationId": "createAlbum", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -94,7 +92,6 @@ "/api-key": { "post": { "operationId": "createKey", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -132,7 +129,6 @@ }, "get": { "operationId": "getKeys", - "description": "", "parameters": [], "responses": { "200": { @@ -165,7 +161,6 @@ "/api-key/{id}": { "get": { "operationId": "getKey", - "description": "", "parameters": [ { "name": "id", @@ -203,7 +198,6 @@ }, "put": { "operationId": "updateKey", - "description": "", "parameters": [ { "name": "id", @@ -251,7 +245,6 @@ }, "delete": { "operationId": "deleteKey", - "description": "", "parameters": [ { "name": "id", @@ -284,7 +277,6 @@ "/auth/login": { "post": { "operationId": "login", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -316,7 +308,6 @@ "/auth/admin-sign-up": { "post": { "operationId": "adminSignUp", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -351,7 +342,6 @@ "/auth/validateToken": { "post": { "operationId": "validateAccessToken", - "description": "", "parameters": [], "responses": { "201": { @@ -381,7 +371,6 @@ "/auth/change-password": { "post": { "operationId": "changePassword", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -421,7 +410,6 @@ "/auth/logout": { "post": { "operationId": "logout", - "description": "", "parameters": [], "responses": { "201": { @@ -451,7 +439,6 @@ "/device-info": { "put": { "operationId": "upsertDeviceInfo", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -491,7 +478,6 @@ "/jobs": { "get": { "operationId": "getAllJobsStatus", - "description": "", "parameters": [], "responses": { "200": { @@ -521,7 +507,6 @@ "/jobs/{jobId}": { "put": { "operationId": "sendJobCommand", - "description": "", "parameters": [ { "name": "jobId", @@ -570,7 +555,6 @@ "/oauth/mobile-redirect": { "get": { "operationId": "mobileRedirect", - "description": "", "parameters": [], "responses": { "200": { @@ -585,7 +569,6 @@ "/oauth/config": { "post": { "operationId": "generateConfig", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -617,7 +600,6 @@ "/oauth/callback": { "post": { "operationId": "callback", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -649,7 +631,6 @@ "/oauth/link": { "post": { "operationId": "link", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -689,7 +670,6 @@ "/oauth/unlink": { "post": { "operationId": "unlink", - "description": "", "parameters": [], "responses": { "201": { @@ -719,7 +699,6 @@ "/search": { "get": { "operationId": "search", - "description": "", "parameters": [ { "name": "q", @@ -882,7 +861,6 @@ "/search/config": { "get": { "operationId": "getSearchConfig", - "description": "", "parameters": [], "responses": { "200": { @@ -912,7 +890,6 @@ "/search/explore": { "get": { "operationId": "getExploreData", - "description": "", "parameters": [], "responses": { "200": { @@ -945,7 +922,6 @@ "/server-info": { "get": { "operationId": "getServerInfo", - "description": "", "parameters": [], "responses": { "200": { @@ -975,7 +951,6 @@ "/server-info/ping": { "get": { "operationId": "pingServer", - "description": "", "parameters": [], "responses": { "200": { @@ -997,7 +972,6 @@ "/server-info/version": { "get": { "operationId": "getServerVersion", - "description": "", "parameters": [], "responses": { "200": { @@ -1019,7 +993,6 @@ "/server-info/stats": { "get": { "operationId": "getStats", - "description": "", "parameters": [], "responses": { "200": { @@ -1049,7 +1022,6 @@ "/share": { "get": { "operationId": "getAllSharedLinks", - "description": "", "parameters": [], "responses": { "200": { @@ -1082,7 +1054,6 @@ "/share/me": { "get": { "operationId": "getMySharedLink", - "description": "", "parameters": [ { "name": "key", @@ -1121,7 +1092,6 @@ "/share/{id}": { "get": { "operationId": "getSharedLinkById", - "description": "", "parameters": [ { "name": "id", @@ -1159,7 +1129,6 @@ }, "delete": { "operationId": "removeSharedLink", - "description": "", "parameters": [ { "name": "id", @@ -1190,7 +1159,6 @@ }, "patch": { "operationId": "editSharedLink", - "description": "", "parameters": [ { "name": "id", @@ -1240,7 +1208,6 @@ "/system-config": { "get": { "operationId": "getConfig", - "description": "", "parameters": [], "responses": { "200": { @@ -1268,7 +1235,6 @@ }, "put": { "operationId": "updateConfig", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -1308,7 +1274,6 @@ "/system-config/defaults": { "get": { "operationId": "getDefaults", - "description": "", "parameters": [], "responses": { "200": { @@ -1338,7 +1303,6 @@ "/system-config/storage-template-options": { "get": { "operationId": "getStorageTemplateOptions", - "description": "", "parameters": [], "responses": { "200": { @@ -1368,7 +1332,6 @@ "/user": { "get": { "operationId": "getAllUsers", - "description": "", "parameters": [ { "name": "isAll", @@ -1408,7 +1371,6 @@ }, "post": { "operationId": "createUser", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -1446,7 +1408,6 @@ }, "put": { "operationId": "updateUser", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -1486,7 +1447,6 @@ "/user/info/{userId}": { "get": { "operationId": "getUserById", - "description": "", "parameters": [ { "name": "userId", @@ -1526,7 +1486,6 @@ "/user/me": { "get": { "operationId": "getMyUserInfo", - "description": "", "parameters": [], "responses": { "200": { @@ -1556,7 +1515,6 @@ "/user/count": { "get": { "operationId": "getUserCount", - "description": "", "parameters": [ { "name": "admin", @@ -1588,7 +1546,6 @@ "/user/{userId}": { "delete": { "operationId": "deleteUser", - "description": "", "parameters": [ { "name": "userId", @@ -1628,7 +1585,6 @@ "/user/{userId}/restore": { "post": { "operationId": "restoreUser", - "description": "", "parameters": [ { "name": "userId", @@ -1668,7 +1624,6 @@ "/user/profile-image": { "post": { "operationId": "createProfileImage", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -1709,7 +1664,6 @@ "/user/profile-image/{userId}": { "get": { "operationId": "getProfileImage", - "description": "", "parameters": [ { "name": "userId", @@ -1749,7 +1703,6 @@ "/asset/upload": { "post": { "operationId": "uploadFile", - "description": "", "parameters": [ { "name": "key", @@ -1799,7 +1752,6 @@ "/asset/download/{assetId}": { "get": { "operationId": "downloadFile", - "description": "", "parameters": [ { "name": "assetId", @@ -1848,7 +1800,6 @@ "/asset/download-files": { "post": { "operationId": "downloadFiles", - "description": "", "parameters": [ { "name": "key", @@ -1957,7 +1908,6 @@ "/asset/file/{assetId}": { "get": { "operationId": "serveFile", - "description": "", "parameters": [ { "name": "isThumb", @@ -2024,7 +1974,6 @@ "/asset/thumbnail/{assetId}": { "get": { "operationId": "getAssetThumbnail", - "description": "", "parameters": [ { "name": "assetId", @@ -2081,7 +2030,6 @@ "/asset/curated-objects": { "get": { "operationId": "getCuratedObjects", - "description": "", "parameters": [], "responses": { "200": { @@ -2114,7 +2062,6 @@ "/asset/curated-locations": { "get": { "operationId": "getCuratedLocations", - "description": "", "parameters": [], "responses": { "200": { @@ -2147,7 +2094,6 @@ "/asset/search-terms": { "get": { "operationId": "getAssetSearchTerms", - "description": "", "parameters": [], "responses": { "200": { @@ -2180,7 +2126,6 @@ "/asset/search": { "post": { "operationId": "searchAsset", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2223,7 +2168,6 @@ "/asset/count-by-time-bucket": { "post": { "operationId": "getAssetCountByTimeBucket", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2263,7 +2207,6 @@ "/asset/count-by-user-id": { "get": { "operationId": "getAssetCountByUserId", - "description": "", "parameters": [], "responses": { "200": { @@ -2293,7 +2236,6 @@ "/asset/stat/archive": { "get": { "operationId": "getArchivedAssetCountByUserId", - "description": "", "parameters": [], "responses": { "200": { @@ -2388,7 +2330,6 @@ }, "delete": { "operationId": "deleteAsset", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2431,7 +2372,6 @@ "/asset/time-bucket": { "post": { "operationId": "getAssetByTimeBucket", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2704,7 +2644,6 @@ "/asset/shared-link": { "post": { "operationId": "createAssetsSharedLink", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2744,7 +2683,6 @@ "/asset/shared-link/add": { "patch": { "operationId": "addAssetsToSharedLink", - "description": "", "parameters": [ { "name": "key", @@ -2793,7 +2731,6 @@ "/asset/shared-link/remove": { "patch": { "operationId": "removeAssetsFromSharedLink", - "description": "", "parameters": [ { "name": "key", @@ -2842,7 +2779,6 @@ "/tag": { "post": { "operationId": "create", - "description": "", "parameters": [], "requestBody": { "required": true, @@ -2880,7 +2816,6 @@ }, "get": { "operationId": "findAll", - "description": "", "parameters": [], "responses": { "200": { @@ -2913,7 +2848,6 @@ "/tag/{id}": { "get": { "operationId": "findOne", - "description": "", "parameters": [ { "name": "id", @@ -2951,7 +2885,6 @@ }, "patch": { "operationId": "update", - "description": "", "parameters": [ { "name": "id", @@ -2999,7 +2932,6 @@ }, "delete": { "operationId": "delete", - "description": "", "parameters": [ { "name": "id", @@ -3032,7 +2964,6 @@ "/album/count-by-user-id": { "get": { "operationId": "getAlbumCountByUserId", - "description": "", "parameters": [], "responses": { "200": { @@ -3062,7 +2993,6 @@ "/album/{albumId}/users": { "put": { "operationId": "addUsersToAlbum", - "description": "", "parameters": [ { "name": "albumId", @@ -3112,7 +3042,6 @@ "/album/{albumId}/assets": { "put": { "operationId": "addAssetsToAlbum", - "description": "", "parameters": [ { "name": "albumId", @@ -3168,7 +3097,6 @@ }, "delete": { "operationId": "removeAssetFromAlbum", - "description": "", "parameters": [ { "name": "albumId", @@ -3218,7 +3146,6 @@ "/album/{albumId}": { "get": { "operationId": "getAlbumInfo", - "description": "", "parameters": [ { "name": "albumId", @@ -3264,7 +3191,6 @@ }, "delete": { "operationId": "deleteAlbum", - "description": "", "parameters": [ { "name": "albumId", @@ -3295,7 +3221,6 @@ }, "patch": { "operationId": "updateAlbumInfo", - "description": "", "parameters": [ { "name": "albumId", @@ -3345,7 +3270,6 @@ "/album/{albumId}/user/{userId}": { "delete": { "operationId": "removeUserFromAlbum", - "description": "", "parameters": [ { "name": "albumId", @@ -3386,7 +3310,6 @@ "/album/{albumId}/download": { "get": { "operationId": "downloadArchive", - "description": "", "parameters": [ { "name": "albumId", @@ -3451,7 +3374,6 @@ "/album/create-shared-link": { "post": { "operationId": "createAlbumSharedLink", - "description": "", "parameters": [], "requestBody": { "required": true, diff --git a/web/src/routes/(user)/albums/+page.svelte b/web/src/routes/(user)/albums/+page.svelte index 4a8fe52bab..b87293ed20 100644 --- a/web/src/routes/(user)/albums/+page.svelte +++ b/web/src/routes/(user)/albums/+page.svelte @@ -10,6 +10,8 @@ import EmptyPlaceholder from '$lib/components/shared-components/empty-placeholder.svelte'; import UserPageLayout from '$lib/components/layouts/user-page-layout.svelte'; import LinkButton from '$lib/components/elements/buttons/link-button.svelte'; + import { onMount } from 'svelte'; + import { flip } from 'svelte/animate'; export let data: PageData; @@ -18,6 +20,7 @@ isShowContextMenu, contextMenuPosition, createAlbum, + deleteAlbum, deleteSelectedContextAlbum, showAlbumContextMenu, closeAlbumContextMenu @@ -29,6 +32,23 @@ goto('/albums/' + newAlbum.id); } }; + + onMount(() => { + removeAlbumsIfEmpty(); + }); + + const removeAlbumsIfEmpty = async () => { + try { + for (const album of $albums) { + if (album.assetCount == 0 && album.albumName == 'Untitled') { + await deleteAlbum(album); + $albums = $albums.filter((a) => a.id !== album.id); + } + } + } catch (error) { + console.log(error); + } + }; @@ -43,15 +63,14 @@
- {#each $albums as album} - {#key album.id} - - showAlbumContextMenu(e.detail, album)} - /> - - {/key} + {#each $albums as album (album.id)} + + showAlbumContextMenu(e.detail, album)} /> + {/each}
diff --git a/web/src/routes/(user)/albums/albums.bloc.ts b/web/src/routes/(user)/albums/albums.bloc.ts index 48a7e312bc..190dfabdfe 100644 --- a/web/src/routes/(user)/albums/albums.bloc.ts +++ b/web/src/routes/(user)/albums/albums.bloc.ts @@ -53,11 +53,7 @@ export const useAlbums = (props: AlbumsProps) => { } async function deleteAlbum(album: AlbumResponseDto): Promise { - try { - await api.albumApi.deleteAlbum(album.id); - } catch { - // Do nothing? - } + await api.albumApi.deleteAlbum(album.id); } async function showAlbumContextMenu( @@ -107,6 +103,7 @@ export const useAlbums = (props: AlbumsProps) => { contextMenuPosition, loadAlbums, createAlbum, + deleteAlbum, showAlbumContextMenu, closeAlbumContextMenu, deleteSelectedContextAlbum