mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: regenerate mobile openapi sdk
This commit is contained in:
Generated
+12
-3
@@ -508,9 +508,12 @@ class AlbumsApi {
|
|||||||
/// * [String] assetId:
|
/// * [String] assetId:
|
||||||
/// Filter albums containing this asset ID (ignores shared parameter)
|
/// Filter albums containing this asset ID (ignores shared parameter)
|
||||||
///
|
///
|
||||||
|
/// * [bool] favorite:
|
||||||
|
/// Filter to only albums favorited by the authenticated user
|
||||||
|
///
|
||||||
/// * [bool] shared:
|
/// * [bool] shared:
|
||||||
/// Filter by shared status: true = only shared, false = not shared, undefined = all owned albums
|
/// Filter by shared status: true = only shared, false = not shared, undefined = all owned albums
|
||||||
Future<Response> getAllAlbumsWithHttpInfo({ String? assetId, bool? shared, }) async {
|
Future<Response> getAllAlbumsWithHttpInfo({ String? assetId, bool? favorite, bool? shared, }) async {
|
||||||
// ignore: prefer_const_declarations
|
// ignore: prefer_const_declarations
|
||||||
final apiPath = r'/albums';
|
final apiPath = r'/albums';
|
||||||
|
|
||||||
@@ -524,6 +527,9 @@ class AlbumsApi {
|
|||||||
if (assetId != null) {
|
if (assetId != null) {
|
||||||
queryParams.addAll(_queryParams('', 'assetId', assetId));
|
queryParams.addAll(_queryParams('', 'assetId', assetId));
|
||||||
}
|
}
|
||||||
|
if (favorite != null) {
|
||||||
|
queryParams.addAll(_queryParams('', 'favorite', favorite));
|
||||||
|
}
|
||||||
if (shared != null) {
|
if (shared != null) {
|
||||||
queryParams.addAll(_queryParams('', 'shared', shared));
|
queryParams.addAll(_queryParams('', 'shared', shared));
|
||||||
}
|
}
|
||||||
@@ -551,10 +557,13 @@ class AlbumsApi {
|
|||||||
/// * [String] assetId:
|
/// * [String] assetId:
|
||||||
/// Filter albums containing this asset ID (ignores shared parameter)
|
/// Filter albums containing this asset ID (ignores shared parameter)
|
||||||
///
|
///
|
||||||
|
/// * [bool] favorite:
|
||||||
|
/// Filter to only albums favorited by the authenticated user
|
||||||
|
///
|
||||||
/// * [bool] shared:
|
/// * [bool] shared:
|
||||||
/// Filter by shared status: true = only shared, false = not shared, undefined = all owned albums
|
/// Filter by shared status: true = only shared, false = not shared, undefined = all owned albums
|
||||||
Future<List<AlbumResponseDto>?> getAllAlbums({ String? assetId, bool? shared, }) async {
|
Future<List<AlbumResponseDto>?> getAllAlbums({ String? assetId, bool? favorite, bool? shared, }) async {
|
||||||
final response = await getAllAlbumsWithHttpInfo( assetId: assetId, shared: shared, );
|
final response = await getAllAlbumsWithHttpInfo( assetId: assetId, favorite: favorite, shared: shared, );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||||
}
|
}
|
||||||
|
|||||||
+10
-1
@@ -24,6 +24,7 @@ class AlbumResponseDto {
|
|||||||
required this.hasSharedLink,
|
required this.hasSharedLink,
|
||||||
required this.id,
|
required this.id,
|
||||||
required this.isActivityEnabled,
|
required this.isActivityEnabled,
|
||||||
|
required this.isFavorite,
|
||||||
this.lastModifiedAssetTimestamp,
|
this.lastModifiedAssetTimestamp,
|
||||||
this.order,
|
this.order,
|
||||||
required this.shared,
|
required this.shared,
|
||||||
@@ -72,6 +73,9 @@ class AlbumResponseDto {
|
|||||||
/// Activity feed enabled
|
/// Activity feed enabled
|
||||||
bool isActivityEnabled;
|
bool isActivityEnabled;
|
||||||
|
|
||||||
|
/// Whether the authenticated user has favorited this album
|
||||||
|
bool isFavorite;
|
||||||
|
|
||||||
/// Last modified asset timestamp
|
/// Last modified asset timestamp
|
||||||
///
|
///
|
||||||
/// Please note: This property should have been non-nullable! Since the specification file
|
/// Please note: This property should have been non-nullable! Since the specification file
|
||||||
@@ -117,6 +121,7 @@ class AlbumResponseDto {
|
|||||||
other.hasSharedLink == hasSharedLink &&
|
other.hasSharedLink == hasSharedLink &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.isActivityEnabled == isActivityEnabled &&
|
other.isActivityEnabled == isActivityEnabled &&
|
||||||
|
other.isFavorite == isFavorite &&
|
||||||
other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
|
other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
|
||||||
other.order == order &&
|
other.order == order &&
|
||||||
other.shared == shared &&
|
other.shared == shared &&
|
||||||
@@ -137,6 +142,7 @@ class AlbumResponseDto {
|
|||||||
(hasSharedLink.hashCode) +
|
(hasSharedLink.hashCode) +
|
||||||
(id.hashCode) +
|
(id.hashCode) +
|
||||||
(isActivityEnabled.hashCode) +
|
(isActivityEnabled.hashCode) +
|
||||||
|
(isFavorite.hashCode) +
|
||||||
(lastModifiedAssetTimestamp == null ? 0 : lastModifiedAssetTimestamp!.hashCode) +
|
(lastModifiedAssetTimestamp == null ? 0 : lastModifiedAssetTimestamp!.hashCode) +
|
||||||
(order == null ? 0 : order!.hashCode) +
|
(order == null ? 0 : order!.hashCode) +
|
||||||
(shared.hashCode) +
|
(shared.hashCode) +
|
||||||
@@ -144,7 +150,7 @@ class AlbumResponseDto {
|
|||||||
(updatedAt.hashCode);
|
(updatedAt.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'AlbumResponseDto[albumName=$albumName, albumThumbnailAssetId=$albumThumbnailAssetId, albumUsers=$albumUsers, assetCount=$assetCount, contributorCounts=$contributorCounts, createdAt=$createdAt, description=$description, endDate=$endDate, hasSharedLink=$hasSharedLink, id=$id, isActivityEnabled=$isActivityEnabled, lastModifiedAssetTimestamp=$lastModifiedAssetTimestamp, order=$order, shared=$shared, startDate=$startDate, updatedAt=$updatedAt]';
|
String toString() => 'AlbumResponseDto[albumName=$albumName, albumThumbnailAssetId=$albumThumbnailAssetId, albumUsers=$albumUsers, assetCount=$assetCount, contributorCounts=$contributorCounts, createdAt=$createdAt, description=$description, endDate=$endDate, hasSharedLink=$hasSharedLink, id=$id, isActivityEnabled=$isActivityEnabled, isFavorite=$isFavorite, lastModifiedAssetTimestamp=$lastModifiedAssetTimestamp, order=$order, shared=$shared, startDate=$startDate, updatedAt=$updatedAt]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
@@ -167,6 +173,7 @@ class AlbumResponseDto {
|
|||||||
json[r'hasSharedLink'] = this.hasSharedLink;
|
json[r'hasSharedLink'] = this.hasSharedLink;
|
||||||
json[r'id'] = this.id;
|
json[r'id'] = this.id;
|
||||||
json[r'isActivityEnabled'] = this.isActivityEnabled;
|
json[r'isActivityEnabled'] = this.isActivityEnabled;
|
||||||
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
if (this.lastModifiedAssetTimestamp != null) {
|
if (this.lastModifiedAssetTimestamp != null) {
|
||||||
json[r'lastModifiedAssetTimestamp'] = this.lastModifiedAssetTimestamp!.toUtc().toIso8601String();
|
json[r'lastModifiedAssetTimestamp'] = this.lastModifiedAssetTimestamp!.toUtc().toIso8601String();
|
||||||
} else {
|
} else {
|
||||||
@@ -207,6 +214,7 @@ class AlbumResponseDto {
|
|||||||
hasSharedLink: mapValueOfType<bool>(json, r'hasSharedLink')!,
|
hasSharedLink: mapValueOfType<bool>(json, r'hasSharedLink')!,
|
||||||
id: mapValueOfType<String>(json, r'id')!,
|
id: mapValueOfType<String>(json, r'id')!,
|
||||||
isActivityEnabled: mapValueOfType<bool>(json, r'isActivityEnabled')!,
|
isActivityEnabled: mapValueOfType<bool>(json, r'isActivityEnabled')!,
|
||||||
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
||||||
lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''),
|
lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''),
|
||||||
order: AssetOrder.fromJson(json[r'order']),
|
order: AssetOrder.fromJson(json[r'order']),
|
||||||
shared: mapValueOfType<bool>(json, r'shared')!,
|
shared: mapValueOfType<bool>(json, r'shared')!,
|
||||||
@@ -268,6 +276,7 @@ class AlbumResponseDto {
|
|||||||
'hasSharedLink',
|
'hasSharedLink',
|
||||||
'id',
|
'id',
|
||||||
'isActivityEnabled',
|
'isActivityEnabled',
|
||||||
|
'isFavorite',
|
||||||
'shared',
|
'shared',
|
||||||
'updatedAt',
|
'updatedAt',
|
||||||
};
|
};
|
||||||
|
|||||||
+10
-1
@@ -14,6 +14,7 @@ class SyncAlbumUserV1 {
|
|||||||
/// Returns a new [SyncAlbumUserV1] instance.
|
/// Returns a new [SyncAlbumUserV1] instance.
|
||||||
SyncAlbumUserV1({
|
SyncAlbumUserV1({
|
||||||
required this.albumId,
|
required this.albumId,
|
||||||
|
required this.isFavorite,
|
||||||
required this.role,
|
required this.role,
|
||||||
required this.userId,
|
required this.userId,
|
||||||
});
|
});
|
||||||
@@ -21,6 +22,9 @@ class SyncAlbumUserV1 {
|
|||||||
/// Album ID
|
/// Album ID
|
||||||
String albumId;
|
String albumId;
|
||||||
|
|
||||||
|
/// Favorite flag
|
||||||
|
bool isFavorite;
|
||||||
|
|
||||||
AlbumUserRole role;
|
AlbumUserRole role;
|
||||||
|
|
||||||
/// User ID
|
/// User ID
|
||||||
@@ -29,6 +33,7 @@ class SyncAlbumUserV1 {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SyncAlbumUserV1 &&
|
bool operator ==(Object other) => identical(this, other) || other is SyncAlbumUserV1 &&
|
||||||
other.albumId == albumId &&
|
other.albumId == albumId &&
|
||||||
|
other.isFavorite == isFavorite &&
|
||||||
other.role == role &&
|
other.role == role &&
|
||||||
other.userId == userId;
|
other.userId == userId;
|
||||||
|
|
||||||
@@ -36,15 +41,17 @@ class SyncAlbumUserV1 {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(albumId.hashCode) +
|
(albumId.hashCode) +
|
||||||
|
(isFavorite.hashCode) +
|
||||||
(role.hashCode) +
|
(role.hashCode) +
|
||||||
(userId.hashCode);
|
(userId.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'SyncAlbumUserV1[albumId=$albumId, role=$role, userId=$userId]';
|
String toString() => 'SyncAlbumUserV1[albumId=$albumId, isFavorite=$isFavorite, role=$role, userId=$userId]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'albumId'] = this.albumId;
|
json[r'albumId'] = this.albumId;
|
||||||
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
json[r'role'] = this.role;
|
json[r'role'] = this.role;
|
||||||
json[r'userId'] = this.userId;
|
json[r'userId'] = this.userId;
|
||||||
return json;
|
return json;
|
||||||
@@ -60,6 +67,7 @@ class SyncAlbumUserV1 {
|
|||||||
|
|
||||||
return SyncAlbumUserV1(
|
return SyncAlbumUserV1(
|
||||||
albumId: mapValueOfType<String>(json, r'albumId')!,
|
albumId: mapValueOfType<String>(json, r'albumId')!,
|
||||||
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite')!,
|
||||||
role: AlbumUserRole.fromJson(json[r'role'])!,
|
role: AlbumUserRole.fromJson(json[r'role'])!,
|
||||||
userId: mapValueOfType<String>(json, r'userId')!,
|
userId: mapValueOfType<String>(json, r'userId')!,
|
||||||
);
|
);
|
||||||
@@ -110,6 +118,7 @@ class SyncAlbumUserV1 {
|
|||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
'albumId',
|
'albumId',
|
||||||
|
'isFavorite',
|
||||||
'role',
|
'role',
|
||||||
'userId',
|
'userId',
|
||||||
};
|
};
|
||||||
|
|||||||
+33
-6
@@ -13,26 +13,53 @@ part of openapi.api;
|
|||||||
class UpdateAlbumUserDto {
|
class UpdateAlbumUserDto {
|
||||||
/// Returns a new [UpdateAlbumUserDto] instance.
|
/// Returns a new [UpdateAlbumUserDto] instance.
|
||||||
UpdateAlbumUserDto({
|
UpdateAlbumUserDto({
|
||||||
required this.role,
|
this.isFavorite,
|
||||||
|
this.role,
|
||||||
});
|
});
|
||||||
|
|
||||||
AlbumUserRole role;
|
/// Mark album as favorite for the user (only the user themselves can update)
|
||||||
|
///
|
||||||
|
/// 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? isFavorite;
|
||||||
|
|
||||||
|
///
|
||||||
|
/// 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.
|
||||||
|
///
|
||||||
|
AlbumUserRole? role;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumUserDto &&
|
bool operator ==(Object other) => identical(this, other) || other is UpdateAlbumUserDto &&
|
||||||
|
other.isFavorite == isFavorite &&
|
||||||
other.role == role;
|
other.role == role;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(role.hashCode);
|
(isFavorite == null ? 0 : isFavorite!.hashCode) +
|
||||||
|
(role == null ? 0 : role!.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'UpdateAlbumUserDto[role=$role]';
|
String toString() => 'UpdateAlbumUserDto[isFavorite=$isFavorite, role=$role]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
|
if (this.isFavorite != null) {
|
||||||
|
json[r'isFavorite'] = this.isFavorite;
|
||||||
|
} else {
|
||||||
|
// json[r'isFavorite'] = null;
|
||||||
|
}
|
||||||
|
if (this.role != null) {
|
||||||
json[r'role'] = this.role;
|
json[r'role'] = this.role;
|
||||||
|
} else {
|
||||||
|
// json[r'role'] = null;
|
||||||
|
}
|
||||||
return json;
|
return json;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +72,8 @@ class UpdateAlbumUserDto {
|
|||||||
final json = value.cast<String, dynamic>();
|
final json = value.cast<String, dynamic>();
|
||||||
|
|
||||||
return UpdateAlbumUserDto(
|
return UpdateAlbumUserDto(
|
||||||
role: AlbumUserRole.fromJson(json[r'role'])!,
|
isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
|
||||||
|
role: AlbumUserRole.fromJson(json[r'role']),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@@ -93,7 +121,6 @@ class UpdateAlbumUserDto {
|
|||||||
|
|
||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
'role',
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user