u
This commit is contained in:
23
src/index.js
23
src/index.js
@@ -2,7 +2,10 @@ import companyuserGetByEmail from './store/companyuser/getByEmail.js';
|
||||
import companyuserAdd from './store/companyuser/add.js';
|
||||
import companyuserDelete from './store/companyuser/delete.js';
|
||||
import companyGetByCompanyUserId from './store/company/getByCompanyUserId.js';
|
||||
import companyGetById from './store/company/getById.js';
|
||||
import companyGetByName from './store/company/getByName.js';
|
||||
import companyCreate from './store/company/create.js';
|
||||
import companyUpdate from './store/company/update.js';
|
||||
import companySetDefaultLang from './store/company/setDefaultLang.js';
|
||||
import companySetRootCategory from './store/company/setRootCategory.js';
|
||||
import companyDelete from './store/company/delete.js';
|
||||
@@ -14,9 +17,16 @@ import categoryDelete from './store/category/delete.js';
|
||||
import langCreate from './store/lang/create.js';
|
||||
import langDelete from './store/lang/delete.js';
|
||||
import langList from './store/lang/list.js';
|
||||
import langGetByIso639 from './store/lang/getByIso639.js';
|
||||
import langEnsure from './store/lang/ensure.js';
|
||||
import taxCreate from './store/tax/create.js';
|
||||
import taxGetByRate from './store/tax/getByRate.js';
|
||||
import taxEnsure from './store/tax/ensure.js';
|
||||
import taxList from './store/tax/list.js';
|
||||
import googleAuthAdd from './store/google_auth/add.js';
|
||||
import googleAuthGetById from './store/google_auth/getById.js';
|
||||
import googleAuthGetByEmail from './store/google_auth/getByEmail.js';
|
||||
import googleAuthSetSelectedCompany from './store/google_auth/setSelectedCompany.js';
|
||||
import googleAuthList from './store/google_auth/list.js';
|
||||
import googleAuthDel from './store/google_auth/del.js';
|
||||
import storePurge from './store/purge.js';
|
||||
@@ -34,7 +44,10 @@ export default class LibDashStore {
|
||||
|
||||
this.company = {
|
||||
getByCompanyUserId: companyGetByCompanyUserId(pool),
|
||||
getById: companyGetById(pool),
|
||||
getByName: companyGetByName(pool),
|
||||
create: companyCreate(pool),
|
||||
update: companyUpdate(pool),
|
||||
setDefaultLang: companySetDefaultLang(pool),
|
||||
setRootCategory: companySetRootCategory(pool),
|
||||
delete: companyDelete(pool),
|
||||
@@ -50,14 +63,24 @@ export default class LibDashStore {
|
||||
|
||||
this.lang = {
|
||||
create: langCreate(pool),
|
||||
getByIso639: langGetByIso639(pool),
|
||||
ensure: langEnsure(pool),
|
||||
delete: langDelete(pool),
|
||||
list: langList(pool),
|
||||
};
|
||||
|
||||
this.tax = {
|
||||
create: taxCreate(pool),
|
||||
getByRate: taxGetByRate(pool),
|
||||
ensure: taxEnsure(pool),
|
||||
list: taxList(pool),
|
||||
};
|
||||
|
||||
this.google_auth = {
|
||||
add: googleAuthAdd(pool),
|
||||
getById: googleAuthGetById(pool),
|
||||
getByEmail: googleAuthGetByEmail(pool),
|
||||
setSelectedCompany: googleAuthSetSelectedCompany(pool),
|
||||
list: googleAuthList(pool),
|
||||
del: googleAuthDel(pool),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user