mirror of
https://github.com/immich-app/immich.git
synced 2026-02-04 00:39:15 +03:00
fix: album dto docs (#25873)
This commit is contained in:
4
mobile/openapi/lib/api/albums_api.dart
generated
4
mobile/openapi/lib/api/albums_api.dart
generated
@@ -473,7 +473,7 @@ class AlbumsApi {
|
|||||||
/// Filter albums containing this asset ID (ignores shared parameter)
|
/// Filter albums containing this asset ID (ignores shared parameter)
|
||||||
///
|
///
|
||||||
/// * [bool] shared:
|
/// * [bool] shared:
|
||||||
/// Filter by shared status: true = only shared, false = only own, undefined = all
|
/// 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? shared, }) async {
|
||||||
// ignore: prefer_const_declarations
|
// ignore: prefer_const_declarations
|
||||||
final apiPath = r'/albums';
|
final apiPath = r'/albums';
|
||||||
@@ -516,7 +516,7 @@ class AlbumsApi {
|
|||||||
/// Filter albums containing this asset ID (ignores shared parameter)
|
/// Filter albums containing this asset ID (ignores shared parameter)
|
||||||
///
|
///
|
||||||
/// * [bool] shared:
|
/// * [bool] shared:
|
||||||
/// Filter by shared status: true = only shared, false = only own, undefined = all
|
/// 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? shared, }) async {
|
||||||
final response = await getAllAlbumsWithHttpInfo( assetId: assetId, shared: shared, );
|
final response = await getAllAlbumsWithHttpInfo( assetId: assetId, shared: shared, );
|
||||||
if (response.statusCode >= HttpStatus.badRequest) {
|
if (response.statusCode >= HttpStatus.badRequest) {
|
||||||
|
|||||||
@@ -1618,7 +1618,7 @@
|
|||||||
"name": "shared",
|
"name": "shared",
|
||||||
"required": false,
|
"required": false,
|
||||||
"in": "query",
|
"in": "query",
|
||||||
"description": "Filter by shared status: true = only shared, false = only own, undefined = all",
|
"description": "Filter by shared status: true = only shared, false = not shared, undefined = all owned albums",
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ export class UpdateAlbumDto {
|
|||||||
export class GetAlbumsDto {
|
export class GetAlbumsDto {
|
||||||
@ValidateBoolean({
|
@ValidateBoolean({
|
||||||
optional: true,
|
optional: true,
|
||||||
description: 'Filter by shared status: true = only shared, false = only own, undefined = all',
|
description: 'Filter by shared status: true = only shared, false = not shared, undefined = all owned albums',
|
||||||
})
|
})
|
||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user