bump to v7.22.0 and update patching

This commit is contained in:
timonrieger
2026-05-04 17:21:48 +02:00
parent 2015f95ff5
commit 17af4324eb
12 changed files with 84 additions and 425 deletions
-9
View File
@@ -1,9 +0,0 @@
@@ -15,6 +15,8 @@
import 'dart:io';
import 'package:collection/collection.dart';
+import 'package:flutter/foundation.dart';
+import 'package:immich_mobile/utils/openapi_patching.dart';
import 'package:http/http.dart';
import 'package:intl/intl.dart';
import 'package:meta/meta.dart';
-21
View File
@@ -1,21 +0,0 @@
@@ -143,19 +143,19 @@
);
}
- Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) async =>
+ Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) =>
// ignore: deprecated_member_use_from_same_package
deserialize(value, targetType, growable: growable);
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
- dynamic deserialize(String value, String targetType, {bool growable = false,}) {
+ Future<dynamic> deserialize(String value, String targetType, {bool growable = false,}) async {
// Remove all spaces. Necessary for regular expressions as well.
targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
// If the expected target type is String, nothing to do...
return targetType == 'String'
? value
- : fromJson(json.decode(value), targetType, growable: growable);
+ : fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
}
@@ -0,0 +1,59 @@
diff --git a/mobile/openapi/lib/model/time_bucket_asset_response_dto.dart b/mobile/openapi/lib/model/time_bucket_asset_response_dto.dart
index 270991a88..992a66756 100644
--- a/mobile/openapi/lib/model/time_bucket_asset_response_dto.dart
+++ b/mobile/openapi/lib/model/time_bucket_asset_response_dto.dart
@@ -34,13 +34,13 @@ class TimeBucketAssetResponseDto {
});
/// Array of city names extracted from EXIF GPS data
- List<String> city;
+ List<String?> city;
/// Array of country names extracted from EXIF GPS data
- List<String> country;
+ List<String?> country;
/// Array of video/gif durations in milliseconds (null for static images)
- List<int> duration;
+ List<int?> duration;
/// Array of file creation timestamps in UTC
List<String> fileCreatedAt;
@@ -58,31 +58,31 @@ class TimeBucketAssetResponseDto {
List<bool> isTrashed;
/// Array of latitude coordinates extracted from EXIF GPS data
- List<num> latitude;
+ List<num?> latitude;
/// Array of live photo video asset IDs (null for non-live photos)
- List<String> livePhotoVideoId;
+ List<String?> livePhotoVideoId;
/// Array of UTC offset hours at the time each photo was taken. Positive values are east of UTC, negative values are west of UTC. Values may be fractional (e.g., 5.5 for +05:30, -9.75 for -09:45). Applying this offset to 'fileCreatedAt' will give you the time the photo was taken from the photographer's perspective.
List<num> localOffsetHours;
/// Array of longitude coordinates extracted from EXIF GPS data
- List<num> longitude;
+ List<num?> longitude;
/// Array of owner IDs for each asset
List<String> ownerId;
/// Array of projection types for 360° content (e.g., \"EQUIRECTANGULAR\", \"CUBEFACE\", \"CYLINDRICAL\")
- List<String> projectionType;
+ List<String?> projectionType;
/// Array of aspect ratios (width/height) for each asset
List<num> ratio;
/// Array of stack information as [stackId, assetCount] tuples (null for non-stacked assets)
- List<List<String>> stack;
+ List<List<String>?> stack;
/// Array of BlurHash strings for generating asset previews (base64 encoded)
- List<String> thumbhash;
+ List<String?> thumbhash;
/// Array of visibility statuses for each asset (e.g., ARCHIVE, TIMELINE, HIDDEN, LOCKED)
List<AssetVisibility> visibility;