This commit is contained in:
CJPeckover
2025-10-08 23:48:36 -04:00
parent 9f93c89878
commit e0310ee462
3 changed files with 203 additions and 36 deletions
+17 -14
View File
@@ -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.
*/