mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
- make open-api
This commit is contained in:
+10
-1
@@ -13,6 +13,7 @@ part of openapi.api;
|
|||||||
class StatisticsSearchDto {
|
class StatisticsSearchDto {
|
||||||
/// Returns a new [StatisticsSearchDto] instance.
|
/// Returns a new [StatisticsSearchDto] instance.
|
||||||
StatisticsSearchDto({
|
StatisticsSearchDto({
|
||||||
|
this.albumIds = const [],
|
||||||
this.city,
|
this.city,
|
||||||
this.country,
|
this.country,
|
||||||
this.createdAfter,
|
this.createdAfter,
|
||||||
@@ -42,6 +43,8 @@ class StatisticsSearchDto {
|
|||||||
this.visibility,
|
this.visibility,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
List<String> albumIds;
|
||||||
|
|
||||||
String? city;
|
String? city;
|
||||||
|
|
||||||
String? country;
|
String? country;
|
||||||
@@ -214,6 +217,7 @@ class StatisticsSearchDto {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is StatisticsSearchDto &&
|
bool operator ==(Object other) => identical(this, other) || other is StatisticsSearchDto &&
|
||||||
|
_deepEquality.equals(other.albumIds, albumIds) &&
|
||||||
other.city == city &&
|
other.city == city &&
|
||||||
other.country == country &&
|
other.country == country &&
|
||||||
other.createdAfter == createdAfter &&
|
other.createdAfter == createdAfter &&
|
||||||
@@ -245,6 +249,7 @@ class StatisticsSearchDto {
|
|||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
|
(albumIds.hashCode) +
|
||||||
(city == null ? 0 : city!.hashCode) +
|
(city == null ? 0 : city!.hashCode) +
|
||||||
(country == null ? 0 : country!.hashCode) +
|
(country == null ? 0 : country!.hashCode) +
|
||||||
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
(createdAfter == null ? 0 : createdAfter!.hashCode) +
|
||||||
@@ -274,10 +279,11 @@ class StatisticsSearchDto {
|
|||||||
(visibility == null ? 0 : visibility!.hashCode);
|
(visibility == null ? 0 : visibility!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'StatisticsSearchDto[city=$city, country=$country, createdAfter=$createdAfter, createdBefore=$createdBefore, description=$description, deviceId=$deviceId, isEncoded=$isEncoded, isFavorite=$isFavorite, isMotion=$isMotion, isNotInAlbum=$isNotInAlbum, isOffline=$isOffline, lensModel=$lensModel, libraryId=$libraryId, make=$make, model=$model, personIds=$personIds, rating=$rating, state=$state, tagIds=$tagIds, takenAfter=$takenAfter, takenBefore=$takenBefore, trashedAfter=$trashedAfter, trashedBefore=$trashedBefore, type=$type, updatedAfter=$updatedAfter, updatedBefore=$updatedBefore, visibility=$visibility]';
|
String toString() => 'StatisticsSearchDto[albumIds=$albumIds, city=$city, country=$country, createdAfter=$createdAfter, createdBefore=$createdBefore, description=$description, deviceId=$deviceId, isEncoded=$isEncoded, isFavorite=$isFavorite, isMotion=$isMotion, isNotInAlbum=$isNotInAlbum, isOffline=$isOffline, lensModel=$lensModel, libraryId=$libraryId, make=$make, model=$model, personIds=$personIds, rating=$rating, state=$state, tagIds=$tagIds, takenAfter=$takenAfter, takenBefore=$takenBefore, trashedAfter=$trashedAfter, trashedBefore=$trashedBefore, type=$type, updatedAfter=$updatedAfter, updatedBefore=$updatedBefore, visibility=$visibility]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
|
json[r'albumIds'] = this.albumIds;
|
||||||
if (this.city != null) {
|
if (this.city != null) {
|
||||||
json[r'city'] = this.city;
|
json[r'city'] = this.city;
|
||||||
} else {
|
} else {
|
||||||
@@ -417,6 +423,9 @@ class StatisticsSearchDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return StatisticsSearchDto(
|
return StatisticsSearchDto(
|
||||||
|
albumIds: json[r'albumIds'] is Iterable
|
||||||
|
? (json[r'albumIds'] as Iterable).cast<String>().toList(growable: false)
|
||||||
|
: const [],
|
||||||
city: mapValueOfType<String>(json, r'city'),
|
city: mapValueOfType<String>(json, r'city'),
|
||||||
country: mapValueOfType<String>(json, r'country'),
|
country: mapValueOfType<String>(json, r'country'),
|
||||||
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
createdAfter: mapDateTime(json, r'createdAfter', r''),
|
||||||
|
|||||||
@@ -853,6 +853,7 @@ export type SearchExploreResponseDto = {
|
|||||||
items: SearchExploreItem[];
|
items: SearchExploreItem[];
|
||||||
};
|
};
|
||||||
export type MetadataSearchDto = {
|
export type MetadataSearchDto = {
|
||||||
|
albumIds?: string[];
|
||||||
checksum?: string;
|
checksum?: string;
|
||||||
city?: string | null;
|
city?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
@@ -929,6 +930,7 @@ export type PlacesResponseDto = {
|
|||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
export type RandomSearchDto = {
|
export type RandomSearchDto = {
|
||||||
|
albumIds?: string[];
|
||||||
city?: string | null;
|
city?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
createdAfter?: string;
|
createdAfter?: string;
|
||||||
@@ -962,6 +964,7 @@ export type RandomSearchDto = {
|
|||||||
withStacked?: boolean;
|
withStacked?: boolean;
|
||||||
};
|
};
|
||||||
export type SmartSearchDto = {
|
export type SmartSearchDto = {
|
||||||
|
albumIds?: string[];
|
||||||
city?: string | null;
|
city?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
createdAfter?: string;
|
createdAfter?: string;
|
||||||
@@ -996,6 +999,7 @@ export type SmartSearchDto = {
|
|||||||
withExif?: boolean;
|
withExif?: boolean;
|
||||||
};
|
};
|
||||||
export type StatisticsSearchDto = {
|
export type StatisticsSearchDto = {
|
||||||
|
albumIds?: string[];
|
||||||
city?: string | null;
|
city?: string | null;
|
||||||
country?: string | null;
|
country?: string | null;
|
||||||
createdAfter?: string;
|
createdAfter?: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user