u
This commit is contained in:
11
src/db/articleattributevalue.js
Normal file
11
src/db/articleattributevalue.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByArticleSku(googleAuthId, sku) {
|
||||
const store = await getStore();
|
||||
return store.articleattributevalue.listByArticleSku(googleAuthId, sku);
|
||||
}
|
||||
|
||||
export async function setByArticleSku(googleAuthId, sku, values) {
|
||||
const store = await getStore();
|
||||
return store.articleattributevalue.setByArticleSku(googleAuthId, sku, values);
|
||||
}
|
||||
16
src/db/articleproperty.js
Normal file
16
src/db/articleproperty.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByArticleSku(googleAuthId, sku) {
|
||||
const store = await getStore();
|
||||
return store.articleproperty.listByArticleSku(googleAuthId, sku);
|
||||
}
|
||||
|
||||
export async function setByArticleSku(googleAuthId, sku, properties) {
|
||||
const store = await getStore();
|
||||
return store.articleproperty.setByArticleSku(googleAuthId, sku, properties);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, sku, propertyId) {
|
||||
const store = await getStore();
|
||||
return store.articleproperty.delete(googleAuthId, sku, propertyId);
|
||||
}
|
||||
26
src/db/attributename.js
Normal file
26
src/db/attributename.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function list(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.attributename.list(googleAuthId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.attributename.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function update(googleAuthId, id, data) {
|
||||
const store = await getStore();
|
||||
return store.attributename.update(googleAuthId, id, data);
|
||||
}
|
||||
|
||||
export async function order(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.attributename.order(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.attributename.delete(googleAuthId, id);
|
||||
}
|
||||
26
src/db/attributevalue.js
Normal file
26
src/db/attributevalue.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function listByAttributeId(googleAuthId, attributeId) {
|
||||
const store = await getStore();
|
||||
return store.attributevalue.listByAttributeId(googleAuthId, attributeId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, attributeId, data) {
|
||||
const store = await getStore();
|
||||
return store.attributevalue.create(googleAuthId, attributeId, data);
|
||||
}
|
||||
|
||||
export async function update(googleAuthId, id, data) {
|
||||
const store = await getStore();
|
||||
return store.attributevalue.update(googleAuthId, id, data);
|
||||
}
|
||||
|
||||
export async function order(googleAuthId, attributeId, data) {
|
||||
const store = await getStore();
|
||||
return store.attributevalue.order(googleAuthId, attributeId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.attributevalue.delete(googleAuthId, id);
|
||||
}
|
||||
26
src/db/propertyname.js
Normal file
26
src/db/propertyname.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { getStore } from './store.js';
|
||||
|
||||
export async function list(googleAuthId) {
|
||||
const store = await getStore();
|
||||
return store.propertyname.list(googleAuthId);
|
||||
}
|
||||
|
||||
export async function create(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.propertyname.create(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function update(googleAuthId, id, data) {
|
||||
const store = await getStore();
|
||||
return store.propertyname.update(googleAuthId, id, data);
|
||||
}
|
||||
|
||||
export async function order(googleAuthId, data) {
|
||||
const store = await getStore();
|
||||
return store.propertyname.order(googleAuthId, data);
|
||||
}
|
||||
|
||||
export async function remove(googleAuthId, id) {
|
||||
const store = await getStore();
|
||||
return store.propertyname.delete(googleAuthId, id);
|
||||
}
|
||||
@@ -37,6 +37,11 @@ const STORE_NAMESPACES = [
|
||||
'printer',
|
||||
'labeltemplate',
|
||||
'stock',
|
||||
'propertyname',
|
||||
'articleproperty',
|
||||
'attributename',
|
||||
'attributevalue',
|
||||
'articleattributevalue',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user