mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
openapi
This commit is contained in:
parent
a3a2ced3a9
commit
ef9245487c
1
mobile/openapi/README.md
generated
1
mobile/openapi/README.md
generated
@ -478,6 +478,7 @@ Class | Method | HTTP request | Description
|
||||
- [TemplateResponseDto](doc//TemplateResponseDto.md)
|
||||
- [TestEmailResponseDto](doc//TestEmailResponseDto.md)
|
||||
- [TimeBucketAssetResponseDto](doc//TimeBucketAssetResponseDto.md)
|
||||
- [TimeBucketAssetResponseDtoStackInnerInner](doc//TimeBucketAssetResponseDtoStackInnerInner.md)
|
||||
- [TimeBucketsResponseDto](doc//TimeBucketsResponseDto.md)
|
||||
- [ToneMapping](doc//ToneMapping.md)
|
||||
- [TranscodeHWAccel](doc//TranscodeHWAccel.md)
|
||||
|
1
mobile/openapi/lib/api.dart
generated
1
mobile/openapi/lib/api.dart
generated
@ -282,6 +282,7 @@ part 'model/template_dto.dart';
|
||||
part 'model/template_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_stack_inner_inner.dart';
|
||||
part 'model/time_buckets_response_dto.dart';
|
||||
part 'model/tone_mapping.dart';
|
||||
part 'model/transcode_hw_accel.dart';
|
||||
|
2
mobile/openapi/lib/api_client.dart
generated
2
mobile/openapi/lib/api_client.dart
generated
@ -620,6 +620,8 @@ class ApiClient {
|
||||
return TestEmailResponseDto.fromJson(value);
|
||||
case 'TimeBucketAssetResponseDto':
|
||||
return TimeBucketAssetResponseDto.fromJson(value);
|
||||
case 'TimeBucketAssetResponseDtoStackInnerInner':
|
||||
return TimeBucketAssetResponseDtoStackInnerInner.fromJson(value);
|
||||
case 'TimeBucketsResponseDto':
|
||||
return TimeBucketsResponseDto.fromJson(value);
|
||||
case 'ToneMapping':
|
||||
|
@ -26,8 +26,7 @@ class TimeBucketAssetResponseDto {
|
||||
this.ownerId = const [],
|
||||
this.projectionType = const [],
|
||||
this.ratio = const [],
|
||||
this.stackCount = const [],
|
||||
this.stackId = const [],
|
||||
this.stack = const [],
|
||||
this.thumbhash = const [],
|
||||
});
|
||||
|
||||
@ -57,9 +56,8 @@ class TimeBucketAssetResponseDto {
|
||||
|
||||
List<num> ratio;
|
||||
|
||||
List<num> stackCount;
|
||||
|
||||
List<String> stackId;
|
||||
/// The stack ID and stack asset count as a tuple
|
||||
List<List<TimeBucketAssetResponseDtoStackInnerInner>> stack;
|
||||
|
||||
List<String> thumbhash;
|
||||
|
||||
@ -78,8 +76,7 @@ class TimeBucketAssetResponseDto {
|
||||
_deepEquality.equals(other.ownerId, ownerId) &&
|
||||
_deepEquality.equals(other.projectionType, projectionType) &&
|
||||
_deepEquality.equals(other.ratio, ratio) &&
|
||||
_deepEquality.equals(other.stackCount, stackCount) &&
|
||||
_deepEquality.equals(other.stackId, stackId) &&
|
||||
_deepEquality.equals(other.stack, stack) &&
|
||||
_deepEquality.equals(other.thumbhash, thumbhash);
|
||||
|
||||
@override
|
||||
@ -98,12 +95,11 @@ class TimeBucketAssetResponseDto {
|
||||
(ownerId.hashCode) +
|
||||
(projectionType.hashCode) +
|
||||
(ratio.hashCode) +
|
||||
(stackCount.hashCode) +
|
||||
(stackId.hashCode) +
|
||||
(stack.hashCode) +
|
||||
(thumbhash.hashCode);
|
||||
|
||||
@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() {
|
||||
final json = <String, dynamic>{};
|
||||
@ -120,8 +116,7 @@ class TimeBucketAssetResponseDto {
|
||||
json[r'ownerId'] = this.ownerId;
|
||||
json[r'projectionType'] = this.projectionType;
|
||||
json[r'ratio'] = this.ratio;
|
||||
json[r'stackCount'] = this.stackCount;
|
||||
json[r'stackId'] = this.stackId;
|
||||
json[r'stack'] = this.stack;
|
||||
json[r'thumbhash'] = this.thumbhash;
|
||||
return json;
|
||||
}
|
||||
@ -174,12 +169,11 @@ class TimeBucketAssetResponseDto {
|
||||
ratio: json[r'ratio'] is Iterable
|
||||
? (json[r'ratio'] as Iterable).cast<num>().toList(growable: false)
|
||||
: const [],
|
||||
stackCount: json[r'stackCount'] is Iterable
|
||||
? (json[r'stackCount'] as Iterable).cast<num>().toList(growable: false)
|
||||
: const [],
|
||||
stackId: json[r'stackId'] is Iterable
|
||||
? (json[r'stackId'] as Iterable).cast<String>().toList(growable: false)
|
||||
: const [],
|
||||
stack: json[r'stack'] is List
|
||||
? (json[r'stack'] as List).map((e) =>
|
||||
TimeBucketAssetResponseDtoStackInnerInner.listFromJson(json[r'stack'])
|
||||
).toList()
|
||||
: const [],
|
||||
thumbhash: json[r'thumbhash'] is Iterable
|
||||
? (json[r'thumbhash'] as Iterable).cast<String>().toList(growable: false)
|
||||
: const [],
|
||||
|
91
mobile/openapi/lib/model/time_bucket_asset_response_dto_stack_inner_inner.dart
generated
Normal file
91
mobile/openapi/lib/model/time_bucket_asset_response_dto_stack_inner_inner.dart
generated
Normal 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>{
|
||||
};
|
||||
}
|
||||
|
@ -13645,16 +13645,23 @@
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"stackCount": {
|
||||
"items": {
|
||||
"type": "number"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"stackId": {
|
||||
"stack": {
|
||||
"description": "The stack ID and stack asset count as a tuple",
|
||||
"items": {
|
||||
"items": {
|
||||
"maxItems": 2,
|
||||
"minItems": 2,
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nullable": true,
|
||||
"type": "string"
|
||||
"type": "array"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
|
@ -1398,8 +1398,8 @@ export type TimeBucketAssetResponseDto = {
|
||||
ownerId: string[];
|
||||
projectionType: (string | null)[];
|
||||
ratio: number[];
|
||||
stackCount?: number[];
|
||||
stackId?: (string | null)[];
|
||||
/** The stack ID and stack asset count as a tuple */
|
||||
stack?: ((string | number)[] | null)[];
|
||||
thumbhash: (string | null)[];
|
||||
};
|
||||
export type TimeBucketsResponseDto = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user