This commit is contained in:
seb
2026-10-15 20:14:54 +02:00
parent e462a3d250
commit 508e1b6d7a
18 changed files with 859 additions and 333 deletions

View File

@@ -155,6 +155,11 @@ export async function createFromQuote(googleAuthId, quoteId, data) {
return enrichSingleOrder(store, googleAuthId, order);
}
export async function createShipment(googleAuthId, orderId, data) {
const store = await getStore();
return store.order.createShipment(googleAuthId, orderId, data);
}
export async function update(googleAuthId, id, data) {
const store = await getStore();
const order = await store.order.update(googleAuthId, id, data);

View File

@@ -1,6 +1,16 @@
import { getStore } from './store.js';
import { formatAttachments } from '../util/manifestAttachment.js';
export async function list(googleAuthId, opts) {
const store = await getStore();
return store.shipment.list(googleAuthId, opts);
}
export async function update(googleAuthId, id, patch) {
const store = await getStore();
return store.shipment.update(googleAuthId, id, patch);
}
export async function create(googleAuthId, data) {
const store = await getStore();
return store.shipment.create(googleAuthId, data);