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