mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	chore: update api (#2428)
This commit is contained in:
		
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/add_assets_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/add_assets_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -55,8 +55,8 @@ class AddAssetsDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return AddAssetsDto( | ||||
|         assetIds: json[r'assetIds'] is List | ||||
|             ? (json[r'assetIds'] as List).cast<String>() | ||||
|         assetIds: json[r'assetIds'] is Iterable | ||||
|             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -78,8 +78,8 @@ class AddAssetsResponseDto { | ||||
| 
 | ||||
|       return AddAssetsResponseDto( | ||||
|         successfullyAdded: mapValueOfType<int>(json, r'successfullyAdded')!, | ||||
|         alreadyInAlbum: json[r'alreadyInAlbum'] is List | ||||
|             ? (json[r'alreadyInAlbum'] as List).cast<String>() | ||||
|         alreadyInAlbum: json[r'alreadyInAlbum'] is Iterable | ||||
|             ? (json[r'alreadyInAlbum'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         album: AlbumResponseDto.fromJson(json[r'album']), | ||||
|       ); | ||||
|   | ||||
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/add_users_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/add_users_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -55,8 +55,8 @@ class AddUsersDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return AddUsersDto( | ||||
|         sharedUserIds: json[r'sharedUserIds'] is List | ||||
|             ? (json[r'sharedUserIds'] as List).cast<String>() | ||||
|         sharedUserIds: json[r'sharedUserIds'] is Iterable | ||||
|             ? (json[r'sharedUserIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -61,8 +61,8 @@ class CheckExistingAssetsDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return CheckExistingAssetsDto( | ||||
|         deviceAssetIds: json[r'deviceAssetIds'] is List | ||||
|             ? (json[r'deviceAssetIds'] as List).cast<String>() | ||||
|         deviceAssetIds: json[r'deviceAssetIds'] is Iterable | ||||
|             ? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         deviceId: mapValueOfType<String>(json, r'deviceId')!, | ||||
|       ); | ||||
|   | ||||
| @@ -55,8 +55,8 @@ class CheckExistingAssetsResponseDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return CheckExistingAssetsResponseDto( | ||||
|         existingIds: json[r'existingIds'] is List | ||||
|             ? (json[r'existingIds'] as List).cast<String>() | ||||
|         existingIds: json[r'existingIds'] is Iterable | ||||
|             ? (json[r'existingIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
							
								
								
									
										8
									
								
								mobile/openapi/lib/model/create_album_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								mobile/openapi/lib/model/create_album_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -68,11 +68,11 @@ class CreateAlbumDto { | ||||
| 
 | ||||
|       return CreateAlbumDto( | ||||
|         albumName: mapValueOfType<String>(json, r'albumName')!, | ||||
|         sharedWithUserIds: json[r'sharedWithUserIds'] is List | ||||
|             ? (json[r'sharedWithUserIds'] as List).cast<String>() | ||||
|         sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable | ||||
|             ? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         assetIds: json[r'assetIds'] is List | ||||
|             ? (json[r'assetIds'] as List).cast<String>() | ||||
|         assetIds: json[r'assetIds'] is Iterable | ||||
|             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -135,8 +135,8 @@ class CreateAssetsShareLinkDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return CreateAssetsShareLinkDto( | ||||
|         assetIds: json[r'assetIds'] is List | ||||
|             ? (json[r'assetIds'] as List).cast<String>() | ||||
|         assetIds: json[r'assetIds'] is Iterable | ||||
|             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         expiresAt: mapValueOfType<String>(json, r'expiresAt'), | ||||
|         allowUpload: mapValueOfType<bool>(json, r'allowUpload'), | ||||
|   | ||||
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/delete_asset_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/delete_asset_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -55,8 +55,8 @@ class DeleteAssetDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return DeleteAssetDto( | ||||
|         ids: json[r'ids'] is List | ||||
|             ? (json[r'ids'] as List).cast<String>() | ||||
|         ids: json[r'ids'] is Iterable | ||||
|             ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/download_files_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/download_files_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -55,8 +55,8 @@ class DownloadFilesDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return DownloadFilesDto( | ||||
|         assetIds: json[r'assetIds'] is List | ||||
|             ? (json[r'assetIds'] as List).cast<String>() | ||||
|         assetIds: json[r'assetIds'] is Iterable | ||||
|             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -55,8 +55,8 @@ class GetAssetByTimeBucketDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return GetAssetByTimeBucketDto( | ||||
|         timeBucket: json[r'timeBucket'] is List | ||||
|             ? (json[r'timeBucket'] as List).cast<String>() | ||||
|         timeBucket: json[r'timeBucket'] is Iterable | ||||
|             ? (json[r'timeBucket'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/remove_assets_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/remove_assets_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -55,8 +55,8 @@ class RemoveAssetsDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return RemoveAssetsDto( | ||||
|         assetIds: json[r'assetIds'] is List | ||||
|             ? (json[r'assetIds'] as List).cast<String>() | ||||
|         assetIds: json[r'assetIds'] is Iterable | ||||
|             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -69,11 +69,11 @@ class SmartInfoResponseDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return SmartInfoResponseDto( | ||||
|         tags: json[r'tags'] is List | ||||
|             ? (json[r'tags'] as List).cast<String>() | ||||
|         tags: json[r'tags'] is Iterable | ||||
|             ? (json[r'tags'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         objects: json[r'objects'] is List | ||||
|             ? (json[r'objects'] as List).cast<String>() | ||||
|         objects: json[r'objects'] is Iterable | ||||
|             ? (json[r'objects'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -91,26 +91,26 @@ class SystemConfigTemplateStorageOptionDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return SystemConfigTemplateStorageOptionDto( | ||||
|         yearOptions: json[r'yearOptions'] is List | ||||
|             ? (json[r'yearOptions'] as List).cast<String>() | ||||
|         yearOptions: json[r'yearOptions'] is Iterable | ||||
|             ? (json[r'yearOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         monthOptions: json[r'monthOptions'] is List | ||||
|             ? (json[r'monthOptions'] as List).cast<String>() | ||||
|         monthOptions: json[r'monthOptions'] is Iterable | ||||
|             ? (json[r'monthOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         dayOptions: json[r'dayOptions'] is List | ||||
|             ? (json[r'dayOptions'] as List).cast<String>() | ||||
|         dayOptions: json[r'dayOptions'] is Iterable | ||||
|             ? (json[r'dayOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         hourOptions: json[r'hourOptions'] is List | ||||
|             ? (json[r'hourOptions'] as List).cast<String>() | ||||
|         hourOptions: json[r'hourOptions'] is Iterable | ||||
|             ? (json[r'hourOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         minuteOptions: json[r'minuteOptions'] is List | ||||
|             ? (json[r'minuteOptions'] as List).cast<String>() | ||||
|         minuteOptions: json[r'minuteOptions'] is Iterable | ||||
|             ? (json[r'minuteOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         secondOptions: json[r'secondOptions'] is List | ||||
|             ? (json[r'secondOptions'] as List).cast<String>() | ||||
|         secondOptions: json[r'secondOptions'] is Iterable | ||||
|             ? (json[r'secondOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         presetOptions: json[r'presetOptions'] is List | ||||
|             ? (json[r'presetOptions'] as List).cast<String>() | ||||
|         presetOptions: json[r'presetOptions'] is Iterable | ||||
|             ? (json[r'presetOptions'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|       ); | ||||
|     } | ||||
|   | ||||
							
								
								
									
										4
									
								
								mobile/openapi/lib/model/update_asset_dto.dart
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								mobile/openapi/lib/model/update_asset_dto.dart
									
									
									
										generated
									
									
									
								
							| @@ -103,8 +103,8 @@ class UpdateAssetDto { | ||||
|       }()); | ||||
| 
 | ||||
|       return UpdateAssetDto( | ||||
|         tagIds: json[r'tagIds'] is List | ||||
|             ? (json[r'tagIds'] as List).cast<String>() | ||||
|         tagIds: json[r'tagIds'] is Iterable | ||||
|             ? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false) | ||||
|             : const [], | ||||
|         isFavorite: mapValueOfType<bool>(json, r'isFavorite'), | ||||
|         isArchived: mapValueOfType<bool>(json, r'isArchived'), | ||||
|   | ||||
| @@ -86,7 +86,7 @@ class {{{classname}}} { | ||||
|     {{/isDate}} | ||||
|     {{^isDateTime}} | ||||
|       {{^isDate}} | ||||
|       json[r'{{{baseName}}}'] = this.{{{name}}}; | ||||
|       json[r'{{{baseName}}}'] = this.{{{name}}}{{#isArray}}{{#uniqueItems}}{{#isNullable}}!{{/isNullable}}.toList(growable: false){{/uniqueItems}}{{/isArray}}; | ||||
|       {{/isDate}} | ||||
|     {{/isDateTime}} | ||||
|     {{#isNullable}} | ||||
| @@ -200,8 +200,8 @@ class {{{classname}}} { | ||||
|         {{{name}}}: {{{items.datatypeWithEnum}}}.listFromJson(json[r'{{{baseName}}}']){{#uniqueItems}}.toSet(){{/uniqueItems}}, | ||||
|             {{/isEnum}} | ||||
|             {{^isEnum}} | ||||
|         {{{name}}}: json[r'{{{baseName}}}'] is {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}} | ||||
|             ? (json[r'{{{baseName}}}'] as {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}).cast<{{{items.datatype}}}>() | ||||
|         {{{name}}}: json[r'{{{baseName}}}'] is Iterable | ||||
|             ? (json[r'{{{baseName}}}'] as Iterable).cast<{{{items.datatype}}}>().{{#uniqueItems}}toSet(){{/uniqueItems}}{{^uniqueItems}}toList(growable: false){{/uniqueItems}} | ||||
|             : {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}, | ||||
|             {{/isEnum}} | ||||
|           {{/isArray}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user