Add entity address/contact tables and CRUD for entity resources
This commit is contained in:
46
src/index.js
46
src/index.js
@@ -39,6 +39,23 @@ import companysettingDelete from './store/companysetting/delete.js';
|
||||
import brandList from './store/brand/list.js';
|
||||
import brandUpsert from './store/brand/upsert.js';
|
||||
import brandDelete from './store/brand/delete.js';
|
||||
import customergroupList from './store/customergroup/list.js';
|
||||
import customergroupCreate from './store/customergroup/create.js';
|
||||
import customergroupUpdate from './store/customergroup/update.js';
|
||||
import customergroupDelete from './store/customergroup/delete.js';
|
||||
import entityList from './store/entity/list.js';
|
||||
import entityGetById from './store/entity/getById.js';
|
||||
import entityCreate from './store/entity/create.js';
|
||||
import entityUpdate from './store/entity/update.js';
|
||||
import entityDelete from './store/entity/delete.js';
|
||||
import entityaddressList from './store/entityaddress/list.js';
|
||||
import entityaddressCreate from './store/entityaddress/create.js';
|
||||
import entityaddressUpdate from './store/entityaddress/update.js';
|
||||
import entityaddressDelete from './store/entityaddress/delete.js';
|
||||
import entitycontactList from './store/entitycontact/list.js';
|
||||
import entitycontactCreate from './store/entitycontact/create.js';
|
||||
import entitycontactUpdate from './store/entitycontact/update.js';
|
||||
import entitycontactDelete from './store/entitycontact/delete.js';
|
||||
import supplierList from './store/supplier/list.js';
|
||||
import supplierCreate from './store/supplier/create.js';
|
||||
import supplierUpdate from './store/supplier/update.js';
|
||||
@@ -158,6 +175,35 @@ export default class LibDashStore {
|
||||
delete: brandDelete(pool),
|
||||
};
|
||||
|
||||
this.customergroup = {
|
||||
list: customergroupList(pool),
|
||||
create: customergroupCreate(pool),
|
||||
update: customergroupUpdate(pool),
|
||||
delete: customergroupDelete(pool),
|
||||
};
|
||||
|
||||
this.entity = {
|
||||
list: entityList(pool),
|
||||
getById: entityGetById(pool),
|
||||
create: entityCreate(pool),
|
||||
update: entityUpdate(pool),
|
||||
delete: entityDelete(pool),
|
||||
};
|
||||
|
||||
this.entityaddress = {
|
||||
list: entityaddressList(pool),
|
||||
create: entityaddressCreate(pool),
|
||||
update: entityaddressUpdate(pool),
|
||||
delete: entityaddressDelete(pool),
|
||||
};
|
||||
|
||||
this.entitycontact = {
|
||||
list: entitycontactList(pool),
|
||||
create: entitycontactCreate(pool),
|
||||
update: entitycontactUpdate(pool),
|
||||
delete: entitycontactDelete(pool),
|
||||
};
|
||||
|
||||
this.supplier = {
|
||||
list: supplierList(pool),
|
||||
create: supplierCreate(pool),
|
||||
|
||||
Reference in New Issue
Block a user