import { getStore } from './store.js'; export async function list(googleAuthId) { const store = await getStore(); return store.posterminal.list(googleAuthId); } export async function upsert(googleAuthId, data) { const store = await getStore(); return store.posterminal.upsert(googleAuthId, data); } export async function remove(googleAuthId, id) { const store = await getStore(); return store.posterminal.delete(googleAuthId, id); } export async function setOn(googleAuthId, posterminalId, categoryId) { const store = await getStore(); return store.posterminal.setOn(googleAuthId, posterminalId, categoryId); } export async function setOff(googleAuthId, posterminalId, categoryId) { const store = await getStore(); return store.posterminal.setOff(googleAuthId, posterminalId, categoryId); } export async function setOnAll(googleAuthId, posterminalId) { const store = await getStore(); return store.posterminal.setOnAll(googleAuthId, posterminalId); } export async function setOffAll(googleAuthId, posterminalId) { const store = await getStore(); return store.posterminal.setOffAll(googleAuthId, posterminalId); } export async function findByPairingpin(pairingpin) { const store = await getStore(); return store.posterminal.findByPairingpin(pairingpin); } export async function findByToken(token) { const store = await getStore(); return store.posterminal.findByToken(token); } export async function pair(id, data) { const store = await getStore(); return store.posterminal.pair(id, data); } export async function getProductCount(params) { const store = await getStore(); return store.posterminal.getProductCount(params); } export async function getCategoryCount(params) { const store = await getStore(); return store.posterminal.getCategoryCount(params); } export async function getCustomerCount(params) { const store = await getStore(); return store.posterminal.getCustomerCount(params); } export async function getCustomerGroupCount(params) { const store = await getStore(); return store.posterminal.getCustomerGroupCount(params); } export async function getCompositeProductCount(params) { const store = await getStore(); return store.posterminal.getCompositeProductCount(params); } export async function getDeletedEntityCount(params) { const store = await getStore(); return store.posterminal.getDeletedEntityCount(params); } export async function getMaxOrderIdCount(params) { const store = await getStore(); return store.posterminal.getMaxOrderIdCount(params); } export async function getCategoryList(params) { const store = await getStore(); return store.posterminal.getCategoryList(params); } export async function getProductList(params) { const store = await getStore(); return store.posterminal.getProductList(params); }