u
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user