feat: expose bulk archive in admin workspace
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 23:48:34 -04:00
parent 12eced8b19
commit e0d231facc
4 changed files with 83 additions and 1 deletions
@@ -22,4 +22,12 @@ export function createAdminProduct(input, csrfToken) {
export function createAdminInventory(input, csrfToken) {
return request('/admin/inventory', { method: 'POST', headers: { 'x-csrf-token': csrfToken }, body: JSON.stringify(input) });
}
export function archiveAdminInventory(inventoryItemIds, csrfToken) {
return request('/admin/bulk', {
method: 'POST',
headers: { 'x-csrf-token': csrfToken },
body: JSON.stringify({ action: 'ARCHIVE', inventoryItemIds }),
});
}