This commit is contained in:
seb
2026-10-31 21:02:53 +01:00
parent 5a0b603306
commit dd5c9646b3
23 changed files with 1462 additions and 223 deletions

27
src/db/printerjob.js Normal file
View File

@@ -0,0 +1,27 @@
import { getStore } from './store.js';
export async function create(googleAuthId, input) {
const store = await getStore();
return store.printerjob.create(googleAuthId, input);
}
export async function getById(auth, id) {
const store = await getStore();
return store.printerjob.getById(auth, id);
}
export async function list(auth, filters) {
const store = await getStore();
return store.printerjob.list(auth, filters);
}
export async function updateState(auth, id, state) {
const store = await getStore();
return store.printerjob.updateState(auth, id, state);
}
export async function deleteJob(googleAuthId, id) {
const store = await getStore();
return store.printerjob.delete(googleAuthId, id);
}

View File

@@ -42,6 +42,9 @@ const STORE_NAMESPACES = [
'ledger',
'warehouse',
'printer',
'printeragent',
'agentprinter',
'printerjob',
'labeltemplate',
'stock',
'propertyname',