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

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

* variable
This commit is contained in:
Alex 2023-08-06 15:55:14 -05:00 committed by GitHub
parent 3edb347666
commit 13df619ba9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
102 changed files with 1145 additions and 812 deletions

View File

@ -9,8 +9,8 @@ import 'package:openapi/api.dart';
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**people** | [**List<PersonResponseDto>**](PersonResponseDto.md) | | [default to const []] **people** | [**List<PersonResponseDto>**](PersonResponseDto.md) | | [default to const []]
**total** | **num** | | **total** | **int** | |
**visible** | **num** | | **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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -20,7 +20,7 @@ class AddUsersDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AddUsersDto && bool operator ==(Object other) => identical(this, other) || other is AddUsersDto &&
_deepEquality.equals(other.sharedUserIds, sharedUserIds); other.sharedUserIds == sharedUserIds;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class AddUsersDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AddUsersDto( return AddUsersDto(
sharedUserIds: json[r'sharedUserIds'] is Iterable sharedUserIds: json[r'sharedUserIds'] is List
? (json[r'sharedUserIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'sharedUserIds'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -32,11 +32,11 @@ class AdminSignupResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AdminSignupResponseDto && bool operator ==(Object other) => identical(this, other) || other is AdminSignupResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.email == email && other.email == email &&
other.firstName == firstName && other.firstName == firstName &&
other.id == id && other.id == id &&
other.lastName == lastName; other.lastName == lastName;
@override @override
int get hashCode => int get hashCode =>
@ -68,7 +68,7 @@ class AdminSignupResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AdminSignupResponseDto( return AdminSignupResponseDto(
createdAt: mapDateTime(json, r'createdAt', r'')!, createdAt: mapDateTime(json, r'createdAt', '')!,
email: mapValueOfType<String>(json, r'email')!, email: mapValueOfType<String>(json, r'email')!,
firstName: mapValueOfType<String>(json, r'firstName')!, firstName: mapValueOfType<String>(json, r'firstName')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,

View File

@ -26,9 +26,9 @@ class AlbumCountResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto && bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto &&
other.notShared == notShared && other.notShared == notShared &&
other.owned == owned && other.owned == owned &&
other.shared == shared; other.shared == shared;
@override @override
int get hashCode => int get hashCode =>

View File

@ -62,19 +62,19 @@ class AlbumResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto && bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto &&
other.albumName == albumName && other.albumName == albumName &&
other.albumThumbnailAssetId == albumThumbnailAssetId && other.albumThumbnailAssetId == albumThumbnailAssetId &&
other.assetCount == assetCount && other.assetCount == assetCount &&
_deepEquality.equals(other.assets, assets) && other.assets == assets &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.description == description && other.description == description &&
other.id == id && other.id == id &&
other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp && other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
other.owner == owner && other.owner == owner &&
other.ownerId == ownerId && other.ownerId == ownerId &&
other.shared == shared && other.shared == shared &&
_deepEquality.equals(other.sharedUsers, sharedUsers) && other.sharedUsers == sharedUsers &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -134,15 +134,15 @@ class AlbumResponseDto {
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'), albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
assetCount: mapValueOfType<int>(json, r'assetCount')!, assetCount: mapValueOfType<int>(json, r'assetCount')!,
assets: AssetResponseDto.listFromJson(json[r'assets']), assets: AssetResponseDto.listFromJson(json[r'assets']),
createdAt: mapDateTime(json, r'createdAt', r'')!, createdAt: mapDateTime(json, r'createdAt', '')!,
description: mapValueOfType<String>(json, r'description')!, description: mapValueOfType<String>(json, r'description')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''), lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', ''),
owner: UserResponseDto.fromJson(json[r'owner'])!, owner: UserResponseDto.fromJson(json[r'owner'])!,
ownerId: mapValueOfType<String>(json, r'ownerId')!, ownerId: mapValueOfType<String>(json, r'ownerId')!,
shared: mapValueOfType<bool>(json, r'shared')!, shared: mapValueOfType<bool>(json, r'shared')!,
sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']), sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']),
updatedAt: mapDateTime(json, r'updatedAt', r'')!, updatedAt: mapDateTime(json, r'updatedAt', '')!,
); );
} }
return null; return null;

View File

@ -47,16 +47,16 @@ class AllJobStatusResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto && bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
other.backgroundTask == backgroundTask && other.backgroundTask == backgroundTask &&
other.clipEncoding == clipEncoding && other.clipEncoding == clipEncoding &&
other.metadataExtraction == metadataExtraction && other.metadataExtraction == metadataExtraction &&
other.objectTagging == objectTagging && other.objectTagging == objectTagging &&
other.recognizeFaces == recognizeFaces && other.recognizeFaces == recognizeFaces &&
other.search == search && other.search == search &&
other.sidecar == sidecar && other.sidecar == sidecar &&
other.storageTemplateMigration == storageTemplateMigration && other.storageTemplateMigration == storageTemplateMigration &&
other.thumbnailGeneration == thumbnailGeneration && other.thumbnailGeneration == thumbnailGeneration &&
other.videoConversion == videoConversion; other.videoConversion == videoConversion;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,7 +26,7 @@ class APIKeyCreateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class APIKeyCreateResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto &&
other.apiKey == apiKey && other.apiKey == apiKey &&
other.secret == secret; other.secret == secret;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class APIKeyResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.id == id && other.id == id &&
other.name == name && other.name == name &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -62,10 +62,10 @@ class APIKeyResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return APIKeyResponseDto( return APIKeyResponseDto(
createdAt: mapDateTime(json, r'createdAt', r'')!, createdAt: mapDateTime(json, r'createdAt', '')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
name: mapValueOfType<String>(json, r'name')!, name: mapValueOfType<String>(json, r'name')!,
updatedAt: mapDateTime(json, r'updatedAt', r'')!, updatedAt: mapDateTime(json, r'updatedAt', '')!,
); );
} }
return null; return null;

View File

@ -20,7 +20,7 @@ class APIKeyUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyUpdateDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyUpdateDto &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class AssetBulkUploadCheckDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto &&
_deepEquality.equals(other.assets, assets); other.assets == assets;
@override @override
int get hashCode => int get hashCode =>

View File

