feat(medusa): ordem items endpoint (#9646)

This commit is contained in:
Carlos R. L. Rodrigues authored and GitHub committed 2024-10-18 05:59:24 -03:00
1 parent 0a37675f0e
commit 2a98be6b65
16 files changed
+202 -19

No files matched your search

@@ -22,6 +22,7 @@ export const getOrderDetailWorkflow = createWorkflow(
input: WorkflowData<{
fields: string[]
order_id: string
version?: number
}>
): WorkflowResponse<OrderDetailDTO> => {
const fields = transform(input, ({ fields }) => {
@@ -38,7 +39,10 @@ export const getOrderDetailWorkflow = createWorkflow(
const order: OrderDTO = useRemoteQueryStep({
entry_point: "orders",
fields,
variables: { id: input.order_id },
variables: {
id: input.order_id,
version: input.version,
},
list: false,
throw_if_key_not_found: true,
})