u
This commit is contained in:
11
src/db/categoryattributevalue.js
Normal file
11
src/db/categoryattributevalue.js
Normal 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);
|
||||
}
|
||||
16
src/db/categoryproperty.js
Normal file
16
src/db/categoryproperty.js
Normal 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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -39,9 +39,11 @@ const STORE_NAMESPACES = [
|
||||
'stock',
|
||||
'propertyname',
|
||||
'articleproperty',
|
||||
'categoryproperty',
|
||||
'attributename',
|
||||
'attributevalue',
|
||||
'articleattributevalue',
|
||||
'categoryattributevalue',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user