feat(articlesupplier): implement store methods, schema constraints, and embed in getBySku
This commit is contained in:
11
src/index.js
11
src/index.js
@@ -65,6 +65,10 @@ import supplierList from './store/supplier/list.js';
|
||||
import supplierCreate from './store/supplier/create.js';
|
||||
import supplierUpdate from './store/supplier/update.js';
|
||||
import supplierDelete from './store/supplier/delete.js';
|
||||
import articlesupplierListByArticleSku from './store/articlesupplier/listByArticleSku.js';
|
||||
import articlesupplierCreate from './store/articlesupplier/create.js';
|
||||
import articlesupplierUpdate from './store/articlesupplier/update.js';
|
||||
import articlesupplierDelete from './store/articlesupplier/delete.js';
|
||||
import deliveryList from './store/delivery/list.js';
|
||||
import deliveryGetById from './store/delivery/getById.js';
|
||||
import deliveryCreate from './store/delivery/create.js';
|
||||
@@ -237,6 +241,13 @@ export default class LibDashStore {
|
||||
delete: supplierDelete(pool),
|
||||
};
|
||||
|
||||
this.articlesupplier = {
|
||||
listByArticleSku: articlesupplierListByArticleSku(pool),
|
||||
create: articlesupplierCreate(pool),
|
||||
update: articlesupplierUpdate(pool),
|
||||
delete: articlesupplierDelete(pool),
|
||||
};
|
||||
|
||||
this.delivery = {
|
||||
list: deliveryList(pool),
|
||||
getById: deliveryGetById(pool),
|
||||
|
||||
Reference in New Issue
Block a user