This commit is contained in:
seb
2026-09-27 22:01:47 +02:00
parent 68b793c9ba
commit d2aa9ff8b1
11 changed files with 1553 additions and 1 deletions

26
src/db/labeltemplate.js Normal file
View File

@@ -0,0 +1,26 @@
import { getStore } from './store.js';
export async function list(googleAuthId) {
const store = await getStore();
return store.labeltemplate.list(googleAuthId);
}
export async function getById(googleAuthId, id) {
const store = await getStore();
return store.labeltemplate.getById(googleAuthId, id);
}
export async function create(googleAuthId, data) {
const store = await getStore();
return store.labeltemplate.create(googleAuthId, data);
}
export async function update(googleAuthId, id, data) {
const store = await getStore();
return store.labeltemplate.update(googleAuthId, id, data);
}
export async function remove(googleAuthId, id) {
const store = await getStore();
return store.labeltemplate.delete(googleAuthId, id);
}

View File

@@ -35,6 +35,7 @@ const STORE_NAMESPACES = [
'ledger',
'warehouse',
'printer',
'labeltemplate',
'stock',
];