Skip to content

High performance self-hosted photo and video management solution.

fix(server): pin openapi genreator patch and regenerate api (#3573)

Alex13df619ba96b
diff --git a/mobile/openapi/doc/PeopleResponseDto.md b/mobile/openapi/doc/PeopleResponseDto.md
index 8e02531c78..1b986955c1 100644
--- a/mobile/openapi/doc/PeopleResponseDto.md
+++ b/mobile/openapi/doc/PeopleResponseDto.md
@@ -9,8 +9,8 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**people** | [**List<PersonResponseDto>**](PersonResponseDto.md) | | [default to const []]
-**total** | **num** | |
-**visible** | **num** | |
+**total** | **int** | |
+**visible** | **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/lib/model/add_users_dto.dart b/mobile/openapi/lib/model/add_users_dto.dart
index 9ce47afc6a..f680bc995d 100644
--- a/mobile/openapi/lib/model/add_users_dto.dart
+++ b/mobile/openapi/lib/model/add_users_dto.dart
@@ -20,7 +20,7 @@ class AddUsersDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AddUsersDto &&
- _deepEquality.equals(other.sharedUserIds, sharedUserIds);
+ other.sharedUserIds == sharedUserIds;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class AddUsersDto {
final json = value.cast<String, dynamic>();
return AddUsersDto(
- sharedUserIds: json[r'sharedUserIds'] is Iterable
- ? (json[r'sharedUserIds'] as Iterable).cast<String>().toList(growable: false)
+ sharedUserIds: json[r'sharedUserIds'] is List
+ ? (json[r'sharedUserIds'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/admin_signup_response_dto.dart b/mobile/openapi/lib/model/admin_signup_response_dto.dart
index c6f0814f80..5e6764f232 100644
--- a/mobile/openapi/lib/model/admin_signup_response_dto.dart
+++ b/mobile/openapi/lib/model/admin_signup_response_dto.dart
@@ -32,11 +32,11 @@ class AdminSignupResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AdminSignupResponseDto &&
- other.createdAt == createdAt &&
- other.email == email &&
- other.firstName == firstName &&
- other.id == id &&
- other.lastName == lastName;
+ other.createdAt == createdAt &&
+ other.email == email &&
+ other.firstName == firstName &&
+ other.id == id &&
+ other.lastName == lastName;
@override
int get hashCode =>
@@ -68,7 +68,7 @@ class AdminSignupResponseDto {
final json = value.cast<String, dynamic>();
return AdminSignupResponseDto(
- createdAt: mapDateTime(json, r'createdAt', r'')!,
+ createdAt: mapDateTime(json, r'createdAt', '')!,
email: mapValueOfType<String>(json, r'email')!,
firstName: mapValueOfType<String>(json, r'firstName')!,
id: mapValueOfType<String>(json, r'id')!,
diff --git a/mobile/openapi/lib/model/album_count_response_dto.dart b/mobile/openapi/lib/model/album_count_response_dto.dart
index 62121c1f35..7227cbf55a 100644
--- a/mobile/openapi/lib/model/album_count_response_dto.dart
+++ b/mobile/openapi/lib/model/album_count_response_dto.dart
@@ -26,9 +26,9 @@ class AlbumCountResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto &&
- other.notShared == notShared &&
- other.owned == owned &&
- other.shared == shared;
+ other.notShared == notShared &&
+ other.owned == owned &&
+ other.shared == shared;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/album_response_dto.dart b/mobile/openapi/lib/model/album_response_dto.dart
index 99dfb0a013..12b5d37795 100644
--- a/mobile/openapi/lib/model/album_response_dto.dart
+++ b/mobile/openapi/lib/model/album_response_dto.dart
@@ -62,19 +62,19 @@ class AlbumResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto &&
- other.albumName == albumName &&
- other.albumThumbnailAssetId == albumThumbnailAssetId &&
- other.assetCount == assetCount &&
- _deepEquality.equals(other.assets, assets) &&
- other.createdAt == createdAt &&
- other.description == description &&
- other.id == id &&
- other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
- other.owner == owner &&
- other.ownerId == ownerId &&
- other.shared == shared &&
- _deepEquality.equals(other.sharedUsers, sharedUsers) &&
- other.updatedAt == updatedAt;
+ other.albumName == albumName &&
+ other.albumThumbnailAssetId == albumThumbnailAssetId &&
+ other.assetCount == assetCount &&
+ other.assets == assets &&
+ other.createdAt == createdAt &&
+ other.description == description &&
+ other.id == id &&
+ other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
+ other.owner == owner &&
+ other.ownerId == ownerId &&
+ other.shared == shared &&
+ other.sharedUsers == sharedUsers &&
+ other.updatedAt == updatedAt;
@override
int get hashCode =>
@@ -134,15 +134,15 @@ class AlbumResponseDto {
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
assetCount: mapValueOfType<int>(json, r'assetCount')!,
assets: AssetResponseDto.listFromJson(json[r'assets']),
- createdAt: mapDateTime(json, r'createdAt', r'')!,
+ createdAt: mapDateTime(json, r'createdAt', '')!,
description: mapValueOfType<String>(json, r'description')!,
id: mapValueOfType<String>(json, r'id')!,
- lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''),
+ lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', ''),
owner: UserResponseDto.fromJson(json[r'owner'])!,
ownerId: mapValueOfType<String>(json, r'ownerId')!,
shared: mapValueOfType<bool>(json, r'shared')!,
sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']),
- updatedAt: mapDateTime(json, r'updatedAt', r'')!,
+ updatedAt: mapDateTime(json, r'updatedAt', '')!,
);
}
return null;
diff --git a/mobile/openapi/lib/model/all_job_status_response_dto.dart b/mobile/openapi/lib/model/all_job_status_response_dto.dart
index 7bf2879488..17c443abef 100644
--- a/mobile/openapi/lib/model/all_job_status_response_dto.dart
+++ b/mobile/openapi/lib/model/all_job_status_response_dto.dart
@@ -47,16 +47,16 @@ class AllJobStatusResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
- other.backgroundTask == backgroundTask &&
- other.clipEncoding == clipEncoding &&
- other.metadataExtraction == metadataExtraction &&
- other.objectTagging == objectTagging &&
- other.recognizeFaces == recognizeFaces &&
- other.search == search &&
- other.sidecar == sidecar &&
- other.storageTemplateMigration == storageTemplateMigration &&
- other.thumbnailGeneration == thumbnailGeneration &&
- other.videoConversion == videoConversion;
+ other.backgroundTask == backgroundTask &&
+ other.clipEncoding == clipEncoding &&
+ other.metadataExtraction == metadataExtraction &&
+ other.objectTagging == objectTagging &&
+ other.recognizeFaces == recognizeFaces &&
+ other.search == search &&
+ other.sidecar == sidecar &&
+ other.storageTemplateMigration == storageTemplateMigration &&
+ other.thumbnailGeneration == thumbnailGeneration &&
+ other.videoConversion == videoConversion;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/api_key_create_dto.dart b/mobile/openapi/lib/model/api_key_create_dto.dart
index 91cf836b50..c8eec9bfc7 100644
--- a/mobile/openapi/lib/model/api_key_create_dto.dart
+++ b/mobile/openapi/lib/model/api_key_create_dto.dart
@@ -26,7 +26,7 @@ class APIKeyCreateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto &&
- other.name == name;
+ other.name == name;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/api_key_create_response_dto.dart b/mobile/openapi/lib/model/api_key_create_response_dto.dart
index d117d7a5e4..dae46f9b9e 100644
--- a/mobile/openapi/lib/model/api_key_create_response_dto.dart
+++ b/mobile/openapi/lib/model/api_key_create_response_dto.dart
@@ -23,8 +23,8 @@ class APIKeyCreateResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto &&
- other.apiKey == apiKey &&
- other.secret == secret;
+ other.apiKey == apiKey &&
+ other.secret == secret;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/api_key_response_dto.dart b/mobile/openapi/lib/model/api_key_response_dto.dart
index 157bb83e7e..dbf30fb990 100644
--- a/mobile/openapi/lib/model/api_key_response_dto.dart
+++ b/mobile/openapi/lib/model/api_key_response_dto.dart
@@ -29,10 +29,10 @@ class APIKeyResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto &&
- other.createdAt == createdAt &&
- other.id == id &&
- other.name == name &&
- other.updatedAt == updatedAt;
+ other.createdAt == createdAt &&
+ other.id == id &&
+ other.name == name &&
+ other.updatedAt == updatedAt;
@override
int get hashCode =>
@@ -62,10 +62,10 @@ class APIKeyResponseDto {
final json = value.cast<String, dynamic>();
return APIKeyResponseDto(
- createdAt: mapDateTime(json, r'createdAt', r'')!,
+ createdAt: mapDateTime(json, r'createdAt', '')!,
id: mapValueOfType<String>(json, r'id')!,
name: mapValueOfType<String>(json, r'name')!,
- updatedAt: mapDateTime(json, r'updatedAt', r'')!,
+ updatedAt: mapDateTime(json, r'updatedAt', '')!,
);
}
return null;
diff --git a/mobile/openapi/lib/model/api_key_update_dto.dart b/mobile/openapi/lib/model/api_key_update_dto.dart
index c7002482da..c28cafaee4 100644
--- a/mobile/openapi/lib/model/api_key_update_dto.dart
+++ b/mobile/openapi/lib/model/api_key_update_dto.dart
@@ -20,7 +20,7 @@ class APIKeyUpdateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is APIKeyUpdateDto &&
- other.name == name;
+ other.name == name;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart
index 9a88201a3f..fc80d4537b 100644
--- a/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart
+++ b/mobile/openapi/lib/model/asset_bulk_upload_check_dto.dart
@@ -20,7 +20,7 @@ class AssetBulkUploadCheckDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto &&
- _deepEquality.equals(other.assets, assets);
+ other.assets == assets;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart
index 0d20bd8b3a..304944122f 100644
--- a/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart
+++ b/mobile/openapi/lib/model/asset_bulk_upload_check_item.dart
@@ -24,8 +24,8 @@ class AssetBulkUploadCheckItem {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem &&
- other.checksum == checksum &&
- other.id == id;
+ other.checksum == checksum &&
+ other.id == id;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart
index 2c4f821a7b..f77c3686a3 100644
--- a/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart
+++ b/mobile/openapi/lib/model/asset_bulk_upload_check_response_dto.dart
@@ -20,7 +20,7 @@ class AssetBulkUploadCheckResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto &&
- _deepEquality.equals(other.results, results);
+ other.results == results;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart b/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart
index adde2f60ec..4c9bde6dbc 100644
--- a/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart
+++ b/mobile/openapi/lib/model/asset_bulk_upload_check_result.dart
@@ -35,10 +35,10 @@ class AssetBulkUploadCheckResult {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult &&
- other.action == action &&
- other.assetId == assetId &&
- other.id == id &&
- other.reason == reason;
+ other.action == action &&
+ other.assetId == assetId &&
+ other.id == id &&
+ other.reason == reason;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_file_upload_response_dto.dart b/mobile/openapi/lib/model/asset_file_upload_response_dto.dart
index f75ec6addc..ce43f8c15f 100644
--- a/mobile/openapi/lib/model/asset_file_upload_response_dto.dart
+++ b/mobile/openapi/lib/model/asset_file_upload_response_dto.dart
@@ -23,8 +23,8 @@ class AssetFileUploadResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto &&
- other.duplicate == duplicate &&
- other.id == id;
+ other.duplicate == duplicate &&
+ other.id == id;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_ids_dto.dart b/mobile/openapi/lib/model/asset_ids_dto.dart
index 1b4fceeaa8..68511fe4b1 100644
--- a/mobile/openapi/lib/model/asset_ids_dto.dart
+++ b/mobile/openapi/lib/model/asset_ids_dto.dart
@@ -20,7 +20,7 @@ class AssetIdsDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto &&
- _deepEquality.equals(other.assetIds, assetIds);
+ other.assetIds == assetIds;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class AssetIdsDto {
final json = value.cast<String, dynamic>();
return AssetIdsDto(
- assetIds: json[r'assetIds'] is Iterable
- ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
+ assetIds: json[r'assetIds'] is List
+ ? (json[r'assetIds'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/asset_ids_response_dto.dart b/mobile/openapi/lib/model/asset_ids_response_dto.dart
index 44845f9585..958c1bb9be 100644
--- a/mobile/openapi/lib/model/asset_ids_response_dto.dart
+++ b/mobile/openapi/lib/model/asset_ids_response_dto.dart
@@ -26,9 +26,9 @@ class AssetIdsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto &&
- other.assetId == assetId &&
- other.error == error &&
- other.success == success;
+ other.assetId == assetId &&
+ other.error == error &&
+ other.success == success;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/asset_response_dto.dart b/mobile/openapi/lib/model/asset_response_dto.dart
index 80c4e49a0c..02bb376cc2 100644
--- a/mobile/openapi/lib/model/asset_response_dto.dart
+++ b/mobile/openapi/lib/model/asset_response_dto.dart
@@ -94,27 +94,27 @@ class AssetResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto &&
- other.checksum == checksum &&
- other.deviceAssetId == deviceAssetId &&
- other.deviceId == deviceId &&
- other.duration == duration &&
- other.exifInfo == exifInfo &&
- other.fileCreatedAt == fileCreatedAt &&
- other.fileModifiedAt == fileModifiedAt &&
- other.id == id &&
- other.isArchived == isArchived &&
- other.isFavorite == isFavorite &&
- other.livePhotoVideoId == livePhotoVideoId &&
- other.originalFileName == originalFileName &&
- other.originalPath == originalPath &&
- other.ownerId == ownerId &&
- _deepEquality.equals(other.people, people) &&
- other.resized == resized &&
- other.smartInfo == smartInfo &&
- _deepEquality.equals(other.tags, tags) &&
- other.thumbhash == thumbhash &&
- other.type == type &&
- other.updatedAt == updatedAt;
+ other.checksum == checksum &&
+ other.deviceAssetId == deviceAssetId &&
+ other.deviceId == deviceId &&
+ other.duration == duration &&
+ other.exifInfo == exifInfo &&
+ other.fileCreatedAt == fileCreatedAt &&
+ other.fileModifiedAt == fileModifiedAt &&
+ other.id == id &&
+ other.isArchived == isArchived &&
+ other.isFavorite == isFavorite &&
+ other.livePhotoVideoId == livePhotoVideoId &&
+ other.originalFileName == originalFileName &&
+ other.originalPath == originalPath &&
+ other.ownerId == ownerId &&
+ other.people == people &&
+ other.resized == resized &&
+ other.smartInfo == smartInfo &&
+ other.tags == tags &&
+ other.thumbhash == thumbhash &&
+ other.type == type &&
+ other.updatedAt == updatedAt;
@override
int get hashCode =>
@@ -199,8 +199,8 @@ class AssetResponseDto {
deviceId: mapValueOfType<String>(json, r'deviceId')!,
duration: mapValueOfType<String>(json, r'duration')!,
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
- fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
- fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!,
+ fileCreatedAt: mapDateTime(json, r'fileCreatedAt', '')!,
+ fileModifiedAt: mapDateTime(json, r'fileModifiedAt', '')!,
id: mapValueOfType<String>(json, r'id')!,
isArchived: mapValueOfType<bool>(json, r'isArchived')!,
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
@@ -214,7 +214,7 @@ class AssetResponseDto {
tags: TagResponseDto.listFromJson(json[r'tags']),
thumbhash: mapValueOfType<String>(json, r'thumbhash'),
type: AssetTypeEnum.fromJson(json[r'type'])!,
- updatedAt: mapDateTime(json, r'updatedAt', r'')!,
+ updatedAt: mapDateTime(json, r'updatedAt', '')!,
);
}
return null;
diff --git a/mobile/openapi/lib/model/asset_stats_response_dto.dart b/mobile/openapi/lib/model/asset_stats_response_dto.dart
index d3c5f71ff7..d910917745 100644
--- a/mobile/openapi/lib/model/asset_stats_response_dto.dart
+++ b/mobile/openapi/lib/model/asset_stats_response_dto.dart
@@ -26,9 +26,9 @@ class AssetStatsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto &&
- other.images == images &&
- other.total == total &&
- other.videos == videos;
+ other.images == images &&
+ other.total == total &&
+ other.videos == videos;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/auth_device_response_dto.dart b/mobile/openapi/lib/model/auth_device_response_dto.dart
index f1425a221f..655193f49c 100644
--- a/mobile/openapi/lib/model/auth_device_response_dto.dart
+++ b/mobile/openapi/lib/model/auth_device_response_dto.dart
@@ -35,12 +35,12 @@ class AuthDeviceResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto &&
- other.createdAt == createdAt &&
- other.current == current &&
- other.deviceOS == deviceOS &&
- other.deviceType == deviceType &&
- other.id == id &&
- other.updatedAt == updatedAt;
+ other.createdAt == createdAt &&
+ other.current == current &&
+ other.deviceOS == deviceOS &&
+ other.deviceType == deviceType &&
+ other.id == id &&
+ other.updatedAt == updatedAt;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/bulk_id_response_dto.dart b/mobile/openapi/lib/model/bulk_id_response_dto.dart
index 70efd42518..2d23373589 100644
--- a/mobile/openapi/lib/model/bulk_id_response_dto.dart
+++ b/mobile/openapi/lib/model/bulk_id_response_dto.dart
@@ -26,9 +26,9 @@ class BulkIdResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is BulkIdResponseDto &&
- other.error == error &&
- other.id == id &&
- other.success == success;
+ other.error == error &&
+ other.id == id &&
+ other.success == success;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/bulk_ids_dto.dart b/mobile/openapi/lib/model/bulk_ids_dto.dart
index ba2076844d..54a32a8ba8 100644
--- a/mobile/openapi/lib/model/bulk_ids_dto.dart
+++ b/mobile/openapi/lib/model/bulk_ids_dto.dart
@@ -20,7 +20,7 @@ class BulkIdsDto {
@override
bool operator ==(Object other) => identical(this, other) || other is BulkIdsDto &&
- _deepEquality.equals(other.ids, ids);
+ other.ids == ids;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class BulkIdsDto {
final json = value.cast<String, dynamic>();
return BulkIdsDto(
- ids: json[r'ids'] is Iterable
- ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
+ ids: json[r'ids'] is List
+ ? (json[r'ids'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/change_password_dto.dart b/mobile/openapi/lib/model/change_password_dto.dart
index 3008f5b1c5..5147c922a0 100644
--- a/mobile/openapi/lib/model/change_password_dto.dart
+++ b/mobile/openapi/lib/model/change_password_dto.dart
@@ -23,8 +23,8 @@ class ChangePasswordDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto &&
- other.newPassword == newPassword &&
- other.password == password;
+ other.newPassword == newPassword &&
+ other.password == password;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/check_duplicate_asset_dto.dart b/mobile/openapi/lib/model/check_duplicate_asset_dto.dart
index 2e7754e8ad..3d2a3cd57a 100644
--- a/mobile/openapi/lib/model/check_duplicate_asset_dto.dart
+++ b/mobile/openapi/lib/model/check_duplicate_asset_dto.dart
@@ -23,8 +23,8 @@ class CheckDuplicateAssetDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetDto &&
- other.deviceAssetId == deviceAssetId &&
- other.deviceId == deviceId;
+ other.deviceAssetId == deviceAssetId &&
+ other.deviceId == deviceId;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart b/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart
index 1419e059a4..f16ba2e9e5 100644
--- a/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart
+++ b/mobile/openapi/lib/model/check_duplicate_asset_response_dto.dart
@@ -29,8 +29,8 @@ class CheckDuplicateAssetResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetResponseDto &&
- other.id == id &&
- other.isExist == isExist;
+ other.id == id &&
+ other.isExist == isExist;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/check_existing_assets_dto.dart b/mobile/openapi/lib/model/check_existing_assets_dto.dart
index cf3e4c2eae..256a5a1e17 100644
--- a/mobile/openapi/lib/model/check_existing_assets_dto.dart
+++ b/mobile/openapi/lib/model/check_existing_assets_dto.dart
@@ -23,8 +23,8 @@ class CheckExistingAssetsDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto &&
- _deepEquality.equals(other.deviceAssetIds, deviceAssetIds) &&
- other.deviceId == deviceId;
+ other.deviceAssetIds == deviceAssetIds &&
+ other.deviceId == deviceId;
@override
int get hashCode =>
@@ -50,8 +50,8 @@ class CheckExistingAssetsDto {
final json = value.cast<String, dynamic>();
return CheckExistingAssetsDto(
- deviceAssetIds: json[r'deviceAssetIds'] is Iterable
- ? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false)
+ deviceAssetIds: json[r'deviceAssetIds'] is List
+ ? (json[r'deviceAssetIds'] as List).cast<String>()
: const [],
deviceId: mapValueOfType<String>(json, r'deviceId')!,
);
diff --git a/mobile/openapi/lib/model/check_existing_assets_response_dto.dart b/mobile/openapi/lib/model/check_existing_assets_response_dto.dart
index db91cf1f0f..c8992c6224 100644
--- a/mobile/openapi/lib/model/check_existing_assets_response_dto.dart
+++ b/mobile/openapi/lib/model/check_existing_assets_response_dto.dart
@@ -20,7 +20,7 @@ class CheckExistingAssetsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto &&
- _deepEquality.equals(other.existingIds, existingIds);
+ other.existingIds == existingIds;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class CheckExistingAssetsResponseDto {
final json = value.cast<String, dynamic>();
return CheckExistingAssetsResponseDto(
- existingIds: json[r'existingIds'] is Iterable
- ? (json[r'existingIds'] as Iterable).cast<String>().toList(growable: false)
+ existingIds: json[r'existingIds'] is List
+ ? (json[r'existingIds'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/create_album_dto.dart b/mobile/openapi/lib/model/create_album_dto.dart
index 7b527eb7bc..437ec5c55f 100644
--- a/mobile/openapi/lib/model/create_album_dto.dart
+++ b/mobile/openapi/lib/model/create_album_dto.dart
@@ -35,10 +35,10 @@ class CreateAlbumDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto &&
- other.albumName == albumName &&
- _deepEquality.equals(other.assetIds, assetIds) &&
- other.description == description &&
- _deepEquality.equals(other.sharedWithUserIds, sharedWithUserIds);
+ other.albumName == albumName &&
+ other.assetIds == assetIds &&
+ other.description == description &&
+ other.sharedWithUserIds == sharedWithUserIds;
@override
int get hashCode =>
@@ -73,12 +73,12 @@ class CreateAlbumDto {
return CreateAlbumDto(
albumName: mapValueOfType<String>(json, r'albumName')!,
- assetIds: json[r'assetIds'] is Iterable
- ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
+ assetIds: json[r'assetIds'] is List
+ ? (json[r'assetIds'] as List).cast<String>()
: const [],
description: mapValueOfType<String>(json, r'description'),
- sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable
- ? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false)
+ sharedWithUserIds: json[r'sharedWithUserIds'] is List
+ ? (json[r'sharedWithUserIds'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/create_profile_image_response_dto.dart b/mobile/openapi/lib/model/create_profile_image_response_dto.dart
index 9e628efa8a..d5de750154 100644
--- a/mobile/openapi/lib/model/create_profile_image_response_dto.dart
+++ b/mobile/openapi/lib/model/create_profile_image_response_dto.dart
@@ -23,8 +23,8 @@ class CreateProfileImageResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto &&
- other.profileImagePath == profileImagePath &&
- other.userId == userId;
+ other.profileImagePath == profileImagePath &&
+ other.userId == userId;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/create_tag_dto.dart b/mobile/openapi/lib/model/create_tag_dto.dart
index ee4a5fe649..6e9ec685f1 100644
--- a/mobile/openapi/lib/model/create_tag_dto.dart
+++ b/mobile/openapi/lib/model/create_tag_dto.dart
@@ -23,8 +23,8 @@ class CreateTagDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CreateTagDto &&
- other.name == name &&
- other.type == type;
+ other.name == name &&
+ other.type == type;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/create_user_dto.dart b/mobile/openapi/lib/model/create_user_dto.dart
index 06f3eb3042..0535d94060 100644
--- a/mobile/openapi/lib/model/create_user_dto.dart
+++ b/mobile/openapi/lib/model/create_user_dto.dart
@@ -35,12 +35,12 @@ class CreateUserDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CreateUserDto &&
- other.email == email &&
- other.externalPath == externalPath &&
- other.firstName == firstName &&
- other.lastName == lastName &&
- other.password == password &&
- other.storageLabel == storageLabel;
+ other.email == email &&
+ other.externalPath == externalPath &&
+ other.firstName == firstName &&
+ other.lastName == lastName &&
+ other.password == password &&
+ other.storageLabel == storageLabel;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/curated_locations_response_dto.dart b/mobile/openapi/lib/model/curated_locations_response_dto.dart
index 0b54c4807f..9aac5cc72d 100644
--- a/mobile/openapi/lib/model/curated_locations_response_dto.dart
+++ b/mobile/openapi/lib/model/curated_locations_response_dto.dart
@@ -32,11 +32,11 @@ class CuratedLocationsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto &&
- other.city == city &&
- other.deviceAssetId == deviceAssetId &&
- other.deviceId == deviceId &&
- other.id == id &&
- other.resizePath == resizePath;
+ other.city == city &&
+ other.deviceAssetId == deviceAssetId &&
+ other.deviceId == deviceId &&
+ other.id == id &&
+ other.resizePath == resizePath;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/curated_objects_response_dto.dart b/mobile/openapi/lib/model/curated_objects_response_dto.dart
index 40b6e1789b..8b2cc99495 100644
--- a/mobile/openapi/lib/model/curated_objects_response_dto.dart
+++ b/mobile/openapi/lib/model/curated_objects_response_dto.dart
@@ -32,11 +32,11 @@ class CuratedObjectsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto &&
- other.deviceAssetId == deviceAssetId &&
- other.deviceId == deviceId &&
- other.id == id &&
- other.object == object &&
- other.resizePath == resizePath;
+ other.deviceAssetId == deviceAssetId &&
+ other.deviceId == deviceId &&
+ other.id == id &&
+ other.object == object &&
+ other.resizePath == resizePath;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/delete_asset_dto.dart b/mobile/openapi/lib/model/delete_asset_dto.dart
index 2f25690976..b6909a4189 100644
--- a/mobile/openapi/lib/model/delete_asset_dto.dart
+++ b/mobile/openapi/lib/model/delete_asset_dto.dart
@@ -20,7 +20,7 @@ class DeleteAssetDto {
@override
bool operator ==(Object other) => identical(this, other) || other is DeleteAssetDto &&
- _deepEquality.equals(other.ids, ids);
+ other.ids == ids;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class DeleteAssetDto {
final json = value.cast<String, dynamic>();
return DeleteAssetDto(
- ids: json[r'ids'] is Iterable
- ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
+ ids: json[r'ids'] is List
+ ? (json[r'ids'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/delete_asset_response_dto.dart b/mobile/openapi/lib/model/delete_asset_response_dto.dart
index 4344c77812..6e435adcb6 100644
--- a/mobile/openapi/lib/model/delete_asset_response_dto.dart
+++ b/mobile/openapi/lib/model/delete_asset_response_dto.dart
@@ -23,8 +23,8 @@ class DeleteAssetResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is DeleteAssetResponseDto &&
- other.id == id &&
- other.status == status;
+ other.id == id &&
+ other.status == status;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/download_archive_info.dart b/mobile/openapi/lib/model/download_archive_info.dart
index 20cf8f9b5f..ed612cc2c8 100644
--- a/mobile/openapi/lib/model/download_archive_info.dart
+++ b/mobile/openapi/lib/model/download_archive_info.dart
@@ -23,8 +23,8 @@ class DownloadArchiveInfo {
@override
bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo &&
- _deepEquality.equals(other.assetIds, assetIds) &&
- other.size == size;
+ other.assetIds == assetIds &&
+ other.size == size;
@override
int get hashCode =>
@@ -50,8 +50,8 @@ class DownloadArchiveInfo {
final json = value.cast<String, dynamic>();
return DownloadArchiveInfo(
- assetIds: json[r'assetIds'] is Iterable
- ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
+ assetIds: json[r'assetIds'] is List
+ ? (json[r'assetIds'] as List).cast<String>()
: const [],
size: mapValueOfType<int>(json, r'size')!,
);
diff --git a/mobile/openapi/lib/model/download_response_dto.dart b/mobile/openapi/lib/model/download_response_dto.dart
index 1945491a13..352fd5edff 100644
--- a/mobile/openapi/lib/model/download_response_dto.dart
+++ b/mobile/openapi/lib/model/download_response_dto.dart
@@ -23,8 +23,8 @@ class DownloadResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto &&
- _deepEquality.equals(other.archives, archives) &&
- other.totalSize == totalSize;
+ other.archives == archives &&
+ other.totalSize == totalSize;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/exif_response_dto.dart b/mobile/openapi/lib/model/exif_response_dto.dart
index f508a5ca58..6ae0177c36 100644
--- a/mobile/openapi/lib/model/exif_response_dto.dart
+++ b/mobile/openapi/lib/model/exif_response_dto.dart
@@ -80,27 +80,27 @@ class ExifResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
- other.city == city &&
- other.country == country &&
- other.dateTimeOriginal == dateTimeOriginal &&
- other.description == description &&
- other.exifImageHeight == exifImageHeight &&
- other.exifImageWidth == exifImageWidth &&
- other.exposureTime == exposureTime &&
- other.fNumber == fNumber &&
- other.fileSizeInByte == fileSizeInByte &&
- other.focalLength == focalLength &&
- other.iso == iso &&
- other.latitude == latitude &&
- other.lensModel == lensModel &&
- other.longitude == longitude &&
- other.make == make &&
- other.model == model &&
- other.modifyDate == modifyDate &&
- other.orientation == orientation &&
- other.projectionType == projectionType &&
- other.state == state &&
- other.timeZone == timeZone;
+ other.city == city &&
+ other.country == country &&
+ other.dateTimeOriginal == dateTimeOriginal &&
+ other.description == description &&
+ other.exifImageHeight == exifImageHeight &&
+ other.exifImageWidth == exifImageWidth &&
+ other.exposureTime == exposureTime &&
+ other.fNumber == fNumber &&
+ other.fileSizeInByte == fileSizeInByte &&
+ other.focalLength == focalLength &&
+ other.iso == iso &&
+ other.latitude == latitude &&
+ other.lensModel == lensModel &&
+ other.longitude == longitude &&
+ other.make == make &&
+ other.model == model &&
+ other.modifyDate == modifyDate &&
+ other.orientation == orientation &&
+ other.projectionType == projectionType &&
+ other.state == state &&
+ other.timeZone == timeZone;
@override
int get hashCode =>
@@ -250,35 +250,35 @@ class ExifResponseDto {
return ExifResponseDto(
city: mapValueOfType<String>(json, r'city'),
country: mapValueOfType<String>(json, r'country'),
- dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''),
+ dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', ''),
description: mapValueOfType<String>(json, r'description'),
exifImageHeight: json[r'exifImageHeight'] == null
? null
- : num.parse('${json[r'exifImageHeight']}'),
+ : num.parse(json[r'exifImageHeight'].toString()),
exifImageWidth: json[r'exifImageWidth'] == null
? null
- : num.parse('${json[r'exifImageWidth']}'),
+ : num.parse(json[r'exifImageWidth'].toString()),
exposureTime: mapValueOfType<String>(json, r'exposureTime'),
fNumber: json[r'fNumber'] == null
? null
- : num.parse('${json[r'fNumber']}'),
+ : num.parse(json[r'fNumber'].toString()),
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
focalLength: json[r'focalLength'] == null
? null
- : num.parse('${json[r'focalLength']}'),
+ : num.parse(json[r'focalLength'].toString()),
iso: json[r'iso'] == null
? null
- : num.parse('${json[r'iso']}'),
+ : num.parse(json[r'iso'].toString()),
latitude: json[r'latitude'] == null
? null
- : num.parse('${json[r'latitude']}'),
+ : num.parse(json[r'latitude'].toString()),
lensModel: mapValueOfType<String>(json, r'lensModel'),
longitude: json[r'longitude'] == null
? null
- : num.parse('${json[r'longitude']}'),
+ : num.parse(json[r'longitude'].toString()),
make: mapValueOfType<String>(json, r'make'),
model: mapValueOfType<String>(json, r'model'),
- modifyDate: mapDateTime(json, r'modifyDate', r''),
+ modifyDate: mapDateTime(json, r'modifyDate', ''),
orientation: mapValueOfType<String>(json, r'orientation'),
projectionType: mapValueOfType<String>(json, r'projectionType'),
state: mapValueOfType<String>(json, r'state'),
diff --git a/mobile/openapi/lib/model/import_asset_dto.dart b/mobile/openapi/lib/model/import_asset_dto.dart
index 6b24180b58..e869df9522 100644
--- a/mobile/openapi/lib/model/import_asset_dto.dart
+++ b/mobile/openapi/lib/model/import_asset_dto.dart
@@ -74,17 +74,17 @@ class ImportAssetDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ImportAssetDto &&
- other.assetPath == assetPath &&
- other.deviceAssetId == deviceAssetId &&
- other.deviceId == deviceId &&
- other.duration == duration &&
- other.fileCreatedAt == fileCreatedAt &&
- other.fileModifiedAt == fileModifiedAt &&
- other.isArchived == isArchived &&
- other.isFavorite == isFavorite &&
- other.isReadOnly == isReadOnly &&
- other.isVisible == isVisible &&
- other.sidecarPath == sidecarPath;
+ other.assetPath == assetPath &&
+ other.deviceAssetId == deviceAssetId &&
+ other.deviceId == deviceId &&
+ other.duration == duration &&
+ other.fileCreatedAt == fileCreatedAt &&
+ other.fileModifiedAt == fileModifiedAt &&
+ other.isArchived == isArchived &&
+ other.isFavorite == isFavorite &&
+ other.isReadOnly == isReadOnly &&
+ other.isVisible == isVisible &&
+ other.sidecarPath == sidecarPath;
@override
int get hashCode =>
@@ -148,8 +148,8 @@ class ImportAssetDto {
deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
deviceId: mapValueOfType<String>(json, r'deviceId')!,
duration: mapValueOfType<String>(json, r'duration'),
- fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
- fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!,
+ fileCreatedAt: mapDateTime(json, r'fileCreatedAt', '')!,
+ fileModifiedAt: mapDateTime(json, r'fileModifiedAt', '')!,
isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
isReadOnly: mapValueOfType<bool>(json, r'isReadOnly') ?? true,
diff --git a/mobile/openapi/lib/model/job_command_dto.dart b/mobile/openapi/lib/model/job_command_dto.dart
index 00fc4a7e0d..68289ab225 100644
--- a/mobile/openapi/lib/model/job_command_dto.dart
+++ b/mobile/openapi/lib/model/job_command_dto.dart
@@ -23,8 +23,8 @@ class JobCommandDto {
@override
bool operator ==(Object other) => identical(this, other) || other is JobCommandDto &&
- other.command == command &&
- other.force == force;
+ other.command == command &&
+ other.force == force;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/job_counts_dto.dart b/mobile/openapi/lib/model/job_counts_dto.dart
index 7622673982..077e5a2141 100644
--- a/mobile/openapi/lib/model/job_counts_dto.dart
+++ b/mobile/openapi/lib/model/job_counts_dto.dart
@@ -35,12 +35,12 @@ class JobCountsDto {
@override
bool operator ==(Object other) => identical(this, other) || other is JobCountsDto &&
- other.active == active &&
- other.completed == completed &&
- other.delayed == delayed &&
- other.failed == failed &&
- other.paused == paused &&
- other.waiting == waiting;
+ other.active == active &&
+ other.completed == completed &&
+ other.delayed == delayed &&
+ other.failed == failed &&
+ other.paused == paused &&
+ other.waiting == waiting;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/job_settings_dto.dart b/mobile/openapi/lib/model/job_settings_dto.dart
index 777611cc8c..a1fe5445dc 100644
--- a/mobile/openapi/lib/model/job_settings_dto.dart
+++ b/mobile/openapi/lib/model/job_settings_dto.dart
@@ -20,7 +20,7 @@ class JobSettingsDto {
@override
bool operator ==(Object other) => identical(this, other) || other is JobSettingsDto &&
- other.concurrency == concurrency;
+ other.concurrency == concurrency;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/job_status_dto.dart b/mobile/openapi/lib/model/job_status_dto.dart
index de372a36a9..e14101ce8e 100644
--- a/mobile/openapi/lib/model/job_status_dto.dart
+++ b/mobile/openapi/lib/model/job_status_dto.dart
@@ -23,8 +23,8 @@ class JobStatusDto {
@override
bool operator ==(Object other) => identical(this, other) || other is JobStatusDto &&
- other.jobCounts == jobCounts &&
- other.queueStatus == queueStatus;
+ other.jobCounts == jobCounts &&
+ other.queueStatus == queueStatus;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/login_credential_dto.dart b/mobile/openapi/lib/model/login_credential_dto.dart
index 8dc3d9d58f..f047ff8c4e 100644
--- a/mobile/openapi/lib/model/login_credential_dto.dart
+++ b/mobile/openapi/lib/model/login_credential_dto.dart
@@ -23,8 +23,8 @@ class LoginCredentialDto {
@override
bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto &&
- other.email == email &&
- other.password == password;
+ other.email == email &&
+ other.password == password;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/login_response_dto.dart b/mobile/openapi/lib/model/login_response_dto.dart
index 5dea70fb69..94da05a50c 100644
--- a/mobile/openapi/lib/model/login_response_dto.dart
+++ b/mobile/openapi/lib/model/login_response_dto.dart
@@ -41,14 +41,14 @@ class LoginResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto &&
- other.accessToken == accessToken &&
- other.firstName == firstName &&
- other.isAdmin == isAdmin &&
- other.lastName == lastName &&
- other.profileImagePath == profileImagePath &&
- other.shouldChangePassword == shouldChangePassword &&
- other.userEmail == userEmail &&
- other.userId == userId;
+ other.accessToken == accessToken &&
+ other.firstName == firstName &&
+ other.isAdmin == isAdmin &&
+ other.lastName == lastName &&
+ other.profileImagePath == profileImagePath &&
+ other.shouldChangePassword == shouldChangePassword &&
+ other.userEmail == userEmail &&
+ other.userId == userId;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/logout_response_dto.dart b/mobile/openapi/lib/model/logout_response_dto.dart
index 11fcda7ecf..bcb6681d59 100644
--- a/mobile/openapi/lib/model/logout_response_dto.dart
+++ b/mobile/openapi/lib/model/logout_response_dto.dart
@@ -23,8 +23,8 @@ class LogoutResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto &&
- other.redirectUri == redirectUri &&
- other.successful == successful;
+ other.redirectUri == redirectUri &&
+ other.successful == successful;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/map_marker_response_dto.dart b/mobile/openapi/lib/model/map_marker_response_dto.dart
index 3cbdb1b167..ded8ac167c 100644
--- a/mobile/openapi/lib/model/map_marker_response_dto.dart
+++ b/mobile/openapi/lib/model/map_marker_response_dto.dart
@@ -26,9 +26,9 @@ class MapMarkerResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto &&
- other.id == id &&
- other.lat == lat &&
- other.lon == lon;
+ other.id == id &&
+ other.lat == lat &&
+ other.lon == lon;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/memory_lane_response_dto.dart b/mobile/openapi/lib/model/memory_lane_response_dto.dart
index 7d761131d7..1f816da868 100644
--- a/mobile/openapi/lib/model/memory_lane_response_dto.dart
+++ b/mobile/openapi/lib/model/memory_lane_response_dto.dart
@@ -23,8 +23,8 @@ class MemoryLaneResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
- _deepEquality.equals(other.assets, assets) &&
- other.title == title;
+ other.assets == assets &&
+ other.title == title;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/merge_person_dto.dart b/mobile/openapi/lib/model/merge_person_dto.dart
index cb3a5f4c3b..33eb98fc0b 100644
--- a/mobile/openapi/lib/model/merge_person_dto.dart
+++ b/mobile/openapi/lib/model/merge_person_dto.dart
@@ -20,7 +20,7 @@ class MergePersonDto {
@override
bool operator ==(Object other) => identical(this, other) || other is MergePersonDto &&
- _deepEquality.equals(other.ids, ids);
+ other.ids == ids;
@override
int get hashCode =>
@@ -44,8 +44,8 @@ class MergePersonDto {
final json = value.cast<String, dynamic>();
return MergePersonDto(
- ids: json[r'ids'] is Iterable
- ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
+ ids: json[r'ids'] is List
+ ? (json[r'ids'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/o_auth_callback_dto.dart b/mobile/openapi/lib/model/o_auth_callback_dto.dart
index 0ec446cead..08fac9798e 100644
--- a/mobile/openapi/lib/model/o_auth_callback_dto.dart
+++ b/mobile/openapi/lib/model/o_auth_callback_dto.dart
@@ -20,7 +20,7 @@ class OAuthCallbackDto {
@override
bool operator ==(Object other) => identical(this, other) || other is OAuthCallbackDto &&
- other.url == url;
+ other.url == url;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/o_auth_config_dto.dart b/mobile/openapi/lib/model/o_auth_config_dto.dart
index a86b5ab714..0f62306ef4 100644
--- a/mobile/openapi/lib/model/o_auth_config_dto.dart
+++ b/mobile/openapi/lib/model/o_auth_config_dto.dart
@@ -20,7 +20,7 @@ class OAuthConfigDto {
@override
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigDto &&
- other.redirectUri == redirectUri;
+ other.redirectUri == redirectUri;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/o_auth_config_response_dto.dart b/mobile/openapi/lib/model/o_auth_config_response_dto.dart
index 83fd87b6c8..4b6846af25 100644
--- a/mobile/openapi/lib/model/o_auth_config_response_dto.dart
+++ b/mobile/openapi/lib/model/o_auth_config_response_dto.dart
@@ -50,11 +50,11 @@ class OAuthConfigResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto &&
- other.autoLaunch == autoLaunch &&
- other.buttonText == buttonText &&
- other.enabled == enabled &&
- other.passwordLoginEnabled == passwordLoginEnabled &&
- other.url == url;
+ other.autoLaunch == autoLaunch &&
+ other.buttonText == buttonText &&
+ other.enabled == enabled &&
+ other.passwordLoginEnabled == passwordLoginEnabled &&
+ other.url == url;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/people_response_dto.dart b/mobile/openapi/lib/model/people_response_dto.dart
index 15f8d71ccc..fe8afbaf94 100644
--- a/mobile/openapi/lib/model/people_response_dto.dart
+++ b/mobile/openapi/lib/model/people_response_dto.dart
@@ -20,15 +20,15 @@ class PeopleResponseDto {
List<PersonResponseDto> people;
- num total;
+ int total;
- num visible;
+ int visible;
@override
bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto &&
- _deepEquality.equals(other.people, people) &&
- other.total == total &&
- other.visible == visible;
+ other.people == people &&
+ other.total == total &&
+ other.visible == visible;
@override
int get hashCode =>
@@ -57,8 +57,8 @@ class PeopleResponseDto {
return PeopleResponseDto(
people: PersonResponseDto.listFromJson(json[r'people']),
- total: num.parse('${json[r'total']}'),
- visible: num.parse('${json[r'visible']}'),
+ total: mapValueOfType<int>(json, r'total')!,
+ visible: mapValueOfType<int>(json, r'visible')!,
);
}
return null;
diff --git a/mobile/openapi/lib/model/people_update_dto.dart b/mobile/openapi/lib/model/people_update_dto.dart
index a98934b521..3c39c4bdb8 100644
--- a/mobile/openapi/lib/model/people_update_dto.dart
+++ b/mobile/openapi/lib/model/people_update_dto.dart
@@ -20,7 +20,7 @@ class PeopleUpdateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateDto &&
- _deepEquality.equals(other.people, people);
+ other.people == people;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/people_update_item.dart b/mobile/openapi/lib/model/people_update_item.dart
index cea2ea321a..3a35c8a58e 100644
--- a/mobile/openapi/lib/model/people_update_item.dart
+++ b/mobile/openapi/lib/model/people_update_item.dart
@@ -51,10 +51,10 @@ class PeopleUpdateItem {
@override
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateItem &&
- other.featureFaceAssetId == featureFaceAssetId &&
- other.id == id &&
- other.isHidden == isHidden &&
- other.name == name;
+ other.featureFaceAssetId == featureFaceAssetId &&
+ other.id == id &&
+ other.isHidden == isHidden &&
+ other.name == name;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/person_response_dto.dart b/mobile/openapi/lib/model/person_response_dto.dart
index fb49e9f5ed..21120f23b8 100644
--- a/mobile/openapi/lib/model/person_response_dto.dart
+++ b/mobile/openapi/lib/model/person_response_dto.dart
@@ -29,10 +29,10 @@ class PersonResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is PersonResponseDto &&
- other.id == id &&
- other.isHidden == isHidden &&
- other.name == name &&
- other.thumbnailPath == thumbnailPath;
+ other.id == id &&
+ other.isHidden == isHidden &&
+ other.name == name &&
+ other.thumbnailPath == thumbnailPath;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/person_update_dto.dart b/mobile/openapi/lib/model/person_update_dto.dart
index c7cc8780c9..baa985b1c7 100644
--- a/mobile/openapi/lib/model/person_update_dto.dart
+++ b/mobile/openapi/lib/model/person_update_dto.dart
@@ -47,9 +47,9 @@ class PersonUpdateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is PersonUpdateDto &&
- other.featureFaceAssetId == featureFaceAssetId &&
- other.isHidden == isHidden &&
- other.name == name;
+ other.featureFaceAssetId == featureFaceAssetId &&
+ other.isHidden == isHidden &&
+ other.name == name;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/queue_status_dto.dart b/mobile/openapi/lib/model/queue_status_dto.dart
index 96775de8e9..6a15b77421 100644
--- a/mobile/openapi/lib/model/queue_status_dto.dart
+++ b/mobile/openapi/lib/model/queue_status_dto.dart
@@ -23,8 +23,8 @@ class QueueStatusDto {
@override
bool operator ==(Object other) => identical(this, other) || other is QueueStatusDto &&
- other.isActive == isActive &&
- other.isPaused == isPaused;
+ other.isActive == isActive &&
+ other.isPaused == isPaused;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_album_response_dto.dart b/mobile/openapi/lib/model/search_album_response_dto.dart
index 7925356102..6ca6d21031 100644
--- a/mobile/openapi/lib/model/search_album_response_dto.dart
+++ b/mobile/openapi/lib/model/search_album_response_dto.dart
@@ -29,10 +29,10 @@ class SearchAlbumResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto &&
- other.count == count &&
- _deepEquality.equals(other.facets, facets) &&
- _deepEquality.equals(other.items, items) &&
- other.total == total;
+ other.count == count &&
+ other.facets == facets &&
+ other.items == items &&
+ other.total == total;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_asset_dto.dart b/mobile/openapi/lib/model/search_asset_dto.dart
index cad0e05648..02c744a06c 100644
--- a/mobile/openapi/lib/model/search_asset_dto.dart
+++ b/mobile/openapi/lib/model/search_asset_dto.dart
@@ -20,7 +20,7 @@ class SearchAssetDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchAssetDto &&
- other.searchTerm == searchTerm;
+ other.searchTerm == searchTerm;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_asset_response_dto.dart b/mobile/openapi/lib/model/search_asset_response_dto.dart
index 98291307d4..8253ad0b14 100644
--- a/mobile/openapi/lib/model/search_asset_response_dto.dart
+++ b/mobile/openapi/lib/model/search_asset_response_dto.dart
@@ -29,10 +29,10 @@ class SearchAssetResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto &&
- other.count == count &&
- _deepEquality.equals(other.facets, facets) &&
- _deepEquality.equals(other.items, items) &&
- other.total == total;
+ other.count == count &&
+ other.facets == facets &&
+ other.items == items &&
+ other.total == total;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_config_response_dto.dart b/mobile/openapi/lib/model/search_config_response_dto.dart
index e6e0181d2f..31927662c4 100644
--- a/mobile/openapi/lib/model/search_config_response_dto.dart
+++ b/mobile/openapi/lib/model/search_config_response_dto.dart
@@ -20,7 +20,7 @@ class SearchConfigResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchConfigResponseDto &&
- other.enabled == enabled;
+ other.enabled == enabled;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_explore_item.dart b/mobile/openapi/lib/model/search_explore_item.dart
index 218f7f4c6f..ddc8f5282b 100644
--- a/mobile/openapi/lib/model/search_explore_item.dart
+++ b/mobile/openapi/lib/model/search_explore_item.dart
@@ -23,8 +23,8 @@ class SearchExploreItem {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchExploreItem &&
- other.data == data &&
- other.value == value;
+ other.data == data &&
+ other.value == value;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_explore_response_dto.dart b/mobile/openapi/lib/model/search_explore_response_dto.dart
index ad317642d9..403ba396d4 100644
--- a/mobile/openapi/lib/model/search_explore_response_dto.dart
+++ b/mobile/openapi/lib/model/search_explore_response_dto.dart
@@ -23,8 +23,8 @@ class SearchExploreResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto &&
- other.fieldName == fieldName &&
- _deepEquality.equals(other.items, items);
+ other.fieldName == fieldName &&
+ other.items == items;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_facet_count_response_dto.dart b/mobile/openapi/lib/model/search_facet_count_response_dto.dart
index a53ae6b86c..d11450d2f0 100644
--- a/mobile/openapi/lib/model/search_facet_count_response_dto.dart
+++ b/mobile/openapi/lib/model/search_facet_count_response_dto.dart
@@ -23,8 +23,8 @@ class SearchFacetCountResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchFacetCountResponseDto &&
- other.count == count &&
- other.value == value;
+ other.count == count &&
+ other.value == value;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_facet_response_dto.dart b/mobile/openapi/lib/model/search_facet_response_dto.dart
index 30dd1215fa..a675dd881b 100644
--- a/mobile/openapi/lib/model/search_facet_response_dto.dart
+++ b/mobile/openapi/lib/model/search_facet_response_dto.dart
@@ -23,8 +23,8 @@ class SearchFacetResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto &&
- _deepEquality.equals(other.counts, counts) &&
- other.fieldName == fieldName;
+ other.counts == counts &&
+ other.fieldName == fieldName;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/search_response_dto.dart b/mobile/openapi/lib/model/search_response_dto.dart
index 2f697f3dd8..c194f8a94c 100644
--- a/mobile/openapi/lib/model/search_response_dto.dart
+++ b/mobile/openapi/lib/model/search_response_dto.dart
@@ -23,8 +23,8 @@ class SearchResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SearchResponseDto &&
- other.albums == albums &&
- other.assets == assets;
+ other.albums == albums &&
+ other.assets == assets;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/server_info_response_dto.dart b/mobile/openapi/lib/model/server_info_response_dto.dart
index e66cfe44bf..d5b90bcd6d 100644
--- a/mobile/openapi/lib/model/server_info_response_dto.dart
+++ b/mobile/openapi/lib/model/server_info_response_dto.dart
@@ -38,13 +38,13 @@ class ServerInfoResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ServerInfoResponseDto &&
- other.diskAvailable == diskAvailable &&
- other.diskAvailableRaw == diskAvailableRaw &&
- other.diskSize == diskSize &&
- other.diskSizeRaw == diskSizeRaw &&
- other.diskUsagePercentage == diskUsagePercentage &&
- other.diskUse == diskUse &&
- other.diskUseRaw == diskUseRaw;
+ other.diskAvailable == diskAvailable &&
+ other.diskAvailableRaw == diskAvailableRaw &&
+ other.diskSize == diskSize &&
+ other.diskSizeRaw == diskSizeRaw &&
+ other.diskUsagePercentage == diskUsagePercentage &&
+ other.diskUse == diskUse &&
+ other.diskUseRaw == diskUseRaw;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/server_media_types_response_dto.dart b/mobile/openapi/lib/model/server_media_types_response_dto.dart
index cf5a93bf8c..571ceea267 100644
--- a/mobile/openapi/lib/model/server_media_types_response_dto.dart
+++ b/mobile/openapi/lib/model/server_media_types_response_dto.dart
@@ -26,9 +26,9 @@ class ServerMediaTypesResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ServerMediaTypesResponseDto &&
- _deepEquality.equals(other.image, image) &&
- _deepEquality.equals(other.sidecar, sidecar) &&
- _deepEquality.equals(other.video, video);
+ other.image == image &&
+ other.sidecar == sidecar &&
+ other.video == video;
@override
int get hashCode =>
@@ -56,14 +56,14 @@ class ServerMediaTypesResponseDto {
final json = value.cast<String, dynamic>();
return ServerMediaTypesResponseDto(
- image: json[r'image'] is Iterable
- ? (json[r'image'] as Iterable).cast<String>().toList(growable: false)
+ image: json[r'image'] is List
+ ? (json[r'image'] as List).cast<String>()
: const [],
- sidecar: json[r'sidecar'] is Iterable
- ? (json[r'sidecar'] as Iterable).cast<String>().toList(growable: false)
+ sidecar: json[r'sidecar'] is List
+ ? (json[r'sidecar'] as List).cast<String>()
: const [],
- video: json[r'video'] is Iterable
- ? (json[r'video'] as Iterable).cast<String>().toList(growable: false)
+ video: json[r'video'] is List
+ ? (json[r'video'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/server_ping_response.dart b/mobile/openapi/lib/model/server_ping_response.dart
index 280a50a44b..ad72c0f5e5 100644
--- a/mobile/openapi/lib/model/server_ping_response.dart
+++ b/mobile/openapi/lib/model/server_ping_response.dart
@@ -20,7 +20,7 @@ class ServerPingResponse {
@override
bool operator ==(Object other) => identical(this, other) || other is ServerPingResponse &&
- other.res == res;
+ other.res == res;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/server_stats_response_dto.dart b/mobile/openapi/lib/model/server_stats_response_dto.dart
index c4afaa348c..37db37a3ed 100644
--- a/mobile/openapi/lib/model/server_stats_response_dto.dart
+++ b/mobile/openapi/lib/model/server_stats_response_dto.dart
@@ -29,10 +29,10 @@ class ServerStatsResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto &&
- other.photos == photos &&
- other.usage == usage &&
- _deepEquality.equals(other.usageByUser, usageByUser) &&
- other.videos == videos;
+ other.photos == photos &&
+ other.usage == usage &&
+ other.usageByUser == usageByUser &&
+ other.videos == videos;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/server_version_reponse_dto.dart b/mobile/openapi/lib/model/server_version_reponse_dto.dart
index ae11651678..a1ec0e68e5 100644
--- a/mobile/openapi/lib/model/server_version_reponse_dto.dart
+++ b/mobile/openapi/lib/model/server_version_reponse_dto.dart
@@ -26,9 +26,9 @@ class ServerVersionReponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ServerVersionReponseDto &&
- other.major == major &&
- other.minor == minor &&
- other.patch_ == patch_;
+ other.major == major &&
+ other.minor == minor &&
+ other.patch_ == patch_;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/shared_link_create_dto.dart b/mobile/openapi/lib/model/shared_link_create_dto.dart
index 2da76a327c..a940808c1a 100644
--- a/mobile/openapi/lib/model/shared_link_create_dto.dart
+++ b/mobile/openapi/lib/model/shared_link_create_dto.dart
@@ -53,14 +53,14 @@ class SharedLinkCreateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkCreateDto &&
- other.albumId == albumId &&
- other.allowDownload == allowDownload &&
- other.allowUpload == allowUpload &&
- _deepEquality.equals(other.assetIds, assetIds) &&
- other.description == description &&
- other.expiresAt == expiresAt &&
- other.showExif == showExif &&
- other.type == type;
+ other.albumId == albumId &&
+ other.allowDownload == allowDownload &&
+ other.allowUpload == allowUpload &&
+ other.assetIds == assetIds &&
+ other.description == description &&
+ other.expiresAt == expiresAt &&
+ other.showExif == showExif &&
+ other.type == type;
@override
int get hashCode =>
@@ -113,11 +113,11 @@ class SharedLinkCreateDto {
albumId: mapValueOfType<String>(json, r'albumId'),
allowDownload: mapValueOfType<bool>(json, r'allowDownload') ?? true,
allowUpload: mapValueOfType<bool>(json, r'allowUpload') ?? false,
- assetIds: json[r'assetIds'] is Iterable
- ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
+ assetIds: json[r'assetIds'] is List
+ ? (json[r'assetIds'] as List).cast<String>()
: const [],
description: mapValueOfType<String>(json, r'description'),
- expiresAt: mapDateTime(json, r'expiresAt', r''),
+ expiresAt: mapDateTime(json, r'expiresAt', ''),
showExif: mapValueOfType<bool>(json, r'showExif') ?? true,
type: SharedLinkType.fromJson(json[r'type'])!,
);
diff --git a/mobile/openapi/lib/model/shared_link_edit_dto.dart b/mobile/openapi/lib/model/shared_link_edit_dto.dart
index 8d1f03e87b..fb79361557 100644
--- a/mobile/openapi/lib/model/shared_link_edit_dto.dart
+++ b/mobile/openapi/lib/model/shared_link_edit_dto.dart
@@ -56,11 +56,11 @@ class SharedLinkEditDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkEditDto &&
- other.allowDownload == allowDownload &&
- other.allowUpload == allowUpload &&
- other.description == description &&
- other.expiresAt == expiresAt &&
- other.showExif == showExif;
+ other.allowDownload == allowDownload &&
+ other.allowUpload == allowUpload &&
+ other.description == description &&
+ other.expiresAt == expiresAt &&
+ other.showExif == showExif;
@override
int get hashCode =>
@@ -115,7 +115,7 @@ class SharedLinkEditDto {
allowDownload: mapValueOfType<bool>(json, r'allowDownload'),
allowUpload: mapValueOfType<bool>(json, r'allowUpload'),
description: mapValueOfType<String>(json, r'description'),
- expiresAt: mapDateTime(json, r'expiresAt', r''),
+ expiresAt: mapDateTime(json, r'expiresAt', ''),
showExif: mapValueOfType<bool>(json, r'showExif'),
);
}
diff --git a/mobile/openapi/lib/model/shared_link_response_dto.dart b/mobile/openapi/lib/model/shared_link_response_dto.dart
index 082e846587..72a7299a46 100644
--- a/mobile/openapi/lib/model/shared_link_response_dto.dart
+++ b/mobile/openapi/lib/model/shared_link_response_dto.dart
@@ -59,18 +59,18 @@ class SharedLinkResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkResponseDto &&
- other.album == album &&
- other.allowDownload == allowDownload &&
- other.allowUpload == allowUpload &&
- _deepEquality.equals(other.assets, assets) &&
- other.createdAt == createdAt &&
- other.description == description &&
- other.expiresAt == expiresAt &&
- other.id == id &&
- other.key == key &&
- other.showExif == showExif &&
- other.type == type &&
- other.userId == userId;
+ other.album == album &&
+ other.allowDownload == allowDownload &&
+ other.allowUpload == allowUpload &&
+ other.assets == assets &&
+ other.createdAt == createdAt &&
+ other.description == description &&
+ other.expiresAt == expiresAt &&
+ other.id == id &&
+ other.key == key &&
+ other.showExif == showExif &&
+ other.type == type &&
+ other.userId == userId;
@override
int get hashCode =>
@@ -132,9 +132,9 @@ class SharedLinkResponseDto {
allowDownload: mapValueOfType<bool>(json, r'allowDownload')!,
allowUpload: mapValueOfType<bool>(json, r'allowUpload')!,
assets: AssetResponseDto.listFromJson(json[r'assets']),
- createdAt: mapDateTime(json, r'createdAt', r'')!,
+ createdAt: mapDateTime(json, r'createdAt', '')!,
description: mapValueOfType<String>(json, r'description'),
- expiresAt: mapDateTime(json, r'expiresAt', r''),
+ expiresAt: mapDateTime(json, r'expiresAt', ''),
id: mapValueOfType<String>(json, r'id')!,
key: mapValueOfType<String>(json, r'key')!,
showExif: mapValueOfType<bool>(json, r'showExif')!,
diff --git a/mobile/openapi/lib/model/sign_up_dto.dart b/mobile/openapi/lib/model/sign_up_dto.dart
index dad051c1a8..e6b7f2abf9 100644
--- a/mobile/openapi/lib/model/sign_up_dto.dart
+++ b/mobile/openapi/lib/model/sign_up_dto.dart
@@ -29,10 +29,10 @@ class SignUpDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SignUpDto &&
- other.email == email &&
- other.firstName == firstName &&
- other.lastName == lastName &&
- other.password == password;
+ other.email == email &&
+ other.firstName == firstName &&
+ other.lastName == lastName &&
+ other.password == password;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/smart_info_response_dto.dart b/mobile/openapi/lib/model/smart_info_response_dto.dart
index 72e958297a..9d3893171e 100644
--- a/mobile/openapi/lib/model/smart_info_response_dto.dart
+++ b/mobile/openapi/lib/model/smart_info_response_dto.dart
@@ -23,8 +23,8 @@ class SmartInfoResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto &&
- _deepEquality.equals(other.objects, objects) &&
- _deepEquality.equals(other.tags, tags);
+ other.objects == objects &&
+ other.tags == tags;
@override
int get hashCode =>
@@ -58,11 +58,11 @@ class SmartInfoResponseDto {
final json = value.cast<String, dynamic>();
return SmartInfoResponseDto(
- objects: json[r'objects'] is Iterable
- ? (json[r'objects'] as Iterable).cast<String>().toList(growable: false)
+ objects: json[r'objects'] is List
+ ? (json[r'objects'] as List).cast<String>()
: const [],
- tags: json[r'tags'] is Iterable
- ? (json[r'tags'] as Iterable).cast<String>().toList(growable: false)
+ tags: json[r'tags'] is List
+ ? (json[r'tags'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/system_config_dto.dart b/mobile/openapi/lib/model/system_config_dto.dart
index 6a5a11ec58..6bc4e5e2a2 100644
--- a/mobile/openapi/lib/model/system_config_dto.dart
+++ b/mobile/openapi/lib/model/system_config_dto.dart
@@ -32,11 +32,11 @@ class SystemConfigDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigDto &&
- other.ffmpeg == ffmpeg &&
- other.job == job &&
- other.oauth == oauth &&
- other.passwordLogin == passwordLogin &&
- other.storageTemplate == storageTemplate;
+ other.ffmpeg == ffmpeg &&
+ other.job == job &&
+ other.oauth == oauth &&
+ other.passwordLogin == passwordLogin &&
+ other.storageTemplate == storageTemplate;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart b/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
index aa5bfb1207..4dbc471c8c 100644
--- a/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
+++ b/mobile/openapi/lib/model/system_config_f_fmpeg_dto.dart
@@ -47,16 +47,16 @@ class SystemConfigFFmpegDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigFFmpegDto &&
- other.accel == accel &&
- other.crf == crf &&
- other.maxBitrate == maxBitrate &&
- other.preset == preset &&
- other.targetAudioCodec == targetAudioCodec &&
- other.targetResolution == targetResolution &&
- other.targetVideoCodec == targetVideoCodec &&
- other.threads == threads &&
- other.transcode == transcode &&
- other.twoPass == twoPass;
+ other.accel == accel &&
+ other.crf == crf &&
+ other.maxBitrate == maxBitrate &&
+ other.preset == preset &&
+ other.targetAudioCodec == targetAudioCodec &&
+ other.targetResolution == targetResolution &&
+ other.targetVideoCodec == targetVideoCodec &&
+ other.threads == threads &&
+ other.transcode == transcode &&
+ other.twoPass == twoPass;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_job_dto.dart b/mobile/openapi/lib/model/system_config_job_dto.dart
index aa6d6b3a79..ca3dab9e6d 100644
--- a/mobile/openapi/lib/model/system_config_job_dto.dart
+++ b/mobile/openapi/lib/model/system_config_job_dto.dart
@@ -47,16 +47,16 @@ class SystemConfigJobDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
- other.backgroundTask == backgroundTask &&
- other.clipEncoding == clipEncoding &&
- other.metadataExtraction == metadataExtraction &&
- other.objectTagging == objectTagging &&
- other.recognizeFaces == recognizeFaces &&
- other.search == search &&
- other.sidecar == sidecar &&
- other.storageTemplateMigration == storageTemplateMigration &&
- other.thumbnailGeneration == thumbnailGeneration &&
- other.videoConversion == videoConversion;
+ other.backgroundTask == backgroundTask &&
+ other.clipEncoding == clipEncoding &&
+ other.metadataExtraction == metadataExtraction &&
+ other.objectTagging == objectTagging &&
+ other.recognizeFaces == recognizeFaces &&
+ other.search == search &&
+ other.sidecar == sidecar &&
+ other.storageTemplateMigration == storageTemplateMigration &&
+ other.thumbnailGeneration == thumbnailGeneration &&
+ other.videoConversion == videoConversion;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_o_auth_dto.dart b/mobile/openapi/lib/model/system_config_o_auth_dto.dart
index 1de193c20c..bf39f969cc 100644
--- a/mobile/openapi/lib/model/system_config_o_auth_dto.dart
+++ b/mobile/openapi/lib/model/system_config_o_auth_dto.dart
@@ -50,17 +50,17 @@ class SystemConfigOAuthDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigOAuthDto &&
- other.autoLaunch == autoLaunch &&
- other.autoRegister == autoRegister &&
- other.buttonText == buttonText &&
- other.clientId == clientId &&
- other.clientSecret == clientSecret &&
- other.enabled == enabled &&
- other.issuerUrl == issuerUrl &&
- other.mobileOverrideEnabled == mobileOverrideEnabled &&
- other.mobileRedirectUri == mobileRedirectUri &&
- other.scope == scope &&
- other.storageLabelClaim == storageLabelClaim;
+ other.autoLaunch == autoLaunch &&
+ other.autoRegister == autoRegister &&
+ other.buttonText == buttonText &&
+ other.clientId == clientId &&
+ other.clientSecret == clientSecret &&
+ other.enabled == enabled &&
+ other.issuerUrl == issuerUrl &&
+ other.mobileOverrideEnabled == mobileOverrideEnabled &&
+ other.mobileRedirectUri == mobileRedirectUri &&
+ other.scope == scope &&
+ other.storageLabelClaim == storageLabelClaim;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_password_login_dto.dart b/mobile/openapi/lib/model/system_config_password_login_dto.dart
index 840206acc9..1e9dc20cb8 100644
--- a/mobile/openapi/lib/model/system_config_password_login_dto.dart
+++ b/mobile/openapi/lib/model/system_config_password_login_dto.dart
@@ -20,7 +20,7 @@ class SystemConfigPasswordLoginDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigPasswordLoginDto &&
- other.enabled == enabled;
+ other.enabled == enabled;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_storage_template_dto.dart b/mobile/openapi/lib/model/system_config_storage_template_dto.dart
index 1e51c651bf..604fe1256e 100644
--- a/mobile/openapi/lib/model/system_config_storage_template_dto.dart
+++ b/mobile/openapi/lib/model/system_config_storage_template_dto.dart
@@ -20,7 +20,7 @@ class SystemConfigStorageTemplateDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigStorageTemplateDto &&
- other.template == template;
+ other.template == template;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart b/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart
index d786ec8516..23d17e16aa 100644
--- a/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart
+++ b/mobile/openapi/lib/model/system_config_template_storage_option_dto.dart
@@ -38,13 +38,13 @@ class SystemConfigTemplateStorageOptionDto {
@override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto &&
- _deepEquality.equals(other.dayOptions, dayOptions) &&
- _deepEquality.equals(other.hourOptions, hourOptions) &&
- _deepEquality.equals(other.minuteOptions, minuteOptions) &&
- _deepEquality.equals(other.monthOptions, monthOptions) &&
- _deepEquality.equals(other.presetOptions, presetOptions) &&
- _deepEquality.equals(other.secondOptions, secondOptions) &&
- _deepEquality.equals(other.yearOptions, yearOptions);
+ other.dayOptions == dayOptions &&
+ other.hourOptions == hourOptions &&
+ other.minuteOptions == minuteOptions &&
+ other.monthOptions == monthOptions &&
+ other.presetOptions == presetOptions &&
+ other.secondOptions == secondOptions &&
+ other.yearOptions == yearOptions;
@override
int get hashCode =>
@@ -80,26 +80,26 @@ class SystemConfigTemplateStorageOptionDto {
final json = value.cast<String, dynamic>();
return SystemConfigTemplateStorageOptionDto(
- dayOptions: json[r'dayOptions'] is Iterable
- ? (json[r'dayOptions'] as Iterable).cast<String>().toList(growable: false)
+ dayOptions: json[r'dayOptions'] is List
+ ? (json[r'dayOptions'] as List).cast<String>()
: const [],
- hourOptions: json[r'hourOptions'] is Iterable
- ? (json[r'hourOptions'] as Iterable).cast<String>().toList(growable: false)
+ hourOptions: json[r'hourOptions'] is List
+ ? (json[r'hourOptions'] as List).cast<String>()
: const [],
- minuteOptions: json[r'minuteOptions'] is Iterable
- ? (json[r'minuteOptions'] as Iterable).cast<String>().toList(growable: false)
+ minuteOptions: json[r'minuteOptions'] is List
+ ? (json[r'minuteOptions'] as List).cast<String>()
: const [],
- monthOptions: json[r'monthOptions'] is Iterable
- ? (json[r'monthOptions'] as Iterable).cast<String>().toList(growable: false)
+ monthOptions: json[r'monthOptions'] is List
+ ? (json[r'monthOptions'] as List).cast<String>()
: const [],
- presetOptions: json[r'presetOptions'] is Iterable
- ? (json[r'presetOptions'] as Iterable).cast<String>().toList(growable: false)
+ presetOptions: json[r'presetOptions'] is List
+ ? (json[r'presetOptions'] as List).cast<String>()
: const [],
- secondOptions: json[r'secondOptions'] is Iterable
- ? (json[r'secondOptions'] as Iterable).cast<String>().toList(growable: false)
+ secondOptions: json[r'secondOptions'] is List
+ ? (json[r'secondOptions'] as List).cast<String>()
: const [],
- yearOptions: json[r'yearOptions'] is Iterable
- ? (json[r'yearOptions'] as Iterable).cast<String>().toList(growable: false)
+ yearOptions: json[r'yearOptions'] is List
+ ? (json[r'yearOptions'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/tag_response_dto.dart b/mobile/openapi/lib/model/tag_response_dto.dart
index 566e7a0f18..621223b8dd 100644
--- a/mobile/openapi/lib/model/tag_response_dto.dart
+++ b/mobile/openapi/lib/model/tag_response_dto.dart
@@ -29,10 +29,10 @@ class TagResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is TagResponseDto &&
- other.id == id &&
- other.name == name &&
- other.type == type &&
- other.userId == userId;
+ other.id == id &&
+ other.name == name &&
+ other.type == type &&
+ other.userId == userId;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/time_bucket_response_dto.dart b/mobile/openapi/lib/model/time_bucket_response_dto.dart
index da86bc4650..3731cd1bc1 100644
--- a/mobile/openapi/lib/model/time_bucket_response_dto.dart
+++ b/mobile/openapi/lib/model/time_bucket_response_dto.dart
@@ -23,8 +23,8 @@ class TimeBucketResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is TimeBucketResponseDto &&
- other.count == count &&
- other.timeBucket == timeBucket;
+ other.count == count &&
+ other.timeBucket == timeBucket;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/update_album_dto.dart b/mobile/openapi/lib/model/update_album_dto.dart
index 73c041a7f2..6c0bf3eca6 100644
--- a/mobile/openapi/lib/model/update_album_dto.dart
+++ b/mobile/openapi/lib/model/update_album_dto.dart
@@ -44,9 +44,9 @@ class UpdateAlbumDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumDto &&
- other.albumName == albumName &&
- other.albumThumbnailAssetId == albumThumbnailAssetId &&
- other.description == description;
+ other.albumName == albumName &&
+ other.albumThumbnailAssetId == albumThumbnailAssetId &&
+ other.description == description;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/update_asset_dto.dart b/mobile/openapi/lib/model/update_asset_dto.dart
index 350f692ae1..20368f9d2e 100644
--- a/mobile/openapi/lib/model/update_asset_dto.dart
+++ b/mobile/openapi/lib/model/update_asset_dto.dart
@@ -47,10 +47,10 @@ class UpdateAssetDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UpdateAssetDto &&
- other.description == description &&
- other.isArchived == isArchived &&
- other.isFavorite == isFavorite &&
- _deepEquality.equals(other.tagIds, tagIds);
+ other.description == description &&
+ other.isArchived == isArchived &&
+ other.isFavorite == isFavorite &&
+ other.tagIds == tagIds;
@override
int get hashCode =>
@@ -95,8 +95,8 @@ class UpdateAssetDto {
description: mapValueOfType<String>(json, r'description'),
isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
- tagIds: json[r'tagIds'] is Iterable
- ? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false)
+ tagIds: json[r'tagIds'] is List
+ ? (json[r'tagIds'] as List).cast<String>()
: const [],
);
}
diff --git a/mobile/openapi/lib/model/update_tag_dto.dart b/mobile/openapi/lib/model/update_tag_dto.dart
index 6075bc7963..f1ea738c02 100644
--- a/mobile/openapi/lib/model/update_tag_dto.dart
+++ b/mobile/openapi/lib/model/update_tag_dto.dart
@@ -26,7 +26,7 @@ class UpdateTagDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UpdateTagDto &&
- other.name == name;
+ other.name == name;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/update_user_dto.dart b/mobile/openapi/lib/model/update_user_dto.dart
index 90ad086b3c..71f3f16e8a 100644
--- a/mobile/openapi/lib/model/update_user_dto.dart
+++ b/mobile/openapi/lib/model/update_user_dto.dart
@@ -92,15 +92,15 @@ class UpdateUserDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto &&
- other.email == email &&
- other.externalPath == externalPath &&
- other.firstName == firstName &&
- other.id == id &&
- other.isAdmin == isAdmin &&
- other.lastName == lastName &&
- other.password == password &&
- other.shouldChangePassword == shouldChangePassword &&
- other.storageLabel == storageLabel;
+ other.email == email &&
+ other.externalPath == externalPath &&
+ other.firstName == firstName &&
+ other.id == id &&
+ other.isAdmin == isAdmin &&
+ other.lastName == lastName &&
+ other.password == password &&
+ other.shouldChangePassword == shouldChangePassword &&
+ other.storageLabel == storageLabel;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/usage_by_user_dto.dart b/mobile/openapi/lib/model/usage_by_user_dto.dart
index 109418fafc..052ebaa9fc 100644
--- a/mobile/openapi/lib/model/usage_by_user_dto.dart
+++ b/mobile/openapi/lib/model/usage_by_user_dto.dart
@@ -35,12 +35,12 @@ class UsageByUserDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UsageByUserDto &&
- other.photos == photos &&
- other.usage == usage &&
- other.userFirstName == userFirstName &&
- other.userId == userId &&
- other.userLastName == userLastName &&
- other.videos == videos;
+ other.photos == photos &&
+ other.usage == usage &&
+ other.userFirstName == userFirstName &&
+ other.userId == userId &&
+ other.userLastName == userLastName &&
+ other.videos == videos;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/user_count_response_dto.dart b/mobile/openapi/lib/model/user_count_response_dto.dart
index 122c6f73fa..ecdcd6e468 100644
--- a/mobile/openapi/lib/model/user_count_response_dto.dart
+++ b/mobile/openapi/lib/model/user_count_response_dto.dart
@@ -20,7 +20,7 @@ class UserCountResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UserCountResponseDto &&
- other.userCount == userCount;
+ other.userCount == userCount;
@override
int get hashCode =>
diff --git a/mobile/openapi/lib/model/user_response_dto.dart b/mobile/openapi/lib/model/user_response_dto.dart
index 06bf8edccf..2720827d79 100644
--- a/mobile/openapi/lib/model/user_response_dto.dart
+++ b/mobile/openapi/lib/model/user_response_dto.dart
@@ -56,19 +56,19 @@ class UserResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is UserResponseDto &&
- other.createdAt == createdAt &&
- other.deletedAt == deletedAt &&
- other.email == email &&
- other.externalPath == externalPath &&
- other.firstName == firstName &&
- other.id == id &&
- other.isAdmin == isAdmin &&
- other.lastName == lastName &&
- other.oauthId == oauthId &&
- other.profileImagePath == profileImagePath &&
- other.shouldChangePassword == shouldChangePassword &&
- other.storageLabel == storageLabel &&
- other.updatedAt == updatedAt;
+ other.createdAt == createdAt &&
+ other.deletedAt == deletedAt &&
+ other.email == email &&
+ other.externalPath == externalPath &&
+ other.firstName == firstName &&
+ other.id == id &&
+ other.isAdmin == isAdmin &&
+ other.lastName == lastName &&
+ other.oauthId == oauthId &&
+ other.profileImagePath == profileImagePath &&
+ other.shouldChangePassword == shouldChangePassword &&
+ other.storageLabel == storageLabel &&
+ other.updatedAt == updatedAt;
@override
int get hashCode =>
@@ -128,8 +128,8 @@ class UserResponseDto {
final json = value.cast<String, dynamic>();
return UserResponseDto(
- createdAt: mapDateTime(json, r'createdAt', r'')!,
- deletedAt: mapDateTime(json, r'deletedAt', r''),
+ createdAt: mapDateTime(json, r'createdAt', '')!,
+ deletedAt: mapDateTime(json, r'deletedAt', ''),
email: mapValueOfType<String>(json, r'email')!,
externalPath: mapValueOfType<String>(json, r'externalPath'),
firstName: mapValueOfType<String>(json, r'firstName')!,
@@ -140,7 +140,7 @@ class UserResponseDto {
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
storageLabel: mapValueOfType<String>(json, r'storageLabel'),
- updatedAt: mapDateTime(json, r'updatedAt', r'')!,
+ updatedAt: mapDateTime(json, r'updatedAt', '')!,
);
}
return null;
diff --git a/mobile/openapi/lib/model/validate_access_token_response_dto.dart b/mobile/openapi/lib/model/validate_access_token_response_dto.dart
index f04ca200fc..b06bd663e0 100644
--- a/mobile/openapi/lib/model/validate_access_token_response_dto.dart
+++ b/mobile/openapi/lib/model/validate_access_token_response_dto.dart
@@ -20,7 +20,7 @@ class ValidateAccessTokenResponseDto {
@override
bool operator ==(Object other) => identical(this, other) || other is ValidateAccessTokenResponseDto &&
- other.authStatus == authStatus;
+ other.authStatus == authStatus;
@override
int get hashCode =>
diff --git a/mobile/openapi/test/people_response_dto_test.dart b/mobile/openapi/test/people_response_dto_test.dart
index 0b155b0deb..ae7b81d0ab 100644
--- a/mobile/openapi/test/people_response_dto_test.dart
+++ b/mobile/openapi/test/people_response_dto_test.dart
@@ -21,12 +21,12 @@ void main() {
// TODO
});
- // num total
+ // int total
test('to test the property `total`', () async {
// TODO
});
- // num visible
+ // int visible
test('to test the property `visible`', () async {
// TODO
});
diff --git a/server/bin/generate-open-api.sh b/server/bin/generate-open-api.sh
index 9989b3f63f..2db41e003d 100755
--- a/server/bin/generate-open-api.sh
+++ b/server/bin/generate-open-api.sh
@@ -1,9 +1,10 @@
#!/usr/bin/env bash
+OPENAPI_GENEARTOR_VERSION=v6.6.0
function mobile {
rm -rf ../mobile/openapi
cd ./openapi-generator/templates/mobile/serialization/native
- wget -O native_class.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/master/modules/openapi-generator/src/main/resources/dart2/serialization/native/native_class.mustache
+ wget -O native_class.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENEARTOR_VERSION/modules/openapi-generator/src/main/resources/dart2/serialization/native/native_class.mustache
patch -u native_class.mustache <native_class.mustache.patch
cd ../../../../..
npx --yes @openapitools/openapi-generator-cli generate -g dart -i ./immich-openapi-specs.json -o ../mobile/openapi -t ./openapi-generator/templates/mobile
@@ -17,7 +18,7 @@ function mobile {
function web {
rm -rf ../web/src/api/open-api
cd ./openapi-generator/templates/web
- wget -O apiInner.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/v6.0.1/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
+ wget -O apiInner.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENEARTOR_VERSION/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
patch -u apiInner.mustache < apiInner.mustache.patch
cd ../../..
npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ../web/src/api/open-api -t ./openapi-generator/templates/web --additional-properties=useSingleRequestParameter=true
@@ -26,7 +27,7 @@ function web {
function cli {
rm -rf ../cli/src/api/open-api
cd ./openapi-generator/templates/cli
- wget -O apiInner.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/v6.6.0/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
+ wget -O apiInner.mustache https://raw.githubusercontent.com/OpenAPITools/openapi-generator/$OPENAPI_GENEARTOR_VERSION/modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
patch -u apiInner.mustache < apiInner.mustache.patch
cd ../../..
npx --yes @openapitools/openapi-generator-cli generate -g typescript-axios -i ./immich-openapi-specs.json -o ../cli/src/api/open-api -t ./openapi-generator/templates/cli --additional-properties=useSingleRequestParameter=true
diff --git a/server/immich-openapi-specs.json b/server/immich-openapi-specs.json
index 10b6280ffd..a617a9cfdc 100644
--- a/server/immich-openapi-specs.json
+++ b/server/immich-openapi-specs.json
@@ -5990,10 +5990,10 @@
"type": "array"
},
"total": {
- "type": "number"
+ "type": "integer"
},
"visible": {
- "type": "number"
+ "type": "integer"
}
},
"required": [
diff --git a/server/openapi-generator/templates/mobile/serialization/native/native_class.mustache b/server/openapi-generator/templates/mobile/serialization/native/native_class.mustache
index bb0d59ee43..25e4f66e21 100644
--- a/server/openapi-generator/templates/mobile/serialization/native/native_class.mustache
+++ b/server/openapi-generator/templates/mobile/serialization/native/native_class.mustache
@@ -38,7 +38,7 @@ class {{{classname}}} {
@override
bool operator ==(Object other) => identical(this, other) || other is {{{classname}}} &&
{{#vars}}
- {{#isMap}}_deepEquality.equals(other.{{{name}}}, {{{name}}}){{/isMap}}{{^isMap}}{{#isArray}}_deepEquality.equals(other.{{{name}}}, {{{name}}}){{/isArray}}{{^isArray}}other.{{{name}}} == {{{name}}}{{/isArray}}{{/isMap}}{{^-last}} &&{{/-last}}{{#-last}};{{/-last}}
+ other.{{{name}}} == {{{name}}}{{^-last}} &&{{/-last}}{{#-last}};{{/-last}}
{{/vars}}
@override
@@ -66,7 +66,7 @@ class {{{classname}}} {
{{/isNullable}}
{{#isDateTime}}
{{#pattern}}
- json[r'{{{baseName}}}'] = _isEpochMarker(r'{{{pattern}}}')
+ json[r'{{{baseName}}}'] = _dateEpochMarker == '{{{pattern}}}'
? this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.millisecondsSinceEpoch
: this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc().toIso8601String();
{{/pattern}}
@@ -76,7 +76,7 @@ class {{{classname}}} {
{{/isDateTime}}
{{#isDate}}
{{#pattern}}
- json[r'{{{baseName}}}'] = _isEpochMarker(r'{{{pattern}}}')
+ json[r'{{{baseName}}}'] = _dateEpochMarker == '{{{pattern}}}'
? this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.millisecondsSinceEpoch
: _dateFormatter.format(this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc());
{{/pattern}}
@@ -86,7 +86,7 @@ class {{{classname}}} {
{{/isDate}}
{{^isDateTime}}
{{^isDate}}
- json[r'{{{baseName}}}'] = this.{{{name}}}{{#isArray}}{{#uniqueItems}}{{#isNullable}}!{{/isNullable}}.toList(growable: false){{/uniqueItems}}{{/isArray}};
+ json[r'{{{baseName}}}'] = this.{{{name}}};
{{/isDate}}
{{/isDateTime}}
{{#isNullable}}
@@ -117,10 +117,10 @@ class {{{classname}}} {
return {{{classname}}}(
{{#vars}}
{{#isDateTime}}
- {{{name}}}: mapDateTime(json, r'{{{baseName}}}', r'{{{pattern}}}'){{#required}}{{^isNullable}}!{{/isNullable}}{{/required}}{{^required}}{{#defaultValue}} ?? {{{.}}}{{/defaultValue}}{{/required}},
+ {{{name}}}: mapDateTime(json, r'{{{baseName}}}', '{{{pattern}}}'){{#required}}{{^isNullable}}!{{/isNullable}}{{/required}}{{^required}}{{#defaultValue}} ?? {{{.}}}{{/defaultValue}}{{/required}},
{{/isDateTime}}
{{#isDate}}
- {{{name}}}: mapDateTime(json, r'{{{baseName}}}', r'{{{pattern}}}'){{#required}}{{^isNullable}}!{{/isNullable}}{{/required}}{{^required}}{{#defaultValue}} ?? {{{.}}}{{/defaultValue}}{{/required}},
+ {{{name}}}: mapDateTime(json, r'{{{baseName}}}', '{{{pattern}}}'){{#required}}{{^isNullable}}!{{/isNullable}}{{/required}}{{^required}}{{#defaultValue}} ?? {{{.}}}{{/defaultValue}}{{/required}},
{{/isDate}}
{{^isDateTime}}
{{^isDate}}
@@ -189,8 +189,8 @@ class {{{classname}}} {
{{{name}}}: {{{items.datatypeWithEnum}}}.listFromJson(json[r'{{{baseName}}}']){{#uniqueItems}}.toSet(){{/uniqueItems}},
{{/isEnum}}
{{^isEnum}}
- {{{name}}}: json[r'{{{baseName}}}'] is Iterable
- ? (json[r'{{{baseName}}}'] as Iterable).cast<{{{items.datatype}}}>().{{#uniqueItems}}toSet(){{/uniqueItems}}{{^uniqueItems}}toList(growable: false){{/uniqueItems}}
+ {{{name}}}: json[r'{{{baseName}}}'] is {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}
+ ? (json[r'{{{baseName}}}'] as {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}).cast<{{{items.datatype}}}>()
: {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}},
{{/isEnum}}
{{/isArray}}
@@ -200,9 +200,9 @@ class {{{classname}}} {
{{/isMap}}
{{^isMap}}
{{#isNumber}}
- {{{name}}}: {{#isNullable}}json[r'{{{baseName}}}'] == null
+ {{{name}}}: json[r'{{{baseName}}}'] == null
? {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}
- : {{/isNullable}}{{{datatypeWithEnum}}}.parse('${json[r'{{{baseName}}}']}'),
+ : {{{datatypeWithEnum}}}.parse(json[r'{{{baseName}}}'].toString()),
{{/isNumber}}
{{^isNumber}}
{{^isEnum}}
diff --git a/server/openapi-generator/templates/web/apiInner.mustache b/server/openapi-generator/templates/web/apiInner.mustache
index 848b41b971..65bf745061 100644
--- a/server/openapi-generator/templates/web/apiInner.mustache
+++ b/server/openapi-generator/templates/web/apiInner.mustache
@@ -3,8 +3,9 @@
/* eslint-disable */
{{>licenseInfo}}
-import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
-import { Configuration } from '{{apiRelativeToRoot}}configuration';
+import type { Configuration } from '{{apiRelativeToRoot}}configuration';
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
+import globalAxios from 'axios';
{{#withNodeImports}}
// URLSearchParams not necessarily used
// @ts-ignore
@@ -146,12 +147,16 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
}
{{/isArray}}
{{^isArray}}
- if ({{paramName}} !== undefined && {{paramName}} !== null) {
+ {{! `val == null` covers for both `null` and `undefined`}}
+ if ({{paramName}} != null) {
{{#isString}}
localVarHeaderParameter['{{baseName}}'] = String({{paramName}});
{{/isString}}
{{^isString}}
- localVarHeaderParameter['{{baseName}}'] = String(JSON.stringify({{paramName}}));
+ {{! isString is falsy also for $ref that defines a string or enum type}}
+ localVarHeaderParameter['{{baseName}}'] = typeof {{paramName}} === 'string'
+ ? {{paramName}}
+ : JSON.stringify({{paramName}});
{{/isString}}
}
{{/isArray}}
@@ -253,16 +258,30 @@ export const {{classname}}Factory = function (configuration?: Configuration, bas
{{#summary}}
* @summary {{&summary}}
{{/summary}}
+ {{#useSingleRequestParameter}}
+ {{#allParams.0}}
+ * @param {{=<% %>=}}{<%& classname %><%& operationIdCamelCase %>Request}<%={{ }}=%> requestParameters Request parameters.
+ {{/allParams.0}}
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
{{#allParams}}
* @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
{{/allParams}}
+ {{/useSingleRequestParameter}}
* @param {*} [options] Override http request option.{{#isDeprecated}}
* @deprecated{{/isDeprecated}}
* @throws {RequiredError}
*/
+ {{#useSingleRequestParameter}}
+ {{nickname}}({{#allParams.0}}requestParameters: {{classname}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}options?: AxiosRequestConfig): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> {
+ return localVarFp.{{nickname}}({{#allParams.0}}{{#allParams}}requestParameters.{{paramName}}, {{/allParams}}{{/allParams.0}}options).then((request) => request(axios, basePath));
+ },
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
{{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> {
return localVarFp.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(axios, basePath));
},
+ {{/useSingleRequestParameter}}
{{/operation}}
};
};
diff --git a/server/openapi-generator/templates/web/apiInner.mustache.orig b/server/openapi-generator/templates/web/apiInner.mustache.orig
new file mode 100644
index 0000000000..4cb65b7f1b
--- /dev/null
+++ b/server/openapi-generator/templates/web/apiInner.mustache.orig
@@ -0,0 +1,390 @@
+{{#withSeparateModelsAndApi}}
+/* tslint:disable */
+/* eslint-disable */
+{{>licenseInfo}}
+
+import type { Configuration } from '{{apiRelativeToRoot}}configuration';
+import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
+import globalAxios from 'axios';
+{{#withNodeImports}}
+// URLSearchParams not necessarily used
+// @ts-ignore
+import { URL, URLSearchParams } from 'url';
+{{#multipartFormData}}
+import FormData from 'form-data'
+{{/multipartFormData}}
+{{/withNodeImports}}
+// Some imports not used depending on template conditions
+// @ts-ignore
+import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '{{apiRelativeToRoot}}common';
+// @ts-ignore
+import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '{{apiRelativeToRoot}}base';
+{{#imports}}
+// @ts-ignore
+import { {{classname}} } from '{{apiRelativeToRoot}}{{tsModelPackage}}';
+{{/imports}}
+{{/withSeparateModelsAndApi}}
+{{^withSeparateModelsAndApi}}
+{{/withSeparateModelsAndApi}}
+{{#operations}}
+/**
+ * {{classname}} - axios parameter creator{{#description}}
+ * {{&description}}{{/description}}
+ * @export
+ */
+export const {{classname}}AxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ {{#operation}}
+ /**
+ * {{&notes}}
+ {{#summary}}
+ * @summary {{&summary}}
+ {{/summary}}
+ {{#allParams}}
+ * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
+ {{/allParams}}
+ * @param {*} [options] Override http request option.{{#isDeprecated}}
+ * @deprecated{{/isDeprecated}}
+ * @throws {RequiredError}
+ */
+ {{nickname}}: async ({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
+ {{#allParams}}
+ {{#required}}
+ // verify required parameter '{{paramName}}' is not null or undefined
+ assertParamExists('{{nickname}}', '{{paramName}}', {{paramName}})
+ {{/required}}
+ {{/allParams}}
+ const localVarPath = `{{{path}}}`{{#pathParams}}
+ .replace(`{${"{{baseName}}"}}`, encodeURIComponent(String({{paramName}}))){{/pathParams}};
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: '{{httpMethod}}', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;{{#vendorExtensions}}{{#hasFormParams}}
+ const localVarFormParams = new {{^multipartFormData}}URLSearchParams(){{/multipartFormData}}{{#multipartFormData}}((configuration && configuration.formDataCtor) || FormData)(){{/multipartFormData}};{{/hasFormParams}}{{/vendorExtensions}}
+
+ {{#authMethods}}
+ // authentication {{name}} required
+ {{#isApiKey}}
+ {{#isKeyInHeader}}
+ await setApiKeyToObject(localVarHeaderParameter, "{{keyParamName}}", configuration)
+ {{/isKeyInHeader}}
+ {{#isKeyInQuery}}
+ await setApiKeyToObject(localVarQueryParameter, "{{keyParamName}}", configuration)
+ {{/isKeyInQuery}}
+ {{/isApiKey}}
+ {{#isBasicBasic}}
+ // http basic authentication required
+ setBasicAuthToObject(localVarRequestOptions, configuration)
+ {{/isBasicBasic}}
+ {{#isBasicBearer}}
+ // http bearer authentication required
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
+ {{/isBasicBearer}}
+ {{#isOAuth}}
+ // oauth required
+ await setOAuthToObject(localVarHeaderParameter, "{{name}}", [{{#scopes}}"{{{scope}}}"{{^-last}}, {{/-last}}{{/scopes}}], configuration)
+ {{/isOAuth}}
+
+ {{/authMethods}}
+ {{#queryParams}}
+ {{#isArray}}
+ if ({{paramName}}) {
+ {{#isCollectionFormatMulti}}
+ {{#uniqueItems}}
+ localVarQueryParameter['{{baseName}}'] = Array.from({{paramName}});
+ {{/uniqueItems}}
+ {{^uniqueItems}}
+ localVarQueryParameter['{{baseName}}'] = {{paramName}};
+ {{/uniqueItems}}
+ {{/isCollectionFormatMulti}}
+ {{^isCollectionFormatMulti}}
+ {{#uniqueItems}}
+ localVarQueryParameter['{{baseName}}'] = Array.from({{paramName}}).join(COLLECTION_FORMATS.{{collectionFormat}});
+ {{/uniqueItems}}
+ {{^uniqueItems}}
+ localVarQueryParameter['{{baseName}}'] = {{paramName}}.join(COLLECTION_FORMATS.{{collectionFormat}});
+ {{/uniqueItems}}
+ {{/isCollectionFormatMulti}}
+ }
+ {{/isArray}}
+ {{^isArray}}
+ if ({{paramName}} !== undefined) {
+ {{#isDateTime}}
+ localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any instanceof Date) ?
+ ({{paramName}} as any).toISOString() :
+ {{paramName}};
+ {{/isDateTime}}
+ {{^isDateTime}}
+ {{#isDate}}
+ localVarQueryParameter['{{baseName}}'] = ({{paramName}} as any instanceof Date) ?
+ ({{paramName}} as any).toISOString().substr(0,10) :
+ {{paramName}};
+ {{/isDate}}
+ {{^isDate}}
+ localVarQueryParameter['{{baseName}}'] = {{paramName}};
+ {{/isDate}}
+ {{/isDateTime}}
+ }
+ {{/isArray}}
+
+ {{/queryParams}}
+ {{#headerParams}}
+ {{#isArray}}
+ if ({{paramName}}) {
+ {{#uniqueItems}}
+ let mapped = Array.from({{paramName}}).map(value => (<any>"{{{dataType}}}" !== "Set<string>") ? JSON.stringify(value) : (value || ""));
+ {{/uniqueItems}}
+ {{^uniqueItems}}
+ let mapped = {{paramName}}.map(value => (<any>"{{{dataType}}}" !== "Array<string>") ? JSON.stringify(value) : (value || ""));
+ {{/uniqueItems}}
+ localVarHeaderParameter['{{baseName}}'] = mapped.join(COLLECTION_FORMATS["{{collectionFormat}}"]);
+ }
+ {{/isArray}}
+ {{^isArray}}
+ {{! `val == null` covers for both `null` and `undefined`}}
+ if ({{paramName}} != null) {
+ {{#isString}}
+ localVarHeaderParameter['{{baseName}}'] = String({{paramName}});
+ {{/isString}}
+ {{^isString}}
+ {{! isString is falsy also for $ref that defines a string or enum type}}
+ localVarHeaderParameter['{{baseName}}'] = typeof {{paramName}} === 'string'
+ ? {{paramName}}
+ : JSON.stringify({{paramName}});
+ {{/isString}}
+ }
+ {{/isArray}}
+
+ {{/headerParams}}
+ {{#vendorExtensions}}
+ {{#formParams}}
+ {{#isArray}}
+ if ({{paramName}}) {
+ {{#isCollectionFormatMulti}}
+ {{paramName}}.forEach((element) => {
+ localVarFormParams.{{#multipartFormData}}append{{/multipartFormData}}{{^multipartFormData}}set{{/multipartFormData}}('{{baseName}}', element as any);
+ })
+ {{/isCollectionFormatMulti}}
+ {{^isCollectionFormatMulti}}
+ localVarFormParams.{{#multipartFormData}}append{{/multipartFormData}}{{^multipartFormData}}set{{/multipartFormData}}('{{baseName}}', {{paramName}}.join(COLLECTION_FORMATS.{{collectionFormat}}));
+ {{/isCollectionFormatMulti}}
+ }{{/isArray}}
+ {{^isArray}}
+ if ({{paramName}} !== undefined) { {{^multipartFormData}}
+ localVarFormParams.set('{{baseName}}', {{paramName}} as any);{{/multipartFormData}}{{#multipartFormData}}{{#isPrimitiveType}}
+ localVarFormParams.append('{{baseName}}', {{paramName}} as any);{{/isPrimitiveType}}{{^isPrimitiveType}}
+ localVarFormParams.append('{{baseName}}', new Blob([JSON.stringify({{paramName}})], { type: "application/json", }));{{/isPrimitiveType}}{{/multipartFormData}}
+ }{{/isArray}}
+ {{/formParams}}{{/vendorExtensions}}
+ {{#vendorExtensions}}{{#hasFormParams}}{{^multipartFormData}}
+ localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded';{{/multipartFormData}}{{#multipartFormData}}
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';{{/multipartFormData}}
+ {{/hasFormParams}}{{/vendorExtensions}}
+ {{#bodyParam}}
+ {{^consumes}}
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+ {{/consumes}}
+ {{#consumes.0}}
+ localVarHeaderParameter['Content-Type'] = '{{{mediaType}}}';
+ {{/consumes.0}}
+
+ {{/bodyParam}}
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions,{{#hasFormParams}}{{#multipartFormData}} ...(localVarFormParams as any).getHeaders?.(),{{/multipartFormData}}{{/hasFormParams}} ...options.headers};
+ {{#hasFormParams}}
+ localVarRequestOptions.data = localVarFormParams{{#vendorExtensions}}{{^multipartFormData}}.toString(){{/multipartFormData}}{{/vendorExtensions}};
+ {{/hasFormParams}}
+ {{#bodyParam}}
+ localVarRequestOptions.data = serializeDataIfNeeded({{paramName}}, localVarRequestOptions, configuration)
+ {{/bodyParam}}
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ {{/operation}}
+ }
+};
+
+/**
+ * {{classname}} - functional programming interface{{#description}}
+ * {{{.}}}{{/description}}
+ * @export
+ */
+export const {{classname}}Fp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = {{classname}}AxiosParamCreator(configuration)
+ return {
+ {{#operation}}
+ /**
+ * {{&notes}}
+ {{#summary}}
+ * @summary {{&summary}}
+ {{/summary}}
+ {{#allParams}}
+ * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
+ {{/allParams}}
+ * @param {*} [options] Override http request option.{{#isDeprecated}}
+ * @deprecated{{/isDeprecated}}
+ * @throws {RequiredError}
+ */
+ async {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
+ {{/operation}}
+ }
+};
+
+/**
+ * {{classname}} - factory interface{{#description}}
+ * {{&description}}{{/description}}
+ * @export
+ */
+export const {{classname}}Factory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = {{classname}}Fp(configuration)
+ return {
+ {{#operation}}
+ /**
+ * {{&notes}}
+ {{#summary}}
+ * @summary {{&summary}}
+ {{/summary}}
+ {{#useSingleRequestParameter}}
+ {{#allParams.0}}
+ * @param {{=<% %>=}}{<%& classname %><%& operationIdCamelCase %>Request}<%={{ }}=%> requestParameters Request parameters.
+ {{/allParams.0}}
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
+ {{#allParams}}
+ * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
+ {{/allParams}}
+ {{/useSingleRequestParameter}}
+ * @param {*} [options] Override http request option.{{#isDeprecated}}
+ * @deprecated{{/isDeprecated}}
+ * @throws {RequiredError}
+ */
+ {{#useSingleRequestParameter}}
+ {{nickname}}({{#allParams.0}}requestParameters: {{classname}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}options?: AxiosRequestConfig): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> {
+ return localVarFp.{{nickname}}({{#allParams.0}}{{#allParams}}requestParameters.{{paramName}}, {{/allParams}}{{/allParams.0}}options).then((request) => request(axios, basePath));
+ },
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
+ {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: any): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}> {
+ return localVarFp.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(axios, basePath));
+ },
+ {{/useSingleRequestParameter}}
+ {{/operation}}
+ };
+};
+
+{{#withInterfaces}}
+/**
+ * {{classname}} - interface{{#description}}
+ * {{&description}}{{/description}}
+ * @export
+ * @interface {{classname}}
+ */
+export interface {{classname}}Interface {
+{{#operation}}
+ /**
+ * {{&notes}}
+ {{#summary}}
+ * @summary {{&summary}}
+ {{/summary}}
+ {{#allParams}}
+ * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
+ {{/allParams}}
+ * @param {*} [options] Override http request option.{{#isDeprecated}}
+ * @deprecated{{/isDeprecated}}
+ * @throws {RequiredError}
+ * @memberof {{classname}}Interface
+ */
+ {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig): AxiosPromise<{{{returnType}}}{{^returnType}}void{{/returnType}}>;
+
+{{/operation}}
+}
+
+{{/withInterfaces}}
+{{#useSingleRequestParameter}}
+{{#operation}}
+{{#allParams.0}}
+/**
+ * Request parameters for {{nickname}} operation in {{classname}}.
+ * @export
+ * @interface {{classname}}{{operationIdCamelCase}}Request
+ */
+export interface {{classname}}{{operationIdCamelCase}}Request {
+ {{#allParams}}
+ /**
+ * {{description}}
+ * @type {{=<% %>=}}{<%&dataType%>}<%={{ }}=%>
+ * @memberof {{classname}}{{operationIdCamelCase}}
+ */
+ readonly {{paramName}}{{^required}}?{{/required}}: {{{dataType}}}
+ {{^-last}}
+
+ {{/-last}}
+ {{/allParams}}
+}
+
+{{/allParams.0}}
+{{/operation}}
+{{/useSingleRequestParameter}}
+/**
+ * {{classname}} - object-oriented interface{{#description}}
+ * {{{.}}}{{/description}}
+ * @export
+ * @class {{classname}}
+ * @extends {BaseAPI}
+ */
+{{#withInterfaces}}
+export class {{classname}} extends BaseAPI implements {{classname}}Interface {
+{{/withInterfaces}}
+{{^withInterfaces}}
+export class {{classname}} extends BaseAPI {
+{{/withInterfaces}}
+ {{#operation}}
+ /**
+ * {{&notes}}
+ {{#summary}}
+ * @summary {{&summary}}
+ {{/summary}}
+ {{#useSingleRequestParameter}}
+ {{#allParams.0}}
+ * @param {{=<% %>=}}{<%& classname %><%& operationIdCamelCase %>Request}<%={{ }}=%> requestParameters Request parameters.
+ {{/allParams.0}}
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
+ {{#allParams}}
+ * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
+ {{/allParams}}
+ {{/useSingleRequestParameter}}
+ * @param {*} [options] Override http request option.{{#isDeprecated}}
+ * @deprecated{{/isDeprecated}}
+ * @throws {RequiredError}
+ * @memberof {{classname}}
+ */
+ {{#useSingleRequestParameter}}
+ public {{nickname}}({{#allParams.0}}requestParameters: {{classname}}{{operationIdCamelCase}}Request{{^hasRequiredParams}} = {}{{/hasRequiredParams}}, {{/allParams.0}}options?: AxiosRequestConfig) {
+ return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams.0}}{{#allParams}}requestParameters.{{paramName}}, {{/allParams}}{{/allParams.0}}options).then((request) => request(this.axios, this.basePath));
+ }
+ {{/useSingleRequestParameter}}
+ {{^useSingleRequestParameter}}
+ public {{nickname}}({{#allParams}}{{paramName}}{{^required}}?{{/required}}: {{{dataType}}}, {{/allParams}}options?: AxiosRequestConfig) {
+ return {{classname}}Fp(this.configuration).{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(this.axios, this.basePath));
+ }
+ {{/useSingleRequestParameter}}
+ {{^-last}}
+
+ {{/-last}}
+ {{/operation}}
+}
+{{/operations}}
diff --git a/server/src/domain/person/person.dto.ts b/server/src/domain/person/person.dto.ts
index 7b99da0dbd..f9557fbaea 100644
--- a/server/src/domain/person/person.dto.ts
+++ b/server/src/domain/person/person.dto.ts
@@ -1,4 +1,5 @@
import { AssetFaceEntity, PersonEntity } from '@app/infra/entities';
+import { ApiProperty } from '@nestjs/swagger';
import { Transform, Type } from 'class-transformer';
import { IsArray, IsBoolean, IsNotEmpty, IsOptional, IsString, ValidateNested } from 'class-validator';
import { toBoolean, ValidateUUID } from '../domain.util';
@@ -82,8 +83,12 @@ export class PersonResponseDto {
}
export class PeopleResponseDto {
+ @ApiProperty({ type: 'integer' })
total!: number;
+
+ @ApiProperty({ type: 'integer' })
visible!: number;
+
people!: PersonResponseDto[];
}
diff --git a/web/src/api/open-api/api.ts b/web/src/api/open-api/api.ts
index e444eb580a..744c297858 100644
--- a/web/src/api/open-api/api.ts
+++ b/web/src/api/open-api/api.ts
@@ -3429,48 +3429,47 @@ export const APIKeyApiFactory = function (configuration?: Configuration, basePat
return {
/**
*
- * @param {APIKeyCreateDto} aPIKeyCreateDto
+ * @param {APIKeyApiCreateKeyRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createKey(aPIKeyCreateDto: APIKeyCreateDto, options?: any): AxiosPromise<APIKeyCreateResponseDto> {
- return localVarFp.createKey(aPIKeyCreateDto, options).then((request) => request(axios, basePath));
+ createKey(requestParameters: APIKeyApiCreateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyCreateResponseDto> {
+ return localVarFp.createKey(requestParameters.aPIKeyCreateDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {APIKeyApiDeleteKeyRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteKey(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.deleteKey(id, options).then((request) => request(axios, basePath));
+ deleteKey(requestParameters: APIKeyApiDeleteKeyRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.deleteKey(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {APIKeyApiGetKeyRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getKey(id: string, options?: any): AxiosPromise<APIKeyResponseDto> {
- return localVarFp.getKey(id, options).then((request) => request(axios, basePath));
+ getKey(requestParameters: APIKeyApiGetKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
+ return localVarFp.getKey(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getKeys(options?: any): AxiosPromise<Array<APIKeyResponseDto>> {
+ getKeys(options?: AxiosRequestConfig): AxiosPromise<Array<APIKeyResponseDto>> {
return localVarFp.getKeys(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {APIKeyUpdateDto} aPIKeyUpdateDto
+ * @param {APIKeyApiUpdateKeyRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateKey(id: string, aPIKeyUpdateDto: APIKeyUpdateDto, options?: any): AxiosPromise<APIKeyResponseDto> {
- return localVarFp.updateKey(id, aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
+ updateKey(requestParameters: APIKeyApiUpdateKeyRequest, options?: AxiosRequestConfig): AxiosPromise<APIKeyResponseDto> {
+ return localVarFp.updateKey(requestParameters.id, requestParameters.aPIKeyUpdateDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -4198,100 +4197,92 @@ export const AlbumApiFactory = function (configuration?: Configuration, basePath
return {
/**
*
- * @param {string} id
- * @param {BulkIdsDto} bulkIdsDto
- * @param {string} [key]
+ * @param {AlbumApiAddAssetsToAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- addAssetsToAlbum(id: string, bulkIdsDto: BulkIdsDto, key?: string, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
- return localVarFp.addAssetsToAlbum(id, bulkIdsDto, key, options).then((request) => request(axios, basePath));
+ addAssetsToAlbum(requestParameters: AlbumApiAddAssetsToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
+ return localVarFp.addAssetsToAlbum(requestParameters.id, requestParameters.bulkIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {AddUsersDto} addUsersDto
+ * @param {AlbumApiAddUsersToAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- addUsersToAlbum(id: string, addUsersDto: AddUsersDto, options?: any): AxiosPromise<AlbumResponseDto> {
- return localVarFp.addUsersToAlbum(id, addUsersDto, options).then((request) => request(axios, basePath));
+ addUsersToAlbum(requestParameters: AlbumApiAddUsersToAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
+ return localVarFp.addUsersToAlbum(requestParameters.id, requestParameters.addUsersDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {CreateAlbumDto} createAlbumDto
+ * @param {AlbumApiCreateAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createAlbum(createAlbumDto: CreateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
- return localVarFp.createAlbum(createAlbumDto, options).then((request) => request(axios, basePath));
+ createAlbum(requestParameters: AlbumApiCreateAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
+ return localVarFp.createAlbum(requestParameters.createAlbumDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {AlbumApiDeleteAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteAlbum(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.deleteAlbum(id, options).then((request) => request(axios, basePath));
+ deleteAlbum(requestParameters: AlbumApiDeleteAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.deleteAlbum(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAlbumCount(options?: any): AxiosPromise<AlbumCountResponseDto> {
+ getAlbumCount(options?: AxiosRequestConfig): AxiosPromise<AlbumCountResponseDto> {
return localVarFp.getAlbumCount(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {string} [key]
+ * @param {AlbumApiGetAlbumInfoRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAlbumInfo(id: string, key?: string, options?: any): AxiosPromise<AlbumResponseDto> {
- return localVarFp.getAlbumInfo(id, key, options).then((request) => request(axios, basePath));
+ getAlbumInfo(requestParameters: AlbumApiGetAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
+ return localVarFp.getAlbumInfo(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {boolean} [shared]
- * @param {string} [assetId] Only returns albums that contain the asset Ignores the shared parameter undefined: get all albums
+ * @param {AlbumApiGetAllAlbumsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllAlbums(shared?: boolean, assetId?: string, options?: any): AxiosPromise<Array<AlbumResponseDto>> {
- return localVarFp.getAllAlbums(shared, assetId, options).then((request) => request(axios, basePath));
+ getAllAlbums(requestParameters: AlbumApiGetAllAlbumsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AlbumResponseDto>> {
+ return localVarFp.getAllAlbums(requestParameters.shared, requestParameters.assetId, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {BulkIdsDto} bulkIdsDto
+ * @param {AlbumApiRemoveAssetFromAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- removeAssetFromAlbum(id: string, bulkIdsDto: BulkIdsDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
- return localVarFp.removeAssetFromAlbum(id, bulkIdsDto, options).then((request) => request(axios, basePath));
+ removeAssetFromAlbum(requestParameters: AlbumApiRemoveAssetFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
+ return localVarFp.removeAssetFromAlbum(requestParameters.id, requestParameters.bulkIdsDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {string} userId
+ * @param {AlbumApiRemoveUserFromAlbumRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- removeUserFromAlbum(id: string, userId: string, options?: any): AxiosPromise<void> {
- return localVarFp.removeUserFromAlbum(id, userId, options).then((request) => request(axios, basePath));
+ removeUserFromAlbum(requestParameters: AlbumApiRemoveUserFromAlbumRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.removeUserFromAlbum(requestParameters.id, requestParameters.userId, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {UpdateAlbumDto} updateAlbumDto
+ * @param {AlbumApiUpdateAlbumInfoRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateAlbumInfo(id: string, updateAlbumDto: UpdateAlbumDto, options?: any): AxiosPromise<AlbumResponseDto> {
- return localVarFp.updateAlbumInfo(id, updateAlbumDto, options).then((request) => request(axios, basePath));
+ updateAlbumInfo(requestParameters: AlbumApiUpdateAlbumInfoRequest, options?: AxiosRequestConfig): AxiosPromise<AlbumResponseDto> {
+ return localVarFp.updateAlbumInfo(requestParameters.id, requestParameters.updateAlbumDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -4932,7 +4923,7 @@ export const AssetApiAxiosParamCreator = function (configuration?: Configuration
localVarQueryParameter['skip'] = skip;
}
- if (ifNoneMatch !== undefined && ifNoneMatch !== null) {
+ if (ifNoneMatch != null) {
localVarHeaderParameter['if-none-match'] = String(ifNoneMatch);
}
@@ -6192,136 +6183,117 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
return {
/**
* Checks if assets exist by checksums
- * @param {AssetBulkUploadCheckDto} assetBulkUploadCheckDto
+ * @param {AssetApiBulkUploadCheckRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- bulkUploadCheck(assetBulkUploadCheckDto: AssetBulkUploadCheckDto, options?: any): AxiosPromise<AssetBulkUploadCheckResponseDto> {
- return localVarFp.bulkUploadCheck(assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
+ bulkUploadCheck(requestParameters: AssetApiBulkUploadCheckRequest, options?: AxiosRequestConfig): AxiosPromise<AssetBulkUploadCheckResponseDto> {
+ return localVarFp.bulkUploadCheck(requestParameters.assetBulkUploadCheckDto, options).then((request) => request(axios, basePath));
},
/**
* Check duplicated asset before uploading - for Web upload used
- * @param {CheckDuplicateAssetDto} checkDuplicateAssetDto
- * @param {string} [key]
+ * @param {AssetApiCheckDuplicateAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- checkDuplicateAsset(checkDuplicateAssetDto: CheckDuplicateAssetDto, key?: string, options?: any): AxiosPromise<CheckDuplicateAssetResponseDto> {
- return localVarFp.checkDuplicateAsset(checkDuplicateAssetDto, key, options).then((request) => request(axios, basePath));
+ checkDuplicateAsset(requestParameters: AssetApiCheckDuplicateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<CheckDuplicateAssetResponseDto> {
+ return localVarFp.checkDuplicateAsset(requestParameters.checkDuplicateAssetDto, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
* Checks if multiple assets exist on the server and returns all existing - used by background backup
- * @param {CheckExistingAssetsDto} checkExistingAssetsDto
+ * @param {AssetApiCheckExistingAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- checkExistingAssets(checkExistingAssetsDto: CheckExistingAssetsDto, options?: any): AxiosPromise<CheckExistingAssetsResponseDto> {
- return localVarFp.checkExistingAssets(checkExistingAssetsDto, options).then((request) => request(axios, basePath));
+ checkExistingAssets(requestParameters: AssetApiCheckExistingAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<CheckExistingAssetsResponseDto> {
+ return localVarFp.checkExistingAssets(requestParameters.checkExistingAssetsDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {DeleteAssetDto} deleteAssetDto
+ * @param {AssetApiDeleteAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteAsset(deleteAssetDto: DeleteAssetDto, options?: any): AxiosPromise<Array<DeleteAssetResponseDto>> {
- return localVarFp.deleteAsset(deleteAssetDto, options).then((request) => request(axios, basePath));
+ deleteAsset(requestParameters: AssetApiDeleteAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<DeleteAssetResponseDto>> {
+ return localVarFp.deleteAsset(requestParameters.deleteAssetDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {AssetIdsDto} assetIdsDto
- * @param {string} [key]
+ * @param {AssetApiDownloadArchiveRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- downloadArchive(assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<File> {
- return localVarFp.downloadArchive(assetIdsDto, key, options).then((request) => request(axios, basePath));
+ downloadArchive(requestParameters: AssetApiDownloadArchiveRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
+ return localVarFp.downloadArchive(requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {string} [key]
+ * @param {AssetApiDownloadFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- downloadFile(id: string, key?: string, options?: any): AxiosPromise<File> {
- return localVarFp.downloadFile(id, key, options).then((request) => request(axios, basePath));
+ downloadFile(requestParameters: AssetApiDownloadFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
+ return localVarFp.downloadFile(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
* Get all AssetEntity belong to the user
- * @param {string} [userId]
- * @param {boolean} [isFavorite]
- * @param {boolean} [isArchived]
- * @param {boolean} [withoutThumbs] Include assets without thumbnails
- * @param {number} [skip]
- * @param {string} [ifNoneMatch] ETag of data already cached on the client
+ * @param {AssetApiGetAllAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllAssets(userId?: string, isFavorite?: boolean, isArchived?: boolean, withoutThumbs?: boolean, skip?: number, ifNoneMatch?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getAllAssets(userId, isFavorite, isArchived, withoutThumbs, skip, ifNoneMatch, options).then((request) => request(axios, basePath));
+ getAllAssets(requestParameters: AssetApiGetAllAssetsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
+ return localVarFp.getAllAssets(requestParameters.userId, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.withoutThumbs, requestParameters.skip, requestParameters.ifNoneMatch, options).then((request) => request(axios, basePath));
},
/**
* Get a single asset\'s information
- * @param {string} id
- * @param {string} [key]
+ * @param {AssetApiGetAssetByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAssetById(id: string, key?: string, options?: any): AxiosPromise<AssetResponseDto> {
- return localVarFp.getAssetById(id, key, options).then((request) => request(axios, basePath));
+ getAssetById(requestParameters: AssetApiGetAssetByIdRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
+ return localVarFp.getAssetById(requestParameters.id, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAssetSearchTerms(options?: any): AxiosPromise<Array<string>> {
+ getAssetSearchTerms(options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
return localVarFp.getAssetSearchTerms(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {boolean} [isArchived]
- * @param {boolean} [isFavorite]
+ * @param {AssetApiGetAssetStatsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAssetStats(isArchived?: boolean, isFavorite?: boolean, options?: any): AxiosPromise<AssetStatsResponseDto> {
- return localVarFp.getAssetStats(isArchived, isFavorite, options).then((request) => request(axios, basePath));
+ getAssetStats(requestParameters: AssetApiGetAssetStatsRequest = {}, options?: AxiosRequestConfig): AxiosPromise<AssetStatsResponseDto> {
+ return localVarFp.getAssetStats(requestParameters.isArchived, requestParameters.isFavorite, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {ThumbnailFormat} [format]
- * @param {string} [key]
+ * @param {AssetApiGetAssetThumbnailRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAssetThumbnail(id: string, format?: ThumbnailFormat, key?: string, options?: any): AxiosPromise<File> {
- return localVarFp.getAssetThumbnail(id, format, key, options).then((request) => request(axios, basePath));
+ getAssetThumbnail(requestParameters: AssetApiGetAssetThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
+ return localVarFp.getAssetThumbnail(requestParameters.id, requestParameters.format, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {TimeBucketSize} size
- * @param {string} timeBucket
- * @param {string} [userId]
- * @param {string} [albumId]
- * @param {string} [personId]
- * @param {boolean} [isArchived]
- * @param {boolean} [isFavorite]
- * @param {string} [key]
+ * @param {AssetApiGetByTimeBucketRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getByTimeBucket(size: TimeBucketSize, timeBucket: string, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, key?: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getByTimeBucket(size, timeBucket, userId, albumId, personId, isArchived, isFavorite, key, options).then((request) => request(axios, basePath));
+ getByTimeBucket(requestParameters: AssetApiGetByTimeBucketRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
+ return localVarFp.getByTimeBucket(requestParameters.size, requestParameters.timeBucket, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getCuratedLocations(options?: any): AxiosPromise<Array<CuratedLocationsResponseDto>> {
+ getCuratedLocations(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedLocationsResponseDto>> {
return localVarFp.getCuratedLocations(options).then((request) => request(axios, basePath));
},
/**
@@ -6329,126 +6301,98 @@ export const AssetApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getCuratedObjects(options?: any): AxiosPromise<Array<CuratedObjectsResponseDto>> {
+ getCuratedObjects(options?: AxiosRequestConfig): AxiosPromise<Array<CuratedObjectsResponseDto>> {
return localVarFp.getCuratedObjects(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {Array<string>} [assetIds]
- * @param {string} [albumId]
- * @param {string} [userId]
- * @param {number} [archiveSize]
- * @param {string} [key]
+ * @param {AssetApiGetDownloadInfoRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getDownloadInfo(assetIds?: Array<string>, albumId?: string, userId?: string, archiveSize?: number, key?: string, options?: any): AxiosPromise<DownloadResponseDto> {
- return localVarFp.getDownloadInfo(assetIds, albumId, userId, archiveSize, key, options).then((request) => request(axios, basePath));
+ getDownloadInfo(requestParameters: AssetApiGetDownloadInfoRequest = {}, options?: AxiosRequestConfig): AxiosPromise<DownloadResponseDto> {
+ return localVarFp.getDownloadInfo(requestParameters.assetIds, requestParameters.albumId, requestParameters.userId, requestParameters.archiveSize, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {boolean} [isFavorite]
- * @param {string} [fileCreatedAfter]
- * @param {string} [fileCreatedBefore]
+ * @param {AssetApiGetMapMarkersRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMapMarkers(isFavorite?: boolean, fileCreatedAfter?: string, fileCreatedBefore?: string, options?: any): AxiosPromise<Array<MapMarkerResponseDto>> {
- return localVarFp.getMapMarkers(isFavorite, fileCreatedAfter, fileCreatedBefore, options).then((request) => request(axios, basePath));
+ getMapMarkers(requestParameters: AssetApiGetMapMarkersRequest = {}, options?: AxiosRequestConfig): AxiosPromise<Array<MapMarkerResponseDto>> {
+ return localVarFp.getMapMarkers(requestParameters.isFavorite, requestParameters.fileCreatedAfter, requestParameters.fileCreatedBefore, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} timestamp Get pictures for +24 hours from this time going back x years
+ * @param {AssetApiGetMemoryLaneRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMemoryLane(timestamp: string, options?: any): AxiosPromise<Array<MemoryLaneResponseDto>> {
- return localVarFp.getMemoryLane(timestamp, options).then((request) => request(axios, basePath));
+ getMemoryLane(requestParameters: AssetApiGetMemoryLaneRequest, options?: AxiosRequestConfig): AxiosPromise<Array<MemoryLaneResponseDto>> {
+ return localVarFp.getMemoryLane(requestParameters.timestamp, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {TimeBucketSize} size
- * @param {string} [userId]
- * @param {string} [albumId]
- * @param {string} [personId]
- * @param {boolean} [isArchived]
- * @param {boolean} [isFavorite]
- * @param {string} [key]
+ * @param {AssetApiGetTimeBucketsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getTimeBuckets(size: TimeBucketSize, userId?: string, albumId?: string, personId?: string, isArchived?: boolean, isFavorite?: boolean, key?: string, options?: any): AxiosPromise<Array<TimeBucketResponseDto>> {
- return localVarFp.getTimeBuckets(size, userId, albumId, personId, isArchived, isFavorite, key, options).then((request) => request(axios, basePath));
+ getTimeBuckets(requestParameters: AssetApiGetTimeBucketsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<TimeBucketResponseDto>> {
+ return localVarFp.getTimeBuckets(requestParameters.size, requestParameters.userId, requestParameters.albumId, requestParameters.personId, requestParameters.isArchived, requestParameters.isFavorite, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
* Get all asset of a device that are in the database, ID only.
- * @param {string} deviceId
+ * @param {AssetApiGetUserAssetsByDeviceIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getUserAssetsByDeviceId(deviceId: string, options?: any): AxiosPromise<Array<string>> {
- return localVarFp.getUserAssetsByDeviceId(deviceId, options).then((request) => request(axios, basePath));
+ getUserAssetsByDeviceId(requestParameters: AssetApiGetUserAssetsByDeviceIdRequest, options?: AxiosRequestConfig): AxiosPromise<Array<string>> {
+ return localVarFp.getUserAssetsByDeviceId(requestParameters.deviceId, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {ImportAssetDto} importAssetDto
+ * @param {AssetApiImportFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- importFile(importAssetDto: ImportAssetDto, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
- return localVarFp.importFile(importAssetDto, options).then((request) => request(axios, basePath));
+ importFile(requestParameters: AssetApiImportFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
+ return localVarFp.importFile(requestParameters.importAssetDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {SearchAssetDto} searchAssetDto
+ * @param {AssetApiSearchAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- searchAsset(searchAssetDto: SearchAssetDto, options?: any): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.searchAsset(searchAssetDto, options).then((request) => request(axios, basePath));
+ searchAsset(requestParameters: AssetApiSearchAssetRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
+ return localVarFp.searchAsset(requestParameters.searchAssetDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {boolean} [isThumb]
- * @param {boolean} [isWeb]
- * @param {string} [key]
+ * @param {AssetApiServeFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- serveFile(id: string, isThumb?: boolean, isWeb?: boolean, key?: string, options?: any): AxiosPromise<File> {
- return localVarFp.serveFile(id, isThumb, isWeb, key, options).then((request) => request(axios, basePath));
+ serveFile(requestParameters: AssetApiServeFileRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
+ return localVarFp.serveFile(requestParameters.id, requestParameters.isThumb, requestParameters.isWeb, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
* Update an asset
- * @param {string} id
- * @param {UpdateAssetDto} updateAssetDto
+ * @param {AssetApiUpdateAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateAsset(id: string, updateAssetDto: UpdateAssetDto, options?: any): AxiosPromise<AssetResponseDto> {
- return localVarFp.updateAsset(id, updateAssetDto, options).then((request) => request(axios, basePath));
+ updateAsset(requestParameters: AssetApiUpdateAssetRequest, options?: AxiosRequestConfig): AxiosPromise<AssetResponseDto> {
+ return localVarFp.updateAsset(requestParameters.id, requestParameters.updateAssetDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {File} assetData
- * @param {string} deviceAssetId
- * @param {string} deviceId
- * @param {string} fileCreatedAt
- * @param {string} fileModifiedAt
- * @param {boolean} isFavorite
- * @param {string} [key]
- * @param {string} [duration]
- * @param {boolean} [isArchived]
- * @param {boolean} [isReadOnly]
- * @param {boolean} [isVisible]
- * @param {File} [livePhotoData]
- * @param {File} [sidecarData]
+ * @param {AssetApiUploadFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- uploadFile(assetData: File, deviceAssetId: string, deviceId: string, fileCreatedAt: string, fileModifiedAt: string, isFavorite: boolean, key?: string, duration?: string, isArchived?: boolean, isReadOnly?: boolean, isVisible?: boolean, livePhotoData?: File, sidecarData?: File, options?: any): AxiosPromise<AssetFileUploadResponseDto> {
- return localVarFp.uploadFile(assetData, deviceAssetId, deviceId, fileCreatedAt, fileModifiedAt, isFavorite, key, duration, isArchived, isReadOnly, isVisible, livePhotoData, sidecarData, options).then((request) => request(axios, basePath));
+ uploadFile(requestParameters: AssetApiUploadFileRequest, options?: AxiosRequestConfig): AxiosPromise<AssetFileUploadResponseDto> {
+ return localVarFp.uploadFile(requestParameters.assetData, requestParameters.deviceAssetId, requestParameters.deviceId, requestParameters.fileCreatedAt, requestParameters.fileModifiedAt, requestParameters.isFavorite, requestParameters.key, requestParameters.duration, requestParameters.isArchived, requestParameters.isReadOnly, requestParameters.isVisible, requestParameters.livePhotoData, requestParameters.sidecarData, options).then((request) => request(axios, basePath));
},
};
};
@@ -7758,62 +7702,62 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
return {
/**
*
- * @param {SignUpDto} signUpDto
+ * @param {AuthenticationApiAdminSignUpRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- adminSignUp(signUpDto: SignUpDto, options?: any): AxiosPromise<AdminSignupResponseDto> {
- return localVarFp.adminSignUp(signUpDto, options).then((request) => request(axios, basePath));
+ adminSignUp(requestParameters: AuthenticationApiAdminSignUpRequest, options?: AxiosRequestConfig): AxiosPromise<AdminSignupResponseDto> {
+ return localVarFp.adminSignUp(requestParameters.signUpDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {ChangePasswordDto} changePasswordDto
+ * @param {AuthenticationApiChangePasswordRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- changePassword(changePasswordDto: ChangePasswordDto, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.changePassword(changePasswordDto, options).then((request) => request(axios, basePath));
+ changePassword(requestParameters: AuthenticationApiChangePasswordRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.changePassword(requestParameters.changePasswordDto, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAuthDevices(options?: any): AxiosPromise<Array<AuthDeviceResponseDto>> {
+ getAuthDevices(options?: AxiosRequestConfig): AxiosPromise<Array<AuthDeviceResponseDto>> {
return localVarFp.getAuthDevices(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {LoginCredentialDto} loginCredentialDto
+ * @param {AuthenticationApiLoginRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- login(loginCredentialDto: LoginCredentialDto, options?: any): AxiosPromise<LoginResponseDto> {
- return localVarFp.login(loginCredentialDto, options).then((request) => request(axios, basePath));
+ login(requestParameters: AuthenticationApiLoginRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
+ return localVarFp.login(requestParameters.loginCredentialDto, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- logout(options?: any): AxiosPromise<LogoutResponseDto> {
+ logout(options?: AxiosRequestConfig): AxiosPromise<LogoutResponseDto> {
return localVarFp.logout(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {AuthenticationApiLogoutAuthDeviceRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- logoutAuthDevice(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.logoutAuthDevice(id, options).then((request) => request(axios, basePath));
+ logoutAuthDevice(requestParameters: AuthenticationApiLogoutAuthDeviceRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.logoutAuthDevice(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- logoutAuthDevices(options?: any): AxiosPromise<void> {
+ logoutAuthDevices(options?: AxiosRequestConfig): AxiosPromise<void> {
return localVarFp.logoutAuthDevices(options).then((request) => request(axios, basePath));
},
/**
@@ -7821,7 +7765,7 @@ export const AuthenticationApiFactory = function (configuration?: Configuration,
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- validateAccessToken(options?: any): AxiosPromise<ValidateAccessTokenResponseDto> {
+ validateAccessToken(options?: AxiosRequestConfig): AxiosPromise<ValidateAccessTokenResponseDto> {
return localVarFp.validateAccessToken(options).then((request) => request(axios, basePath));
},
};
@@ -8113,18 +8057,17 @@ export const JobApiFactory = function (configuration?: Configuration, basePath?:
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllJobsStatus(options?: any): AxiosPromise<AllJobStatusResponseDto> {
+ getAllJobsStatus(options?: AxiosRequestConfig): AxiosPromise<AllJobStatusResponseDto> {
return localVarFp.getAllJobsStatus(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {JobName} id
- * @param {JobCommandDto} jobCommandDto
+ * @param {JobApiSendJobCommandRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- sendJobCommand(id: JobName, jobCommandDto: JobCommandDto, options?: any): AxiosPromise<JobStatusDto> {
- return localVarFp.sendJobCommand(id, jobCommandDto, options).then((request) => request(axios, basePath));
+ sendJobCommand(requestParameters: JobApiSendJobCommandRequest, options?: AxiosRequestConfig): AxiosPromise<JobStatusDto> {
+ return localVarFp.sendJobCommand(requestParameters.id, requestParameters.jobCommandDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -8437,37 +8380,37 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
return {
/**
*
- * @param {OAuthCallbackDto} oAuthCallbackDto
+ * @param {OAuthApiCallbackRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- callback(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<LoginResponseDto> {
- return localVarFp.callback(oAuthCallbackDto, options).then((request) => request(axios, basePath));
+ callback(requestParameters: OAuthApiCallbackRequest, options?: AxiosRequestConfig): AxiosPromise<LoginResponseDto> {
+ return localVarFp.callback(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {OAuthConfigDto} oAuthConfigDto
+ * @param {OAuthApiGenerateConfigRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- generateConfig(oAuthConfigDto: OAuthConfigDto, options?: any): AxiosPromise<OAuthConfigResponseDto> {
- return localVarFp.generateConfig(oAuthConfigDto, options).then((request) => request(axios, basePath));
+ generateConfig(requestParameters: OAuthApiGenerateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<OAuthConfigResponseDto> {
+ return localVarFp.generateConfig(requestParameters.oAuthConfigDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {OAuthCallbackDto} oAuthCallbackDto
+ * @param {OAuthApiLinkRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- link(oAuthCallbackDto: OAuthCallbackDto, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.link(oAuthCallbackDto, options).then((request) => request(axios, basePath));
+ link(requestParameters: OAuthApiLinkRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.link(requestParameters.oAuthCallbackDto, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- mobileRedirect(options?: any): AxiosPromise<void> {
+ mobileRedirect(options?: AxiosRequestConfig): AxiosPromise<void> {
return localVarFp.mobileRedirect(options).then((request) => request(axios, basePath));
},
/**
@@ -8475,7 +8418,7 @@ export const OAuthApiFactory = function (configuration?: Configuration, basePath
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- unlink(options?: any): AxiosPromise<UserResponseDto> {
+ unlink(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
return localVarFp.unlink(options).then((request) => request(axios, basePath));
},
};
@@ -8772,30 +8715,30 @@ export const PartnerApiFactory = function (configuration?: Configuration, basePa
return {
/**
*
- * @param {string} id
+ * @param {PartnerApiCreatePartnerRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createPartner(id: string, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.createPartner(id, options).then((request) => request(axios, basePath));
+ createPartner(requestParameters: PartnerApiCreatePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.createPartner(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {'shared-by' | 'shared-with'} direction
+ * @param {PartnerApiGetPartnersRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPartners(direction: 'shared-by' | 'shared-with', options?: any): AxiosPromise<Array<UserResponseDto>> {
- return localVarFp.getPartners(direction, options).then((request) => request(axios, basePath));
+ getPartners(requestParameters: PartnerApiGetPartnersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
+ return localVarFp.getPartners(requestParameters.direction, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {PartnerApiRemovePartnerRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- removePartner(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.removePartner(id, options).then((request) => request(axios, basePath));
+ removePartner(requestParameters: PartnerApiRemovePartnerRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.removePartner(requestParameters.id, options).then((request) => request(axios, basePath));
},
};
};
@@ -9293,68 +9236,66 @@ export const PersonApiFactory = function (configuration?: Configuration, basePat
return {
/**
*
- * @param {boolean} [withHidden]
+ * @param {PersonApiGetAllPeopleRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllPeople(withHidden?: boolean, options?: any): AxiosPromise<PeopleResponseDto> {
- return localVarFp.getAllPeople(withHidden, options).then((request) => request(axios, basePath));
+ getAllPeople(requestParameters: PersonApiGetAllPeopleRequest = {}, options?: AxiosRequestConfig): AxiosPromise<PeopleResponseDto> {
+ return localVarFp.getAllPeople(requestParameters.withHidden, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {PersonApiGetPersonRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPerson(id: string, options?: any): AxiosPromise<PersonResponseDto> {
- return localVarFp.getPerson(id, options).then((request) => request(axios, basePath));
+ getPerson(requestParameters: PersonApiGetPersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
+ return localVarFp.getPerson(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {PersonApiGetPersonAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPersonAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getPersonAssets(id, options).then((request) => request(axios, basePath));
+ getPersonAssets(requestParameters: PersonApiGetPersonAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
+ return localVarFp.getPersonAssets(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {PersonApiGetPersonThumbnailRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getPersonThumbnail(id: string, options?: any): AxiosPromise<File> {
- return localVarFp.getPersonThumbnail(id, options).then((request) => request(axios, basePath));
+ getPersonThumbnail(requestParameters: PersonApiGetPersonThumbnailRequest, options?: AxiosRequestConfig): AxiosPromise<File> {
+ return localVarFp.getPersonThumbnail(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {MergePersonDto} mergePersonDto
+ * @param {PersonApiMergePersonRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- mergePerson(id: string, mergePersonDto: MergePersonDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
- return localVarFp.mergePerson(id, mergePersonDto, options).then((request) => request(axios, basePath));
+ mergePerson(requestParameters: PersonApiMergePersonRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
+ return localVarFp.mergePerson(requestParameters.id, requestParameters.mergePersonDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {PeopleUpdateDto} peopleUpdateDto
+ * @param {PersonApiUpdatePeopleRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePeople(peopleUpdateDto: PeopleUpdateDto, options?: any): AxiosPromise<Array<BulkIdResponseDto>> {
- return localVarFp.updatePeople(peopleUpdateDto, options).then((request) => request(axios, basePath));
+ updatePeople(requestParameters: PersonApiUpdatePeopleRequest, options?: AxiosRequestConfig): AxiosPromise<Array<BulkIdResponseDto>> {
+ return localVarFp.updatePeople(requestParameters.peopleUpdateDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {PersonUpdateDto} personUpdateDto
+ * @param {PersonApiUpdatePersonRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updatePerson(id: string, personUpdateDto: PersonUpdateDto, options?: any): AxiosPromise<PersonResponseDto> {
- return localVarFp.updatePerson(id, personUpdateDto, options).then((request) => request(axios, basePath));
+ updatePerson(requestParameters: PersonApiUpdatePersonRequest, options?: AxiosRequestConfig): AxiosPromise<PersonResponseDto> {
+ return localVarFp.updatePerson(requestParameters.id, requestParameters.personUpdateDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -9825,7 +9766,7 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getExploreData(options?: any): AxiosPromise<Array<SearchExploreResponseDto>> {
+ getExploreData(options?: AxiosRequestConfig): AxiosPromise<Array<SearchExploreResponseDto>> {
return localVarFp.getExploreData(options).then((request) => request(axios, basePath));
},
/**
@@ -9833,32 +9774,17 @@ export const SearchApiFactory = function (configuration?: Configuration, basePat
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getSearchConfig(options?: any): AxiosPromise<SearchConfigResponseDto> {
+ getSearchConfig(options?: AxiosRequestConfig): AxiosPromise<SearchConfigResponseDto> {
return localVarFp.getSearchConfig(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} [q]
- * @param {string} [query]
- * @param {boolean} [clip]
- * @param {'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER'} [type]
- * @param {boolean} [isFavorite]
- * @param {boolean} [isArchived]
- * @param {string} [exifInfoCity]
- * @param {string} [exifInfoState]
- * @param {string} [exifInfoCountry]
- * @param {string} [exifInfoMake]
- * @param {string} [exifInfoModel]
- * @param {string} [exifInfoProjectionType]
- * @param {Array<string>} [smartInfoObjects]
- * @param {Array<string>} [smartInfoTags]
- * @param {boolean} [recent]
- * @param {boolean} [motion]
+ * @param {SearchApiSearchRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- search(q?: string, query?: string, clip?: boolean, type?: 'IMAGE' | 'VIDEO' | 'AUDIO' | 'OTHER', isFavorite?: boolean, isArchived?: boolean, exifInfoCity?: string, exifInfoState?: string, exifInfoCountry?: string, exifInfoMake?: string, exifInfoModel?: string, exifInfoProjectionType?: string, smartInfoObjects?: Array<string>, smartInfoTags?: Array<string>, recent?: boolean, motion?: boolean, options?: any): AxiosPromise<SearchResponseDto> {
- return localVarFp.search(q, query, clip, type, isFavorite, isArchived, exifInfoCity, exifInfoState, exifInfoCountry, exifInfoMake, exifInfoModel, exifInfoProjectionType, smartInfoObjects, smartInfoTags, recent, motion, options).then((request) => request(axios, basePath));
+ search(requestParameters: SearchApiSearchRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SearchResponseDto> {
+ return localVarFp.search(requestParameters.q, requestParameters.query, requestParameters.clip, requestParameters.type, requestParameters.isFavorite, requestParameters.isArchived, requestParameters.exifInfoCity, requestParameters.exifInfoState, requestParameters.exifInfoCountry, requestParameters.exifInfoMake, requestParameters.exifInfoModel, requestParameters.exifInfoProjectionType, requestParameters.smartInfoObjects, requestParameters.smartInfoTags, requestParameters.recent, requestParameters.motion, options).then((request) => request(axios, basePath));
},
};
};
@@ -10261,7 +10187,7 @@ export const ServerInfoApiFactory = function (configuration?: Configuration, bas
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getServerInfo(options?: any): AxiosPromise<ServerInfoResponseDto> {
+ getServerInfo(options?: AxiosRequestConfig): AxiosPromise<ServerInfoResponseDto> {
return localVarFp.getServerInfo(options).then((request) => request(axios, basePath));
},
/**
@@ -10269,7 +10195,7 @@ export const ServerInfoApiFactory = function (configuration?: Configuration, bas
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getServerVersion(options?: any): AxiosPromise<ServerVersionReponseDto> {
+ getServerVersion(options?: AxiosRequestConfig): AxiosPromise<ServerVersionReponseDto> {
return localVarFp.getServerVersion(options).then((request) => request(axios, basePath));
},
/**
@@ -10277,7 +10203,7 @@ export const ServerInfoApiFactory = function (configuration?: Configuration, bas
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getStats(options?: any): AxiosPromise<ServerStatsResponseDto> {
+ getStats(options?: AxiosRequestConfig): AxiosPromise<ServerStatsResponseDto> {
return localVarFp.getStats(options).then((request) => request(axios, basePath));
},
/**
@@ -10285,7 +10211,7 @@ export const ServerInfoApiFactory = function (configuration?: Configuration, bas
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getSupportedMediaTypes(options?: any): AxiosPromise<ServerMediaTypesResponseDto> {
+ getSupportedMediaTypes(options?: AxiosRequestConfig): AxiosPromise<ServerMediaTypesResponseDto> {
return localVarFp.getSupportedMediaTypes(options).then((request) => request(axios, basePath));
},
/**
@@ -10293,7 +10219,7 @@ export const ServerInfoApiFactory = function (configuration?: Configuration, bas
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- pingServer(options?: any): AxiosPromise<ServerPingResponse> {
+ pingServer(options?: AxiosRequestConfig): AxiosPromise<ServerPingResponse> {
return localVarFp.pingServer(options).then((request) => request(axios, basePath));
},
};
@@ -10833,79 +10759,74 @@ export const SharedLinkApiFactory = function (configuration?: Configuration, bas
return {
/**
*
- * @param {string} id
- * @param {AssetIdsDto} assetIdsDto
- * @param {string} [key]
+ * @param {SharedLinkApiAddSharedLinkAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- addSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
- return localVarFp.addSharedLinkAssets(id, assetIdsDto, key, options).then((request) => request(axios, basePath));
+ addSharedLinkAssets(requestParameters: SharedLinkApiAddSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
+ return localVarFp.addSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {SharedLinkCreateDto} sharedLinkCreateDto
+ * @param {SharedLinkApiCreateSharedLinkRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createSharedLink(sharedLinkCreateDto: SharedLinkCreateDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
- return localVarFp.createSharedLink(sharedLinkCreateDto, options).then((request) => request(axios, basePath));
+ createSharedLink(requestParameters: SharedLinkApiCreateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
+ return localVarFp.createSharedLink(requestParameters.sharedLinkCreateDto, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllSharedLinks(options?: any): AxiosPromise<Array<SharedLinkResponseDto>> {
+ getAllSharedLinks(options?: AxiosRequestConfig): AxiosPromise<Array<SharedLinkResponseDto>> {
return localVarFp.getAllSharedLinks(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} [key]
+ * @param {SharedLinkApiGetMySharedLinkRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMySharedLink(key?: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
- return localVarFp.getMySharedLink(key, options).then((request) => request(axios, basePath));
+ getMySharedLink(requestParameters: SharedLinkApiGetMySharedLinkRequest = {}, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
+ return localVarFp.getMySharedLink(requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {SharedLinkApiGetSharedLinkByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getSharedLinkById(id: string, options?: any): AxiosPromise<SharedLinkResponseDto> {
- return localVarFp.getSharedLinkById(id, options).then((request) => request(axios, basePath));
+ getSharedLinkById(requestParameters: SharedLinkApiGetSharedLinkByIdRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
+ return localVarFp.getSharedLinkById(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {SharedLinkApiRemoveSharedLinkRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- removeSharedLink(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.removeSharedLink(id, options).then((request) => request(axios, basePath));
+ removeSharedLink(requestParameters: SharedLinkApiRemoveSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.removeSharedLink(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {AssetIdsDto} assetIdsDto
- * @param {string} [key]
+ * @param {SharedLinkApiRemoveSharedLinkAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- removeSharedLinkAssets(id: string, assetIdsDto: AssetIdsDto, key?: string, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
- return localVarFp.removeSharedLinkAssets(id, assetIdsDto, key, options).then((request) => request(axios, basePath));
+ removeSharedLinkAssets(requestParameters: SharedLinkApiRemoveSharedLinkAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
+ return localVarFp.removeSharedLinkAssets(requestParameters.id, requestParameters.assetIdsDto, requestParameters.key, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {SharedLinkEditDto} sharedLinkEditDto
+ * @param {SharedLinkApiUpdateSharedLinkRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateSharedLink(id: string, sharedLinkEditDto: SharedLinkEditDto, options?: any): AxiosPromise<SharedLinkResponseDto> {
- return localVarFp.updateSharedLink(id, sharedLinkEditDto, options).then((request) => request(axios, basePath));
+ updateSharedLink(requestParameters: SharedLinkApiUpdateSharedLinkRequest, options?: AxiosRequestConfig): AxiosPromise<SharedLinkResponseDto> {
+ return localVarFp.updateSharedLink(requestParameters.id, requestParameters.sharedLinkEditDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -11365,7 +11286,7 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getConfig(options?: any): AxiosPromise<SystemConfigDto> {
+ getConfig(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
return localVarFp.getConfig(options).then((request) => request(axios, basePath));
},
/**
@@ -11373,7 +11294,7 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getDefaults(options?: any): AxiosPromise<SystemConfigDto> {
+ getDefaults(options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
return localVarFp.getDefaults(options).then((request) => request(axios, basePath));
},
/**
@@ -11381,17 +11302,17 @@ export const SystemConfigApiFactory = function (configuration?: Configuration, b
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getStorageTemplateOptions(options?: any): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
+ getStorageTemplateOptions(options?: AxiosRequestConfig): AxiosPromise<SystemConfigTemplateStorageOptionDto> {
return localVarFp.getStorageTemplateOptions(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {SystemConfigDto} systemConfigDto
+ * @param {SystemConfigApiUpdateConfigRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateConfig(systemConfigDto: SystemConfigDto, options?: any): AxiosPromise<SystemConfigDto> {
- return localVarFp.updateConfig(systemConfigDto, options).then((request) => request(axios, basePath));
+ updateConfig(requestParameters: SystemConfigApiUpdateConfigRequest, options?: AxiosRequestConfig): AxiosPromise<SystemConfigDto> {
+ return localVarFp.updateConfig(requestParameters.systemConfigDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -11922,77 +11843,74 @@ export const TagApiFactory = function (configuration?: Configuration, basePath?:
return {
/**
*
- * @param {CreateTagDto} createTagDto
+ * @param {TagApiCreateTagRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createTag(createTagDto: CreateTagDto, options?: any): AxiosPromise<TagResponseDto> {
- return localVarFp.createTag(createTagDto, options).then((request) => request(axios, basePath));
+ createTag(requestParameters: TagApiCreateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
+ return localVarFp.createTag(requestParameters.createTagDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {TagApiDeleteTagRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteTag(id: string, options?: any): AxiosPromise<void> {
- return localVarFp.deleteTag(id, options).then((request) => request(axios, basePath));
+ deleteTag(requestParameters: TagApiDeleteTagRequest, options?: AxiosRequestConfig): AxiosPromise<void> {
+ return localVarFp.deleteTag(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllTags(options?: any): AxiosPromise<Array<TagResponseDto>> {
+ getAllTags(options?: AxiosRequestConfig): AxiosPromise<Array<TagResponseDto>> {
return localVarFp.getAllTags(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {TagApiGetTagAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getTagAssets(id: string, options?: any): AxiosPromise<Array<AssetResponseDto>> {
- return localVarFp.getTagAssets(id, options).then((request) => request(axios, basePath));
+ getTagAssets(requestParameters: TagApiGetTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetResponseDto>> {
+ return localVarFp.getTagAssets(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {TagApiGetTagByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getTagById(id: string, options?: any): AxiosPromise<TagResponseDto> {
- return localVarFp.getTagById(id, options).then((request) => request(axios, basePath));
+ getTagById(requestParameters: TagApiGetTagByIdRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
+ return localVarFp.getTagById(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {AssetIdsDto} assetIdsDto
+ * @param {TagApiTagAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- tagAssets(id: string, assetIdsDto: AssetIdsDto, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
- return localVarFp.tagAssets(id, assetIdsDto, options).then((request) => request(axios, basePath));
+ tagAssets(requestParameters: TagApiTagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
+ return localVarFp.tagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {AssetIdsDto} assetIdsDto
+ * @param {TagApiUntagAssetsRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- untagAssets(id: string, assetIdsDto: AssetIdsDto, options?: any): AxiosPromise<Array<AssetIdsResponseDto>> {
- return localVarFp.untagAssets(id, assetIdsDto, options).then((request) => request(axios, basePath));
+ untagAssets(requestParameters: TagApiUntagAssetsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<AssetIdsResponseDto>> {
+ return localVarFp.untagAssets(requestParameters.id, requestParameters.assetIdsDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
- * @param {UpdateTagDto} updateTagDto
+ * @param {TagApiUpdateTagRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateTag(id: string, updateTagDto: UpdateTagDto, options?: any): AxiosPromise<TagResponseDto> {
- return localVarFp.updateTag(id, updateTagDto, options).then((request) => request(axios, basePath));
+ updateTag(requestParameters: TagApiUpdateTagRequest, options?: AxiosRequestConfig): AxiosPromise<TagResponseDto> {
+ return localVarFp.updateTag(requestParameters.id, requestParameters.updateTagDto, options).then((request) => request(axios, basePath));
},
};
};
@@ -12761,92 +12679,92 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
return {
/**
*
- * @param {File} file
+ * @param {UserApiCreateProfileImageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createProfileImage(file: File, options?: any): AxiosPromise<CreateProfileImageResponseDto> {
- return localVarFp.createProfileImage(file, options).then((request) => request(axios, basePath));
+ createProfileImage(requestParameters: UserApiCreateProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<CreateProfileImageResponseDto> {
+ return localVarFp.createProfileImage(requestParameters.file, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {CreateUserDto} createUserDto
+ * @param {UserApiCreateUserRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createUser(createUserDto: CreateUserDto, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.createUser(createUserDto, options).then((request) => request(axios, basePath));
+ createUser(requestParameters: UserApiCreateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.createUser(requestParameters.createUserDto, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {UserApiDeleteUserRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- deleteUser(id: string, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.deleteUser(id, options).then((request) => request(axios, basePath));
+ deleteUser(requestParameters: UserApiDeleteUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.deleteUser(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {boolean} isAll
+ * @param {UserApiGetAllUsersRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getAllUsers(isAll: boolean, options?: any): AxiosPromise<Array<UserResponseDto>> {
- return localVarFp.getAllUsers(isAll, options).then((request) => request(axios, basePath));
+ getAllUsers(requestParameters: UserApiGetAllUsersRequest, options?: AxiosRequestConfig): AxiosPromise<Array<UserResponseDto>> {
+ return localVarFp.getAllUsers(requestParameters.isAll, options).then((request) => request(axios, basePath));
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getMyUserInfo(options?: any): AxiosPromise<UserResponseDto> {
+ getMyUserInfo(options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
return localVarFp.getMyUserInfo(options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {UserApiGetProfileImageRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getProfileImage(id: string, options?: any): AxiosPromise<object> {
- return localVarFp.getProfileImage(id, options).then((request) => request(axios, basePath));
+ getProfileImage(requestParameters: UserApiGetProfileImageRequest, options?: AxiosRequestConfig): AxiosPromise<object> {
+ return localVarFp.getProfileImage(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {UserApiGetUserByIdRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getUserById(id: string, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.getUserById(id, options).then((request) => request(axios, basePath));
+ getUserById(requestParameters: UserApiGetUserByIdRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.getUserById(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {boolean} [admin]
+ * @param {UserApiGetUserCountRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- getUserCount(admin?: boolean, options?: any): AxiosPromise<UserCountResponseDto> {
- return localVarFp.getUserCount(admin, options).then((request) => request(axios, basePath));
+ getUserCount(requestParameters: UserApiGetUserCountRequest = {}, options?: AxiosRequestConfig): AxiosPromise<UserCountResponseDto> {
+ return localVarFp.getUserCount(requestParameters.admin, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id
+ * @param {UserApiRestoreUserRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- restoreUser(id: string, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.restoreUser(id, options).then((request) => request(axios, basePath));
+ restoreUser(requestParameters: UserApiRestoreUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.restoreUser(requestParameters.id, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {UpdateUserDto} updateUserDto
+ * @param {UserApiUpdateUserRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateUser(updateUserDto: UpdateUserDto, options?: any): AxiosPromise<UserResponseDto> {
- return localVarFp.updateUser(updateUserDto, options).then((request) => request(axios, basePath));
+ updateUser(requestParameters: UserApiUpdateUserRequest, options?: AxiosRequestConfig): AxiosPromise<UserResponseDto> {
+ return localVarFp.updateUser(requestParameters.updateUserDto, options).then((request) => request(axios, basePath));
},
};
};