feat(dashboard): order fulfillment UI (#7262)
* feat: initial impl. of Unfulfilled section and create flow * feat: create fulfillment * feat: order <> fulfillment link, fulfillment section * feat: accept order_id when creating fulfillment * feat: finish create and cancel * fix: integration test * refactor: real Order<>Fulfillment link instead readonly, add link step to the workflow * fix: revert `order_id` definitions * chore: add changeset * fix: build * fix: address comments * fix: fetch inventory and location levels for fulfilled variant * fix: loading inventory details * add isList to order fulfillment link * fix: duplicate declaration * fix: type * refactor: link orders step, fix client * fix: move translations to the new file * fix: pass order id in test --------- Co-authored-by: olivermrbl <oliver@mrbltech.com>
This commit is contained in:
co-authored by
olivermrbl
parent
c9bffdfecb
commit
521b4e7926
@@ -23,6 +23,7 @@ export type AdminCancelFulfillmentType = z.infer<typeof AdminCancelFulfillment>
|
||||
export const AdminCancelFulfillment = z.object({})
|
||||
|
||||
export type AdminCreateFulfillmentType = z.infer<typeof AdminCreateFulfillment>
|
||||
// TODO: revisit the data shape this endpoint accepts
|
||||
export const AdminCreateFulfillment = z.object({
|
||||
location_id: z.string(),
|
||||
provider_id: z.string(),
|
||||
@@ -30,6 +31,7 @@ export const AdminCreateFulfillment = z.object({
|
||||
items: z.array(AdminCreateFulfillmentItem),
|
||||
labels: z.array(AdminCreateFulfillmentLabel),
|
||||
order: z.object({}),
|
||||
order_id: z.string(),
|
||||
metadata: z.record(z.unknown()).optional().nullable(),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user