Add article history by SKU and SSE update signals for live clients.

Expose getHistoryBySku as GET /article/:sku/history, and document mutation-emitted company signals via GET /events.
This commit is contained in:
seb
2026-08-05 09:54:56 +02:00
parent 4a9403bfd1
commit 782c49a680
28 changed files with 757 additions and 2 deletions

View File

@@ -10,6 +10,11 @@ export async function getBySku(googleAuthId, sku) {
return store.article.getBySku(googleAuthId, sku);
}
export async function getHistoryBySku(googleAuthId, sku) {
const store = await getStore();
return store.article.getHistoryBySku(googleAuthId, sku);
}
export async function updateBySku(googleAuthId, sku, data) {
const store = await getStore();
return store.article.updateBySku(googleAuthId, sku, data);