32 lines
929 B
JavaScript
32 lines
929 B
JavaScript
import { getStore } from './store.js';
|
|
|
|
export async function list(googleAuthId) {
|
|
const store = await getStore();
|
|
return store.delivery.list(googleAuthId);
|
|
}
|
|
|
|
export async function getById(googleAuthId, id) {
|
|
const store = await getStore();
|
|
return store.delivery.getById(googleAuthId, id);
|
|
}
|
|
|
|
export async function create(googleAuthId, data) {
|
|
const store = await getStore();
|
|
return store.delivery.create(googleAuthId, data);
|
|
}
|
|
|
|
export async function update(googleAuthId, id, data) {
|
|
const store = await getStore();
|
|
return store.delivery.update(googleAuthId, id, data);
|
|
}
|
|
|
|
export async function remove(googleAuthId, id) {
|
|
const store = await getStore();
|
|
return store.delivery.delete(googleAuthId, id);
|
|
}
|
|
|
|
export async function getFile(googleAuthId, deliveryId, fileId) {
|
|
const store = await getStore();
|
|
return store.manifestattachment.getById(googleAuthId, deliveryId, fileId);
|
|
}
|