feat: show archived assets for a person
This commit is contained in:
14
mobile/openapi/lib/api/people_api.dart
generated
14
mobile/openapi/lib/api/people_api.dart
generated
@@ -184,7 +184,9 @@ class PeopleApi {
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<Response> getPersonStatisticsWithHttpInfo(String id,) async {
|
||||
///
|
||||
/// * [bool] withArchived:
|
||||
Future<Response> getPersonStatisticsWithHttpInfo(String id, { bool? withArchived, }) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/people/{id}/statistics'
|
||||
.replaceAll('{id}', id);
|
||||
@@ -196,6 +198,10 @@ class PeopleApi {
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
if (withArchived != null) {
|
||||
queryParams.addAll(_queryParams('', 'withArchived', withArchived));
|
||||
}
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
|
||||
@@ -213,8 +219,10 @@ class PeopleApi {
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<PersonStatisticsResponseDto?> getPersonStatistics(String id,) async {
|
||||
final response = await getPersonStatisticsWithHttpInfo(id,);
|
||||
///
|
||||
/// * [bool] withArchived:
|
||||
Future<PersonStatisticsResponseDto?> getPersonStatistics(String id, { bool? withArchived, }) async {
|
||||
final response = await getPersonStatisticsWithHttpInfo(id, withArchived: withArchived, );
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||
}
|
||||
|
||||
24
mobile/openapi/lib/model/people_update_item.dart
generated
24
mobile/openapi/lib/model/people_update_item.dart
generated
@@ -18,6 +18,7 @@ class PeopleUpdateItem {
|
||||
required this.id,
|
||||
this.isHidden,
|
||||
this.name,
|
||||
this.withArchived,
|
||||
});
|
||||
|
||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
@@ -53,13 +54,23 @@ class PeopleUpdateItem {
|
||||
///
|
||||
String? name;
|
||||
|
||||
/// This property was added in v1.118.0
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? withArchived;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateItem &&
|
||||
other.birthDate == birthDate &&
|
||||
other.featureFaceAssetId == featureFaceAssetId &&
|
||||
other.id == id &&
|
||||
other.isHidden == isHidden &&
|
||||
other.name == name;
|
||||
other.name == name &&
|
||||
other.withArchived == withArchived;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@@ -68,10 +79,11 @@ class PeopleUpdateItem {
|
||||
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
||||
(id.hashCode) +
|
||||
(isHidden == null ? 0 : isHidden!.hashCode) +
|
||||
(name == null ? 0 : name!.hashCode);
|
||||
(name == null ? 0 : name!.hashCode) +
|
||||
(withArchived == null ? 0 : withArchived!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PeopleUpdateItem[birthDate=$birthDate, featureFaceAssetId=$featureFaceAssetId, id=$id, isHidden=$isHidden, name=$name]';
|
||||
String toString() => 'PeopleUpdateItem[birthDate=$birthDate, featureFaceAssetId=$featureFaceAssetId, id=$id, isHidden=$isHidden, name=$name, withArchived=$withArchived]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@@ -96,6 +108,11 @@ class PeopleUpdateItem {
|
||||
} else {
|
||||
// json[r'name'] = null;
|
||||
}
|
||||
if (this.withArchived != null) {
|
||||
json[r'withArchived'] = this.withArchived;
|
||||
} else {
|
||||
// json[r'withArchived'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -113,6 +130,7 @@ class PeopleUpdateItem {
|
||||
id: mapValueOfType<String>(json, r'id')!,
|
||||
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
||||
name: mapValueOfType<String>(json, r'name'),
|
||||
withArchived: mapValueOfType<bool>(json, r'withArchived'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
24
mobile/openapi/lib/model/person_response_dto.dart
generated
24
mobile/openapi/lib/model/person_response_dto.dart
generated
@@ -19,6 +19,7 @@ class PersonResponseDto {
|
||||
required this.name,
|
||||
required this.thumbnailPath,
|
||||
this.updatedAt,
|
||||
this.withArchived,
|
||||
});
|
||||
|
||||
DateTime? birthDate;
|
||||
@@ -40,6 +41,15 @@ class PersonResponseDto {
|
||||
///
|
||||
DateTime? updatedAt;
|
||||
|
||||
/// This property was added in v1.118.0
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? withArchived;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is PersonResponseDto &&
|
||||
other.birthDate == birthDate &&
|
||||
@@ -47,7 +57,8 @@ class PersonResponseDto {
|
||||
other.isHidden == isHidden &&
|
||||
other.name == name &&
|
||||
other.thumbnailPath == thumbnailPath &&
|
||||
other.updatedAt == updatedAt;
|
||||
other.updatedAt == updatedAt &&
|
||||
other.withArchived == withArchived;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@@ -57,10 +68,11 @@ class PersonResponseDto {
|
||||
(isHidden.hashCode) +
|
||||
(name.hashCode) +
|
||||
(thumbnailPath.hashCode) +
|
||||
(updatedAt == null ? 0 : updatedAt!.hashCode);
|
||||
(updatedAt == null ? 0 : updatedAt!.hashCode) +
|
||||
(withArchived == null ? 0 : withArchived!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PersonResponseDto[birthDate=$birthDate, id=$id, isHidden=$isHidden, name=$name, thumbnailPath=$thumbnailPath, updatedAt=$updatedAt]';
|
||||
String toString() => 'PersonResponseDto[birthDate=$birthDate, id=$id, isHidden=$isHidden, name=$name, thumbnailPath=$thumbnailPath, updatedAt=$updatedAt, withArchived=$withArchived]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@@ -78,6 +90,11 @@ class PersonResponseDto {
|
||||
} else {
|
||||
// json[r'updatedAt'] = null;
|
||||
}
|
||||
if (this.withArchived != null) {
|
||||
json[r'withArchived'] = this.withArchived;
|
||||
} else {
|
||||
// json[r'withArchived'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -96,6 +113,7 @@ class PersonResponseDto {
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
thumbnailPath: mapValueOfType<String>(json, r'thumbnailPath')!,
|
||||
updatedAt: mapDateTime(json, r'updatedAt', r''),
|
||||
withArchived: mapValueOfType<bool>(json, r'withArchived'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
24
mobile/openapi/lib/model/person_update_dto.dart
generated
24
mobile/openapi/lib/model/person_update_dto.dart
generated
@@ -17,6 +17,7 @@ class PersonUpdateDto {
|
||||
this.featureFaceAssetId,
|
||||
this.isHidden,
|
||||
this.name,
|
||||
this.withArchived,
|
||||
});
|
||||
|
||||
/// Person date of birth. Note: the mobile app cannot currently set the birth date to null.
|
||||
@@ -49,12 +50,22 @@ class PersonUpdateDto {
|
||||
///
|
||||
String? name;
|
||||
|
||||
/// This property was added in v1.118.0
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? withArchived;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is PersonUpdateDto &&
|
||||
other.birthDate == birthDate &&
|
||||
other.featureFaceAssetId == featureFaceAssetId &&
|
||||
other.isHidden == isHidden &&
|
||||
other.name == name;
|
||||
other.name == name &&
|
||||
other.withArchived == withArchived;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@@ -62,10 +73,11 @@ class PersonUpdateDto {
|
||||
(birthDate == null ? 0 : birthDate!.hashCode) +
|
||||
(featureFaceAssetId == null ? 0 : featureFaceAssetId!.hashCode) +
|
||||
(isHidden == null ? 0 : isHidden!.hashCode) +
|
||||
(name == null ? 0 : name!.hashCode);
|
||||
(name == null ? 0 : name!.hashCode) +
|
||||
(withArchived == null ? 0 : withArchived!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PersonUpdateDto[birthDate=$birthDate, featureFaceAssetId=$featureFaceAssetId, isHidden=$isHidden, name=$name]';
|
||||
String toString() => 'PersonUpdateDto[birthDate=$birthDate, featureFaceAssetId=$featureFaceAssetId, isHidden=$isHidden, name=$name, withArchived=$withArchived]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@@ -89,6 +101,11 @@ class PersonUpdateDto {
|
||||
} else {
|
||||
// json[r'name'] = null;
|
||||
}
|
||||
if (this.withArchived != null) {
|
||||
json[r'withArchived'] = this.withArchived;
|
||||
} else {
|
||||
// json[r'withArchived'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -105,6 +122,7 @@ class PersonUpdateDto {
|
||||
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
|
||||
isHidden: mapValueOfType<bool>(json, r'isHidden'),
|
||||
name: mapValueOfType<String>(json, r'name'),
|
||||
withArchived: mapValueOfType<bool>(json, r'withArchived'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
@@ -20,6 +20,7 @@ class PersonWithFacesResponseDto {
|
||||
required this.name,
|
||||
required this.thumbnailPath,
|
||||
this.updatedAt,
|
||||
this.withArchived,
|
||||
});
|
||||
|
||||
DateTime? birthDate;
|
||||
@@ -43,6 +44,15 @@ class PersonWithFacesResponseDto {
|
||||
///
|
||||
DateTime? updatedAt;
|
||||
|
||||
/// This property was added in v1.118.0
|
||||
///
|
||||
/// Please note: This property should have been non-nullable! Since the specification file
|
||||
/// does not include a default value (using the "default:" property), however, the generated
|
||||
/// source code must fall back to having a nullable type.
|
||||
/// Consider adding a "default:" property in the specification file to hide this note.
|
||||
///
|
||||
bool? withArchived;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is PersonWithFacesResponseDto &&
|
||||
other.birthDate == birthDate &&
|
||||
@@ -51,7 +61,8 @@ class PersonWithFacesResponseDto {
|
||||
other.isHidden == isHidden &&
|
||||
other.name == name &&
|
||||
other.thumbnailPath == thumbnailPath &&
|
||||
other.updatedAt == updatedAt;
|
||||
other.updatedAt == updatedAt &&
|
||||
other.withArchived == withArchived;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
@@ -62,10 +73,11 @@ class PersonWithFacesResponseDto {
|
||||
(isHidden.hashCode) +
|
||||
(name.hashCode) +
|
||||
(thumbnailPath.hashCode) +
|
||||
(updatedAt == null ? 0 : updatedAt!.hashCode);
|
||||
(updatedAt == null ? 0 : updatedAt!.hashCode) +
|
||||
(withArchived == null ? 0 : withArchived!.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PersonWithFacesResponseDto[birthDate=$birthDate, faces=$faces, id=$id, isHidden=$isHidden, name=$name, thumbnailPath=$thumbnailPath, updatedAt=$updatedAt]';
|
||||
String toString() => 'PersonWithFacesResponseDto[birthDate=$birthDate, faces=$faces, id=$id, isHidden=$isHidden, name=$name, thumbnailPath=$thumbnailPath, updatedAt=$updatedAt, withArchived=$withArchived]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
@@ -84,6 +96,11 @@ class PersonWithFacesResponseDto {
|
||||
} else {
|
||||
// json[r'updatedAt'] = null;
|
||||
}
|
||||
if (this.withArchived != null) {
|
||||
json[r'withArchived'] = this.withArchived;
|
||||
} else {
|
||||
// json[r'withArchived'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -103,6 +120,7 @@ class PersonWithFacesResponseDto {
|
||||
name: mapValueOfType<String>(json, r'name')!,
|
||||
thumbnailPath: mapValueOfType<String>(json, r'thumbnailPath')!,
|
||||
updatedAt: mapDateTime(json, r'updatedAt', r''),
|
||||
withArchived: mapValueOfType<bool>(json, r'withArchived'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user