mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-22 14:56:31 +00:00
318b8be192
* add support for primary images * fix locked loading state issue * add action to auto-set images
28 lines
705 B
TypeScript
28 lines
705 B
TypeScript
import { BaseAPI, route } from "../base";
|
|
import { 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"),
|
|
});
|
|
}
|
|
}
|