This commit is contained in:
seb
2026-10-01 17:40:01 +02:00
parent 8a7500cb5a
commit 7383e13894
14 changed files with 660 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import { getStore } from './store.js';
export async function listByCategoryId(googleAuthId, categoryId) {
const store = await getStore();
return store.categoryattributevalue.listByCategoryId(googleAuthId, categoryId);
}
export async function setByCategoryId(googleAuthId, categoryId, values) {
const store = await getStore();
return store.categoryattributevalue.setByCategoryId(googleAuthId, categoryId, values);
}

View File

@@ -0,0 +1,16 @@
import { getStore } from './store.js';
export async function listByCategoryId(googleAuthId, categoryId) {
const store = await getStore();
return store.categoryproperty.listByCategoryId(googleAuthId, categoryId);
}
export async function setByCategoryId(googleAuthId, categoryId, properties) {
const store = await getStore();
return store.categoryproperty.setByCategoryId(googleAuthId, categoryId, properties);
}
export async function remove(googleAuthId, categoryId, propertyId) {
const store = await getStore();
return store.categoryproperty.delete(googleAuthId, categoryId, propertyId);
}

View File

@@ -95,3 +95,9 @@ export async function getProductList(params) {
return store.posterminal.getProductList(params);
}
export async function setMaxKnownTombstoneId(id, maxknowntombstoneid) {
const store = await getStore();
return store.posterminal.setMaxKnownTombstoneId(id, maxknowntombstoneid);
}

View File

@@ -39,9 +39,11 @@ const STORE_NAMESPACES = [
'stock',
'propertyname',
'articleproperty',
'categoryproperty',
'attributename',
'attributevalue',
'articleattributevalue',
'categoryattributevalue',
];
/**