@ -24,8 +24,8 @@ class AssetBulkUploadCheckItem {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem &&
other.checksum == checksum && other.checksum == checksum &&
other.id == id; other.id == id;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class AssetBulkUploadCheckResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto &&
_deepEquality.equals(other.results, results); other.results == results;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,10 +35,10 @@ class AssetBulkUploadCheckResult {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult &&
other.action == action && other.action == action &&
other.assetId == assetId && other.assetId == assetId &&
other.id == id && other.id == id &&
other.reason == reason; other.reason == reason;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class AssetFileUploadResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto &&
other.duplicate == duplicate && other.duplicate == duplicate &&
other.id == id; other.id == id;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class AssetIdsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto && bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto &&
_deepEquality.equals(other.assetIds, assetIds); other.assetIds == assetIds;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class AssetIdsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AssetIdsDto( return AssetIdsDto(
assetIds: json[r'assetIds'] is Iterable assetIds: json[r'assetIds'] is List
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'assetIds'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -26,9 +26,9 @@ class AssetIdsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto &&
other.assetId == assetId && other.assetId == assetId &&
other.error == error && other.error == error &&
other.success == success; other.success == success;
@override @override
int get hashCode => int get hashCode =>

View File

@ -94,27 +94,27 @@ class AssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto &&
other.checksum == checksum && other.checksum == checksum &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.duration == duration && other.duration == duration &&
other.exifInfo == exifInfo && other.exifInfo == exifInfo &&
other.fileCreatedAt == fileCreatedAt && other.fileCreatedAt == fileCreatedAt &&
other.fileModifiedAt == fileModifiedAt && other.fileModifiedAt == fileModifiedAt &&
other.id == id && other.id == id &&
other.isArchived == isArchived && other.isArchived == isArchived &&
other.isFavorite == isFavorite && other.isFavorite == isFavorite &&
other.livePhotoVideoId == livePhotoVideoId && other.livePhotoVideoId == livePhotoVideoId &&
other.originalFileName == originalFileName && other.originalFileName == originalFileName &&
other.originalPath == originalPath && other.originalPath == originalPath &&
other.ownerId == ownerId && other.ownerId == ownerId &&
_deepEquality.equals(other.people, people) && other.people == people &&
other.resized == resized && other.resized == resized &&
other.smartInfo == smartInfo && other.smartInfo == smartInfo &&
_deepEquality.equals(other.tags, tags) && other.tags == tags &&
other.thumbhash == thumbhash && other.thumbhash == thumbhash &&
other.type == type && other.type == type &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -199,8 +199,8 @@ class AssetResponseDto {
deviceId: mapValueOfType<String>(json, r'deviceId')!, deviceId: mapValueOfType<String>(json, r'deviceId')!,
duration: mapValueOfType<String>(json, r'duration')!, duration: mapValueOfType<String>(json, r'duration')!,
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']), exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!, fileCreatedAt: mapDateTime(json, r'fileCreatedAt', '')!,
fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!, fileModifiedAt: mapDateTime(json, r'fileModifiedAt', '')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isArchived: mapValueOfType<bool>(json, r'isArchived')!, isArchived: mapValueOfType<bool>(json, r'isArchived')!,
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!, isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
@ -214,7 +214,7 @@ class AssetResponseDto {
tags: TagResponseDto.listFromJson(json[r'tags']), tags: TagResponseDto.listFromJson(json[r'tags']),
thumbhash: mapValueOfType<String>(json, r'thumbhash'), thumbhash: mapValueOfType<String>(json, r'thumbhash'),
type: AssetTypeEnum.fromJson(json[r'type'])!, type: AssetTypeEnum.fromJson(json[r'type'])!,
updatedAt: mapDateTime(json, r'updatedAt', r'')!, updatedAt: mapDateTime(json, r'updatedAt', '')!,
); );
} }
return null; return null;

View File

@ -26,9 +26,9 @@ class AssetStatsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto &&
other.images == images && other.images == images &&
other.total == total && other.total == total &&
other.videos == videos; other.videos == videos;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class AuthDeviceResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto && bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.current == current && other.current == current &&
other.deviceOS == deviceOS && other.deviceOS == deviceOS &&
other.deviceType == deviceType && other.deviceType == deviceType &&
other.id == id && other.id == id &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class BulkIdResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is BulkIdResponseDto && bool operator ==(Object other) => identical(this, other) || other is BulkIdResponseDto &&
other.error == error && other.error == error &&
other.id == id && other.id == id &&
other.success == success; other.success == success;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class BulkIdsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is BulkIdsDto && bool operator ==(Object other) => identical(this, other) || other is BulkIdsDto &&
_deepEquality.equals(other.ids, ids); other.ids == ids;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class BulkIdsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return BulkIdsDto( return BulkIdsDto(
ids: json[r'ids'] is Iterable ids: json[r'ids'] is List
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false) ? (json[r'ids'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -23,8 +23,8 @@ class ChangePasswordDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto && bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto &&
other.newPassword == newPassword && other.newPassword == newPassword &&
other.password == password; other.password == password;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class CheckDuplicateAssetDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetDto && bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetDto &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId; other.deviceId == deviceId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,8 +29,8 @@ class CheckDuplicateAssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is CheckDuplicateAssetResponseDto &&
other.id == id && other.id == id &&
other.isExist == isExist; other.isExist == isExist;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class CheckExistingAssetsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto && bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto &&
_deepEquality.equals(other.deviceAssetIds, deviceAssetIds) && other.deviceAssetIds == deviceAssetIds &&
other.deviceId == deviceId; other.deviceId == deviceId;
@override @override
int get hashCode => int get hashCode =>
@ -50,8 +50,8 @@ class CheckExistingAssetsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return CheckExistingAssetsDto( return CheckExistingAssetsDto(
deviceAssetIds: json[r'deviceAssetIds'] is Iterable deviceAssetIds: json[r'deviceAssetIds'] is List
? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'deviceAssetIds'] as List).cast<String>()
: const [], : const [],
deviceId: mapValueOfType<String>(json, r'deviceId')!, deviceId: mapValueOfType<String>(json, r'deviceId')!,
); );

View File

@ -20,7 +20,7 @@ class CheckExistingAssetsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto &&
_deepEquality.equals(other.existingIds, existingIds); other.existingIds == existingIds;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class CheckExistingAssetsResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return CheckExistingAssetsResponseDto( return CheckExistingAssetsResponseDto(
existingIds: json[r'existingIds'] is Iterable existingIds: json[r'existingIds'] is List
? (json[r'existingIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'existingIds'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -35,10 +35,10 @@ class CreateAlbumDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto && bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto &&
other.albumName == albumName && other.albumName == albumName &&
_deepEquality.equals(other.assetIds, assetIds) && other.assetIds == assetIds &&
other.description == description && other.description == description &&
_deepEquality.equals(other.sharedWithUserIds, sharedWithUserIds); other.sharedWithUserIds == sharedWithUserIds;
@override @override
int get hashCode => int get hashCode =>
@ -73,12 +73,12 @@ class CreateAlbumDto {
return CreateAlbumDto( return CreateAlbumDto(
albumName: mapValueOfType<String>(json, r'albumName')!, albumName: mapValueOfType<String>(json, r'albumName')!,
assetIds: json[r'assetIds'] is Iterable assetIds: json[r'assetIds'] is List
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'assetIds'] as List).cast<String>()
: const [], : const [],
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable sharedWithUserIds: json[r'sharedWithUserIds'] is List
? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'sharedWithUserIds'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -23,8 +23,8 @@ class CreateProfileImageResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto && bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto &&
other.profileImagePath == profileImagePath && other.profileImagePath == profileImagePath &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class CreateTagDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateTagDto && bool operator ==(Object other) => identical(this, other) || other is CreateTagDto &&
other.name == name && other.name == name &&
other.type == type; other.type == type;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class CreateUserDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateUserDto && bool operator ==(Object other) => identical(this, other) || other is CreateUserDto &&
other.email == email && other.email == email &&
other.externalPath == externalPath && other.externalPath == externalPath &&
other.firstName == firstName && other.firstName == firstName &&
other.lastName == lastName && other.lastName == lastName &&
other.password == password && other.password == password &&
other.storageLabel == storageLabel; other.storageLabel == storageLabel;
@override @override
int get hashCode => int get hashCode =>

View File

@ -32,11 +32,11 @@ class CuratedLocationsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto &&
other.city == city && other.city == city &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.id == id && other.id == id &&
other.resizePath == resizePath; other.resizePath == resizePath;
@override @override
int get hashCode => int get hashCode =>

View File

@ -32,11 +32,11 @@ class CuratedObjectsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.id == id && other.id == id &&
other.object == object && other.object == object &&
other.resizePath == resizePath; other.resizePath == resizePath;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class DeleteAssetDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DeleteAssetDto && bool operator ==(Object other) => identical(this, other) || other is DeleteAssetDto &&
_deepEquality.equals(other.ids, ids); other.ids == ids;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class DeleteAssetDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return DeleteAssetDto( return DeleteAssetDto(
ids: json[r'ids'] is Iterable ids: json[r'ids'] is List
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false) ? (json[r'ids'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -23,8 +23,8 @@ class DeleteAssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DeleteAssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is DeleteAssetResponseDto &&
other.id == id && other.id == id &&
other.status == status; other.status == status;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class DownloadArchiveInfo {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo && bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo &&
_deepEquality.equals(other.assetIds, assetIds) && other.assetIds == assetIds &&
other.size == size; other.size == size;
@override @override
int get hashCode => int get hashCode =>
@ -50,8 +50,8 @@ class DownloadArchiveInfo {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return DownloadArchiveInfo( return DownloadArchiveInfo(
assetIds: json[r'assetIds'] is Iterable assetIds: json[r'assetIds'] is List
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'assetIds'] as List).cast<String>()
: const [], : const [],
size: mapValueOfType<int>(json, r'size')!, size: mapValueOfType<int>(json, r'size')!,
); );

View File

@ -23,8 +23,8 @@ class DownloadResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto && bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto &&
_deepEquality.equals(other.archives, archives) && other.archives == archives &&
other.totalSize == totalSize; other.totalSize == totalSize;
@override @override
int get hashCode => int get hashCode =>

View File

@ -80,27 +80,27 @@ class ExifResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto && bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
other.city == city && other.city == city &&
other.country == country && other.country == country &&
other.dateTimeOriginal == dateTimeOriginal && other.dateTimeOriginal == dateTimeOriginal &&
other.description == description && other.description == description &&
other.exifImageHeight == exifImageHeight && other.exifImageHeight == exifImageHeight &&
other.exifImageWidth == exifImageWidth && other.exifImageWidth == exifImageWidth &&
other.exposureTime == exposureTime && other.exposureTime == exposureTime &&
other.fNumber == fNumber && other.fNumber == fNumber &&
other.fileSizeInByte == fileSizeInByte && other.fileSizeInByte == fileSizeInByte &&
other.focalLength == focalLength && other.focalLength == focalLength &&
other.iso == iso && other.iso == iso &&
other.latitude == latitude && other.latitude == latitude &&
other.lensModel == lensModel && other.lensModel == lensModel &&
other.longitude == longitude && other.longitude == longitude &&
other.make == make && other.make == make &&
other.model == model && other.model == model &&
other.modifyDate == modifyDate && other.modifyDate == modifyDate &&
other.orientation == orientation && other.orientation == orientation &&
other.projectionType == projectionType && other.projectionType == projectionType &&
other.state == state && other.state == state &&
other.timeZone == timeZone; other.timeZone == timeZone;
@override @override
int get hashCode => int get hashCode =>
@ -250,35 +250,35 @@ class ExifResponseDto {
return ExifResponseDto( return ExifResponseDto(
city: mapValueOfType<String>(json, r'city'), city: mapValueOfType<String>(json, r'city'),
country: mapValueOfType<String>(json, r'country'), country: mapValueOfType<String>(json, r'country'),
dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''), dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', ''),
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
exifImageHeight: json[r'exifImageHeight'] == null exifImageHeight: json[r'exifImageHeight'] == null
? null ? null
: num.parse('${json[r'exifImageHeight']}'), : num.parse(json[r'exifImageHeight'].toString()),
exifImageWidth: json[r'exifImageWidth'] == null exifImageWidth: json[r'exifImageWidth'] == null
? null ? null
: num.parse('${json[r'exifImageWidth']}'), : num.parse(json[r'exifImageWidth'].toString()),
exposureTime: mapValueOfType<String>(json, r'exposureTime'), exposureTime: mapValueOfType<String>(json, r'exposureTime'),
fNumber: json[r'fNumber'] == null fNumber: json[r'fNumber'] == null
? null ? null
: num.parse('${json[r'fNumber']}'), : num.parse(json[r'fNumber'].toString()),
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'), fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
focalLength: json[r'focalLength'] == null focalLength: json[r'focalLength'] == null
? null ? null
: num.parse('${json[r'focalLength']}'), : num.parse(json[r'focalLength'].toString()),
iso: json[r'iso'] == null iso: json[r'iso'] == null
? null ? null
: num.parse('${json[r'iso']}'), : num.parse(json[r'iso'].toString()),
latitude: json[r'latitude'] == null latitude: json[r'latitude'] == null
? null ? null
: num.parse('${json[r'latitude']}'), : num.parse(json[r'latitude'].toString()),
lensModel: mapValueOfType<String>(json, r'lensModel'), lensModel: mapValueOfType<String>(json, r'lensModel'),
longitude: json[r'longitude'] == null longitude: json[r'longitude'] == null
? null ? null
: num.parse('${json[r'longitude']}'), : num.parse(json[r'longitude'].toString()),
make: mapValueOfType<String>(json, r'make'), make: mapValueOfType<String>(json, r'make'),
model: mapValueOfType<String>(json, r'model'), model: mapValueOfType<String>(json, r'model'),
modifyDate: mapDateTime(json, r'modifyDate', r''), modifyDate: mapDateTime(json, r'modifyDate', ''),
orientation: mapValueOfType<String>(json, r'orientation'), orientation: mapValueOfType<String>(json, r'orientation'),
projectionType: mapValueOfType<String>(json, r'projectionType'), projectionType: mapValueOfType<String>(json, r'projectionType'),
state: mapValueOfType<String>(json, r'state'), state: mapValueOfType<String>(json, r'state'),

View File

@ -74,17 +74,17 @@ class ImportAssetDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ImportAssetDto && bool operator ==(Object other) => identical(this, other) || other is ImportAssetDto &&
other.assetPath == assetPath && other.assetPath == assetPath &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.duration == duration && other.duration == duration &&
other.fileCreatedAt == fileCreatedAt && other.fileCreatedAt == fileCreatedAt &&
other.fileModifiedAt == fileModifiedAt && other.fileModifiedAt == fileModifiedAt &&
other.isArchived == isArchived && other.isArchived == isArchived &&
other.isFavorite == isFavorite && other.isFavorite == isFavorite &&
other.isReadOnly == isReadOnly && other.isReadOnly == isReadOnly &&
other.isVisible == isVisible && other.isVisible == isVisible &&
other.sidecarPath == sidecarPath; other.sidecarPath == sidecarPath;
@override @override
int get hashCode => int get hashCode =>
@ -148,8 +148,8 @@ class ImportAssetDto {
deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!, deviceAssetId: mapValueOfType<String>(json, r'deviceAssetId')!,
deviceId: mapValueOfType<String>(json, r'deviceId')!, deviceId: mapValueOfType<String>(json, r'deviceId')!,
duration: mapValueOfType<String>(json, r'duration'), duration: mapValueOfType<String>(json, r'duration'),
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!, fileCreatedAt: mapDateTime(json, r'fileCreatedAt', '')!,
fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!, fileModifiedAt: mapDateTime(json, r'fileModifiedAt', '')!,
isArchived: mapValueOfType<bool>(json, r'isArchived'), isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!, isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
isReadOnly: mapValueOfType<bool>(json, r'isReadOnly') ?? true, isReadOnly: mapValueOfType<bool>(json, r'isReadOnly') ?? true,

View File

@ -23,8 +23,8 @@ class JobCommandDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobCommandDto && bool operator ==(Object other) => identical(this, other) || other is JobCommandDto &&
other.command == command && other.command == command &&
other.force == force; other.force == force;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class JobCountsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobCountsDto && bool operator ==(Object other) => identical(this, other) || other is JobCountsDto &&
other.active == active && other.active == active &&
other.completed == completed && other.completed == completed &&
other.delayed == delayed && other.delayed == delayed &&
other.failed == failed && other.failed == failed &&
other.paused == paused && other.paused == paused &&
other.waiting == waiting; other.waiting == waiting;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class JobSettingsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobSettingsDto && bool operator ==(Object other) => identical(this, other) || other is JobSettingsDto &&
other.concurrency == concurrency; other.concurrency == concurrency;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class JobStatusDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobStatusDto && bool operator ==(Object other) => identical(this, other) || other is JobStatusDto &&
other.jobCounts == jobCounts && other.jobCounts == jobCounts &&
other.queueStatus == queueStatus; other.queueStatus == queueStatus;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class LoginCredentialDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto && bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto &&
other.email == email && other.email == email &&
other.password == password; other.password == password;
@override @override
int get hashCode => int get hashCode =>

View File

@ -41,14 +41,14 @@ class LoginResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto && bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto &&
other.accessToken == accessToken && other.accessToken == accessToken &&
other.firstName == firstName && other.firstName == firstName &&
other.isAdmin == isAdmin && other.isAdmin == isAdmin &&
other.lastName == lastName && other.lastName == lastName &&
other.profileImagePath == profileImagePath && other.profileImagePath == profileImagePath &&
other.shouldChangePassword == shouldChangePassword && other.shouldChangePassword == shouldChangePassword &&
other.userEmail == userEmail && other.userEmail == userEmail &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class LogoutResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto && bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto &&
other.redirectUri == redirectUri && other.redirectUri == redirectUri &&
other.successful == successful; other.successful == successful;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class MapMarkerResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto && bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto &&
other.id == id && other.id == id &&
other.lat == lat && other.lat == lat &&
other.lon == lon; other.lon == lon;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class MemoryLaneResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto && bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
_deepEquality.equals(other.assets, assets) && other.assets == assets &&
other.title == title; other.title == title;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class MergePersonDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MergePersonDto && bool operator ==(Object other) => identical(this, other) || other is MergePersonDto &&
_deepEquality.equals(other.ids, ids); other.ids == ids;
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class MergePersonDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return MergePersonDto( return MergePersonDto(
ids: json[r'ids'] is Iterable ids: json[r'ids'] is List
? (json[r'ids'] as Iterable).cast<String>().toList(growable: false) ? (json[r'ids'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -20,7 +20,7 @@ class OAuthCallbackDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is OAuthCallbackDto && bool operator ==(Object other) => identical(this, other) || other is OAuthCallbackDto &&
other.url == url; other.url == url;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class OAuthConfigDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigDto && bool operator ==(Object other) => identical(this, other) || other is OAuthConfigDto &&
other.redirectUri == redirectUri; other.redirectUri == redirectUri;
@override @override
int get hashCode => int get hashCode =>

View File

@ -50,11 +50,11 @@ class OAuthConfigResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto && bool operator ==(Object other) => identical(this, other) || other is OAuthConfigResponseDto &&
other.autoLaunch == autoLaunch && other.autoLaunch == autoLaunch &&
other.buttonText == buttonText && other.buttonText == buttonText &&
other.enabled == enabled && other.enabled == enabled &&
other.passwordLoginEnabled == passwordLoginEnabled && other.passwordLoginEnabled == passwordLoginEnabled &&
other.url == url; other.url == url;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,15 +20,15 @@ class PeopleResponseDto {
List<PersonResponseDto> people; List<PersonResponseDto> people;
num total; int total;
num visible; int visible;
@override @override
bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto && bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto &&
_deepEquality.equals(other.people, people) && other.people == people &&
other.total == total && other.total == total &&
other.visible == visible; other.visible == visible;
@override @override
int get hashCode => int get hashCode =>
@ -57,8 +57,8 @@ class PeopleResponseDto {
return PeopleResponseDto( return PeopleResponseDto(
people: PersonResponseDto.listFromJson(json[r'people']), people: PersonResponseDto.listFromJson(json[r'people']),
total: num.parse('${json[r'total']}'), total: mapValueOfType<int>(json, r'total')!,
visible: num.parse('${json[r'visible']}'), visible: mapValueOfType<int>(json, r'visible')!,
); );
} }
return null; return null;

View File

@ -20,7 +20,7 @@ class PeopleUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateDto && bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateDto &&
_deepEquality.equals(other.people, people); other.people == people;
@override @override
int get hashCode => int get hashCode =>

View File

@ -51,10 +51,10 @@ class PeopleUpdateItem {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateItem && bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateItem &&
other.featureFaceAssetId == featureFaceAssetId && other.featureFaceAssetId == featureFaceAssetId &&
other.id == id && other.id == id &&
other.isHidden == isHidden && other.isHidden == isHidden &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class PersonResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PersonResponseDto && bool operator ==(Object other) => identical(this, other) || other is PersonResponseDto &&
other.id == id && other.id == id &&
other.isHidden == isHidden && other.isHidden == isHidden &&
other.name == name && other.name == name &&
other.thumbnailPath == thumbnailPath; other.thumbnailPath == thumbnailPath;
@override @override
int get hashCode => int get hashCode =>

View File

@ -47,9 +47,9 @@ class PersonUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PersonUpdateDto && bool operator ==(Object other) => identical(this, other) || other is PersonUpdateDto &&
other.featureFaceAssetId == featureFaceAssetId && other.featureFaceAssetId == featureFaceAssetId &&
other.isHidden == isHidden && other.isHidden == isHidden &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class QueueStatusDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is QueueStatusDto && bool operator ==(Object other) => identical(this, other) || other is QueueStatusDto &&
other.isActive == isActive && other.isActive == isActive &&
other.isPaused == isPaused; other.isPaused == isPaused;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class SearchAlbumResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto &&
other.count == count && other.count == count &&
_deepEquality.equals(other.facets, facets) && other.facets == facets &&
_deepEquality.equals(other.items, items) && other.items == items &&
other.total == total; other.total == total;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class SearchAssetDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchAssetDto && bool operator ==(Object other) => identical(this, other) || other is SearchAssetDto &&
other.searchTerm == searchTerm; other.searchTerm == searchTerm;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class SearchAssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto &&
other.count == count && other.count == count &&
_deepEquality.equals(other.facets, facets) && other.facets == facets &&
_deepEquality.equals(other.items, items) && other.items == items &&
other.total == total; other.total == total;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class SearchConfigResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchConfigResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchConfigResponseDto &&
other.enabled == enabled; other.enabled == enabled;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SearchExploreItem {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchExploreItem && bool operator ==(Object other) => identical(this, other) || other is SearchExploreItem &&
other.data == data && other.data == data &&
other.value == value; other.value == value;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SearchExploreResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto &&
other.fieldName == fieldName && other.fieldName == fieldName &&
_deepEquality.equals(other.items, items); other.items == items;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SearchFacetCountResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchFacetCountResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchFacetCountResponseDto &&
other.count == count && other.count == count &&
other.value == value; other.value == value;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SearchFacetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto &&
_deepEquality.equals(other.counts, counts) && other.counts == counts &&
other.fieldName == fieldName; other.fieldName == fieldName;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SearchResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchResponseDto &&
other.albums == albums && other.albums == albums &&
other.assets == assets; other.assets == assets;
@override @override
int get hashCode => int get hashCode =>

View File

@ -38,13 +38,13 @@ class ServerInfoResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerInfoResponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerInfoResponseDto &&
other.diskAvailable == diskAvailable && other.diskAvailable == diskAvailable &&
other.diskAvailableRaw == diskAvailableRaw && other.diskAvailableRaw == diskAvailableRaw &&
other.diskSize == diskSize && other.diskSize == diskSize &&
other.diskSizeRaw == diskSizeRaw && other.diskSizeRaw == diskSizeRaw &&
other.diskUsagePercentage == diskUsagePercentage && other.diskUsagePercentage == diskUsagePercentage &&
other.diskUse == diskUse && other.diskUse == diskUse &&
other.diskUseRaw == diskUseRaw; other.diskUseRaw == diskUseRaw;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class ServerMediaTypesResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerMediaTypesResponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerMediaTypesResponseDto &&
_deepEquality.equals(other.image, image) && other.image == image &&
_deepEquality.equals(other.sidecar, sidecar) && other.sidecar == sidecar &&
_deepEquality.equals(other.video, video); other.video == video;
@override @override
int get hashCode => int get hashCode =>
@ -56,14 +56,14 @@ class ServerMediaTypesResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return ServerMediaTypesResponseDto( return ServerMediaTypesResponseDto(
image: json[r'image'] is Iterable image: json[r'image'] is List
? (json[r'image'] as Iterable).cast<String>().toList(growable: false) ? (json[r'image'] as List).cast<String>()
: const [], : const [],
sidecar: json[r'sidecar'] is Iterable sidecar: json[r'sidecar'] is List
? (json[r'sidecar'] as Iterable).cast<String>().toList(growable: false) ? (json[r'sidecar'] as List).cast<String>()
: const [], : const [],
video: json[r'video'] is Iterable video: json[r'video'] is List
? (json[r'video'] as Iterable).cast<String>().toList(growable: false) ? (json[r'video'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -20,7 +20,7 @@ class ServerPingResponse {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerPingResponse && bool operator ==(Object other) => identical(this, other) || other is ServerPingResponse &&
other.res == res; other.res == res;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class ServerStatsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto &&
other.photos == photos && other.photos == photos &&
other.usage == usage && other.usage == usage &&
_deepEquality.equals(other.usageByUser, usageByUser) && other.usageByUser == usageByUser &&
other.videos == videos; other.videos == videos;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class ServerVersionReponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerVersionReponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerVersionReponseDto &&
other.major == major && other.major == major &&
other.minor == minor && other.minor == minor &&
other.patch_ == patch_; other.patch_ == patch_;
@override @override
int get hashCode => int get hashCode =>

View File

@ -53,14 +53,14 @@ class SharedLinkCreateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkCreateDto && bool operator ==(Object other) => identical(this, other) || other is SharedLinkCreateDto &&
other.albumId == albumId && other.albumId == albumId &&
other.allowDownload == allowDownload && other.allowDownload == allowDownload &&
other.allowUpload == allowUpload && other.allowUpload == allowUpload &&
_deepEquality.equals(other.assetIds, assetIds) && other.assetIds == assetIds &&
other.description == description && other.description == description &&
other.expiresAt == expiresAt && other.expiresAt == expiresAt &&
other.showExif == showExif && other.showExif == showExif &&
other.type == type; other.type == type;
@override @override
int get hashCode => int get hashCode =>
@ -113,11 +113,11 @@ class SharedLinkCreateDto {
albumId: mapValueOfType<String>(json, r'albumId'), albumId: mapValueOfType<String>(json, r'albumId'),
allowDownload: mapValueOfType<bool>(json, r'allowDownload') ?? true, allowDownload: mapValueOfType<bool>(json, r'allowDownload') ?? true,
allowUpload: mapValueOfType<bool>(json, r'allowUpload') ?? false, allowUpload: mapValueOfType<bool>(json, r'allowUpload') ?? false,
assetIds: json[r'assetIds'] is Iterable assetIds: json[r'assetIds'] is List
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'assetIds'] as List).cast<String>()
: const [], : const [],
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', r''), expiresAt: mapDateTime(json, r'expiresAt', ''),
showExif: mapValueOfType<bool>(json, r'showExif') ?? true, showExif: mapValueOfType<bool>(json, r'showExif') ?? true,
type: SharedLinkType.fromJson(json[r'type'])!, type: SharedLinkType.fromJson(json[r'type'])!,
); );

View File

@ -56,11 +56,11 @@ class SharedLinkEditDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkEditDto && bool operator ==(Object other) => identical(this, other) || other is SharedLinkEditDto &&
other.allowDownload == allowDownload && other.allowDownload == allowDownload &&
other.allowUpload == allowUpload && other.allowUpload == allowUpload &&
other.description == description && other.description == description &&
other.expiresAt == expiresAt && other.expiresAt == expiresAt &&
other.showExif == showExif; other.showExif == showExif;
@override @override
int get hashCode => int get hashCode =>
@ -115,7 +115,7 @@ class SharedLinkEditDto {
allowDownload: mapValueOfType<bool>(json, r'allowDownload'), allowDownload: mapValueOfType<bool>(json, r'allowDownload'),
allowUpload: mapValueOfType<bool>(json, r'allowUpload'), allowUpload: mapValueOfType<bool>(json, r'allowUpload'),
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', r''), expiresAt: mapDateTime(json, r'expiresAt', ''),
showExif: mapValueOfType<bool>(json, r'showExif'), showExif: mapValueOfType<bool>(json, r'showExif'),
); );
} }

View File

@ -59,18 +59,18 @@ class SharedLinkResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SharedLinkResponseDto && bool operator ==(Object other) => identical(this, other) || other is SharedLinkResponseDto &&
other.album == album && other.album == album &&
other.allowDownload == allowDownload && other.allowDownload == allowDownload &&
other.allowUpload == allowUpload && other.allowUpload == allowUpload &&
_deepEquality.equals(other.assets, assets) && other.assets == assets &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.description == description && other.description == description &&
other.expiresAt == expiresAt && other.expiresAt == expiresAt &&
other.id == id && other.id == id &&
other.key == key && other.key == key &&
other.showExif == showExif && other.showExif == showExif &&
other.type == type && other.type == type &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>
@ -132,9 +132,9 @@ class SharedLinkResponseDto {
allowDownload: mapValueOfType<bool>(json, r'allowDownload')!, allowDownload: mapValueOfType<bool>(json, r'allowDownload')!,
allowUpload: mapValueOfType<bool>(json, r'allowUpload')!, allowUpload: mapValueOfType<bool>(json, r'allowUpload')!,
assets: AssetResponseDto.listFromJson(json[r'assets']), assets: AssetResponseDto.listFromJson(json[r'assets']),
createdAt: mapDateTime(json, r'createdAt', r'')!, createdAt: mapDateTime(json, r'createdAt', '')!,
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', r''), expiresAt: mapDateTime(json, r'expiresAt', ''),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
key: mapValueOfType<String>(json, r'key')!, key: mapValueOfType<String>(json, r'key')!,
showExif: mapValueOfType<bool>(json, r'showExif')!, showExif: mapValueOfType<bool>(json, r'showExif')!,

View File

@ -29,10 +29,10 @@ class SignUpDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SignUpDto && bool operator ==(Object other) => identical(this, other) || other is SignUpDto &&
other.email == email && other.email == email &&
other.firstName == firstName && other.firstName == firstName &&
other.lastName == lastName && other.lastName == lastName &&
other.password == password; other.password == password;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class SmartInfoResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto && bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto &&
_deepEquality.equals(other.objects, objects) && other.objects == objects &&
_deepEquality.equals(other.tags, tags); other.tags == tags;
@override @override
int get hashCode => int get hashCode =>
@ -58,11 +58,11 @@ class SmartInfoResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return SmartInfoResponseDto( return SmartInfoResponseDto(
objects: json[r'objects'] is Iterable objects: json[r'objects'] is List
? (json[r'objects'] as Iterable).cast<String>().toList(growable: false) ? (json[r'objects'] as List).cast<String>()
: const [], : const [],
tags: json[r'tags'] is Iterable tags: json[r'tags'] is List
? (json[r'tags'] as Iterable).cast<String>().toList(growable: false) ? (json[r'tags'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -32,11 +32,11 @@ class SystemConfigDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigDto &&
other.ffmpeg == ffmpeg && other.ffmpeg == ffmpeg &&
other.job == job && other.job == job &&
other.oauth == oauth && other.oauth == oauth &&
other.passwordLogin == passwordLogin && other.passwordLogin == passwordLogin &&
other.storageTemplate == storageTemplate; other.storageTemplate == storageTemplate;
@override @override
int get hashCode => int get hashCode =>

View File

@ -47,16 +47,16 @@ class SystemConfigFFmpegDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigFFmpegDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigFFmpegDto &&
other.accel == accel && other.accel == accel &&
other.crf == crf && other.crf == crf &&
other.maxBitrate == maxBitrate && other.maxBitrate == maxBitrate &&
other.preset == preset && other.preset == preset &&
other.targetAudioCodec == targetAudioCodec && other.targetAudioCodec == targetAudioCodec &&
other.targetResolution == targetResolution && other.targetResolution == targetResolution &&
other.targetVideoCodec == targetVideoCodec && other.targetVideoCodec == targetVideoCodec &&
other.threads == threads && other.threads == threads &&
other.transcode == transcode && other.transcode == transcode &&
other.twoPass == twoPass; other.twoPass == twoPass;
@override @override
int get hashCode => int get hashCode =>

View File

@ -47,16 +47,16 @@ class SystemConfigJobDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
other.backgroundTask == backgroundTask && other.backgroundTask == backgroundTask &&
other.clipEncoding == clipEncoding && other.clipEncoding == clipEncoding &&
other.metadataExtraction == metadataExtraction && other.metadataExtraction == metadataExtraction &&
other.objectTagging == objectTagging && other.objectTagging == objectTagging &&
other.recognizeFaces == recognizeFaces && other.recognizeFaces == recognizeFaces &&
other.search == search && other.search == search &&
other.sidecar == sidecar && other.sidecar == sidecar &&
other.storageTemplateMigration == storageTemplateMigration && other.storageTemplateMigration == storageTemplateMigration &&
other.thumbnailGeneration == thumbnailGeneration && other.thumbnailGeneration == thumbnailGeneration &&
other.videoConversion == videoConversion; other.videoConversion == videoConversion;
@override @override
int get hashCode => int get hashCode =>

View File

@ -50,17 +50,17 @@ class SystemConfigOAuthDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigOAuthDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigOAuthDto &&
other.autoLaunch == autoLaunch && other.autoLaunch == autoLaunch &&
other.autoRegister == autoRegister && other.autoRegister == autoRegister &&
other.buttonText == buttonText && other.buttonText == buttonText &&
other.clientId == clientId && other.clientId == clientId &&
other.clientSecret == clientSecret && other.clientSecret == clientSecret &&
other.enabled == enabled && other.enabled == enabled &&
other.issuerUrl == issuerUrl && other.issuerUrl == issuerUrl &&
other.mobileOverrideEnabled == mobileOverrideEnabled && other.mobileOverrideEnabled == mobileOverrideEnabled &&
other.mobileRedirectUri == mobileRedirectUri && other.mobileRedirectUri == mobileRedirectUri &&
other.scope == scope && other.scope == scope &&
other.storageLabelClaim == storageLabelClaim; other.storageLabelClaim == storageLabelClaim;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class SystemConfigPasswordLoginDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigPasswordLoginDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigPasswordLoginDto &&
other.enabled == enabled; other.enabled == enabled;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class SystemConfigStorageTemplateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigStorageTemplateDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigStorageTemplateDto &&
other.template == template; other.template == template;
@override @override
int get hashCode => int get hashCode =>

View File

@ -38,13 +38,13 @@ class SystemConfigTemplateStorageOptionDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto &&
_deepEquality.equals(other.dayOptions, dayOptions) && other.dayOptions == dayOptions &&
_deepEquality.equals(other.hourOptions, hourOptions) && other.hourOptions == hourOptions &&
_deepEquality.equals(other.minuteOptions, minuteOptions) && other.minuteOptions == minuteOptions &&
_deepEquality.equals(other.monthOptions, monthOptions) && other.monthOptions == monthOptions &&
_deepEquality.equals(other.presetOptions, presetOptions) && other.presetOptions == presetOptions &&
_deepEquality.equals(other.secondOptions, secondOptions) && other.secondOptions == secondOptions &&
_deepEquality.equals(other.yearOptions, yearOptions); other.yearOptions == yearOptions;
@override @override
int get hashCode => int get hashCode =>
@ -80,26 +80,26 @@ class SystemConfigTemplateStorageOptionDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return SystemConfigTemplateStorageOptionDto( return SystemConfigTemplateStorageOptionDto(
dayOptions: json[r'dayOptions'] is Iterable dayOptions: json[r'dayOptions'] is List
? (json[r'dayOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'dayOptions'] as List).cast<String>()
: const [], : const [],
hourOptions: json[r'hourOptions'] is Iterable hourOptions: json[r'hourOptions'] is List
? (json[r'hourOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'hourOptions'] as List).cast<String>()
: const [], : const [],
minuteOptions: json[r'minuteOptions'] is Iterable minuteOptions: json[r'minuteOptions'] is List
? (json[r'minuteOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'minuteOptions'] as List).cast<String>()
: const [], : const [],
monthOptions: json[r'monthOptions'] is Iterable monthOptions: json[r'monthOptions'] is List
? (json[r'monthOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'monthOptions'] as List).cast<String>()
: const [], : const [],
presetOptions: json[r'presetOptions'] is Iterable presetOptions: json[r'presetOptions'] is List
? (json[r'presetOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'presetOptions'] as List).cast<String>()
: const [], : const [],
secondOptions: json[r'secondOptions'] is Iterable secondOptions: json[r'secondOptions'] is List
? (json[r'secondOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'secondOptions'] as List).cast<String>()
: const [], : const [],
yearOptions: json[r'yearOptions'] is Iterable yearOptions: json[r'yearOptions'] is List
? (json[r'yearOptions'] as Iterable).cast<String>().toList(growable: false) ? (json[r'yearOptions'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -29,10 +29,10 @@ class TagResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is TagResponseDto && bool operator ==(Object other) => identical(this, other) || other is TagResponseDto &&
other.id == id && other.id == id &&
other.name == name && other.name == name &&
other.type == type && other.type == type &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class TimeBucketResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is TimeBucketResponseDto && bool operator ==(Object other) => identical(this, other) || other is TimeBucketResponseDto &&
other.count == count && other.count == count &&
other.timeBucket == timeBucket; other.timeBucket == timeBucket;
@override @override
int get hashCode => int get hashCode =>

View File

@ -44,9 +44,9 @@ class UpdateAlbumDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumDto && bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumDto &&
other.albumName == albumName && other.albumName == albumName &&
other.albumThumbnailAssetId == albumThumbnailAssetId && other.albumThumbnailAssetId == albumThumbnailAssetId &&
other.description == description; other.description == description;
@override @override
int get hashCode => int get hashCode =>

View File

@ -47,10 +47,10 @@ class UpdateAssetDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UpdateAssetDto && bool operator ==(Object other) => identical(this, other) || other is UpdateAssetDto &&
other.description == description && other.description == description &&
other.isArchived == isArchived && other.isArchived == isArchived &&
other.isFavorite == isFavorite && other.isFavorite == isFavorite &&
_deepEquality.equals(other.tagIds, tagIds); other.tagIds == tagIds;
@override @override
int get hashCode => int get hashCode =>
@ -95,8 +95,8 @@ class UpdateAssetDto {
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
isArchived: mapValueOfType<bool>(json, r'isArchived'), isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite'), isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
tagIds: json[r'tagIds'] is Iterable tagIds: json[r'tagIds'] is List
? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false) ? (json[r'tagIds'] as List).cast<String>()
: const [], : const [],
); );
} }

View File

@ -26,7 +26,7 @@ class UpdateTagDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UpdateTagDto && bool operator ==(Object other) => identical(this, other) || other is UpdateTagDto &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -92,15 +92,15 @@ class UpdateUserDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto && bool operator ==(Object other) => identical(this, other) || other is UpdateUserDto &&
other.email == email && other.email == email &&
other.externalPath == externalPath && other.externalPath == externalPath &&
other.firstName == firstName && other.firstName == firstName &&
other.id == id && other.id == id &&
other.isAdmin == isAdmin && other.isAdmin == isAdmin &&
other.lastName == lastName && other.lastName == lastName &&
other.password == password && other.password == password &&
other.shouldChangePassword == shouldChangePassword && other.shouldChangePassword == shouldChangePassword &&
other.storageLabel == storageLabel; other.storageLabel == storageLabel;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class UsageByUserDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UsageByUserDto && bool operator ==(Object other) => identical(this, other) || other is UsageByUserDto &&
other.photos == photos && other.photos == photos &&
other.usage == usage && other.usage == usage &&
other.userFirstName == userFirstName && other.userFirstName == userFirstName &&
other.userId == userId && other.userId == userId &&
other.userLastName == userLastName && other.userLastName == userLastName &&
other.videos == videos; other.videos == videos;
@override @override
int get hashCode => int get hashCode =>

View File

@ -20,7 +20,7 @@ class UserCountResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UserCountResponseDto && bool operator ==(Object other) => identical(this, other) || other is UserCountResponseDto &&
other.userCount == userCount; other.userCount == userCount;
@override @override
int get hashCode => int get hashCode =>

View File

@ -56,19 +56,19 @@ class UserResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UserResponseDto && bool operator ==(Object other) => identical(this, other) || other is UserResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.deletedAt == deletedAt && other.deletedAt == deletedAt &&
other.email == email && other.email == email &&
other.externalPath == externalPath && other.externalPath == externalPath &&
other.firstName == firstName && other.firstName == firstName &&
other.id == id && other.id == id &&
other.isAdmin == isAdmin && other.isAdmin == isAdmin &&
other.lastName == lastName && other.lastName == lastName &&
other.oauthId == oauthId && other.oauthId == oauthId &&
other.profileImagePath == profileImagePath && other.profileImagePath == profileImagePath &&
other.shouldChangePassword == shouldChangePassword && other.shouldChangePassword == shouldChangePassword &&
other.storageLabel == storageLabel && other.storageLabel == storageLabel &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -128,8 +128,8 @@ class UserResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return UserResponseDto( return UserResponseDto(
createdAt: mapDateTime(json, r'createdAt', r'')!, createdAt: mapDateTime(json, r'createdAt', '')!,
deletedAt: mapDateTime(json, r'deletedAt', r''), deletedAt: mapDateTime(json, r'deletedAt', ''),
email: mapValueOfType<String>(json, r'email')!, email: mapValueOfType<String>(json, r'email')!,
externalPath: mapValueOfType<String>(json, r'externalPath'), externalPath: mapValueOfType<String>(json, r'externalPath'),
firstName: mapValueOfType<String>(json, r'firstName')!, firstName: mapValueOfType<String>(json, r'firstName')!,
@ -140,7 +140,7 @@ class UserResponseDto {
profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!, profileImagePath: mapValueOfType<String>(json, r'profileImagePath')!,
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!, shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
storageLabel: mapValueOfType<String>(json, r'storageLabel'), storageLabel: mapValueOfType<String>(json, r'storageLabel'),
updatedAt: mapDateTime(json, r'updatedAt', r'')!, updatedAt: mapDateTime(json, r'updatedAt', '')!,
); );
} }
return null; return null;

View File

@ -20,7 +20,7 @@ class ValidateAccessTokenResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ValidateAccessTokenResponseDto && bool operator ==(Object other) => identical(this, other) || other is ValidateAccessTokenResponseDto &&
other.authStatus == authStatus; other.authStatus == authStatus;
@override @override
int get hashCode => int get hashCode =>

View File

@ -21,12 +21,12 @@ void main() {
// TODO // TODO
}); });
// num total // int total
test('to test the property `total`', () async { test('to test the property `total`', () async {
// TODO // TODO
}); });
// num visible // int visible
test('to test the property `visible`', () async { test('to test the property `visible`', () async {
// TODO // TODO
}); });

View File

@ -1,9 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
OPENAPI_GENEARTOR_VERSION=v6.6.0
function mobile { function mobile {
rm -rf ../mobile/openapi rm -rf ../mobile/openapi
cd ./openapi-generator/templates/mobile/serialization/native 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 patch -u native_class.mustache <native_class.mustache.patch
cd ../../../../.. cd ../../../../..
npx --yes @openapitools/openapi-generator-cli generate -g dart -i ./immich-openapi-specs.json -o ../mobile/openapi -t ./openapi-generator/templates/mobile 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 { function web {
rm -rf ../web/src/api/open-api rm -rf ../web/src/api/open-api
cd ./openapi-generator/templates/web 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 patch -u apiInner.mustache < apiInner.mustache.patch
cd ../../.. 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 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 { function cli {
rm -rf ../cli/src/api/open-api rm -rf ../cli/src/api/open-api
cd ./openapi-generator/templates/cli 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 patch -u apiInner.mustache < apiInner.mustache.patch
cd ../../.. 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 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

View File

@ -5990,10 +5990,10 @@
"type": "array" "type": "array"
}, },
"total": { "total": {
"type": "number" "type": "integer"
}, },
"visible": { "visible": {
"type": "number" "type": "integer"
} }
}, },
"required": [ "required": [

View File

@ -38,7 +38,7 @@ class {{{classname}}} {
@override @override
bool operator ==(Object other) => identical(this, other) || other is {{{classname}}} && bool operator ==(Object other) => identical(this, other) || other is {{{classname}}} &&
{{#vars}} {{#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}} {{/vars}}
@override @override
@ -66,7 +66,7 @@ class {{{classname}}} {
{{/isNullable}} {{/isNullable}}
{{#isDateTime}} {{#isDateTime}}
{{#pattern}} {{#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}}.millisecondsSinceEpoch
: this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc().toIso8601String(); : this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc().toIso8601String();
{{/pattern}} {{/pattern}}
@ -76,7 +76,7 @@ class {{{classname}}} {
{{/isDateTime}} {{/isDateTime}}
{{#isDate}} {{#isDate}}
{{#pattern}} {{#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}}.millisecondsSinceEpoch
: _dateFormatter.format(this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc()); : _dateFormatter.format(this.{{{name}}}{{#isNullable}}!{{/isNullable}}{{^isNullable}}{{^required}}{{^defaultValue}}!{{/defaultValue}}{{/required}}{{/isNullable}}.toUtc());
{{/pattern}} {{/pattern}}
@ -86,7 +86,7 @@ class {{{classname}}} {
{{/isDate}} {{/isDate}}
{{^isDateTime}} {{^isDateTime}}
{{^isDate}} {{^isDate}}
json[r'{{{baseName}}}'] = this.{{{name}}}{{#isArray}}{{#uniqueItems}}{{#isNullable}}!{{/isNullable}}.toList(growable: false){{/uniqueItems}}{{/isArray}}; json[r'{{{baseName}}}'] = this.{{{name}}};
{{/isDate}} {{/isDate}}
{{/isDateTime}} {{/isDateTime}}
{{#isNullable}} {{#isNullable}}
@ -117,10 +117,10 @@ class {{{classname}}} {
return {{{classname}}}( return {{{classname}}}(
{{#vars}} {{#vars}}
{{#isDateTime}} {{#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}} {{/isDateTime}}
{{#isDate}} {{#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}} {{/isDate}}
{{^isDateTime}} {{^isDateTime}}
{{^isDate}} {{^isDate}}
@ -189,8 +189,8 @@ class {{{classname}}} {
{{{name}}}: {{{items.datatypeWithEnum}}}.listFromJson(json[r'{{{baseName}}}']){{#uniqueItems}}.toSet(){{/uniqueItems}}, {{{name}}}: {{{items.datatypeWithEnum}}}.listFromJson(json[r'{{{baseName}}}']){{#uniqueItems}}.toSet(){{/uniqueItems}},
{{/isEnum}} {{/isEnum}}
{{^isEnum}} {{^isEnum}}
{{{name}}}: json[r'{{{baseName}}}'] is Iterable {{{name}}}: json[r'{{{baseName}}}'] is {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}
? (json[r'{{{baseName}}}'] as Iterable).cast<{{{items.datatype}}}>().{{#uniqueItems}}toSet(){{/uniqueItems}}{{^uniqueItems}}toList(growable: false){{/uniqueItems}} ? (json[r'{{{baseName}}}'] as {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}).cast<{{{items.datatype}}}>()
: {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}, : {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}},
{{/isEnum}} {{/isEnum}}
{{/isArray}} {{/isArray}}
@ -200,9 +200,9 @@ class {{{classname}}} {
{{/isMap}} {{/isMap}}
{{^isMap}} {{^isMap}}
{{#isNumber}} {{#isNumber}}
{{{name}}}: {{#isNullable}}json[r'{{{baseName}}}'] == null {{{name}}}: json[r'{{{baseName}}}'] == null
? {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}} ? {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}
: {{/isNullable}}{{{datatypeWithEnum}}}.parse('${json[r'{{{baseName}}}']}'), : {{{datatypeWithEnum}}}.parse(json[r'{{{baseName}}}'].toString()),
{{/isNumber}} {{/isNumber}}
{{^isNumber}} {{^isNumber}}
{{^isEnum}} {{^isEnum}}

View File

@ -3,8 +3,9 @@
/* eslint-disable */ /* eslint-disable */
{{>licenseInfo}} {{>licenseInfo}}
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import type { Configuration } from '{{apiRelativeToRoot}}configuration';
import { Configuration } from '{{apiRelativeToRoot}}configuration'; import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
{{#withNodeImports}} {{#withNodeImports}}
// URLSearchParams not necessarily used // URLSearchParams not necessarily used
// @ts-ignore // @ts-ignore
@ -146,12 +147,16 @@ export const {{classname}}AxiosParamCreator = function (configuration?: Configur
} }
{{/isArray}} {{/isArray}}
{{^isArray}} {{^isArray}}
if ({{paramName}} !== undefined && {{paramName}} !== null) { {{! `val == null` covers for both `null` and `undefined`}}
if ({{paramName}} != null) {
{{#isString}} {{#isString}}
localVarHeaderParameter['{{baseName}}'] = String({{paramName}}); localVarHeaderParameter['{{baseName}}'] = String({{paramName}});
{{/isString}} {{/isString}}
{{^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}} {{/isString}}
} }
{{/isArray}} {{/isArray}}
@ -253,16 +258,30 @@ export const {{classname}}Factory = function (configuration?: Configuration, bas
{{#summary}} {{#summary}}
* @summary {{&summary}} * @summary {{&summary}}
{{/summary}} {{/summary}}
{{#useSingleRequestParameter}}
{{#allParams.0}}
* @param {{=<% %>=}}{<%& classname %><%& operationIdCamelCase %>Request}<%={{ }}=%> requestParameters Request parameters.
{{/allParams.0}}
{{/useSingleRequestParameter}}
{{^useSingleRequestParameter}}
{{#allParams}} {{#allParams}}
* @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}} * @param {{=<% %>=}}{<%&dataType%>}<%={{ }}=%> {{^required}}[{{/required}}{{paramName}}{{^required}}]{{/required}} {{description}}
{{/allParams}} {{/allParams}}
{{/useSingleRequestParameter}}
* @param {*} [options] Override http request option.{{#isDeprecated}} * @param {*} [options] Override http request option.{{#isDeprecated}}
* @deprecated{{/isDeprecated}} * @deprecated{{/isDeprecated}}
* @throws {RequiredError} * @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}}> { {{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)); return localVarFp.{{nickname}}({{#allParams}}{{paramName}}, {{/allParams}}options).then((request) => request(axios, basePath));
}, },
{{/useSingleRequestParameter}}
{{/operation}} {{/operation}}
}; };
}; };

View File

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

Some files were not shown because too many files have changed in this diff Show More