Drop companyId from company-scoped store wrappers and routes, add GET /entity/next-number plus optional number on entity create/update, and document dashdbschema API.md lookup in sibling-repos.
27 lines
730 B
JavaScript
27 lines
730 B
JavaScript
import { getStore } from './store.js';
|
|
|
|
export async function list(googleAuthId) {
|
|
const store = await getStore();
|
|
return store.order.list(googleAuthId);
|
|
}
|
|
|
|
export async function getById(googleAuthId, id) {
|
|
const store = await getStore();
|
|
return store.order.getById(googleAuthId, id);
|
|
}
|
|
|
|
export async function create(googleAuthId, data) {
|
|
const store = await getStore();
|
|
return store.order.create(googleAuthId, data);
|
|
}
|
|
|
|
export async function update(googleAuthId, id, data) {
|
|
const store = await getStore();
|
|
return store.order.update(googleAuthId, id, data);
|
|
}
|
|
|
|
export async function remove(googleAuthId, id) {
|
|
const store = await getStore();
|
|
return store.order.delete(googleAuthId, id);
|
|
}
|