feat(api): add GET and POST /supplier/:id/articles endpoints and openapi docs
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user