mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-22 16:45:43 +00:00
b77c9be36f
* bump prettier/eslint-plugin * bump nuxt pwa * use typed imports * set vue version to fix layout errors * disable import
28 lines
710 B
TypeScript
28 lines
710 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"),
|
|
});
|
|
}
|
|
}
|