22 lines
611 B
JavaScript
22 lines
611 B
JavaScript
import { getStore } from './store.js';
|
|
|
|
export async function list(googleAuthId) {
|
|
const store = await getStore();
|
|
return store.printeragent.list(googleAuthId);
|
|
}
|
|
|
|
export async function create(googleAuthId, data) {
|
|
const store = await getStore();
|
|
return store.printeragent.create(googleAuthId, data);
|
|
}
|
|
|
|
export async function update(googleAuthId, data) {
|
|
const store = await getStore();
|
|
return store.printeragent.update(googleAuthId, data);
|
|
}
|
|
|
|
export async function remove(googleAuthId, id) {
|
|
const store = await getStore();
|
|
return store.printeragent.delete(googleAuthId, id);
|
|
}
|