mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	chore: update api (#2428)
This commit is contained in:
		
							parent
							
								
									d25ddfc46b
								
							
						
					
					
						commit
						2c7821e5e6
					
				
							
								
								
									
										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( |       return AddAssetsDto( | ||||||
|         assetIds: json[r'assetIds'] is List |         assetIds: json[r'assetIds'] is Iterable | ||||||
|             ? (json[r'assetIds'] as List).cast<String>() |             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -78,8 +78,8 @@ class AddAssetsResponseDto { | |||||||
| 
 | 
 | ||||||
|       return AddAssetsResponseDto( |       return AddAssetsResponseDto( | ||||||
|         successfullyAdded: mapValueOfType<int>(json, r'successfullyAdded')!, |         successfullyAdded: mapValueOfType<int>(json, r'successfullyAdded')!, | ||||||
|         alreadyInAlbum: json[r'alreadyInAlbum'] is List |         alreadyInAlbum: json[r'alreadyInAlbum'] is Iterable | ||||||
|             ? (json[r'alreadyInAlbum'] as List).cast<String>() |             ? (json[r'alreadyInAlbum'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         album: AlbumResponseDto.fromJson(json[r'album']), |         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( |       return AddUsersDto( | ||||||
|         sharedUserIds: json[r'sharedUserIds'] is List |         sharedUserIds: json[r'sharedUserIds'] is Iterable | ||||||
|             ? (json[r'sharedUserIds'] as List).cast<String>() |             ? (json[r'sharedUserIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -61,8 +61,8 @@ class CheckExistingAssetsDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return CheckExistingAssetsDto( |       return CheckExistingAssetsDto( | ||||||
|         deviceAssetIds: json[r'deviceAssetIds'] is List |         deviceAssetIds: json[r'deviceAssetIds'] is Iterable | ||||||
|             ? (json[r'deviceAssetIds'] as List).cast<String>() |             ? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         deviceId: mapValueOfType<String>(json, r'deviceId')!, |         deviceId: mapValueOfType<String>(json, r'deviceId')!, | ||||||
|       ); |       ); | ||||||
|  | |||||||
| @ -55,8 +55,8 @@ class CheckExistingAssetsResponseDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return CheckExistingAssetsResponseDto( |       return CheckExistingAssetsResponseDto( | ||||||
|         existingIds: json[r'existingIds'] is List |         existingIds: json[r'existingIds'] is Iterable | ||||||
|             ? (json[r'existingIds'] as List).cast<String>() |             ? (json[r'existingIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : 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( |       return CreateAlbumDto( | ||||||
|         albumName: mapValueOfType<String>(json, r'albumName')!, |         albumName: mapValueOfType<String>(json, r'albumName')!, | ||||||
|         sharedWithUserIds: json[r'sharedWithUserIds'] is List |         sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable | ||||||
|             ? (json[r'sharedWithUserIds'] as List).cast<String>() |             ? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         assetIds: json[r'assetIds'] is List |         assetIds: json[r'assetIds'] is Iterable | ||||||
|             ? (json[r'assetIds'] as List).cast<String>() |             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -135,8 +135,8 @@ class CreateAssetsShareLinkDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return CreateAssetsShareLinkDto( |       return CreateAssetsShareLinkDto( | ||||||
|         assetIds: json[r'assetIds'] is List |         assetIds: json[r'assetIds'] is Iterable | ||||||
|             ? (json[r'assetIds'] as List).cast<String>() |             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         expiresAt: mapValueOfType<String>(json, r'expiresAt'), |         expiresAt: mapValueOfType<String>(json, r'expiresAt'), | ||||||
|         allowUpload: mapValueOfType<bool>(json, r'allowUpload'), |         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( |       return DeleteAssetDto( | ||||||
|         ids: json[r'ids'] is List |         ids: json[r'ids'] is Iterable | ||||||
|             ? (json[r'ids'] as List).cast<String>() |             ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : 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( |       return DownloadFilesDto( | ||||||
|         assetIds: json[r'assetIds'] is List |         assetIds: json[r'assetIds'] is Iterable | ||||||
|             ? (json[r'assetIds'] as List).cast<String>() |             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -55,8 +55,8 @@ class GetAssetByTimeBucketDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return GetAssetByTimeBucketDto( |       return GetAssetByTimeBucketDto( | ||||||
|         timeBucket: json[r'timeBucket'] is List |         timeBucket: json[r'timeBucket'] is Iterable | ||||||
|             ? (json[r'timeBucket'] as List).cast<String>() |             ? (json[r'timeBucket'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : 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( |       return RemoveAssetsDto( | ||||||
|         assetIds: json[r'assetIds'] is List |         assetIds: json[r'assetIds'] is Iterable | ||||||
|             ? (json[r'assetIds'] as List).cast<String>() |             ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -69,11 +69,11 @@ class SmartInfoResponseDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return SmartInfoResponseDto( |       return SmartInfoResponseDto( | ||||||
|         tags: json[r'tags'] is List |         tags: json[r'tags'] is Iterable | ||||||
|             ? (json[r'tags'] as List).cast<String>() |             ? (json[r'tags'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         objects: json[r'objects'] is List |         objects: json[r'objects'] is Iterable | ||||||
|             ? (json[r'objects'] as List).cast<String>() |             ? (json[r'objects'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|       ); |       ); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -91,26 +91,26 @@ class SystemConfigTemplateStorageOptionDto { | |||||||
|       }()); |       }()); | ||||||
| 
 | 
 | ||||||
|       return SystemConfigTemplateStorageOptionDto( |       return SystemConfigTemplateStorageOptionDto( | ||||||
|         yearOptions: json[r'yearOptions'] is List |         yearOptions: json[r'yearOptions'] is Iterable | ||||||
|             ? (json[r'yearOptions'] as List).cast<String>() |             ? (json[r'yearOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         monthOptions: json[r'monthOptions'] is List |         monthOptions: json[r'monthOptions'] is Iterable | ||||||
|             ? (json[r'monthOptions'] as List).cast<String>() |             ? (json[r'monthOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         dayOptions: json[r'dayOptions'] is List |         dayOptions: json[r'dayOptions'] is Iterable | ||||||
|             ? (json[r'dayOptions'] as List).cast<String>() |             ? (json[r'dayOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         hourOptions: json[r'hourOptions'] is List |         hourOptions: json[r'hourOptions'] is Iterable | ||||||
|             ? (json[r'hourOptions'] as List).cast<String>() |             ? (json[r'hourOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         minuteOptions: json[r'minuteOptions'] is List |         minuteOptions: json[r'minuteOptions'] is Iterable | ||||||
|             ? (json[r'minuteOptions'] as List).cast<String>() |             ? (json[r'minuteOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         secondOptions: json[r'secondOptions'] is List |         secondOptions: json[r'secondOptions'] is Iterable | ||||||
|             ? (json[r'secondOptions'] as List).cast<String>() |             ? (json[r'secondOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         presetOptions: json[r'presetOptions'] is List |         presetOptions: json[r'presetOptions'] is Iterable | ||||||
|             ? (json[r'presetOptions'] as List).cast<String>() |             ? (json[r'presetOptions'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : 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( |       return UpdateAssetDto( | ||||||
|         tagIds: json[r'tagIds'] is List |         tagIds: json[r'tagIds'] is Iterable | ||||||
|             ? (json[r'tagIds'] as List).cast<String>() |             ? (json[r'tagIds'] as Iterable).cast<String>().toList(growable: false) | ||||||
|             : const [], |             : const [], | ||||||
|         isFavorite: mapValueOfType<bool>(json, r'isFavorite'), |         isFavorite: mapValueOfType<bool>(json, r'isFavorite'), | ||||||
|         isArchived: mapValueOfType<bool>(json, r'isArchived'), |         isArchived: mapValueOfType<bool>(json, r'isArchived'), | ||||||
|  | |||||||
| @ -86,7 +86,7 @@ class {{{classname}}} { | |||||||
|     {{/isDate}} |     {{/isDate}} | ||||||
|     {{^isDateTime}} |     {{^isDateTime}} | ||||||
|       {{^isDate}} |       {{^isDate}} | ||||||
|       json[r'{{{baseName}}}'] = this.{{{name}}}; |       json[r'{{{baseName}}}'] = this.{{{name}}}{{#isArray}}{{#uniqueItems}}{{#isNullable}}!{{/isNullable}}.toList(growable: false){{/uniqueItems}}{{/isArray}}; | ||||||
|       {{/isDate}} |       {{/isDate}} | ||||||
|     {{/isDateTime}} |     {{/isDateTime}} | ||||||
|     {{#isNullable}} |     {{#isNullable}} | ||||||
| @ -200,8 +200,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 {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}} |         {{{name}}}: json[r'{{{baseName}}}'] is Iterable | ||||||
|             ? (json[r'{{{baseName}}}'] as {{#uniqueItems}}Set{{/uniqueItems}}{{^uniqueItems}}List{{/uniqueItems}}).cast<{{{items.datatype}}}>() |             ? (json[r'{{{baseName}}}'] as Iterable).cast<{{{items.datatype}}}>().{{#uniqueItems}}toSet(){{/uniqueItems}}{{^uniqueItems}}toList(growable: false){{/uniqueItems}} | ||||||
|             : {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}, |             : {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}, | ||||||
|             {{/isEnum}} |             {{/isEnum}} | ||||||
|           {{/isArray}} |           {{/isArray}} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user