This commit is contained in:
seb
2026-09-29 11:21:55 +02:00
parent 3089cc7252
commit cf4af1480b
7 changed files with 173 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ export async function listCompanies(authId) {
return store.company.list(authId);
}
export async function getCompanyById(id) {
const store = await getStore();
return store.company.getById(id);
}
export async function createCompany(googleAuthId, data) {
const store = await getStore();
return store.company.create({ ...data, googleAuthId });

View File

@@ -34,3 +34,13 @@ 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 pair(id, data) {
const store = await getStore();
return store.posterminal.pair(id, data);
}