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.
22 lines
703 B
JavaScript
22 lines
703 B
JavaScript
import { getStore } from './store.js';
|
|
|
|
export async function list(googleAuthId, entityId) {
|
|
const store = await getStore();
|
|
return store.entityaddress.list(googleAuthId, entityId);
|
|
}
|
|
|
|
export async function create(googleAuthId, entityId, data) {
|
|
const store = await getStore();
|
|
return store.entityaddress.create(googleAuthId, entityId, data);
|
|
}
|
|
|
|
export async function update(googleAuthId, entityId, id, data) {
|
|
const store = await getStore();
|
|
return store.entityaddress.update(googleAuthId, entityId, id, data);
|
|
}
|
|
|
|
export async function remove(googleAuthId, entityId, id) {
|
|
const store = await getStore();
|
|
return store.entityaddress.delete(googleAuthId, entityId, id);
|
|
}
|