This commit is contained in:
mertalev 2025-05-04 20:12:29 -04:00
parent a3a2ced3a9
commit ef9245487c
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95
7 changed files with 124 additions and 28 deletions

View File

@ -478,6 +478,7 @@ Class | Method | HTTP request | Description
- [TemplateResponseDto](doc//TemplateResponseDto.md) - [TemplateResponseDto](doc//TemplateResponseDto.md)
- [TestEmailResponseDto](doc//TestEmailResponseDto.md) - [TestEmailResponseDto](doc//TestEmailResponseDto.md)
- [TimeBucketAssetResponseDto](doc//TimeBucketAssetResponseDto.md) - [TimeBucketAssetResponseDto](doc//TimeBucketAssetResponseDto.md)
- [TimeBucketAssetResponseDtoStackInnerInner](doc//TimeBucketAssetResponseDtoStackInnerInner.md)
- [TimeBucketsResponseDto](doc//TimeBucketsResponseDto.md) - [TimeBucketsResponseDto](doc//TimeBucketsResponseDto.md)
- [ToneMapping](doc//ToneMapping.md) - [ToneMapping](doc//ToneMapping.md)
- [TranscodeHWAccel](doc//TranscodeHWAccel.md) - [TranscodeHWAccel](doc//TranscodeHWAccel.md)

View File

@ -282,6 +282,7 @@ part 'model/template_dto.dart';
part 'model/template_response_dto.dart'; part 'model/template_response_dto.dart';
part 'model/test_email_response_dto.dart'; part 'model/test_email_response_dto.dart';
part 'model/time_bucket_asset_response_dto.dart'; part 'model/time_bucket_asset_response_dto.dart';
part 'model/time_bucket_asset_response_dto_stack_inner_inner.dart';
part 'model/time_buckets_response_dto.dart'; part 'model/time_buckets_response_dto.dart';
part 'model/tone_mapping.dart'; part 'model/tone_mapping.dart';
part 'model/transcode_hw_accel.dart'; part 'model/transcode_hw_accel.dart';

View File

@ -620,6 +620,8 @@ class ApiClient {
return TestEmailResponseDto.fromJson(value); return TestEmailResponseDto.fromJson(value);
case 'TimeBucketAssetResponseDto': case 'TimeBucketAssetResponseDto':
return TimeBucketAssetResponseDto.fromJson(value); return TimeBucketAssetResponseDto.fromJson(value);
case 'TimeBucketAssetResponseDtoStackInnerInner':
return TimeBucketAssetResponseDtoStackInnerInner.fromJson(value);
case 'TimeBucketsResponseDto': case 'TimeBucketsResponseDto':
return TimeBucketsResponseDto.fromJson(value); return TimeBucketsResponseDto.fromJson(value);
case 'ToneMapping': case 'ToneMapping':

View File

@ -26,8 +26,7 @@ class TimeBucketAssetResponseDto {
this.ownerId = const [], this.ownerId = const [],
this.projectionType = const [], this.projectionType = const [],
this.ratio = const [], this.ratio = const [],
this.stackCount = const [], this.stack = const [],
this.stackId = const [],
this.thumbhash = const [], this.thumbhash = const [],
}); });
@ -57,9 +56,8 @@ class TimeBucketAssetResponseDto {
List<num> ratio; List<num> ratio;
List<num> stackCount; /// The stack ID and stack asset count as a tuple
List<List<TimeBucketAssetResponseDtoStackInnerInner>> stack;
List<String> stackId;
List<String> thumbhash; List<String> thumbhash;
@ -78,8 +76,7 @@ class TimeBucketAssetResponseDto {
_deepEquality.equals(other.ownerId, ownerId) && _deepEquality.equals(other.ownerId, ownerId) &&
_deepEquality.equals(other.projectionType, projectionType) && _deepEquality.equals(other.projectionType, projectionType) &&
_deepEquality.equals(other.ratio, ratio) && _deepEquality.equals(other.ratio, ratio) &&
_deepEquality.equals(other.stackCount, stackCount) && _deepEquality.equals(other.stack, stack) &&
_deepEquality.equals(other.stackId, stackId) &&
_deepEquality.equals(other.thumbhash, thumbhash); _deepEquality.equals(other.thumbhash, thumbhash);
@override @override
@ -98,12 +95,11 @@ class TimeBucketAssetResponseDto {
(ownerId.hashCode) + (ownerId.hashCode) +
(projectionType.hashCode) + (projectionType.hashCode) +
(ratio.hashCode) + (ratio.hashCode) +
(stackCount.hashCode) + (stack.hashCode) +
(stackId.hashCode) +
(thumbhash.hashCode); (thumbhash.hashCode);
@override @override
String toString() => 'TimeBucketAssetResponseDto[city=$city, country=$country, duration=$duration, id=$id, isArchived=$isArchived, isFavorite=$isFavorite, isImage=$isImage, isTrashed=$isTrashed, livePhotoVideoId=$livePhotoVideoId, localDateTime=$localDateTime, ownerId=$ownerId, projectionType=$projectionType, ratio=$ratio, stackCount=$stackCount, stackId=$stackId, thumbhash=$thumbhash]'; String toString() => 'TimeBucketAssetResponseDto[city=$city, country=$country, duration=$duration, id=$id, isArchived=$isArchived, isFavorite=$isFavorite, isImage=$isImage, isTrashed=$isTrashed, livePhotoVideoId=$livePhotoVideoId, localDateTime=$localDateTime, ownerId=$ownerId, projectionType=$projectionType, ratio=$ratio, stack=$stack, thumbhash=$thumbhash]';
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final json = <String, dynamic>{}; final json = <String, dynamic>{};
@ -120,8 +116,7 @@ class TimeBucketAssetResponseDto {
json[r'ownerId'] = this.ownerId; json[r'ownerId'] = this.ownerId;
json[r'projectionType'] = this.projectionType; json[r'projectionType'] = this.projectionType;
json[r'ratio'] = this.ratio; json[r'ratio'] = this.ratio;
json[r'stackCount'] = this.stackCount; json[r'stack'] = this.stack;
json[r'stackId'] = this.stackId;
json[r'thumbhash'] = this.thumbhash; json[r'thumbhash'] = this.thumbhash;
return json; return json;
} }
@ -174,12 +169,11 @@ class TimeBucketAssetResponseDto {
ratio: json[r'ratio'] is Iterable ratio: json[r'ratio'] is Iterable
? (json[r'ratio'] as Iterable).cast<num>().toList(growable: false) ? (json[r'ratio'] as Iterable).cast<num>().toList(growable: false)
: const [], : const [],
stackCount: json[r'stackCount'] is Iterable stack: json[r'stack'] is List
? (json[r'stackCount'] as Iterable).cast<num>().toList(growable: false) ? (json[r'stack'] as List).map((e) =>
: const [], TimeBucketAssetResponseDtoStackInnerInner.listFromJson(json[r'stack'])
stackId: json[r'stackId'] is Iterable ).toList()
? (json[r'stackId'] as Iterable).cast<String>().toList(growable: false) : const [],
: const [],
thumbhash: json[r'thumbhash'] is Iterable thumbhash: json[r'thumbhash'] is Iterable
? (json[r'thumbhash'] as Iterable).cast<String>().toList(growable: false) ? (json[r'thumbhash'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],

View File

@ -0,0 +1,91 @@
//
// AUTO-GENERATED FILE, DO NOT MODIFY!
//
// @dart=2.18
// ignore_for_file: unused_element, unused_import
// ignore_for_file: always_put_required_named_parameters_first
// ignore_for_file: constant_identifier_names
// ignore_for_file: lines_longer_than_80_chars
part of openapi.api;
class TimeBucketAssetResponseDtoStackInnerInner {
/// Returns a new [TimeBucketAssetResponseDtoStackInnerInner] instance.
TimeBucketAssetResponseDtoStackInnerInner({
});
@override
bool operator ==(Object other) => identical(this, other) || other is TimeBucketAssetResponseDtoStackInnerInner &&
@override
int get hashCode =>
// ignore: unnecessary_parenthesis
@override
String toString() => 'TimeBucketAssetResponseDtoStackInnerInner[]';
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
return json;
}
/// Returns a new [TimeBucketAssetResponseDtoStackInnerInner] instance and imports its values from
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static TimeBucketAssetResponseDtoStackInnerInner? fromJson(dynamic value) {
upgradeDto(value, "TimeBucketAssetResponseDtoStackInnerInner");
if (value is Map) {
final json = value.cast<String, dynamic>();
return TimeBucketAssetResponseDtoStackInnerInner(
);
}
return null;
}
static List<TimeBucketAssetResponseDtoStackInnerInner> listFromJson(dynamic json, {bool growable = false,}) {
final result = <TimeBucketAssetResponseDtoStackInnerInner>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
final value = TimeBucketAssetResponseDtoStackInnerInner.fromJson(row);
if (value != null) {
result.add(value);
}
}
}
return result.toList(growable: growable);
}
static Map<String, TimeBucketAssetResponseDtoStackInnerInner> mapFromJson(dynamic json) {
final map = <String, TimeBucketAssetResponseDtoStackInnerInner>{};
if (json is Map && json.isNotEmpty) {
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
for (final entry in json.entries) {
final value = TimeBucketAssetResponseDtoStackInnerInner.fromJson(entry.value);
if (value != null) {
map[entry.key] = value;
}
}
}
return map;
}
// maps a json object with a list of TimeBucketAssetResponseDtoStackInnerInner-objects as value to a dart map
static Map<String, List<TimeBucketAssetResponseDtoStackInnerInner>> mapListFromJson(dynamic json, {bool growable = false,}) {
final map = <String, List<TimeBucketAssetResponseDtoStackInnerInner>>{};
if (json is Map && json.isNotEmpty) {
// ignore: parameter_assignments
json = json.cast<String, dynamic>();
for (final entry in json.entries) {
map[entry.key] = TimeBucketAssetResponseDtoStackInnerInner.listFromJson(entry.value, growable: growable,);
}
}
return map;
}
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
};
}

View File

@ -13645,16 +13645,23 @@
}, },
"type": "array" "type": "array"
}, },
"stackCount": { "stack": {
"items": { "description": "The stack ID and stack asset count as a tuple",
"type": "number"
},
"type": "array"
},
"stackId": {
"items": { "items": {
"items": {
"maxItems": 2,
"minItems": 2,
"oneOf": [
{
"type": "string"
},
{
"type": "number"
}
]
},
"nullable": true, "nullable": true,
"type": "string" "type": "array"
}, },
"type": "array" "type": "array"
}, },

View File

@ -1398,8 +1398,8 @@ export type TimeBucketAssetResponseDto = {
ownerId: string[]; ownerId: string[];
projectionType: (string | null)[]; projectionType: (string | null)[];
ratio: number[]; ratio: number[];
stackCount?: number[]; /** The stack ID and stack asset count as a tuple */
stackId?: (string | null)[]; stack?: ((string | number)[] | null)[];
thumbhash: (string | null)[]; thumbhash: (string | null)[];
}; };
export type TimeBucketsResponseDto = { export type TimeBucketsResponseDto = {