feat(api): add GET and POST /supplier/:id/articles endpoints and openapi docs

This commit is contained in:
seb
2026-09-18 02:54:06 +02:00
parent fe8fa55fbb
commit adb529d14f
8 changed files with 776 additions and 1 deletions

View File

@@ -19,9 +19,13 @@ export async function remove(googleAuthId, sku, id) {
const store = await getStore();
return store.articlesupplier.delete(googleAuthId, sku, id);
}
export async function order(googleAuthId, sku, data) {
const store = await getStore();
return store.articlesupplier.order(googleAuthId, sku, data);
}
export async function listByEntityAndSkus(googleAuthId, entityIdOrOptions, maybeSkus) {
const store = await getStore();
return store.articlesupplier.listByEntityAndSkus(googleAuthId, entityIdOrOptions, maybeSkus);
}

View File

@@ -19,3 +19,8 @@ export async function remove(googleAuthId, id) {
const store = await getStore();
return store.supplier.delete(googleAuthId, id);
}
export async function listArticlesBySkus(googleAuthId, entityIdOrOptions, maybeSkus) {
const store = await getStore();
return store.articlesupplier.listByEntityAndSkus(googleAuthId, entityIdOrOptions, maybeSkus);
}