mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
parent
5b0575b956
commit
eca9b56847
14 changed files with 380 additions and 60 deletions
|
|
@ -2769,6 +2769,15 @@ export function updatePartner({ id, updatePartnerDto }: {
|
|||
body: updatePartnerDto
|
||||
})));
|
||||
}
|
||||
export function deletePeople({ bulkIdsDto }: {
|
||||
bulkIdsDto: BulkIdsDto;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchText("/people", oazapfts.json({
|
||||
...opts,
|
||||
method: "DELETE",
|
||||
body: bulkIdsDto
|
||||
})));
|
||||
}
|
||||
export function getAllPeople({ closestAssetId, closestPersonId, page, size, withHidden }: {
|
||||
closestAssetId?: string;
|
||||
closestPersonId?: string;
|
||||
|
|
@ -2813,6 +2822,14 @@ export function updatePeople({ peopleUpdateDto }: {
|
|||
body: peopleUpdateDto
|
||||
})));
|
||||
}
|
||||
export function deletePerson({ id }: {
|
||||
id: string;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
return oazapfts.ok(oazapfts.fetchText(`/people/${encodeURIComponent(id)}`, {
|
||||
...opts,
|
||||
method: "DELETE"
|
||||
}));
|
||||
}
|
||||
export function getPerson({ id }: {
|
||||
id: string;
|
||||
}, opts?: Oazapfts.RequestOpts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue