feat: add async pricing refresh UI
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-09 14:50:08 -04:00
parent a3f35c8cd1
commit 0e4830ace9
3 changed files with 39 additions and 1 deletions
@@ -33,3 +33,15 @@ export function overrideAdminValuation(inventoryItemId, input, csrfToken) {
body: JSON.stringify(input),
});
}
export function enqueueAdminPricingRefresh(inventoryItemId, input, csrfToken) {
return request(`/admin/inventory/${encodeURIComponent(inventoryItemId)}/pricing/refresh`, {
method: 'POST',
headers: { 'x-csrf-token': csrfToken },
body: JSON.stringify(input),
});
}
export function getAdminPricingJob(jobId) {
return request(`/admin/jobs/${encodeURIComponent(jobId)}`);
}