mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(server): remove unusuned endpoint/service/interface in asset-v1 (#9086)
This commit is contained in:
parent
3e03f5348f
commit
1d15cfb5f3
22 changed files with 2 additions and 1059 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue