2022-11-13 23:17:55 +00:00
|
|
|
import { BaseAPI, route } from "../base";
|
2023-02-09 02:59:04 +00:00
|
|
|
import { ActionAmountResult } from "../types/data-contracts";
|
2022-11-13 23:17:55 +00:00
|
|
|
|
|
|
|
export class ActionsAPI extends BaseAPI {
|
|
|
|
ensureAssetIDs() {
|
2023-02-09 02:59:04 +00:00
|
|
|
return this.http.post<void, ActionAmountResult>({
|
2022-11-13 23:17:55 +00:00
|
|
|
url: route("/actions/ensure-asset-ids"),
|
|
|
|
});
|
|
|
|
}
|
2023-02-09 02:59:04 +00:00
|
|
|
|
|
|
|
resetItemDateTimes() {
|
|
|
|
return this.http.post<void, ActionAmountResult>({
|
|
|
|
url: route("/actions/zero-item-time-fields"),
|
|
|
|
});
|
|
|
|
}
|
2023-02-26 02:54:40 +00:00
|
|
|
|
|
|
|
ensureImportRefs() {
|
|
|
|
return this.http.post<void, ActionAmountResult>({
|
|
|
|
url: route("/actions/ensure-import-refs"),
|
|
|
|
});
|
|
|
|
}
|
2022-11-13 23:17:55 +00:00
|
|
|
}
|