Skip to content

High performance self-hosted photo and video management solution.

Fixed openapi generation command for mobile

Alex Tranb5a5363a6a11
diff --git a/mobile/openapi/.openapi-generator/FILES b/mobile/openapi/.openapi-generator/FILES
index c223c71b29..20453107c0 100644
--- a/mobile/openapi/.openapi-generator/FILES
+++ b/mobile/openapi/.openapi-generator/FILES
@@ -1,4 +1,5 @@
.gitignore
+.openapi-generator-ignore
.travis.yml
README.md
analysis_options.yaml
@@ -167,3 +168,80 @@ lib/model/user_count_response_dto.dart
lib/model/user_response_dto.dart
lib/model/validate_access_token_response_dto.dart
pubspec.yaml
+test/add_assets_dto_test.dart
+test/add_assets_response_dto_test.dart
+test/add_users_dto_test.dart
+test/admin_signup_response_dto_test.dart
+test/album_api_test.dart
+test/album_count_response_dto_test.dart
+test/album_response_dto_test.dart
+test/all_job_status_response_dto_test.dart
+test/asset_api_test.dart
+test/asset_count_by_time_bucket_response_dto_test.dart
+test/asset_count_by_time_bucket_test.dart
+test/asset_count_by_user_id_response_dto_test.dart
+test/asset_file_upload_response_dto_test.dart
+test/asset_response_dto_test.dart
+test/asset_type_enum_test.dart
+test/authentication_api_test.dart
+test/check_duplicate_asset_dto_test.dart
+test/check_duplicate_asset_response_dto_test.dart
+test/check_existing_assets_dto_test.dart
+test/check_existing_assets_response_dto_test.dart
+test/create_album_dto_test.dart
+test/create_device_info_dto_test.dart
+test/create_profile_image_response_dto_test.dart
+test/create_tag_dto_test.dart
+test/create_user_dto_test.dart
+test/curated_locations_response_dto_test.dart
+test/curated_objects_response_dto_test.dart
+test/delete_asset_dto_test.dart
+test/delete_asset_response_dto_test.dart
+test/delete_asset_status_test.dart
+test/device_info_api_test.dart
+test/device_info_response_dto_test.dart
+test/device_type_enum_test.dart
+test/exif_response_dto_test.dart
+test/get_asset_by_time_bucket_dto_test.dart
+test/get_asset_count_by_time_bucket_dto_test.dart
+test/job_api_test.dart
+test/job_command_dto_test.dart
+test/job_command_test.dart
+test/job_counts_test.dart
+test/job_id_test.dart
+test/job_status_response_dto_test.dart
+test/login_credential_dto_test.dart
+test/login_response_dto_test.dart
+test/logout_response_dto_test.dart
+test/o_auth_api_test.dart
+test/o_auth_callback_dto_test.dart
+test/o_auth_config_dto_test.dart
+test/o_auth_config_response_dto_test.dart
+test/remove_assets_dto_test.dart
+test/search_asset_dto_test.dart
+test/server_info_api_test.dart
+test/server_info_response_dto_test.dart
+test/server_ping_response_test.dart
+test/server_stats_response_dto_test.dart
+test/server_version_reponse_dto_test.dart
+test/sign_up_dto_test.dart
+test/smart_info_response_dto_test.dart
+test/system_config_api_test.dart
+test/system_config_key_test.dart
+test/system_config_response_dto_test.dart
+test/system_config_response_item_test.dart
+test/tag_api_test.dart
+test/tag_response_dto_test.dart
+test/tag_type_enum_test.dart
+test/thumbnail_format_test.dart
+test/time_group_enum_test.dart
+test/update_album_dto_test.dart
+test/update_asset_dto_test.dart
+test/update_device_info_dto_test.dart
+test/update_tag_dto_test.dart
+test/update_user_dto_test.dart
+test/usage_by_user_dto_test.dart
+test/user_api_test.dart
+test/user_count_response_dto_test.dart
+test/user_response_dto_test.dart
+test/validate_access_token_response_dto_test.dart
diff --git a/mobile/openapi/doc/AdminConfigResponseDto.md b/mobile/openapi/doc/AdminConfigResponseDto.md
deleted file mode 100644
index d617d40dd4..0000000000
--- a/mobile/openapi/doc/AdminConfigResponseDto.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# openapi.model.AdminConfigResponseDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**config** | [**Object**](.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/AssetCountByTimeGroupDto.md b/mobile/openapi/doc/AssetCountByTimeGroupDto.md
deleted file mode 100644
index f75884e16b..0000000000
--- a/mobile/openapi/doc/AssetCountByTimeGroupDto.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# openapi.model.AssetCountByTimeGroupDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**timeGroup** | **String** | |
-**count** | **int** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/AssetCountByTimeGroupResponseDto.md b/mobile/openapi/doc/AssetCountByTimeGroupResponseDto.md
deleted file mode 100644
index aea5d9b44f..0000000000
--- a/mobile/openapi/doc/AssetCountByTimeGroupResponseDto.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# openapi.model.AssetCountByTimeGroupResponseDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**count** | **int** | |
-**buckets** | [**List<AssetCountByTimeBucketResponseDto>**](AssetCountByTimeBucketResponseDto.md) | | [default to const []]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/AssetCountResponseDto.md b/mobile/openapi/doc/AssetCountResponseDto.md
deleted file mode 100644
index 2deedf1cc8..0000000000
--- a/mobile/openapi/doc/AssetCountResponseDto.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# openapi.model.AssetCountResponseDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**photos** | **int** | |
-**videos** | **int** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/AssetEntity.md b/mobile/openapi/doc/AssetEntity.md
deleted file mode 100644
index 8c83a94b03..0000000000
--- a/mobile/openapi/doc/AssetEntity.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# openapi.model.AssetEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | |
-**deviceAssetId** | **String** | |
-**userId** | **String** | |
-**deviceId** | **String** | |
-**type** | **String** | |
-**originalPath** | **String** | |
-**resizePath** | **String** | |
-**webpPath** | **String** | |
-**encodedVideoPath** | **String** | |
-**createdAt** | **String** | |
-**modifiedAt** | **String** | |
-**isFavorite** | **bool** | |
-**mimeType** | **String** | |
-**checksum** | [**Object**](.md) | | [optional]
-**duration** | **String** | |
-**isVisible** | **bool** | |
-**livePhotoVideoId** | **String** | |
-**exifInfo** | [**ExifEntity**](ExifEntity.md) | | [optional]
-**smartInfo** | [**SmartInfoEntity**](SmartInfoEntity.md) | | [optional]
-**tags** | [**List<TagEntity>**](TagEntity.md) | | [default to const []]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/ConfigApi.md b/mobile/openapi/doc/ConfigApi.md
deleted file mode 100644
index 8ab8e4bf1b..0000000000
--- a/mobile/openapi/doc/ConfigApi.md
+++ /dev/null
@@ -1,105 +0,0 @@
-# openapi.api.ConfigApi
-
-## Load the API package
-```dart
-import 'package:openapi/api.dart';
-```
-
-All URIs are relative to */api*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**getSystemConfig**](ConfigApi.md#getsystemconfig) | **GET** /config/system |
-[**updateSystemConfig**](ConfigApi.md#updatesystemconfig) | **PUT** /config/system |
-
-
-# **getSystemConfig**
-> SystemConfigResponseDto getSystemConfig()
-
-
-
-### Example
-```dart
-import 'package:openapi/api.dart';
-// TODO Configure HTTP Bearer authorization: bearer
-// Case 1. Use String Token
-//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
-// Case 2. Use Function which generate token.
-// String yourTokenGeneratorFunction() { ... }
-//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
-
-final api_instance = ConfigApi();
-
-try {
- final result = api_instance.getSystemConfig();
- print(result);
-} catch (e) {
- print('Exception when calling ConfigApi->getSystemConfig: $e\n');
-}
-```
-
-### Parameters
-This endpoint does not need any parameter.
-
-### Return type
-
-[**SystemConfigResponseDto**](SystemConfigResponseDto.md)
-
-### Authorization
-
-[bearer](../README.md#bearer)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
-# **updateSystemConfig**
-> SystemConfigResponseDto updateSystemConfig(body)
-
-
-
-### Example
-```dart
-import 'package:openapi/api.dart';
-// TODO Configure HTTP Bearer authorization: bearer
-// Case 1. Use String Token
-//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
-// Case 2. Use Function which generate token.
-// String yourTokenGeneratorFunction() { ... }
-//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
-
-final api_instance = ConfigApi();
-final body = Object(); // Object |
-
-try {
- final result = api_instance.updateSystemConfig(body);
- print(result);
-} catch (e) {
- print('Exception when calling ConfigApi->updateSystemConfig: $e\n');
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **body** | **Object**| |
-
-### Return type
-
-[**SystemConfigResponseDto**](SystemConfigResponseDto.md)
-
-### Authorization
-
-[bearer](../README.md#bearer)
-
-### HTTP request headers
-
- - **Content-Type**: application/json
- - **Accept**: application/json
-
-[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-
diff --git a/mobile/openapi/doc/CreateJobDto.md b/mobile/openapi/doc/CreateJobDto.md
deleted file mode 100644
index 64cdbf0184..0000000000
--- a/mobile/openapi/doc/CreateJobDto.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# openapi.model.CreateJobDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**jobType** | [**JobType**](JobType.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/ExifEntity.md b/mobile/openapi/doc/ExifEntity.md
deleted file mode 100644
index 4de3fc96ee..0000000000
--- a/mobile/openapi/doc/ExifEntity.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# openapi.model.ExifEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | |
-**assetId** | **String** | |
-**description** | **String** | General info |
-**exifImageWidth** | **num** | |
-**exifImageHeight** | **num** | |
-**fileSizeInByte** | **num** | |
-**orientation** | **String** | |
-**dateTimeOriginal** | [**DateTime**](DateTime.md) | |
-**modifyDate** | [**DateTime**](DateTime.md) | |
-**latitude** | **num** | |
-**longitude** | **num** | |
-**city** | **String** | |
-**state** | **String** | |
-**country** | **String** | |
-**make** | **String** | Image info |
-**model** | **String** | |
-**imageName** | **String** | |
-**lensModel** | **String** | |
-**fNumber** | **num** | |
-**focalLength** | **num** | |
-**iso** | **num** | |
-**exposureTime** | **num** | |
-**fps** | **num** | Video info | [optional]
-**asset** | [**AssetEntity**](AssetEntity.md) | | [optional]
-**exifTextSearchableColumn** | **String** | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/GetAssetCountByTimeGroupDto.md b/mobile/openapi/doc/GetAssetCountByTimeGroupDto.md
deleted file mode 100644
index 12dccc261d..0000000000
--- a/mobile/openapi/doc/GetAssetCountByTimeGroupDto.md
+++ /dev/null
@@ -1,15 +0,0 @@
-# openapi.model.GetAssetCountByTimeGroupDto
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**timeGroup** | [**TimeGroupEnum**](TimeGroupEnum.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/JobType.md b/mobile/openapi/doc/JobType.md
deleted file mode 100644
index 6d7faab6b7..0000000000
--- a/mobile/openapi/doc/JobType.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# openapi.model.JobType
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/SmartInfoEntity.md b/mobile/openapi/doc/SmartInfoEntity.md
deleted file mode 100644
index 6b22c3c004..0000000000
--- a/mobile/openapi/doc/SmartInfoEntity.md
+++ /dev/null
@@ -1,19 +0,0 @@
-# openapi.model.SmartInfoEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | |
-**assetId** | **String** | |
-**tags** | **List<String>** | | [default to const []]
-**objects** | **List<String>** | | [default to const []]
-**asset** | [**AssetEntity**](AssetEntity.md) | | [optional]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/SystemConfigEntity.md b/mobile/openapi/doc/SystemConfigEntity.md
deleted file mode 100644
index 854b32fa4f..0000000000
--- a/mobile/openapi/doc/SystemConfigEntity.md
+++ /dev/null
@@ -1,16 +0,0 @@
-# openapi.model.SystemConfigEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**key** | **String** | |
-**value** | [**Object**](.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/TagEntity.md b/mobile/openapi/doc/TagEntity.md
deleted file mode 100644
index 3b5bd36c22..0000000000
--- a/mobile/openapi/doc/TagEntity.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# openapi.model.TagEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | |
-**type** | **String** | |
-**name** | **String** | |
-**userId** | **String** | |
-**renameTagId** | **String** | |
-**assets** | [**List<AssetEntity>**](AssetEntity.md) | | [default to const []]
-**user** | [**UserEntity**](UserEntity.md) | |
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/TimeBucketEnum.md b/mobile/openapi/doc/TimeBucketEnum.md
deleted file mode 100644
index 837c7479db..0000000000
--- a/mobile/openapi/doc/TimeBucketEnum.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# openapi.model.TimeBucketEnum
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/doc/UserEntity.md b/mobile/openapi/doc/UserEntity.md
deleted file mode 100644
index d342eb4880..0000000000
--- a/mobile/openapi/doc/UserEntity.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# openapi.model.UserEntity
-
-## Load the model package
-```dart
-import 'package:openapi/api.dart';
-```
-
-## Properties
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **String** | |
-**firstName** | **String** | |
-**lastName** | **String** | |
-**isAdmin** | **bool** | |
-**email** | **String** | |
-**password** | **String** | | [optional]
-**salt** | **String** | | [optional]
-**oauthId** | **String** | |
-**profileImagePath** | **String** | |
-**shouldChangePassword** | **bool** | |
-**createdAt** | **String** | |
-**deletedAt** | [**DateTime**](DateTime.md) | | [optional]
-**tags** | [**List<TagEntity>**](TagEntity.md) | | [default to const []]
-
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/mobile/openapi/lib/api/config_api.dart b/mobile/openapi/lib/api/config_api.dart
deleted file mode 100644
index 632133d2d8..0000000000
--- a/mobile/openapi/lib/api/config_api.dart
+++ /dev/null
@@ -1,106 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-
-class ConfigApi {
- ConfigApi([ApiClient? apiClient]) : apiClient = apiClient ?? defaultApiClient;
-
- final ApiClient apiClient;
-
- /// Performs an HTTP 'GET /config/system' operation and returns the [Response].
- Future<Response> getSystemConfigWithHttpInfo() async {
- // ignore: prefer_const_declarations
- final path = r'/config/system';
-
- // ignore: prefer_final_locals
- Object? postBody;
-
- final queryParams = <QueryParam>[];
- final headerParams = <String, String>{};
- final formParams = <String, String>{};
-
- const contentTypes = <String>[];
-
-
- return apiClient.invokeAPI(
- path,
- 'GET',
- queryParams,
- postBody,
- headerParams,
- formParams,
- contentTypes.isEmpty ? null : contentTypes.first,
- );
- }
-
- Future<SystemConfigResponseDto?> getSystemConfig() async {
- final response = await getSystemConfigWithHttpInfo();
- if (response.statusCode >= HttpStatus.badRequest) {
- throw ApiException(response.statusCode, await _decodeBodyBytes(response));
- }
- // When a remote server returns no body with a status of 204, we shall not decode it.
- // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
- // FormatException when trying to decode an empty string.
- if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
- return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigResponseDto',) as SystemConfigResponseDto;
-
- }
- return null;
- }
-
- /// Performs an HTTP 'PUT /config/system' operation and returns the [Response].
- /// Parameters:
- ///
- /// * [Object] body (required):
- Future<Response> updateSystemConfigWithHttpInfo(Object body,) async {
- // ignore: prefer_const_declarations
- final path = r'/config/system';
-
- // ignore: prefer_final_locals
- Object? postBody = body;
-
- final queryParams = <QueryParam>[];
- final headerParams = <String, String>{};
- final formParams = <String, String>{};
-
- const contentTypes = <String>['application/json'];
-
-
- return apiClient.invokeAPI(
- path,
- 'PUT',
- queryParams,
- postBody,
- headerParams,
- formParams,
- contentTypes.isEmpty ? null : contentTypes.first,
- );
- }
-
- /// Parameters:
- ///
- /// * [Object] body (required):
- Future<SystemConfigResponseDto?> updateSystemConfig(Object body,) async {
- final response = await updateSystemConfigWithHttpInfo(body,);
- if (response.statusCode >= HttpStatus.badRequest) {
- throw ApiException(response.statusCode, await _decodeBodyBytes(response));
- }
- // When a remote server returns no body with a status of 204, we shall not decode it.
- // At the time of writing this, `dart:convert` will throw an "Unexpected end of input"
- // FormatException when trying to decode an empty string.
- if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) {
- return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'SystemConfigResponseDto',) as SystemConfigResponseDto;
-
- }
- return null;
- }
-}
diff --git a/mobile/openapi/lib/model/admin_config_response_dto.dart b/mobile/openapi/lib/model/admin_config_response_dto.dart
deleted file mode 100644
index 240ac1ce43..0000000000
--- a/mobile/openapi/lib/model/admin_config_response_dto.dart
+++ /dev/null
@@ -1,111 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class AdminConfigResponseDto {
- /// Returns a new [AdminConfigResponseDto] instance.
- AdminConfigResponseDto({
- required this.config,
- });
-
- Object config;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is AdminConfigResponseDto &&
- other.config == config;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (config.hashCode);
-
- @override
- String toString() => 'AdminConfigResponseDto[config=$config]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'config'] = config;
- return _json;
- }
-
- /// Returns a new [AdminConfigResponseDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static AdminConfigResponseDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "AdminConfigResponseDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "AdminConfigResponseDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return AdminConfigResponseDto(
- config: mapValueOfType<Object>(json, r'config')!,
- );
- }
- return null;
- }
-
- static List<AdminConfigResponseDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AdminConfigResponseDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AdminConfigResponseDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, AdminConfigResponseDto> mapFromJson(dynamic json) {
- final map = <String, AdminConfigResponseDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AdminConfigResponseDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of AdminConfigResponseDto-objects as value to a dart map
- static Map<String, List<AdminConfigResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<AdminConfigResponseDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AdminConfigResponseDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'config',
- };
-}
-
diff --git a/mobile/openapi/lib/model/asset_count_by_time_group_dto.dart b/mobile/openapi/lib/model/asset_count_by_time_group_dto.dart
deleted file mode 100644
index c3d805612b..0000000000
--- a/mobile/openapi/lib/model/asset_count_by_time_group_dto.dart
+++ /dev/null
@@ -1,119 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class AssetCountByTimeGroupDto {
- /// Returns a new [AssetCountByTimeGroupDto] instance.
- AssetCountByTimeGroupDto({
- required this.timeGroup,
- required this.count,
- });
-
- String timeGroup;
-
- int count;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is AssetCountByTimeGroupDto &&
- other.timeGroup == timeGroup &&
- other.count == count;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (timeGroup.hashCode) +
- (count.hashCode);
-
- @override
- String toString() => 'AssetCountByTimeGroupDto[timeGroup=$timeGroup, count=$count]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'timeGroup'] = timeGroup;
- _json[r'count'] = count;
- return _json;
- }
-
- /// Returns a new [AssetCountByTimeGroupDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static AssetCountByTimeGroupDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "AssetCountByTimeGroupDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "AssetCountByTimeGroupDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return AssetCountByTimeGroupDto(
- timeGroup: mapValueOfType<String>(json, r'timeGroup')!,
- count: mapValueOfType<int>(json, r'count')!,
- );
- }
- return null;
- }
-
- static List<AssetCountByTimeGroupDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AssetCountByTimeGroupDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AssetCountByTimeGroupDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, AssetCountByTimeGroupDto> mapFromJson(dynamic json) {
- final map = <String, AssetCountByTimeGroupDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountByTimeGroupDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of AssetCountByTimeGroupDto-objects as value to a dart map
- static Map<String, List<AssetCountByTimeGroupDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<AssetCountByTimeGroupDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountByTimeGroupDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'timeGroup',
- 'count',
- };
-}
-
diff --git a/mobile/openapi/lib/model/asset_count_by_time_group_response_dto.dart b/mobile/openapi/lib/model/asset_count_by_time_group_response_dto.dart
deleted file mode 100644
index 6f7cd0a90c..0000000000
--- a/mobile/openapi/lib/model/asset_count_by_time_group_response_dto.dart
+++ /dev/null
@@ -1,119 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class AssetCountByTimeGroupResponseDto {
- /// Returns a new [AssetCountByTimeGroupResponseDto] instance.
- AssetCountByTimeGroupResponseDto({
- required this.count,
- this.buckets = const [],
- });
-
- int count;
-
- List<AssetCountByTimeBucketResponseDto> buckets;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is AssetCountByTimeGroupResponseDto &&
- other.count == count &&
- other.buckets == buckets;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (count.hashCode) +
- (buckets.hashCode);
-
- @override
- String toString() => 'AssetCountByTimeGroupResponseDto[count=$count, buckets=$buckets]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'count'] = count;
- _json[r'buckets'] = buckets;
- return _json;
- }
-
- /// Returns a new [AssetCountByTimeGroupResponseDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static AssetCountByTimeGroupResponseDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "AssetCountByTimeGroupResponseDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "AssetCountByTimeGroupResponseDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return AssetCountByTimeGroupResponseDto(
- count: mapValueOfType<int>(json, r'count')!,
- buckets: AssetCountByTimeBucketResponseDto.listFromJson(json[r'buckets'])!,
- );
- }
- return null;
- }
-
- static List<AssetCountByTimeGroupResponseDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AssetCountByTimeGroupResponseDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AssetCountByTimeGroupResponseDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, AssetCountByTimeGroupResponseDto> mapFromJson(dynamic json) {
- final map = <String, AssetCountByTimeGroupResponseDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountByTimeGroupResponseDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of AssetCountByTimeGroupResponseDto-objects as value to a dart map
- static Map<String, List<AssetCountByTimeGroupResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<AssetCountByTimeGroupResponseDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountByTimeGroupResponseDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'count',
- 'buckets',
- };
-}
-
diff --git a/mobile/openapi/lib/model/asset_count_response_dto.dart b/mobile/openapi/lib/model/asset_count_response_dto.dart
deleted file mode 100644
index 47c32a70f7..0000000000
--- a/mobile/openapi/lib/model/asset_count_response_dto.dart
+++ /dev/null
@@ -1,119 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class AssetCountResponseDto {
- /// Returns a new [AssetCountResponseDto] instance.
- AssetCountResponseDto({
- required this.photos,
- required this.videos,
- });
-
- int photos;
-
- int videos;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is AssetCountResponseDto &&
- other.photos == photos &&
- other.videos == videos;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (photos.hashCode) +
- (videos.hashCode);
-
- @override
- String toString() => 'AssetCountResponseDto[photos=$photos, videos=$videos]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'photos'] = photos;
- _json[r'videos'] = videos;
- return _json;
- }
-
- /// Returns a new [AssetCountResponseDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static AssetCountResponseDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "AssetCountResponseDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "AssetCountResponseDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return AssetCountResponseDto(
- photos: mapValueOfType<int>(json, r'photos')!,
- videos: mapValueOfType<int>(json, r'videos')!,
- );
- }
- return null;
- }
-
- static List<AssetCountResponseDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AssetCountResponseDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AssetCountResponseDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, AssetCountResponseDto> mapFromJson(dynamic json) {
- final map = <String, AssetCountResponseDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountResponseDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of AssetCountResponseDto-objects as value to a dart map
- static Map<String, List<AssetCountResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<AssetCountResponseDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetCountResponseDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'photos',
- 'videos',
- };
-}
-
diff --git a/mobile/openapi/lib/model/asset_entity.dart b/mobile/openapi/lib/model/asset_entity.dart
deleted file mode 100644
index b6ca35a1d7..0000000000
--- a/mobile/openapi/lib/model/asset_entity.dart
+++ /dev/null
@@ -1,384 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class AssetEntity {
- /// Returns a new [AssetEntity] instance.
- AssetEntity({
- required this.id,
- required this.deviceAssetId,
- required this.userId,
- required this.deviceId,
- required this.type,
- required this.originalPath,
- required this.resizePath,
- required this.webpPath,
- required this.encodedVideoPath,
- required this.createdAt,
- required this.modifiedAt,
- required this.isFavorite,
- required this.mimeType,
- this.checksum,
- required this.duration,
- required this.isVisible,
- required this.livePhotoVideoId,
- this.exifInfo,
- this.smartInfo,
- this.tags = const [],
- });
-
- String id;
-
- String deviceAssetId;
-
- String userId;
-
- String deviceId;
-
- AssetEntityTypeEnum type;
-
- String originalPath;
-
- String? resizePath;
-
- String? webpPath;
-
- String encodedVideoPath;
-
- String createdAt;
-
- String modifiedAt;
-
- bool isFavorite;
-
- String? mimeType;
-
- Object? checksum;
-
- String? duration;
-
- bool isVisible;
-
- String? livePhotoVideoId;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- ExifEntity? exifInfo;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- SmartInfoEntity? smartInfo;
-
- List<TagEntity> tags;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is AssetEntity &&
- other.id == id &&
- other.deviceAssetId == deviceAssetId &&
- other.userId == userId &&
- other.deviceId == deviceId &&
- other.type == type &&
- other.originalPath == originalPath &&
- other.resizePath == resizePath &&
- other.webpPath == webpPath &&
- other.encodedVideoPath == encodedVideoPath &&
- other.createdAt == createdAt &&
- other.modifiedAt == modifiedAt &&
- other.isFavorite == isFavorite &&
- other.mimeType == mimeType &&
- other.checksum == checksum &&
- other.duration == duration &&
- other.isVisible == isVisible &&
- other.livePhotoVideoId == livePhotoVideoId &&
- other.exifInfo == exifInfo &&
- other.smartInfo == smartInfo &&
- other.tags == tags;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (id.hashCode) +
- (deviceAssetId.hashCode) +
- (userId.hashCode) +
- (deviceId.hashCode) +
- (type.hashCode) +
- (originalPath.hashCode) +
- (resizePath == null ? 0 : resizePath!.hashCode) +
- (webpPath == null ? 0 : webpPath!.hashCode) +
- (encodedVideoPath.hashCode) +
- (createdAt.hashCode) +
- (modifiedAt.hashCode) +
- (isFavorite.hashCode) +
- (mimeType == null ? 0 : mimeType!.hashCode) +
- (checksum == null ? 0 : checksum!.hashCode) +
- (duration == null ? 0 : duration!.hashCode) +
- (isVisible.hashCode) +
- (livePhotoVideoId == null ? 0 : livePhotoVideoId!.hashCode) +
- (exifInfo == null ? 0 : exifInfo!.hashCode) +
- (smartInfo == null ? 0 : smartInfo!.hashCode) +
- (tags.hashCode);
-
- @override
- String toString() => 'AssetEntity[id=$id, deviceAssetId=$deviceAssetId, userId=$userId, deviceId=$deviceId, type=$type, originalPath=$originalPath, resizePath=$resizePath, webpPath=$webpPath, encodedVideoPath=$encodedVideoPath, createdAt=$createdAt, modifiedAt=$modifiedAt, isFavorite=$isFavorite, mimeType=$mimeType, checksum=$checksum, duration=$duration, isVisible=$isVisible, livePhotoVideoId=$livePhotoVideoId, exifInfo=$exifInfo, smartInfo=$smartInfo, tags=$tags]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'id'] = id;
- _json[r'deviceAssetId'] = deviceAssetId;
- _json[r'userId'] = userId;
- _json[r'deviceId'] = deviceId;
- _json[r'type'] = type;
- _json[r'originalPath'] = originalPath;
- if (resizePath != null) {
- _json[r'resizePath'] = resizePath;
- } else {
- _json[r'resizePath'] = null;
- }
- if (webpPath != null) {
- _json[r'webpPath'] = webpPath;
- } else {
- _json[r'webpPath'] = null;
- }
- _json[r'encodedVideoPath'] = encodedVideoPath;
- _json[r'createdAt'] = createdAt;
- _json[r'modifiedAt'] = modifiedAt;
- _json[r'isFavorite'] = isFavorite;
- if (mimeType != null) {
- _json[r'mimeType'] = mimeType;
- } else {
- _json[r'mimeType'] = null;
- }
- if (checksum != null) {
- _json[r'checksum'] = checksum;
- } else {
- _json[r'checksum'] = null;
- }
- if (duration != null) {
- _json[r'duration'] = duration;
- } else {
- _json[r'duration'] = null;
- }
- _json[r'isVisible'] = isVisible;
- if (livePhotoVideoId != null) {
- _json[r'livePhotoVideoId'] = livePhotoVideoId;
- } else {
- _json[r'livePhotoVideoId'] = null;
- }
- if (exifInfo != null) {
- _json[r'exifInfo'] = exifInfo;
- } else {
- _json[r'exifInfo'] = null;
- }
- if (smartInfo != null) {
- _json[r'smartInfo'] = smartInfo;
- } else {
- _json[r'smartInfo'] = null;
- }
- _json[r'tags'] = tags;
- return _json;
- }
-
- /// Returns a new [AssetEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static AssetEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "AssetEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "AssetEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return AssetEntity(
- id: mapValueOfType<String>(json, r'id')!,
- deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
- userId: mapValueOfType<String>(json, r'userId')!,
- deviceId: mapValueOfType<String>(json, r'deviceId')!,
- type: AssetEntityTypeEnum.fromJson(json[r'type'])!,
- originalPath: mapValueOfType<String>(json, r'originalPath')!,
- resizePath: mapValueOfType<String>(json, r'resizePath'),
- webpPath: mapValueOfType<String>(json, r'webpPath'),
- encodedVideoPath: mapValueOfType<String>(json, r'encodedVideoPath')!,
- createdAt: mapValueOfType<String>(json, r'createdAt')!,
- modifiedAt: mapValueOfType<String>(json, r'modifiedAt')!,
- isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
- mimeType: mapValueOfType<String>(json, r'mimeType'),
- checksum: mapValueOfType<Object>(json, r'checksum'),
- duration: mapValueOfType<String>(json, r'duration'),
- isVisible: mapValueOfType<bool>(json, r'isVisible')!,
- livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'),
- exifInfo: ExifEntity.fromJson(json[r'exifInfo']),
- smartInfo: SmartInfoEntity.fromJson(json[r'smartInfo']),
- tags: TagEntity.listFromJson(json[r'tags'])!,
- );
- }
- return null;
- }
-
- static List<AssetEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AssetEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AssetEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, AssetEntity> mapFromJson(dynamic json) {
- final map = <String, AssetEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of AssetEntity-objects as value to a dart map
- static Map<String, List<AssetEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<AssetEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = AssetEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'id',
- 'deviceAssetId',
- 'userId',
- 'deviceId',
- 'type',
- 'originalPath',
- 'resizePath',
- 'webpPath',
- 'encodedVideoPath',
- 'createdAt',
- 'modifiedAt',
- 'isFavorite',
- 'mimeType',
- 'duration',
- 'isVisible',
- 'livePhotoVideoId',
- 'tags',
- };
-}
-
-
-class AssetEntityTypeEnum {
- /// Instantiate a new enum with the provided [value].
- const AssetEntityTypeEnum._(this.value);
-
- /// The underlying value of this enum member.
- final String value;
-
- @override
- String toString() => value;
-
- String toJson() => value;
-
- static const IMAGE = AssetEntityTypeEnum._(r'IMAGE');
- static const VIDEO = AssetEntityTypeEnum._(r'VIDEO');
- static const AUDIO = AssetEntityTypeEnum._(r'AUDIO');
- static const OTHER = AssetEntityTypeEnum._(r'OTHER');
-
- /// List of all possible values in this [enum][AssetEntityTypeEnum].
- static const values = <AssetEntityTypeEnum>[
- IMAGE,
- VIDEO,
- AUDIO,
- OTHER,
- ];
-
- static AssetEntityTypeEnum? fromJson(dynamic value) => AssetEntityTypeEnumTypeTransformer().decode(value);
-
- static List<AssetEntityTypeEnum>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <AssetEntityTypeEnum>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = AssetEntityTypeEnum.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-}
-
-/// Transformation class that can [encode] an instance of [AssetEntityTypeEnum] to String,
-/// and [decode] dynamic data back to [AssetEntityTypeEnum].
-class AssetEntityTypeEnumTypeTransformer {
- factory AssetEntityTypeEnumTypeTransformer() => _instance ??= const AssetEntityTypeEnumTypeTransformer._();
-
- const AssetEntityTypeEnumTypeTransformer._();
-
- String encode(AssetEntityTypeEnum data) => data.value;
-
- /// Decodes a [dynamic value][data] to a AssetEntityTypeEnum.
- ///
- /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
- /// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
- /// cannot be decoded successfully, then an [UnimplementedError] is thrown.
- ///
- /// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
- /// and users are still using an old app with the old code.
- AssetEntityTypeEnum? decode(dynamic data, {bool allowNull = true}) {
- if (data != null) {
- switch (data.toString()) {
- case r'IMAGE': return AssetEntityTypeEnum.IMAGE;
- case r'VIDEO': return AssetEntityTypeEnum.VIDEO;
- case r'AUDIO': return AssetEntityTypeEnum.AUDIO;
- case r'OTHER': return AssetEntityTypeEnum.OTHER;
- default:
- if (!allowNull) {
- throw ArgumentError('Unknown enum value to decode: $data');
- }
- }
- }
- return null;
- }
-
- /// Singleton [AssetEntityTypeEnumTypeTransformer] instance.
- static AssetEntityTypeEnumTypeTransformer? _instance;
-}
-
-
diff --git a/mobile/openapi/lib/model/create_job_dto.dart b/mobile/openapi/lib/model/create_job_dto.dart
deleted file mode 100644
index 1eaf678647..0000000000
--- a/mobile/openapi/lib/model/create_job_dto.dart
+++ /dev/null
@@ -1,111 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class CreateJobDto {
- /// Returns a new [CreateJobDto] instance.
- CreateJobDto({
- required this.jobType,
- });
-
- JobType jobType;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is CreateJobDto &&
- other.jobType == jobType;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (jobType.hashCode);
-
- @override
- String toString() => 'CreateJobDto[jobType=$jobType]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'jobType'] = jobType;
- return _json;
- }
-
- /// Returns a new [CreateJobDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static CreateJobDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "CreateJobDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "CreateJobDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return CreateJobDto(
- jobType: JobType.fromJson(json[r'jobType'])!,
- );
- }
- return null;
- }
-
- static List<CreateJobDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <CreateJobDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = CreateJobDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, CreateJobDto> mapFromJson(dynamic json) {
- final map = <String, CreateJobDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = CreateJobDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of CreateJobDto-objects as value to a dart map
- static Map<String, List<CreateJobDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<CreateJobDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = CreateJobDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'jobType',
- };
-}
-
diff --git a/mobile/openapi/lib/model/exif_entity.dart b/mobile/openapi/lib/model/exif_entity.dart
deleted file mode 100644
index 208127120b..0000000000
--- a/mobile/openapi/lib/model/exif_entity.dart
+++ /dev/null
@@ -1,414 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class ExifEntity {
- /// Returns a new [ExifEntity] instance.
- ExifEntity({
- required this.id,
- required this.assetId,
- required this.description,
- required this.exifImageWidth,
- required this.exifImageHeight,
- required this.fileSizeInByte,
- required this.orientation,
- required this.dateTimeOriginal,
- required this.modifyDate,
- required this.latitude,
- required this.longitude,
- required this.city,
- required this.state,
- required this.country,
- required this.make,
- required this.model,
- required this.imageName,
- required this.lensModel,
- required this.fNumber,
- required this.focalLength,
- required this.iso,
- required this.exposureTime,
- this.fps,
- this.asset,
- required this.exifTextSearchableColumn,
- });
-
- String id;
-
- String assetId;
-
- /// General info
- String description;
-
- num? exifImageWidth;
-
- num? exifImageHeight;
-
- num? fileSizeInByte;
-
- String? orientation;
-
- DateTime? dateTimeOriginal;
-
- DateTime? modifyDate;
-
- num? latitude;
-
- num? longitude;
-
- String? city;
-
- String? state;
-
- String? country;
-
- /// Image info
- String? make;
-
- String? model;
-
- String? imageName;
-
- String? lensModel;
-
- num? fNumber;
-
- num? focalLength;
-
- num? iso;
-
- num? exposureTime;
-
- /// Video info
- num? fps;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- AssetEntity? asset;
-
- String exifTextSearchableColumn;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is ExifEntity &&
- other.id == id &&
- other.assetId == assetId &&
- other.description == description &&
- other.exifImageWidth == exifImageWidth &&
- other.exifImageHeight == exifImageHeight &&
- other.fileSizeInByte == fileSizeInByte &&
- other.orientation == orientation &&
- other.dateTimeOriginal == dateTimeOriginal &&
- other.modifyDate == modifyDate &&
- other.latitude == latitude &&
- other.longitude == longitude &&
- other.city == city &&
- other.state == state &&
- other.country == country &&
- other.make == make &&
- other.model == model &&
- other.imageName == imageName &&
- other.lensModel == lensModel &&
- other.fNumber == fNumber &&
- other.focalLength == focalLength &&
- other.iso == iso &&
- other.exposureTime == exposureTime &&
- other.fps == fps &&
- other.asset == asset &&
- other.exifTextSearchableColumn == exifTextSearchableColumn;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (id.hashCode) +
- (assetId.hashCode) +
- (description.hashCode) +
- (exifImageWidth == null ? 0 : exifImageWidth!.hashCode) +
- (exifImageHeight == null ? 0 : exifImageHeight!.hashCode) +
- (fileSizeInByte == null ? 0 : fileSizeInByte!.hashCode) +
- (orientation == null ? 0 : orientation!.hashCode) +
- (dateTimeOriginal == null ? 0 : dateTimeOriginal!.hashCode) +
- (modifyDate == null ? 0 : modifyDate!.hashCode) +
- (latitude == null ? 0 : latitude!.hashCode) +
- (longitude == null ? 0 : longitude!.hashCode) +
- (city == null ? 0 : city!.hashCode) +
- (state == null ? 0 : state!.hashCode) +
- (country == null ? 0 : country!.hashCode) +
- (make == null ? 0 : make!.hashCode) +
- (model == null ? 0 : model!.hashCode) +
- (imageName == null ? 0 : imageName!.hashCode) +
- (lensModel == null ? 0 : lensModel!.hashCode) +
- (fNumber == null ? 0 : fNumber!.hashCode) +
- (focalLength == null ? 0 : focalLength!.hashCode) +
- (iso == null ? 0 : iso!.hashCode) +
- (exposureTime == null ? 0 : exposureTime!.hashCode) +
- (fps == null ? 0 : fps!.hashCode) +
- (asset == null ? 0 : asset!.hashCode) +
- (exifTextSearchableColumn.hashCode);
-
- @override
- String toString() => 'ExifEntity[id=$id, assetId=$assetId, description=$description, exifImageWidth=$exifImageWidth, exifImageHeight=$exifImageHeight, fileSizeInByte=$fileSizeInByte, orientation=$orientation, dateTimeOriginal=$dateTimeOriginal, modifyDate=$modifyDate, latitude=$latitude, longitude=$longitude, city=$city, state=$state, country=$country, make=$make, model=$model, imageName=$imageName, lensModel=$lensModel, fNumber=$fNumber, focalLength=$focalLength, iso=$iso, exposureTime=$exposureTime, fps=$fps, asset=$asset, exifTextSearchableColumn=$exifTextSearchableColumn]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'id'] = id;
- _json[r'assetId'] = assetId;
- _json[r'description'] = description;
- if (exifImageWidth != null) {
- _json[r'exifImageWidth'] = exifImageWidth;
- } else {
- _json[r'exifImageWidth'] = null;
- }
- if (exifImageHeight != null) {
- _json[r'exifImageHeight'] = exifImageHeight;
- } else {
- _json[r'exifImageHeight'] = null;
- }
- if (fileSizeInByte != null) {
- _json[r'fileSizeInByte'] = fileSizeInByte;
- } else {
- _json[r'fileSizeInByte'] = null;
- }
- if (orientation != null) {
- _json[r'orientation'] = orientation;
- } else {
- _json[r'orientation'] = null;
- }
- if (dateTimeOriginal != null) {
- _json[r'dateTimeOriginal'] = dateTimeOriginal!.toUtc().toIso8601String();
- } else {
- _json[r'dateTimeOriginal'] = null;
- }
- if (modifyDate != null) {
- _json[r'modifyDate'] = modifyDate!.toUtc().toIso8601String();
- } else {
- _json[r'modifyDate'] = null;
- }
- if (latitude != null) {
- _json[r'latitude'] = latitude;
- } else {
- _json[r'latitude'] = null;
- }
- if (longitude != null) {
- _json[r'longitude'] = longitude;
- } else {
- _json[r'longitude'] = null;
- }
- if (city != null) {
- _json[r'city'] = city;
- } else {
- _json[r'city'] = null;
- }
- if (state != null) {
- _json[r'state'] = state;
- } else {
- _json[r'state'] = null;
- }
- if (country != null) {
- _json[r'country'] = country;
- } else {
- _json[r'country'] = null;
- }
- if (make != null) {
- _json[r'make'] = make;
- } else {
- _json[r'make'] = null;
- }
- if (model != null) {
- _json[r'model'] = model;
- } else {
- _json[r'model'] = null;
- }
- if (imageName != null) {
- _json[r'imageName'] = imageName;
- } else {
- _json[r'imageName'] = null;
- }
- if (lensModel != null) {
- _json[r'lensModel'] = lensModel;
- } else {
- _json[r'lensModel'] = null;
- }
- if (fNumber != null) {
- _json[r'fNumber'] = fNumber;
- } else {
- _json[r'fNumber'] = null;
- }
- if (focalLength != null) {
- _json[r'focalLength'] = focalLength;
- } else {
- _json[r'focalLength'] = null;
- }
- if (iso != null) {
- _json[r'iso'] = iso;
- } else {
- _json[r'iso'] = null;
- }
- if (exposureTime != null) {
- _json[r'exposureTime'] = exposureTime;
- } else {
- _json[r'exposureTime'] = null;
- }
- if (fps != null) {
- _json[r'fps'] = fps;
- } else {
- _json[r'fps'] = null;
- }
- if (asset != null) {
- _json[r'asset'] = asset;
- } else {
- _json[r'asset'] = null;
- }
- _json[r'exifTextSearchableColumn'] = exifTextSearchableColumn;
- return _json;
- }
-
- /// Returns a new [ExifEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static ExifEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "ExifEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "ExifEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return ExifEntity(
- id: mapValueOfType<String>(json, r'id')!,
- assetId: mapValueOfType<String>(json, r'assetId')!,
- description: mapValueOfType<String>(json, r'description')!,
- exifImageWidth: json[r'exifImageWidth'] == null
- ? null
- : num.parse(json[r'exifImageWidth'].toString()),
- exifImageHeight: json[r'exifImageHeight'] == null
- ? null
- : num.parse(json[r'exifImageHeight'].toString()),
- fileSizeInByte: json[r'fileSizeInByte'] == null
- ? null
- : num.parse(json[r'fileSizeInByte'].toString()),
- orientation: mapValueOfType<String>(json, r'orientation'),
- dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', ''),
- modifyDate: mapDateTime(json, r'modifyDate', ''),
- latitude: json[r'latitude'] == null
- ? null
- : num.parse(json[r'latitude'].toString()),
- longitude: json[r'longitude'] == null
- ? null
- : num.parse(json[r'longitude'].toString()),
- city: mapValueOfType<String>(json, r'city'),
- state: mapValueOfType<String>(json, r'state'),
- country: mapValueOfType<String>(json, r'country'),
- make: mapValueOfType<String>(json, r'make'),
- model: mapValueOfType<String>(json, r'model'),
- imageName: mapValueOfType<String>(json, r'imageName'),
- lensModel: mapValueOfType<String>(json, r'lensModel'),
- fNumber: json[r'fNumber'] == null
- ? null
- : num.parse(json[r'fNumber'].toString()),
- focalLength: json[r'focalLength'] == null
- ? null
- : num.parse(json[r'focalLength'].toString()),
- iso: json[r'iso'] == null
- ? null
- : num.parse(json[r'iso'].toString()),
- exposureTime: json[r'exposureTime'] == null
- ? null
- : num.parse(json[r'exposureTime'].toString()),
- fps: json[r'fps'] == null
- ? null
- : num.parse(json[r'fps'].toString()),
- asset: AssetEntity.fromJson(json[r'asset']),
- exifTextSearchableColumn: mapValueOfType<String>(json, r'exifTextSearchableColumn')!,
- );
- }
- return null;
- }
-
- static List<ExifEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <ExifEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = ExifEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, ExifEntity> mapFromJson(dynamic json) {
- final map = <String, ExifEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = ExifEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of ExifEntity-objects as value to a dart map
- static Map<String, List<ExifEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<ExifEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = ExifEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'id',
- 'assetId',
- 'description',
- 'exifImageWidth',
- 'exifImageHeight',
- 'fileSizeInByte',
- 'orientation',
- 'dateTimeOriginal',
- 'modifyDate',
- 'latitude',
- 'longitude',
- 'city',
- 'state',
- 'country',
- 'make',
- 'model',
- 'imageName',
- 'lensModel',
- 'fNumber',
- 'focalLength',
- 'iso',
- 'exposureTime',
- 'exifTextSearchableColumn',
- };
-}
-
diff --git a/mobile/openapi/lib/model/get_asset_count_by_time_group_dto.dart b/mobile/openapi/lib/model/get_asset_count_by_time_group_dto.dart
deleted file mode 100644
index 1e296d3770..0000000000
--- a/mobile/openapi/lib/model/get_asset_count_by_time_group_dto.dart
+++ /dev/null
@@ -1,111 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class GetAssetCountByTimeGroupDto {
- /// Returns a new [GetAssetCountByTimeGroupDto] instance.
- GetAssetCountByTimeGroupDto({
- required this.timeGroup,
- });
-
- TimeGroupEnum timeGroup;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is GetAssetCountByTimeGroupDto &&
- other.timeGroup == timeGroup;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (timeGroup.hashCode);
-
- @override
- String toString() => 'GetAssetCountByTimeGroupDto[timeGroup=$timeGroup]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'timeGroup'] = timeGroup;
- return _json;
- }
-
- /// Returns a new [GetAssetCountByTimeGroupDto] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static GetAssetCountByTimeGroupDto? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "GetAssetCountByTimeGroupDto[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "GetAssetCountByTimeGroupDto[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return GetAssetCountByTimeGroupDto(
- timeGroup: TimeGroupEnum.fromJson(json[r'timeGroup'])!,
- );
- }
- return null;
- }
-
- static List<GetAssetCountByTimeGroupDto>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <GetAssetCountByTimeGroupDto>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = GetAssetCountByTimeGroupDto.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, GetAssetCountByTimeGroupDto> mapFromJson(dynamic json) {
- final map = <String, GetAssetCountByTimeGroupDto>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = GetAssetCountByTimeGroupDto.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of GetAssetCountByTimeGroupDto-objects as value to a dart map
- static Map<String, List<GetAssetCountByTimeGroupDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<GetAssetCountByTimeGroupDto>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = GetAssetCountByTimeGroupDto.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'timeGroup',
- };
-}
-
diff --git a/mobile/openapi/lib/model/job_type.dart b/mobile/openapi/lib/model/job_type.dart
deleted file mode 100644
index 2cf21674ed..0000000000
--- a/mobile/openapi/lib/model/job_type.dart
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-
-class JobType {
- /// Instantiate a new enum with the provided [value].
- const JobType._(this.value);
-
- /// The underlying value of this enum member.
- final String value;
-
- @override
- String toString() => value;
-
- String toJson() => value;
-
- static const THUMBNAIL_GENERATION = JobType._(r'THUMBNAIL_GENERATION');
- static const METADATA_EXTRACTION = JobType._(r'METADATA_EXTRACTION');
- static const VIDEO_CONVERSION = JobType._(r'VIDEO_CONVERSION');
- static const CHECKSUM_GENERATION = JobType._(r'CHECKSUM_GENERATION');
-
- /// List of all possible values in this [enum][JobType].
- static const values = <JobType>[
- THUMBNAIL_GENERATION,
- METADATA_EXTRACTION,
- VIDEO_CONVERSION,
- CHECKSUM_GENERATION,
- ];
-
- static JobType? fromJson(dynamic value) => JobTypeTypeTransformer().decode(value);
-
- static List<JobType>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <JobType>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = JobType.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-}
-
-/// Transformation class that can [encode] an instance of [JobType] to String,
-/// and [decode] dynamic data back to [JobType].
-class JobTypeTypeTransformer {
- factory JobTypeTypeTransformer() => _instance ??= const JobTypeTypeTransformer._();
-
- const JobTypeTypeTransformer._();
-
- String encode(JobType data) => data.value;
-
- /// Decodes a [dynamic value][data] to a JobType.
- ///
- /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
- /// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
- /// cannot be decoded successfully, then an [UnimplementedError] is thrown.
- ///
- /// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
- /// and users are still using an old app with the old code.
- JobType? decode(dynamic data, {bool allowNull = true}) {
- if (data != null) {
- switch (data.toString()) {
- case r'THUMBNAIL_GENERATION': return JobType.THUMBNAIL_GENERATION;
- case r'METADATA_EXTRACTION': return JobType.METADATA_EXTRACTION;
- case r'VIDEO_CONVERSION': return JobType.VIDEO_CONVERSION;
- case r'CHECKSUM_GENERATION': return JobType.CHECKSUM_GENERATION;
- default:
- if (!allowNull) {
- throw ArgumentError('Unknown enum value to decode: $data');
- }
- }
- }
- return null;
- }
-
- /// Singleton [JobTypeTypeTransformer] instance.
- static JobTypeTypeTransformer? _instance;
-}
-
diff --git a/mobile/openapi/lib/model/smart_info_entity.dart b/mobile/openapi/lib/model/smart_info_entity.dart
deleted file mode 100644
index cf3e335958..0000000000
--- a/mobile/openapi/lib/model/smart_info_entity.dart
+++ /dev/null
@@ -1,164 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class SmartInfoEntity {
- /// Returns a new [SmartInfoEntity] instance.
- SmartInfoEntity({
- required this.id,
- required this.assetId,
- this.tags = const [],
- this.objects = const [],
- this.asset,
- });
-
- String id;
-
- String assetId;
-
- List<String>? tags;
-
- List<String>? objects;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- AssetEntity? asset;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is SmartInfoEntity &&
- other.id == id &&
- other.assetId == assetId &&
- other.tags == tags &&
- other.objects == objects &&
- other.asset == asset;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (id.hashCode) +
- (assetId.hashCode) +
- (tags == null ? 0 : tags!.hashCode) +
- (objects == null ? 0 : objects!.hashCode) +
- (asset == null ? 0 : asset!.hashCode);
-
- @override
- String toString() => 'SmartInfoEntity[id=$id, assetId=$assetId, tags=$tags, objects=$objects, asset=$asset]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'id'] = id;
- _json[r'assetId'] = assetId;
- if (tags != null) {
- _json[r'tags'] = tags;
- } else {
- _json[r'tags'] = null;
- }
- if (objects != null) {
- _json[r'objects'] = objects;
- } else {
- _json[r'objects'] = null;
- }
- if (asset != null) {
- _json[r'asset'] = asset;
- } else {
- _json[r'asset'] = null;
- }
- return _json;
- }
-
- /// Returns a new [SmartInfoEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static SmartInfoEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "SmartInfoEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "SmartInfoEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return SmartInfoEntity(
- id: mapValueOfType<String>(json, r'id')!,
- assetId: mapValueOfType<String>(json, r'assetId')!,
- tags: json[r'tags'] is List
- ? (json[r'tags'] as List).cast<String>()
- : const [],
- objects: json[r'objects'] is List
- ? (json[r'objects'] as List).cast<String>()
- : const [],
- asset: AssetEntity.fromJson(json[r'asset']),
- );
- }
- return null;
- }
-
- static List<SmartInfoEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <SmartInfoEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = SmartInfoEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, SmartInfoEntity> mapFromJson(dynamic json) {
- final map = <String, SmartInfoEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = SmartInfoEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of SmartInfoEntity-objects as value to a dart map
- static Map<String, List<SmartInfoEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<SmartInfoEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = SmartInfoEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'id',
- 'assetId',
- 'tags',
- 'objects',
- };
-}
-
diff --git a/mobile/openapi/lib/model/system_config_entity.dart b/mobile/openapi/lib/model/system_config_entity.dart
deleted file mode 100644
index b52667c388..0000000000
--- a/mobile/openapi/lib/model/system_config_entity.dart
+++ /dev/null
@@ -1,202 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class SystemConfigEntity {
- /// Returns a new [SystemConfigEntity] instance.
- SystemConfigEntity({
- required this.key,
- required this.value,
- });
-
- SystemConfigEntityKeyEnum key;
-
- Object value;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is SystemConfigEntity &&
- other.key == key &&
- other.value == value;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (key.hashCode) +
- (value.hashCode);
-
- @override
- String toString() => 'SystemConfigEntity[key=$key, value=$value]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'key'] = key;
- _json[r'value'] = value;
- return _json;
- }
-
- /// Returns a new [SystemConfigEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static SystemConfigEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "SystemConfigEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "SystemConfigEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return SystemConfigEntity(
- key: SystemConfigEntityKeyEnum.fromJson(json[r'key'])!,
- value: mapValueOfType<Object>(json, r'value')!,
- );
- }
- return null;
- }
-
- static List<SystemConfigEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <SystemConfigEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = SystemConfigEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, SystemConfigEntity> mapFromJson(dynamic json) {
- final map = <String, SystemConfigEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = SystemConfigEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of SystemConfigEntity-objects as value to a dart map
- static Map<String, List<SystemConfigEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<SystemConfigEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = SystemConfigEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'key',
- 'value',
- };
-}
-
-
-class SystemConfigEntityKeyEnum {
- /// Instantiate a new enum with the provided [value].
- const SystemConfigEntityKeyEnum._(this.value);
-
- /// The underlying value of this enum member.
- final String value;
-
- @override
- String toString() => value;
-
- String toJson() => value;
-
- static const crf = SystemConfigEntityKeyEnum._(r'ffmpeg_crf');
- static const preset = SystemConfigEntityKeyEnum._(r'ffmpeg_preset');
- static const targetVideoCodec = SystemConfigEntityKeyEnum._(r'ffmpeg_target_video_codec');
- static const targetAudioCodec = SystemConfigEntityKeyEnum._(r'ffmpeg_target_audio_codec');
- static const targetScaling = SystemConfigEntityKeyEnum._(r'ffmpeg_target_scaling');
-
- /// List of all possible values in this [enum][SystemConfigEntityKeyEnum].
- static const values = <SystemConfigEntityKeyEnum>[
- crf,
- preset,
- targetVideoCodec,
- targetAudioCodec,
- targetScaling,
- ];
-
- static SystemConfigEntityKeyEnum? fromJson(dynamic value) => SystemConfigEntityKeyEnumTypeTransformer().decode(value);
-
- static List<SystemConfigEntityKeyEnum>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <SystemConfigEntityKeyEnum>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = SystemConfigEntityKeyEnum.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-}
-
-/// Transformation class that can [encode] an instance of [SystemConfigEntityKeyEnum] to String,
-/// and [decode] dynamic data back to [SystemConfigEntityKeyEnum].
-class SystemConfigEntityKeyEnumTypeTransformer {
- factory SystemConfigEntityKeyEnumTypeTransformer() => _instance ??= const SystemConfigEntityKeyEnumTypeTransformer._();
-
- const SystemConfigEntityKeyEnumTypeTransformer._();
-
- String encode(SystemConfigEntityKeyEnum data) => data.value;
-
- /// Decodes a [dynamic value][data] to a SystemConfigEntityKeyEnum.
- ///
- /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
- /// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
- /// cannot be decoded successfully, then an [UnimplementedError] is thrown.
- ///
- /// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
- /// and users are still using an old app with the old code.
- SystemConfigEntityKeyEnum? decode(dynamic data, {bool allowNull = true}) {
- if (data != null) {
- switch (data.toString()) {
- case r'ffmpeg_crf': return SystemConfigEntityKeyEnum.crf;
- case r'ffmpeg_preset': return SystemConfigEntityKeyEnum.preset;
- case r'ffmpeg_target_video_codec': return SystemConfigEntityKeyEnum.targetVideoCodec;
- case r'ffmpeg_target_audio_codec': return SystemConfigEntityKeyEnum.targetAudioCodec;
- case r'ffmpeg_target_scaling': return SystemConfigEntityKeyEnum.targetScaling;
- default:
- if (!allowNull) {
- throw ArgumentError('Unknown enum value to decode: $data');
- }
- }
- }
- return null;
- }
-
- /// Singleton [SystemConfigEntityKeyEnumTypeTransformer] instance.
- static SystemConfigEntityKeyEnumTypeTransformer? _instance;
-}
-
-
diff --git a/mobile/openapi/lib/model/tag_entity.dart b/mobile/openapi/lib/model/tag_entity.dart
deleted file mode 100644
index d973c3f881..0000000000
--- a/mobile/openapi/lib/model/tag_entity.dart
+++ /dev/null
@@ -1,236 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class TagEntity {
- /// Returns a new [TagEntity] instance.
- TagEntity({
- required this.id,
- required this.type,
- required this.name,
- required this.userId,
- required this.renameTagId,
- this.assets = const [],
- required this.user,
- });
-
- String id;
-
- TagEntityTypeEnum type;
-
- String name;
-
- String userId;
-
- String renameTagId;
-
- List<AssetEntity> assets;
-
- UserEntity user;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is TagEntity &&
- other.id == id &&
- other.type == type &&
- other.name == name &&
- other.userId == userId &&
- other.renameTagId == renameTagId &&
- other.assets == assets &&
- other.user == user;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (id.hashCode) +
- (type.hashCode) +
- (name.hashCode) +
- (userId.hashCode) +
- (renameTagId.hashCode) +
- (assets.hashCode) +
- (user.hashCode);
-
- @override
- String toString() => 'TagEntity[id=$id, type=$type, name=$name, userId=$userId, renameTagId=$renameTagId, assets=$assets, user=$user]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'id'] = id;
- _json[r'type'] = type;
- _json[r'name'] = name;
- _json[r'userId'] = userId;
- _json[r'renameTagId'] = renameTagId;
- _json[r'assets'] = assets;
- _json[r'user'] = user;
- return _json;
- }
-
- /// Returns a new [TagEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static TagEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "TagEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "TagEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return TagEntity(
- id: mapValueOfType<String>(json, r'id')!,
- type: TagEntityTypeEnum.fromJson(json[r'type'])!,
- name: mapValueOfType<String>(json, r'name')!,
- userId: mapValueOfType<String>(json, r'userId')!,
- renameTagId: mapValueOfType<String>(json, r'renameTagId')!,
- assets: AssetEntity.listFromJson(json[r'assets'])!,
- user: UserEntity.fromJson(json[r'user'])!,
- );
- }
- return null;
- }
-
- static List<TagEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <TagEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = TagEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, TagEntity> mapFromJson(dynamic json) {
- final map = <String, TagEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = TagEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of TagEntity-objects as value to a dart map
- static Map<String, List<TagEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<TagEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = TagEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'id',
- 'type',
- 'name',
- 'userId',
- 'renameTagId',
- 'assets',
- 'user',
- };
-}
-
-
-class TagEntityTypeEnum {
- /// Instantiate a new enum with the provided [value].
- const TagEntityTypeEnum._(this.value);
-
- /// The underlying value of this enum member.
- final String value;
-
- @override
- String toString() => value;
-
- String toJson() => value;
-
- static const OBJECT = TagEntityTypeEnum._(r'OBJECT');
- static const FACE = TagEntityTypeEnum._(r'FACE');
- static const CUSTOM = TagEntityTypeEnum._(r'CUSTOM');
-
- /// List of all possible values in this [enum][TagEntityTypeEnum].
- static const values = <TagEntityTypeEnum>[
- OBJECT,
- FACE,
- CUSTOM,
- ];
-
- static TagEntityTypeEnum? fromJson(dynamic value) => TagEntityTypeEnumTypeTransformer().decode(value);
-
- static List<TagEntityTypeEnum>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <TagEntityTypeEnum>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = TagEntityTypeEnum.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-}
-
-/// Transformation class that can [encode] an instance of [TagEntityTypeEnum] to String,
-/// and [decode] dynamic data back to [TagEntityTypeEnum].
-class TagEntityTypeEnumTypeTransformer {
- factory TagEntityTypeEnumTypeTransformer() => _instance ??= const TagEntityTypeEnumTypeTransformer._();
-
- const TagEntityTypeEnumTypeTransformer._();
-
- String encode(TagEntityTypeEnum data) => data.value;
-
- /// Decodes a [dynamic value][data] to a TagEntityTypeEnum.
- ///
- /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
- /// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
- /// cannot be decoded successfully, then an [UnimplementedError] is thrown.
- ///
- /// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
- /// and users are still using an old app with the old code.
- TagEntityTypeEnum? decode(dynamic data, {bool allowNull = true}) {
- if (data != null) {
- switch (data.toString()) {
- case r'OBJECT': return TagEntityTypeEnum.OBJECT;
- case r'FACE': return TagEntityTypeEnum.FACE;
- case r'CUSTOM': return TagEntityTypeEnum.CUSTOM;
- default:
- if (!allowNull) {
- throw ArgumentError('Unknown enum value to decode: $data');
- }
- }
- }
- return null;
- }
-
- /// Singleton [TagEntityTypeEnumTypeTransformer] instance.
- static TagEntityTypeEnumTypeTransformer? _instance;
-}
-
-
diff --git a/mobile/openapi/lib/model/time_bucket_enum.dart b/mobile/openapi/lib/model/time_bucket_enum.dart
deleted file mode 100644
index c881e65c45..0000000000
--- a/mobile/openapi/lib/model/time_bucket_enum.dart
+++ /dev/null
@@ -1,85 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-
-class TimeBucketEnum {
- /// Instantiate a new enum with the provided [value].
- const TimeBucketEnum._(this.value);
-
- /// The underlying value of this enum member.
- final String value;
-
- @override
- String toString() => value;
-
- String toJson() => value;
-
- static const day = TimeBucketEnum._(r'day');
- static const month = TimeBucketEnum._(r'month');
-
- /// List of all possible values in this [enum][TimeBucketEnum].
- static const values = <TimeBucketEnum>[
- day,
- month,
- ];
-
- static TimeBucketEnum? fromJson(dynamic value) => TimeBucketEnumTypeTransformer().decode(value);
-
- static List<TimeBucketEnum>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <TimeBucketEnum>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = TimeBucketEnum.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-}
-
-/// Transformation class that can [encode] an instance of [TimeBucketEnum] to String,
-/// and [decode] dynamic data back to [TimeBucketEnum].
-class TimeBucketEnumTypeTransformer {
- factory TimeBucketEnumTypeTransformer() => _instance ??= const TimeBucketEnumTypeTransformer._();
-
- const TimeBucketEnumTypeTransformer._();
-
- String encode(TimeBucketEnum data) => data.value;
-
- /// Decodes a [dynamic value][data] to a TimeBucketEnum.
- ///
- /// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
- /// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
- /// cannot be decoded successfully, then an [UnimplementedError] is thrown.
- ///
- /// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
- /// and users are still using an old app with the old code.
- TimeBucketEnum? decode(dynamic data, {bool allowNull = true}) {
- if (data != null) {
- switch (data.toString()) {
- case r'day': return TimeBucketEnum.day;
- case r'month': return TimeBucketEnum.month;
- default:
- if (!allowNull) {
- throw ArgumentError('Unknown enum value to decode: $data');
- }
- }
- }
- return null;
- }
-
- /// Singleton [TimeBucketEnumTypeTransformer] instance.
- static TimeBucketEnumTypeTransformer? _instance;
-}
-
diff --git a/mobile/openapi/lib/model/user_entity.dart b/mobile/openapi/lib/model/user_entity.dart
deleted file mode 100644
index 7862d296ed..0000000000
--- a/mobile/openapi/lib/model/user_entity.dart
+++ /dev/null
@@ -1,234 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-part of openapi.api;
-
-class UserEntity {
- /// Returns a new [UserEntity] instance.
- UserEntity({
- required this.id,
- required this.firstName,
- required this.lastName,
- required this.isAdmin,
- required this.email,
- this.password,
- this.salt,
- required this.oauthId,
- required this.profileImagePath,
- required this.shouldChangePassword,
- required this.createdAt,
- this.deletedAt,
- this.tags = const [],
- });
-
- String id;
-
- String firstName;
-
- String lastName;
-
- bool isAdmin;
-
- String email;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- String? password;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- String? salt;
-
- String oauthId;
-
- String profileImagePath;
-
- bool shouldChangePassword;
-
- String createdAt;
-
- ///
- /// Please note: This property should have been non-nullable! Since the specification file
- /// does not include a default value (using the "default:" property), however, the generated
- /// source code must fall back to having a nullable type.
- /// Consider adding a "default:" property in the specification file to hide this note.
- ///
- DateTime? deletedAt;
-
- List<TagEntity> tags;
-
- @override
- bool operator ==(Object other) => identical(this, other) || other is UserEntity &&
- other.id == id &&
- other.firstName == firstName &&
- other.lastName == lastName &&
- other.isAdmin == isAdmin &&
- other.email == email &&
- other.password == password &&
- other.salt == salt &&
- other.oauthId == oauthId &&
- other.profileImagePath == profileImagePath &&
- other.shouldChangePassword == shouldChangePassword &&
- other.createdAt == createdAt &&
- other.deletedAt == deletedAt &&
- other.tags == tags;
-
- @override
- int get hashCode =>
- // ignore: unnecessary_parenthesis
- (id.hashCode) +
- (firstName.hashCode) +
- (lastName.hashCode) +
- (isAdmin.hashCode) +
- (email.hashCode) +
- (password == null ? 0 : password!.hashCode) +
- (salt == null ? 0 : salt!.hashCode) +
- (oauthId.hashCode) +
- (profileImagePath.hashCode) +
- (shouldChangePassword.hashCode) +
- (createdAt.hashCode) +
- (deletedAt == null ? 0 : deletedAt!.hashCode) +
- (tags.hashCode);
-
- @override
- String toString() => 'UserEntity[id=$id, firstName=$firstName, lastName=$lastName, isAdmin=$isAdmin, email=$email, password=$password, salt=$salt, oauthId=$oauthId, profileImagePath=$profileImagePath, shouldChangePassword=$shouldChangePassword, createdAt=$createdAt, deletedAt=$deletedAt, tags=$tags]';
-
- Map<String, dynamic> toJson() {
- final _json = <String, dynamic>{};
- _json[r'id'] = id;
- _json[r'firstName'] = firstName;
- _json[r'lastName'] = lastName;
- _json[r'isAdmin'] = isAdmin;
- _json[r'email'] = email;
- if (password != null) {
- _json[r'password'] = password;
- } else {
- _json[r'password'] = null;
- }
- if (salt != null) {
- _json[r'salt'] = salt;
- } else {
- _json[r'salt'] = null;
- }
- _json[r'oauthId'] = oauthId;
- _json[r'profileImagePath'] = profileImagePath;
- _json[r'shouldChangePassword'] = shouldChangePassword;
- _json[r'createdAt'] = createdAt;
- if (deletedAt != null) {
- _json[r'deletedAt'] = deletedAt!.toUtc().toIso8601String();
- } else {
- _json[r'deletedAt'] = null;
- }
- _json[r'tags'] = tags;
- return _json;
- }
-
- /// Returns a new [UserEntity] instance and imports its values from
- /// [value] if it's a [Map], null otherwise.
- // ignore: prefer_constructors_over_static_methods
- static UserEntity? fromJson(dynamic value) {
- if (value is Map) {
- final json = value.cast<String, dynamic>();
-
- // Ensure that the map contains the required keys.
- // Note 1: the values aren't checked for validity beyond being non-null.
- // Note 2: this code is stripped in release mode!
- assert(() {
- requiredKeys.forEach((key) {
- assert(json.containsKey(key), 'Required key "UserEntity[$key]" is missing from JSON.');
- assert(json[key] != null, 'Required key "UserEntity[$key]" has a null value in JSON.');
- });
- return true;
- }());
-
- return UserEntity(
- id: mapValueOfType<String>(json, r'id')!,
- firstName: mapValueOfType<String>(json, r'firstName')!,
- lastName: mapValueOfType<String>(json, r'lastName')!,
- isAdmin: mapValueOfType<bool>(json, r'isAdmin')!,
- email: mapValueOfType<String>(json, r'email')!,
- password: mapValueOfType<String>(json, r'password'),
- salt: mapValueOfType<String>(json, r'salt'),
- oauthId: mapValueOfType<String>(json, r'oauthId')!,
- profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
- shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
- createdAt: mapValueOfType<String>(json, r'createdAt')!,
- deletedAt: mapDateTime(json, r'deletedAt', ''),
- tags: TagEntity.listFromJson(json[r'tags'])!,
- );
- }
- return null;
- }
-
- static List<UserEntity>? listFromJson(dynamic json, {bool growable = false,}) {
- final result = <UserEntity>[];
- if (json is List && json.isNotEmpty) {
- for (final row in json) {
- final value = UserEntity.fromJson(row);
- if (value != null) {
- result.add(value);
- }
- }
- }
- return result.toList(growable: growable);
- }
-
- static Map<String, UserEntity> mapFromJson(dynamic json) {
- final map = <String, UserEntity>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = UserEntity.fromJson(entry.value);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- // maps a json object with a list of UserEntity-objects as value to a dart map
- static Map<String, List<UserEntity>> mapListFromJson(dynamic json, {bool growable = false,}) {
- final map = <String, List<UserEntity>>{};
- if (json is Map && json.isNotEmpty) {
- json = json.cast<String, dynamic>(); // ignore: parameter_assignments
- for (final entry in json.entries) {
- final value = UserEntity.listFromJson(entry.value, growable: growable,);
- if (value != null) {
- map[entry.key] = value;
- }
- }
- }
- return map;
- }
-
- /// The list of required keys that must be present in a JSON.
- static const requiredKeys = <String>{
- 'id',
- 'firstName',
- 'lastName',
- 'isAdmin',
- 'email',
- 'oauthId',
- 'profileImagePath',
- 'shouldChangePassword',
- 'createdAt',
- 'tags',
- };
-}
-
diff --git a/mobile/openapi/pubspec.lock b/mobile/openapi/pubspec.lock
deleted file mode 100644
index e4c9e2004b..0000000000
--- a/mobile/openapi/pubspec.lock
+++ /dev/null
@@ -1,355 +0,0 @@
-# Generated by pub
-# See https://dart.dev/tools/pub/glossary#lockfile
-packages:
- _fe_analyzer_shared:
- dependency: transitive
- description:
- name: _fe_analyzer_shared
- url: "https://pub.dartlang.org"
- source: hosted
- version: "31.0.0"
- analyzer:
- dependency: transitive
- description:
- name: analyzer
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.8.0"
- args:
- dependency: transitive
- description:
- name: args
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.3.1"
- async:
- dependency: transitive
- description:
- name: async
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.9.0"
- boolean_selector:
- dependency: transitive
- description:
- name: boolean_selector
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0"
- cli_util:
- dependency: transitive
- description:
- name: cli_util
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.3.5"
- clock:
- dependency: transitive
- description:
- name: clock
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- collection:
- dependency: transitive
- description:
- name: collection
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.16.0"
- convert:
- dependency: transitive
- description:
- name: convert
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.2"
- coverage:
- dependency: transitive
- description:
- name: coverage
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- crypto:
- dependency: transitive
- description:
- name: crypto
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.2"
- file:
- dependency: transitive
- description:
- name: file
- url: "https://pub.dartlang.org"
- source: hosted
- version: "6.1.2"
- frontend_server_client:
- dependency: transitive
- description:
- name: frontend_server_client
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.3"
- glob:
- dependency: transitive
- description:
- name: glob
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0"
- http:
- dependency: "direct main"
- description:
- name: http
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.13.4"
- http_multi_server:
- dependency: transitive
- description:
- name: http_multi_server
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.2.1"
- http_parser:
- dependency: transitive
- description:
- name: http_parser
- url: "https://pub.dartlang.org"
- source: hosted
- version: "4.0.1"
- intl:
- dependency: "direct main"
- description:
- name: intl
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.17.0"
- io:
- dependency: transitive
- description:
- name: io
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.3"
- js:
- dependency: transitive
- description:
- name: js
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.6.4"
- logging:
- dependency: transitive
- description:
- name: logging
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.2"
- matcher:
- dependency: transitive
- description:
- name: matcher
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.12.11"
- meta:
- dependency: "direct main"
- description:
- name: meta
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.8.0"
- mime:
- dependency: transitive
- description:
- name: mime
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.2"
- node_preamble:
- dependency: transitive
- description:
- name: node_preamble
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.0.1"
- package_config:
- dependency: transitive
- description:
- name: package_config
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0"
- path:
- dependency: transitive
- description:
- name: path
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.8.2"
- pedantic:
- dependency: transitive
- description:
- name: pedantic
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.11.1"
- pool:
- dependency: transitive
- description:
- name: pool
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.5.1"
- pub_semver:
- dependency: transitive
- description:
- name: pub_semver
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.1"
- shelf:
- dependency: transitive
- description:
- name: shelf
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.1"
- shelf_packages_handler:
- dependency: transitive
- description:
- name: shelf_packages_handler
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.0.1"
- shelf_static:
- dependency: transitive
- description:
- name: shelf_static
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- shelf_web_socket:
- dependency: transitive
- description:
- name: shelf_web_socket
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.2"
- source_map_stack_trace:
- dependency: transitive
- description:
- name: source_map_stack_trace
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0"
- source_maps:
- dependency: transitive
- description:
- name: source_maps
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.10.10"
- source_span:
- dependency: transitive
- description:
- name: source_span
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.9.0"
- stack_trace:
- dependency: transitive
- description:
- name: stack_trace
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.10.0"
- stream_channel:
- dependency: transitive
- description:
- name: stream_channel
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.1.0"
- string_scanner:
- dependency: transitive
- description:
- name: string_scanner
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- term_glyph:
- dependency: transitive
- description:
- name: term_glyph
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.2.1"
- test:
- dependency: "direct dev"
- description:
- name: test
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.17.12"
- test_api:
- dependency: transitive
- description:
- name: test_api
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.4.3"
- test_core:
- dependency: transitive
- description:
- name: test_core
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.4.2"
- typed_data:
- dependency: transitive
- description:
- name: typed_data
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.3.1"
- vm_service:
- dependency: transitive
- description:
- name: vm_service
- url: "https://pub.dartlang.org"
- source: hosted
- version: "7.5.0"
- watcher:
- dependency: transitive
- description:
- name: watcher
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.0.1"
- web_socket_channel:
- dependency: transitive
- description:
- name: web_socket_channel
- url: "https://pub.dartlang.org"
- source: hosted
- version: "2.2.0"
- webkit_inspection_protocol:
- dependency: transitive
- description:
- name: webkit_inspection_protocol
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.0"
- yaml:
- dependency: transitive
- description:
- name: yaml
- url: "https://pub.dartlang.org"
- source: hosted
- version: "3.1.1"
-sdks:
- dart: ">=2.16.0 <3.0.0"
diff --git a/mobile/openapi/test/admin_config_api_test.dart b/mobile/openapi/test/admin_config_api_test.dart
deleted file mode 100644
index 8bf3a60bb2..0000000000
--- a/mobile/openapi/test/admin_config_api_test.dart
+++ /dev/null
@@ -1,26 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-
-/// tests for AdminConfigApi
-void main() {
- // final instance = AdminConfigApi();
-
- group('tests for AdminConfigApi', () {
- //Future<AdminConfigResponseDto> getAdminConfig() async
- test('test getAdminConfig', () async {
- // TODO
- });
-
- });
-}
diff --git a/mobile/openapi/test/admin_config_response_dto_test.dart b/mobile/openapi/test/admin_config_response_dto_test.dart
deleted file mode 100644
index 83bcb955c2..0000000000
--- a/mobile/openapi/test/admin_config_response_dto_test.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for AdminConfigResponseDto
-void main() {
- // final instance = AdminConfigResponseDto();
-
- group('test AdminConfigResponseDto', () {
- // Object config
- test('to test the property `config`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/album_api_test.dart b/mobile/openapi/test/album_api_test.dart
index f13e7fa762..6e4f6175de 100644
--- a/mobile/openapi/test/album_api_test.dart
+++ b/mobile/openapi/test/album_api_test.dart
@@ -17,7 +17,7 @@ void main() {
// final instance = AlbumApi();
group('tests for AlbumApi', () {
- //Future<AlbumResponseDto> addAssetsToAlbum(String albumId, AddAssetsDto addAssetsDto) async
+ //Future<AddAssetsResponseDto> addAssetsToAlbum(String albumId, AddAssetsDto addAssetsDto) async
test('test addAssetsToAlbum', () async {
// TODO
});
@@ -37,17 +37,27 @@ void main() {
// TODO
});
+ //Future<Object> downloadArchive(String albumId, { num skip }) async
+ test('test downloadArchive', () async {
+ // TODO
+ });
+
+ //Future<AlbumCountResponseDto> getAlbumCountByUserId() async
+ test('test getAlbumCountByUserId', () async {
+ // TODO
+ });
+
//Future<AlbumResponseDto> getAlbumInfo(String albumId) async
test('test getAlbumInfo', () async {
// TODO
});
- //Future<List<AlbumResponseDto>> getAllAlbums({ bool shared }) async
+ //Future<List<AlbumResponseDto>> getAllAlbums({ bool shared, String assetId }) async
test('test getAllAlbums', () async {
// TODO
});
- //Future removeAssetFromAlbum(String albumId, RemoveAssetsDto removeAssetsDto) async
+ //Future<AlbumResponseDto> removeAssetFromAlbum(String albumId, RemoveAssetsDto removeAssetsDto) async
test('test removeAssetFromAlbum', () async {
// TODO
});
diff --git a/mobile/openapi/test/album_response_dto_test.dart b/mobile/openapi/test/album_response_dto_test.dart
index d1ad631e9a..1f16d754f9 100644
--- a/mobile/openapi/test/album_response_dto_test.dart
+++ b/mobile/openapi/test/album_response_dto_test.dart
@@ -16,6 +16,11 @@ void main() {
// final instance = AlbumResponseDto();
group('test AlbumResponseDto', () {
+ // int assetCount
+ test('to test the property `assetCount`', () async {
+ // TODO
+ });
+
// String id
test('to test the property `id`', () async {
// TODO
diff --git a/mobile/openapi/test/all_job_status_response_dto_test.dart b/mobile/openapi/test/all_job_status_response_dto_test.dart
index 0853da9d1b..393b158d9e 100644
--- a/mobile/openapi/test/all_job_status_response_dto_test.dart
+++ b/mobile/openapi/test/all_job_status_response_dto_test.dart
@@ -16,23 +16,33 @@ void main() {
// final instance = AllJobStatusResponseDto();
group('test AllJobStatusResponseDto', () {
- // bool isThumbnailGenerationActive
- test('to test the property `isThumbnailGenerationActive`', () async {
+ // JobCounts thumbnailGenerationQueueCount
+ test('to test the property `thumbnailGenerationQueueCount`', () async {
// TODO
});
- // Object thumbnailGenerationQueueCount
- test('to test the property `thumbnailGenerationQueueCount`', () async {
+ // JobCounts metadataExtractionQueueCount
+ test('to test the property `metadataExtractionQueueCount`', () async {
// TODO
});
- // bool isMetadataExtractionActive
- test('to test the property `isMetadataExtractionActive`', () async {
+ // JobCounts videoConversionQueueCount
+ test('to test the property `videoConversionQueueCount`', () async {
// TODO
});
- // Object metadataExtractionQueueCount
- test('to test the property `metadataExtractionQueueCount`', () async {
+ // JobCounts machineLearningQueueCount
+ test('to test the property `machineLearningQueueCount`', () async {
+ // TODO
+ });
+
+ // bool isThumbnailGenerationActive
+ test('to test the property `isThumbnailGenerationActive`', () async {
+ // TODO
+ });
+
+ // bool isMetadataExtractionActive
+ test('to test the property `isMetadataExtractionActive`', () async {
// TODO
});
@@ -41,8 +51,8 @@ void main() {
// TODO
});
- // Object videoConversionQueueCount
- test('to test the property `videoConversionQueueCount`', () async {
+ // bool isMachineLearningActive
+ test('to test the property `isMachineLearningActive`', () async {
// TODO
});
diff --git a/mobile/openapi/test/asset_api_test.dart b/mobile/openapi/test/asset_api_test.dart
index b855f19ea8..08ee83448a 100644
--- a/mobile/openapi/test/asset_api_test.dart
+++ b/mobile/openapi/test/asset_api_test.dart
@@ -26,21 +26,35 @@ void main() {
// TODO
});
- //Future deleteAsset(DeleteAssetDto deleteAssetDto) async
+ //
+ //
+ // Checks if multiple assets exist on the server and returns all existing - used by background backup
+ //
+ //Future<CheckExistingAssetsResponseDto> checkExistingAssets(CheckExistingAssetsDto checkExistingAssetsDto) async
+ test('test checkExistingAssets', () async {
+ // TODO
+ });
+
+ //Future<List<DeleteAssetResponseDto>> deleteAsset(DeleteAssetDto deleteAssetDto) async
test('test deleteAsset', () async {
// TODO
});
- //Future<Object> downloadFile(String aid, String did, { bool isThumb, bool isWeb }) async
+ //Future<Object> downloadFile(String assetId, { bool isThumb, bool isWeb }) async
test('test downloadFile', () async {
// TODO
});
+ //Future<Object> downloadLibrary({ num skip }) async
+ test('test downloadLibrary', () async {
+ // TODO
+ });
+
//
//
// Get all AssetEntity belong to the user
//
- //Future<List<AssetResponseDto>> getAllAssets() async
+ //Future<List<AssetResponseDto>> getAllAssets({ String ifNoneMatch }) async
test('test getAllAssets', () async {
// TODO
});
@@ -54,12 +68,27 @@ void main() {
// TODO
});
- //Future<List<Object>> getAssetSearchTerms() async
+ //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<Object> getAssetThumbnail(String assetId) async
+ //Future<Object> getAssetThumbnail(String assetId, { ThumbnailFormat format }) async
test('test getAssetThumbnail', () async {
// TODO
});
@@ -88,11 +117,20 @@ void main() {
// TODO
});
- //Future<Object> serveFile(String aid, String did, { bool isThumb, bool isWeb }) async
+ //Future<Object> serveFile(String assetId, { bool isThumb, bool isWeb }) async
test('test serveFile', () async {
// TODO
});
+ //
+ //
+ // Update an asset
+ //
+ //Future<AssetResponseDto> updateAsset(String assetId, UpdateAssetDto updateAssetDto) async
+ test('test updateAsset', () async {
+ // TODO
+ });
+
//Future<AssetFileUploadResponseDto> uploadFile(MultipartFile assetData) async
test('test uploadFile', () async {
// TODO
diff --git a/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart b/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart
index 37e54caee1..993e679ffe 100644
--- a/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart
+++ b/mobile/openapi/test/asset_count_by_time_bucket_response_dto_test.dart
@@ -16,13 +16,13 @@ void main() {
// final instance = AssetCountByTimeBucketResponseDto();
group('test AssetCountByTimeBucketResponseDto', () {
- // String timeGroup
- test('to test the property `timeGroup`', () async {
+ // int totalCount
+ test('to test the property `totalCount`', () async {
// TODO
});
- // int count
- test('to test the property `count`', () async {
+ // List<AssetCountByTimeBucket> buckets (default value: const [])
+ test('to test the property `buckets`', () async {
// TODO
});
diff --git a/mobile/openapi/test/asset_count_by_time_group_dto_test.dart b/mobile/openapi/test/asset_count_by_time_group_dto_test.dart
deleted file mode 100644
index 3012dde35a..0000000000
--- a/mobile/openapi/test/asset_count_by_time_group_dto_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for AssetCountByTimeGroupDto
-void main() {
- // final instance = AssetCountByTimeGroupDto();
-
- group('test AssetCountByTimeGroupDto', () {
- // String timeGroup
- test('to test the property `timeGroup`', () async {
- // TODO
- });
-
- // int count
- test('to test the property `count`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/asset_count_by_time_group_response_dto_test.dart b/mobile/openapi/test/asset_count_by_time_group_response_dto_test.dart
deleted file mode 100644
index 1320fb4bbc..0000000000
--- a/mobile/openapi/test/asset_count_by_time_group_response_dto_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for AssetCountByTimeGroupResponseDto
-void main() {
- // final instance = AssetCountByTimeGroupResponseDto();
-
- group('test AssetCountByTimeGroupResponseDto', () {
- // int totalAssets
- test('to test the property `totalAssets`', () async {
- // TODO
- });
-
- // List<AssetCountByTimeGroupDto> groups (default value: const [])
- test('to test the property `groups`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart b/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart
index 7700045953..6d0b97b6ed 100644
--- a/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart
+++ b/mobile/openapi/test/asset_count_by_user_id_response_dto_test.dart
@@ -16,16 +16,31 @@ void main() {
// final instance = AssetCountByUserIdResponseDto();
group('test AssetCountByUserIdResponseDto', () {
- // int photos
+ // int audio (default value: 0)
+ test('to test the property `audio`', () async {
+ // TODO
+ });
+
+ // int photos (default value: 0)
test('to test the property `photos`', () async {
// TODO
});
- // int videos
+ // int videos (default value: 0)
test('to test the property `videos`', () async {
// TODO
});
+ // int other (default value: 0)
+ test('to test the property `other`', () async {
+ // TODO
+ });
+
+ // int total (default value: 0)
+ test('to test the property `total`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/asset_count_response_dto_test.dart b/mobile/openapi/test/asset_count_response_dto_test.dart
deleted file mode 100644
index e0ec0d9d7e..0000000000
--- a/mobile/openapi/test/asset_count_response_dto_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for AssetCountResponseDto
-void main() {
- // final instance = AssetCountResponseDto();
-
- group('test AssetCountResponseDto', () {
- // int photos
- test('to test the property `photos`', () async {
- // TODO
- });
-
- // int videos
- test('to test the property `videos`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/asset_entity_test.dart b/mobile/openapi/test/asset_entity_test.dart
deleted file mode 100644
index d34d066122..0000000000
--- a/mobile/openapi/test/asset_entity_test.dart
+++ /dev/null
@@ -1,122 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for AssetEntity
-void main() {
- // final instance = AssetEntity();
-
- group('test AssetEntity', () {
- // String id
- test('to test the property `id`', () async {
- // TODO
- });
-
- // String deviceAssetId
- test('to test the property `deviceAssetId`', () async {
- // TODO
- });
-
- // String userId
- test('to test the property `userId`', () async {
- // TODO
- });
-
- // String deviceId
- test('to test the property `deviceId`', () async {
- // TODO
- });
-
- // String type
- test('to test the property `type`', () async {
- // TODO
- });
-
- // String originalPath
- test('to test the property `originalPath`', () async {
- // TODO
- });
-
- // String resizePath
- test('to test the property `resizePath`', () async {
- // TODO
- });
-
- // String webpPath
- test('to test the property `webpPath`', () async {
- // TODO
- });
-
- // String encodedVideoPath
- test('to test the property `encodedVideoPath`', () async {
- // TODO
- });
-
- // String createdAt
- test('to test the property `createdAt`', () async {
- // TODO
- });
-
- // String modifiedAt
- test('to test the property `modifiedAt`', () async {
- // TODO
- });
-
- // bool isFavorite
- test('to test the property `isFavorite`', () async {
- // TODO
- });
-
- // String mimeType
- test('to test the property `mimeType`', () async {
- // TODO
- });
-
- // Object checksum
- test('to test the property `checksum`', () async {
- // TODO
- });
-
- // String duration
- test('to test the property `duration`', () async {
- // TODO
- });
-
- // bool isVisible
- test('to test the property `isVisible`', () async {
- // TODO
- });
-
- // String livePhotoVideoId
- test('to test the property `livePhotoVideoId`', () async {
- // TODO
- });
-
- // ExifEntity exifInfo
- test('to test the property `exifInfo`', () async {
- // TODO
- });
-
- // SmartInfoEntity smartInfo
- test('to test the property `smartInfo`', () async {
- // TODO
- });
-
- // List<TagEntity> tags (default value: const [])
- test('to test the property `tags`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/asset_response_dto_test.dart b/mobile/openapi/test/asset_response_dto_test.dart
index 95e9527bda..523fc52814 100644
--- a/mobile/openapi/test/asset_response_dto_test.dart
+++ b/mobile/openapi/test/asset_response_dto_test.dart
@@ -16,6 +16,11 @@ void main() {
// final instance = AssetResponseDto();
group('test AssetResponseDto', () {
+ // AssetTypeEnum type
+ test('to test the property `type`', () async {
+ // TODO
+ });
+
// String id
test('to test the property `id`', () async {
// TODO
@@ -36,11 +41,6 @@ void main() {
// TODO
});
- // String type
- test('to test the property `type`', () async {
- // TODO
- });
-
// String originalPath
test('to test the property `originalPath`', () async {
// TODO
@@ -96,6 +96,16 @@ void main() {
// TODO
});
+ // String livePhotoVideoId
+ test('to test the property `livePhotoVideoId`', () async {
+ // TODO
+ });
+
+ // List<TagResponseDto> tags (default value: const [])
+ test('to test the property `tags`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/authentication_api_test.dart b/mobile/openapi/test/authentication_api_test.dart
index 2ab9205f81..97fe5b87a6 100644
--- a/mobile/openapi/test/authentication_api_test.dart
+++ b/mobile/openapi/test/authentication_api_test.dart
@@ -27,7 +27,12 @@ void main() {
// TODO
});
- //Future<Object> validateAccessToken() async
+ //Future<LogoutResponseDto> logout() async
+ test('test logout', () async {
+ // TODO
+ });
+
+ //Future<ValidateAccessTokenResponseDto> validateAccessToken() async
test('test validateAccessToken', () async {
// TODO
});
diff --git a/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart b/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart
index fbe09b7761..393acc1216 100644
--- a/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart
+++ b/mobile/openapi/test/check_duplicate_asset_response_dto_test.dart
@@ -21,6 +21,11 @@ void main() {
// TODO
});
+ // String id
+ test('to test the property `id`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/config_api_test.dart b/mobile/openapi/test/config_api_test.dart
deleted file mode 100644
index ff71ce99bf..0000000000
--- a/mobile/openapi/test/config_api_test.dart
+++ /dev/null
@@ -1,31 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-
-/// tests for ConfigApi
-void main() {
- // final instance = ConfigApi();
-
- group('tests for ConfigApi', () {
- //Future<SystemConfigResponseDto> getSystemConfig() async
- test('test getSystemConfig', () async {
- // TODO
- });
-
- //Future<SystemConfigResponseDto> putSystemConfig(Object body) async
- test('test putSystemConfig', () async {
- // TODO
- });
-
- });
-}
diff --git a/mobile/openapi/test/create_device_info_dto_test.dart b/mobile/openapi/test/create_device_info_dto_test.dart
index fe250e7e7f..777faf11aa 100644
--- a/mobile/openapi/test/create_device_info_dto_test.dart
+++ b/mobile/openapi/test/create_device_info_dto_test.dart
@@ -16,13 +16,13 @@ void main() {
// final instance = CreateDeviceInfoDto();
group('test CreateDeviceInfoDto', () {
- // String deviceId
- test('to test the property `deviceId`', () async {
+ // DeviceTypeEnum deviceType
+ test('to test the property `deviceType`', () async {
// TODO
});
- // String deviceType
- test('to test the property `deviceType`', () async {
+ // String deviceId
+ test('to test the property `deviceId`', () async {
// TODO
});
diff --git a/mobile/openapi/test/create_job_dto_test.dart b/mobile/openapi/test/create_job_dto_test.dart
deleted file mode 100644
index 5ae779231e..0000000000
--- a/mobile/openapi/test/create_job_dto_test.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for CreateJobDto
-void main() {
- // final instance = CreateJobDto();
-
- group('test CreateJobDto', () {
- // JobType jobType
- test('to test the property `jobType`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/device_info_api_test.dart b/mobile/openapi/test/device_info_api_test.dart
index ce297de5da..4e8a35e351 100644
--- a/mobile/openapi/test/device_info_api_test.dart
+++ b/mobile/openapi/test/device_info_api_test.dart
@@ -22,7 +22,7 @@ void main() {
// TODO
});
- //Future<DeviceInfoResponseDto> updateDeviceInfo(Object body) async
+ //Future<DeviceInfoResponseDto> updateDeviceInfo(UpdateDeviceInfoDto updateDeviceInfoDto) async
test('test updateDeviceInfo', () async {
// TODO
});
diff --git a/mobile/openapi/test/device_info_response_dto_test.dart b/mobile/openapi/test/device_info_response_dto_test.dart
index 748f95d09d..4072e2e94e 100644
--- a/mobile/openapi/test/device_info_response_dto_test.dart
+++ b/mobile/openapi/test/device_info_response_dto_test.dart
@@ -16,11 +16,16 @@ void main() {
// final instance = DeviceInfoResponseDto();
group('test DeviceInfoResponseDto', () {
- // num id
+ // int id
test('to test the property `id`', () async {
// TODO
});
+ // DeviceTypeEnum deviceType
+ test('to test the property `deviceType`', () async {
+ // TODO
+ });
+
// String userId
test('to test the property `userId`', () async {
// TODO
@@ -31,16 +36,6 @@ void main() {
// TODO
});
- // String deviceType
- test('to test the property `deviceType`', () async {
- // TODO
- });
-
- // String notificationToken
- test('to test the property `notificationToken`', () async {
- // TODO
- });
-
// String createdAt
test('to test the property `createdAt`', () async {
// TODO
diff --git a/mobile/openapi/test/exif_entity_test.dart b/mobile/openapi/test/exif_entity_test.dart
deleted file mode 100644
index 2cc95f9665..0000000000
--- a/mobile/openapi/test/exif_entity_test.dart
+++ /dev/null
@@ -1,150 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for ExifEntity
-void main() {
- // final instance = ExifEntity();
-
- group('test ExifEntity', () {
- // String id
- test('to test the property `id`', () async {
- // TODO
- });
-
- // String assetId
- test('to test the property `assetId`', () async {
- // TODO
- });
-
- // General info
- // String description
- test('to test the property `description`', () async {
- // TODO
- });
-
- // num exifImageWidth
- test('to test the property `exifImageWidth`', () async {
- // TODO
- });
-
- // num exifImageHeight
- test('to test the property `exifImageHeight`', () async {
- // TODO
- });
-
- // num fileSizeInByte
- test('to test the property `fileSizeInByte`', () async {
- // TODO
- });
-
- // String orientation
- test('to test the property `orientation`', () async {
- // TODO
- });
-
- // DateTime dateTimeOriginal
- test('to test the property `dateTimeOriginal`', () async {
- // TODO
- });
-
- // DateTime modifyDate
- test('to test the property `modifyDate`', () async {
- // TODO
- });
-
- // num latitude
- test('to test the property `latitude`', () async {
- // TODO
- });
-
- // num longitude
- test('to test the property `longitude`', () async {
- // TODO
- });
-
- // String city
- test('to test the property `city`', () async {
- // TODO
- });
-
- // String state
- test('to test the property `state`', () async {
- // TODO
- });
-
- // String country
- test('to test the property `country`', () async {
- // TODO
- });
-
- // Image info
- // String make
- test('to test the property `make`', () async {
- // TODO
- });
-
- // String model
- test('to test the property `model`', () async {
- // TODO
- });
-
- // String imageName
- test('to test the property `imageName`', () async {
- // TODO
- });
-
- // String lensModel
- test('to test the property `lensModel`', () async {
- // TODO
- });
-
- // num fNumber
- test('to test the property `fNumber`', () async {
- // TODO
- });
-
- // num focalLength
- test('to test the property `focalLength`', () async {
- // TODO
- });
-
- // num iso
- test('to test the property `iso`', () async {
- // TODO
- });
-
- // num exposureTime
- test('to test the property `exposureTime`', () async {
- // TODO
- });
-
- // Video info
- // num fps
- test('to test the property `fps`', () async {
- // TODO
- });
-
- // AssetEntity asset
- test('to test the property `asset`', () async {
- // TODO
- });
-
- // String exifTextSearchableColumn
- test('to test the property `exifTextSearchableColumn`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/exif_response_dto_test.dart b/mobile/openapi/test/exif_response_dto_test.dart
index bf5164773d..a7ee8c52ec 100644
--- a/mobile/openapi/test/exif_response_dto_test.dart
+++ b/mobile/openapi/test/exif_response_dto_test.dart
@@ -16,11 +16,16 @@ void main() {
// final instance = ExifResponseDto();
group('test ExifResponseDto', () {
- // String id
+ // int id
test('to test the property `id`', () async {
// TODO
});
+ // int fileSizeInByte
+ test('to test the property `fileSizeInByte`', () async {
+ // TODO
+ });
+
// String make
test('to test the property `make`', () async {
// TODO
@@ -46,11 +51,6 @@ void main() {
// TODO
});
- // num fileSizeInByte
- test('to test the property `fileSizeInByte`', () async {
- // TODO
- });
-
// String orientation
test('to test the property `orientation`', () async {
// TODO
diff --git a/mobile/openapi/test/get_asset_count_by_time_group_dto_test.dart b/mobile/openapi/test/get_asset_count_by_time_group_dto_test.dart
deleted file mode 100644
index 993c7ce5c9..0000000000
--- a/mobile/openapi/test/get_asset_count_by_time_group_dto_test.dart
+++ /dev/null
@@ -1,27 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for GetAssetCountByTimeGroupDto
-void main() {
- // final instance = GetAssetCountByTimeGroupDto();
-
- group('test GetAssetCountByTimeGroupDto', () {
- // String timeGroup (default value: 'month')
- test('to test the property `timeGroup`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/job_api_test.dart b/mobile/openapi/test/job_api_test.dart
index 2b8d82393c..ece5252120 100644
--- a/mobile/openapi/test/job_api_test.dart
+++ b/mobile/openapi/test/job_api_test.dart
@@ -17,23 +17,18 @@ void main() {
// final instance = JobApi();
group('tests for JobApi', () {
- //Future<Object> create(CreateJobDto createJobDto) async
- test('test create', () async {
- // TODO
- });
-
//Future<AllJobStatusResponseDto> getAllJobsStatus() async
test('test getAllJobsStatus', () async {
// TODO
});
- //Future<JobStatusResponseDto> getJobStatus(JobType jobType) async
+ //Future<JobStatusResponseDto> getJobStatus(JobId jobId) async
test('test getJobStatus', () async {
// TODO
});
- //Future<JobStatusResponseDto> stopJob(JobType jobType) async
- test('test stopJob', () async {
+ //Future<num> sendJobCommand(JobId jobId, JobCommandDto jobCommandDto) async
+ test('test sendJobCommand', () async {
// TODO
});
diff --git a/mobile/openapi/test/job_counts_test.dart b/mobile/openapi/test/job_counts_test.dart
index 09fb4fc62f..15f1ea87c9 100644
--- a/mobile/openapi/test/job_counts_test.dart
+++ b/mobile/openapi/test/job_counts_test.dart
@@ -16,27 +16,27 @@ void main() {
// final instance = JobCounts();
group('test JobCounts', () {
- // num active
+ // int active
test('to test the property `active`', () async {
// TODO
});
- // num completed
+ // int completed
test('to test the property `completed`', () async {
// TODO
});
- // num failed
+ // int failed
test('to test the property `failed`', () async {
// TODO
});
- // num delayed
+ // int delayed
test('to test the property `delayed`', () async {
// TODO
});
- // num waiting
+ // int waiting
test('to test the property `waiting`', () async {
// TODO
});
diff --git a/mobile/openapi/test/job_type_test.dart b/mobile/openapi/test/job_type_test.dart
deleted file mode 100644
index d611a65570..0000000000
--- a/mobile/openapi/test/job_type_test.dart
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for JobType
-void main() {
-
- group('test JobType', () {
-
- });
-
-}
diff --git a/mobile/openapi/test/logout_response_dto_test.dart b/mobile/openapi/test/logout_response_dto_test.dart
index b94babef07..2d83e1613a 100644
--- a/mobile/openapi/test/logout_response_dto_test.dart
+++ b/mobile/openapi/test/logout_response_dto_test.dart
@@ -21,6 +21,11 @@ void main() {
// TODO
});
+ // String redirectUri
+ test('to test the property `redirectUri`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/o_auth_api_test.dart b/mobile/openapi/test/o_auth_api_test.dart
index 6e21faa8e2..01103d63ce 100644
--- a/mobile/openapi/test/o_auth_api_test.dart
+++ b/mobile/openapi/test/o_auth_api_test.dart
@@ -22,8 +22,8 @@ void main() {
// TODO
});
- //Future<OAuthConfigResponseDto> getConfig() async
- test('test getConfig', () async {
+ //Future<OAuthConfigResponseDto> generateConfig(OAuthConfigDto oAuthConfigDto) async
+ test('test generateConfig', () async {
// TODO
});
diff --git a/mobile/openapi/test/o_auth_config_response_dto_test.dart b/mobile/openapi/test/o_auth_config_response_dto_test.dart
index fac4d8bdd9..1bb6cbc89c 100644
--- a/mobile/openapi/test/o_auth_config_response_dto_test.dart
+++ b/mobile/openapi/test/o_auth_config_response_dto_test.dart
@@ -26,6 +26,11 @@ void main() {
// TODO
});
+ // String buttonText
+ test('to test the property `buttonText`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/server_info_api_test.dart b/mobile/openapi/test/server_info_api_test.dart
index 540f1280f0..b662587eef 100644
--- a/mobile/openapi/test/server_info_api_test.dart
+++ b/mobile/openapi/test/server_info_api_test.dart
@@ -27,6 +27,11 @@ void main() {
// TODO
});
+ //Future<ServerStatsResponseDto> getStats() async
+ test('test getStats', () async {
+ // TODO
+ });
+
//Future<ServerPingResponse> pingServer() async
test('test pingServer', () async {
// TODO
diff --git a/mobile/openapi/test/server_info_response_dto_test.dart b/mobile/openapi/test/server_info_response_dto_test.dart
index 4deaa09a9e..8ecf13fc49 100644
--- a/mobile/openapi/test/server_info_response_dto_test.dart
+++ b/mobile/openapi/test/server_info_response_dto_test.dart
@@ -16,38 +16,38 @@ void main() {
// final instance = ServerInfoResponseDto();
group('test ServerInfoResponseDto', () {
- // String diskSize
- test('to test the property `diskSize`', () async {
+ // int diskSizeRaw
+ test('to test the property `diskSizeRaw`', () async {
// TODO
});
- // String diskUse
- test('to test the property `diskUse`', () async {
+ // int diskUseRaw
+ test('to test the property `diskUseRaw`', () async {
// TODO
});
- // String diskAvailable
- test('to test the property `diskAvailable`', () async {
+ // int diskAvailableRaw
+ test('to test the property `diskAvailableRaw`', () async {
// TODO
});
- // num diskSizeRaw
- test('to test the property `diskSizeRaw`', () async {
+ // double diskUsagePercentage
+ test('to test the property `diskUsagePercentage`', () async {
// TODO
});
- // num diskUseRaw
- test('to test the property `diskUseRaw`', () async {
+ // String diskSize
+ test('to test the property `diskSize`', () async {
// TODO
});
- // num diskAvailableRaw
- test('to test the property `diskAvailableRaw`', () async {
+ // String diskUse
+ test('to test the property `diskUse`', () async {
// TODO
});
- // num diskUsagePercentage
- test('to test the property `diskUsagePercentage`', () async {
+ // String diskAvailable
+ test('to test the property `diskAvailable`', () async {
// TODO
});
diff --git a/mobile/openapi/test/server_stats_response_dto_test.dart b/mobile/openapi/test/server_stats_response_dto_test.dart
index 04443aed6c..6e9fb783ad 100644
--- a/mobile/openapi/test/server_stats_response_dto_test.dart
+++ b/mobile/openapi/test/server_stats_response_dto_test.dart
@@ -31,8 +31,18 @@ void main() {
// TODO
});
- // UsagePerUser diskUsagesByUser
- test('to test the property `diskUsagesByUser`', () async {
+ // int usageRaw
+ test('to test the property `usageRaw`', () async {
+ // TODO
+ });
+
+ // String usage
+ test('to test the property `usage`', () async {
+ // TODO
+ });
+
+ // List<UsageByUserDto> usageByUser (default value: const [])
+ test('to test the property `usageByUser`', () async {
// TODO
});
diff --git a/mobile/openapi/test/server_version_reponse_dto_test.dart b/mobile/openapi/test/server_version_reponse_dto_test.dart
index 2c71afa994..f09efec332 100644
--- a/mobile/openapi/test/server_version_reponse_dto_test.dart
+++ b/mobile/openapi/test/server_version_reponse_dto_test.dart
@@ -16,22 +16,22 @@ void main() {
// final instance = ServerVersionReponseDto();
group('test ServerVersionReponseDto', () {
- // num major
+ // int major
test('to test the property `major`', () async {
// TODO
});
- // num minor
+ // int minor
test('to test the property `minor`', () async {
// TODO
});
- // num patch_
+ // int patch_
test('to test the property `patch_`', () async {
// TODO
});
- // num build
+ // int build
test('to test the property `build`', () async {
// TODO
});
diff --git a/mobile/openapi/test/smart_info_entity_test.dart b/mobile/openapi/test/smart_info_entity_test.dart
deleted file mode 100644
index ca4ce46c5f..0000000000
--- a/mobile/openapi/test/smart_info_entity_test.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for SmartInfoEntity
-void main() {
- // final instance = SmartInfoEntity();
-
- group('test SmartInfoEntity', () {
- // String id
- test('to test the property `id`', () async {
- // TODO
- });
-
- // String assetId
- test('to test the property `assetId`', () async {
- // TODO
- });
-
- // List<String> tags (default value: const [])
- test('to test the property `tags`', () async {
- // TODO
- });
-
- // List<String> objects (default value: const [])
- test('to test the property `objects`', () async {
- // TODO
- });
-
- // AssetEntity asset
- test('to test the property `asset`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/system_config_entity_test.dart b/mobile/openapi/test/system_config_entity_test.dart
deleted file mode 100644
index c0c79c4e63..0000000000
--- a/mobile/openapi/test/system_config_entity_test.dart
+++ /dev/null
@@ -1,32 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for SystemConfigEntity
-void main() {
- // final instance = SystemConfigEntity();
-
- group('test SystemConfigEntity', () {
- // String key
- test('to test the property `key`', () async {
- // TODO
- });
-
- // Object value
- test('to test the property `value`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/system_config_response_dto_test.dart b/mobile/openapi/test/system_config_response_dto_test.dart
index 9a9d90e3ac..e9f39ea7ea 100644
--- a/mobile/openapi/test/system_config_response_dto_test.dart
+++ b/mobile/openapi/test/system_config_response_dto_test.dart
@@ -16,7 +16,7 @@ void main() {
// final instance = SystemConfigResponseDto();
group('test SystemConfigResponseDto', () {
- // Object config
+ // List<SystemConfigResponseItem> config (default value: const [])
test('to test the property `config`', () async {
// TODO
});
diff --git a/mobile/openapi/test/system_config_response_item_test.dart b/mobile/openapi/test/system_config_response_item_test.dart
index 9b5087d98a..1fa5fd3d6b 100644
--- a/mobile/openapi/test/system_config_response_item_test.dart
+++ b/mobile/openapi/test/system_config_response_item_test.dart
@@ -21,16 +21,21 @@ void main() {
// TODO
});
- // String key
+ // SystemConfigKey key
test('to test the property `key`', () async {
// TODO
});
- // Object value
+ // String value
test('to test the property `value`', () async {
// TODO
});
+ // String defaultValue
+ test('to test the property `defaultValue`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/tag_api_test.dart b/mobile/openapi/test/tag_api_test.dart
index 6554281d54..a504aedfae 100644
--- a/mobile/openapi/test/tag_api_test.dart
+++ b/mobile/openapi/test/tag_api_test.dart
@@ -17,27 +17,27 @@ void main() {
// final instance = TagApi();
group('tests for TagApi', () {
- //Future<TagEntity> create(CreateTagDto createTagDto) async
+ //Future<TagResponseDto> create(CreateTagDto createTagDto) async
test('test create', () async {
// TODO
});
- //Future<List<TagEntity>> findAll() async
- test('test findAll', () async {
+ //Future delete(String id) async
+ test('test delete', () async {
// TODO
});
- //Future<Object> findOne(String id) async
- test('test findOne', () async {
+ //Future<List<TagResponseDto>> findAll() async
+ test('test findAll', () async {
// TODO
});
- //Future<String> remove(String id) async
- test('test remove', () async {
+ //Future<TagResponseDto> findOne(String id) async
+ test('test findOne', () async {
// TODO
});
- //Future<String> update(String id, UpdateTagDto updateTagDto) async
+ //Future<TagResponseDto> update(String id, UpdateTagDto updateTagDto) async
test('test update', () async {
// TODO
});
diff --git a/mobile/openapi/test/tag_entity_test.dart b/mobile/openapi/test/tag_entity_test.dart
deleted file mode 100644
index f19564b38d..0000000000
--- a/mobile/openapi/test/tag_entity_test.dart
+++ /dev/null
@@ -1,52 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for TagEntity
-void main() {
- // final instance = TagEntity();
-
- group('test TagEntity', () {
- // String id
- test('to test the property `id`', () async {
- // TODO
- });
-
- // String type
- test('to test the property `type`', () async {
- // TODO
- });
-
- // String name
- test('to test the property `name`', () async {
- // TODO
- });
-
- // String renameTagId
- test('to test the property `renameTagId`', () async {
- // TODO
- });
-
- // List<AssetEntity> assets (default value: const [])
- test('to test the property `assets`', () async {
- // TODO
- });
-
- // UserEntity user
- test('to test the property `user`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/tag_response_dto_test.dart b/mobile/openapi/test/tag_response_dto_test.dart
index 44ed368fbb..41b581efbd 100644
--- a/mobile/openapi/test/tag_response_dto_test.dart
+++ b/mobile/openapi/test/tag_response_dto_test.dart
@@ -31,6 +31,16 @@ void main() {
// TODO
});
+ // String userId
+ test('to test the property `userId`', () async {
+ // TODO
+ });
+
+ // String renameTagId
+ test('to test the property `renameTagId`', () async {
+ // TODO
+ });
+
});
diff --git a/mobile/openapi/test/time_bucket_enum_test.dart b/mobile/openapi/test/time_bucket_enum_test.dart
deleted file mode 100644
index fab047d8c2..0000000000
--- a/mobile/openapi/test/time_bucket_enum_test.dart
+++ /dev/null
@@ -1,21 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for TimeBucketEnum
-void main() {
-
- group('test TimeBucketEnum', () {
-
- });
-
-}
diff --git a/mobile/openapi/test/update_album_dto_test.dart b/mobile/openapi/test/update_album_dto_test.dart
index a03c126564..8ac32dc594 100644
--- a/mobile/openapi/test/update_album_dto_test.dart
+++ b/mobile/openapi/test/update_album_dto_test.dart
@@ -21,8 +21,8 @@ void main() {
// TODO
});
- // String ownerId
- test('to test the property `ownerId`', () async {
+ // String albumThumbnailAssetId
+ test('to test the property `albumThumbnailAssetId`', () async {
// TODO
});
diff --git a/mobile/openapi/test/update_asset_dto_test.dart b/mobile/openapi/test/update_asset_dto_test.dart
index 8c4400f09b..16f51f44b6 100644
--- a/mobile/openapi/test/update_asset_dto_test.dart
+++ b/mobile/openapi/test/update_asset_dto_test.dart
@@ -16,6 +16,11 @@ void main() {
// final instance = UpdateAssetDto();
group('test UpdateAssetDto', () {
+ // List<String> tagIds (default value: const [])
+ test('to test the property `tagIds`', () async {
+ // TODO
+ });
+
// bool isFavorite
test('to test the property `isFavorite`', () async {
// TODO
diff --git a/mobile/openapi/test/update_device_info_dto_test.dart b/mobile/openapi/test/update_device_info_dto_test.dart
index 32bb953512..46aefee1b8 100644
--- a/mobile/openapi/test/update_device_info_dto_test.dart
+++ b/mobile/openapi/test/update_device_info_dto_test.dart
@@ -16,13 +16,13 @@ void main() {
// final instance = UpdateDeviceInfoDto();
group('test UpdateDeviceInfoDto', () {
- // String deviceId
- test('to test the property `deviceId`', () async {
+ // DeviceTypeEnum deviceType
+ test('to test the property `deviceType`', () async {
// TODO
});
- // String deviceType
- test('to test the property `deviceType`', () async {
+ // String deviceId
+ test('to test the property `deviceId`', () async {
// TODO
});
diff --git a/mobile/openapi/test/usage_by_user_dto_test.dart b/mobile/openapi/test/usage_by_user_dto_test.dart
index 52a3ddfc3c..68efc27332 100644
--- a/mobile/openapi/test/usage_by_user_dto_test.dart
+++ b/mobile/openapi/test/usage_by_user_dto_test.dart
@@ -16,23 +16,28 @@ void main() {
// final instance = UsageByUserDto();
group('test UsageByUserDto', () {
- // int usageRaw
- test('to test the property `usageRaw`', () async {
+ // String userId
+ test('to test the property `userId`', () async {
// TODO
});
- // num objects
- test('to test the property `objects`', () async {
+ // int videos
+ test('to test the property `videos`', () async {
// TODO
});
- // num videos
- test('to test the property `videos`', () async {
+ // int photos
+ test('to test the property `photos`', () async {
+ // TODO
+ });
+
+ // int usageRaw
+ test('to test the property `usageRaw`', () async {
// TODO
});
- // num images
- test('to test the property `images`', () async {
+ // String usage
+ test('to test the property `usage`', () async {
// TODO
});
diff --git a/mobile/openapi/test/user_api_test.dart b/mobile/openapi/test/user_api_test.dart
index 0d93508eeb..6e94afed4a 100644
--- a/mobile/openapi/test/user_api_test.dart
+++ b/mobile/openapi/test/user_api_test.dart
@@ -27,6 +27,11 @@ void main() {
// TODO
});
+ //Future<UserResponseDto> deleteUser(String userId) async
+ test('test deleteUser', () async {
+ // TODO
+ });
+
//Future<List<UserResponseDto>> getAllUsers(bool isAll) async
test('test getAllUsers', () async {
// TODO
@@ -42,11 +47,21 @@ void main() {
// TODO
});
+ //Future<UserResponseDto> getUserById(String userId) async
+ test('test getUserById', () async {
+ // TODO
+ });
+
//Future<UserCountResponseDto> getUserCount() 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
diff --git a/mobile/openapi/test/user_count_response_dto_test.dart b/mobile/openapi/test/user_count_response_dto_test.dart
index 1f99d9511e..5c46cd3598 100644
--- a/mobile/openapi/test/user_count_response_dto_test.dart
+++ b/mobile/openapi/test/user_count_response_dto_test.dart
@@ -16,7 +16,7 @@ void main() {
// final instance = UserCountResponseDto();
group('test UserCountResponseDto', () {
- // num userCount
+ // int userCount
test('to test the property `userCount`', () async {
// TODO
});
diff --git a/mobile/openapi/test/user_entity_test.dart b/mobile/openapi/test/user_entity_test.dart
deleted file mode 100644
index de2efd6e00..0000000000
--- a/mobile/openapi/test/user_entity_test.dart
+++ /dev/null
@@ -1,82 +0,0 @@
-//
-// AUTO-GENERATED FILE, DO NOT MODIFY!
-//
-// @dart=2.12
-
-// ignore_for_file: unused_element, unused_import
-// ignore_for_file: always_put_required_named_parameters_first
-// ignore_for_file: constant_identifier_names
-// ignore_for_file: lines_longer_than_80_chars
-
-import 'package:openapi/api.dart';
-import 'package:test/test.dart';
-
-// tests for UserEntity
-void main() {
- // final instance = UserEntity();
-
- group('test UserEntity', () {
- // String id
- test('to test the property `id`', () async {
- // TODO
- });
-
- // String firstName
- test('to test the property `firstName`', () async {
- // TODO
- });
-
- // String lastName
- test('to test the property `lastName`', () async {
- // TODO
- });
-
- // bool isAdmin
- test('to test the property `isAdmin`', () async {
- // TODO
- });
-
- // String email
- test('to test the property `email`', () async {
- // TODO
- });
-
- // String password
- test('to test the property `password`', () async {
- // TODO
- });
-
- // String salt
- test('to test the property `salt`', () async {
- // TODO
- });
-
- // String profileImagePath
- test('to test the property `profileImagePath`', () async {
- // TODO
- });
-
- // bool shouldChangePassword
- test('to test the property `shouldChangePassword`', () async {
- // TODO
- });
-
- // String createdAt
- test('to test the property `createdAt`', () async {
- // TODO
- });
-
- // DateTime deletedAt
- test('to test the property `deletedAt`', () async {
- // TODO
- });
-
- // List<TagEntity> tags (default value: const [])
- test('to test the property `tags`', () async {
- // TODO
- });
-
-
- });
-
-}
diff --git a/mobile/openapi/test/user_response_dto_test.dart b/mobile/openapi/test/user_response_dto_test.dart
index 861010fac6..9b9ef3253b 100644
--- a/mobile/openapi/test/user_response_dto_test.dart
+++ b/mobile/openapi/test/user_response_dto_test.dart
@@ -56,6 +56,11 @@ void main() {
// TODO
});
+ // DateTime deletedAt
+ test('to test the property `deletedAt`', () async {
+ // TODO
+ });
+
});
diff --git a/server/package.json b/server/package.json
index 166c75a699..d137cffc5f 100644
--- a/server/package.json
+++ b/server/package.json
@@ -28,7 +28,7 @@
"test:e2e": "jest --config ./apps/immich/test/jest-e2e.json",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"api:typescript": "rm -rf ../web/src/api/open-api && npx openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ../web/src/api/open-api",
- "api:dart": "npx openapi-generator-cli generate -g dart -i ./immich-openapi-specs.json -o ../mobile/openapi",
+ "api:dart": "rm -rf ../mobile/openapi && npx openapi-generator-cli generate -g dart -i ./immich-openapi-specs.json -o ../mobile/openapi",
"api:generate": "npm run api:typescript && npm run api:dart"
},
"dependencies": {