u
This commit is contained in:
27
src/db/printerjob.js
Normal file
27
src/db/printerjob.js
Normal 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);
|
||||
}
|
||||
|
||||
@@ -42,6 +42,9 @@ const STORE_NAMESPACES = [
|
||||
'ledger',
|
||||
'warehouse',
|
||||
'printer',
|
||||
'printeragent',
|
||||
'agentprinter',
|
||||
'printerjob',
|
||||
'labeltemplate',
|
||||
'stock',
|
||||
'propertyname',
|
||||
|
||||
Reference in New Issue
Block a user