This commit is contained in:
seb
2026-10-30 18:09:31 +01:00
parent 5fac537268
commit 8fece9d916
13 changed files with 642 additions and 3 deletions

View File

@@ -19,3 +19,28 @@ export async function remove(googleAuthId, id) {
const store = await getStore();
return store.printeragent.delete(googleAuthId, id);
}
export async function findByPairingpin(pairingpin) {
const store = await getStore();
return store.printeragent.findByPairingpin(pairingpin);
}
export async function findByToken(token) {
const store = await getStore();
return store.printeragent.findByToken(token);
}
export async function pair(id, data) {
const store = await getStore();
return store.printeragent.pair(id, data);
}
export async function updateState(id, clientstate) {
const store = await getStore();
return store.printeragent.updateState(id, clientstate);
}
export async function touchLastseen(id, agentversion) {
const store = await getStore();
return store.printeragent.touchLastseen(id, agentversion);
}