import { BaseAPI, route } from "../base"; import type { ActionAmountResult } from "../types/data-contracts"; export class ActionsAPI extends BaseAPI { ensureAssetIDs() { return this.http.post({ url: route("/actions/ensure-asset-ids"), }); } resetItemDateTimes() { return this.http.post({ url: route("/actions/zero-item-time-fields"), }); } ensureImportRefs() { return this.http.post({ url: route("/actions/ensure-import-refs"), }); } setPrimaryPhotos() { return this.http.post({ url: route("/actions/set-primary-photos"), }); } createMissingThumbnails() { return this.http.post({ url: route("/actions/create-missing-thumbnails"), }); } wipeInventory(options?: { wipeLabels?: boolean; wipeLocations?: boolean; wipeMaintenance?: boolean }) { return this.http.post< { wipeLabels?: boolean; wipeLocations?: boolean; wipeMaintenance?: boolean }, ActionAmountResult >({ url: route("/actions/wipe-inventory"), body: options || {}, }); } }