1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-03 05:46:58 +02:00

chore(server): remove unusuned endpoint/service/interface in asset-v1 (#9086)

This commit is contained in:
Alex
2024-04-26 01:02:04 -05:00
committed by GitHub
parent 3e03f5348f
commit 1d15cfb5f3
22 changed files with 2 additions and 1059 deletions

View File

@ -252,20 +252,6 @@ export type AssetBulkUploadCheckResult = {
export type AssetBulkUploadCheckResponseDto = {
results: AssetBulkUploadCheckResult[];
};
export type CuratedLocationsResponseDto = {
city: string;
deviceAssetId: string;
deviceId: string;
id: string;
resizePath: string;
};
export type CuratedObjectsResponseDto = {
deviceAssetId: string;
deviceId: string;
id: string;
"object": string;
resizePath: string;
};
export type CheckExistingAssetsDto = {
deviceAssetIds: string[];
deviceId: string;
@ -1363,22 +1349,6 @@ export function checkBulkUpload({ assetBulkUploadCheckDto }: {
body: assetBulkUploadCheckDto
})));
}
export function getCuratedLocations(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: CuratedLocationsResponseDto[];
}>("/asset/curated-locations", {
...opts
}));
}
export function getCuratedObjects(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: CuratedObjectsResponseDto[];
}>("/asset/curated-objects", {
...opts
}));
}
/**
* Get all asset of a device that are in the database, ID only.
*/
@ -1479,14 +1449,6 @@ export function getRandom({ count }: {
...opts
}));
}
export function getAssetSearchTerms(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: string[];
}>("/asset/search-terms", {
...opts
}));
}
export function updateStackParent({ updateStackParentDto }: {
updateStackParentDto: UpdateStackParentDto;
}, opts?: Oazapfts.RequestOpts) {