mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 21:33:02 +01:00
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: tonya <tonya@tokia.dev>
35 lines
863 B
TypeScript
35 lines
863 B
TypeScript
import { BaseAPI, route } from "../base";
|
|
import type { ActionAmountResult } from "../types/data-contracts";
|
|
|
|
export class ActionsAPI extends BaseAPI {
|
|
ensureAssetIDs() {
|
|
return this.http.post<void, ActionAmountResult>({
|
|
url: route("/actions/ensure-asset-ids"),
|
|
});
|
|
}
|
|
|
|
resetItemDateTimes() {
|
|
return this.http.post<void, ActionAmountResult>({
|
|
url: route("/actions/zero-item-time-fields"),
|
|
});
|
|
}
|
|
|
|
ensureImportRefs() {
|
|
return this.http.post<void, ActionAmountResult>({
|
|
url: route("/actions/ensure-import-refs"),
|
|
});
|
|
}
|
|
|
|
setPrimaryPhotos() {
|
|
return this.http.post<void, ActionAmountResult>({
|
|
url: route("/actions/set-primary-photos"),
|
|
});
|
|
}
|
|
|
|
createMissingThumbnails() {
|
|
return this.http.post<void, ActionAmountResult>({
|
|
url: route("/actions/create-missing-thumbnails"),
|
|
});
|
|
}
|
|
}
|