mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
open-api
This commit is contained in:
@@ -1899,20 +1899,6 @@ export function createAlbum({ createAlbumDto }: {
|
||||
body: createAlbumDto
|
||||
})));
|
||||
}
|
||||
export function getAllAlbumsSlim({ assetId, shared }: {
|
||||
assetId?: string;
|
||||
shared?: boolean;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AlbumResponseDto[];
|
||||
}>(`/albums/slim${QS.query(QS.explode({
|
||||
assetId,
|
||||
shared
|
||||
}))}`, {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* This endpoint requires the `albumAsset.create` permission.
|
||||
*/
|
||||
@@ -1933,6 +1919,23 @@ export function addAssetsToAlbums({ key, slug, albumsAddAssetsDto }: {
|
||||
body: albumsAddAssetsDto
|
||||
})));
|
||||
}
|
||||
/**
|
||||
* This endpoint requires the `album.read` permission.
|
||||
*/
|
||||
export function getAllAlbumsSlim({ assetId, shared }: {
|
||||
assetId?: string;
|
||||
shared?: boolean;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchJson<{
|
||||
status: 200;
|
||||
data: AlbumResponseDto[];
|
||||
}>(`/albums/slim${QS.query(QS.explode({
|
||||
assetId,
|
||||
shared
|
||||
}))}`, {
|
||||
...opts
|
||||
}));
|
||||
}
|
||||
/**
|
||||
* This endpoint requires the `album.statistics` permission.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user