2022-11-13 23:17:55 +00:00
|
|
|
import { BaseAPI, route } from "../base";
|
2024-03-01 17:21:45 +00:00
|
|
|
import type { 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"),
|
|
|
|
});
|
|
|
|
}
|
2023-10-07 02:51:08 +00:00
|
|
|
|
|
|
|
setPrimaryPhotos() {
|
|
|
|
return this.http.post<void, ActionAmountResult>({
|
|
|
|
url: route("/actions/set-primary-photos"),
|
|
|
|
});
|
|
|
|
}
|
2022-11-13 23:17:55 +00:00
|
|
|
}
|