mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-26 18:45:41 +00:00
a6bcb36c5b
* WIP: initial work * refactoring * fix failing JS tests * update import docs * fix import headers * fix column headers * update refs on import * remove demo status * finnnneeeee * formatting
22 lines
566 B
TypeScript
22 lines
566 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"),
|
|
});
|
|
}
|
|
}
|