fix(core-flows): list order shipping options param type (#13316)
This commit is contained in:
5
.changeset/wet-horses-press.md
Normal file
5
.changeset/wet-horses-press.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/core-flows": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix(core-flows): list order shipping options param type
|
||||||
@@ -4,10 +4,7 @@ import {
|
|||||||
WorkflowData,
|
WorkflowData,
|
||||||
WorkflowResponse,
|
WorkflowResponse,
|
||||||
} from "@medusajs/framework/workflows-sdk"
|
} from "@medusajs/framework/workflows-sdk"
|
||||||
import {
|
import { ListShippingOptionsForOrderWorkflowInput } from "@medusajs/types"
|
||||||
AdditionalData,
|
|
||||||
ListShippingOptionsForOrderWorkflowInput,
|
|
||||||
} from "@medusajs/types"
|
|
||||||
|
|
||||||
import { useQueryGraphStep, validatePresenceOfStep } from "../../common"
|
import { useQueryGraphStep, validatePresenceOfStep } from "../../common"
|
||||||
import { useRemoteQueryStep } from "../../common/steps/use-remote-query"
|
import { useRemoteQueryStep } from "../../common/steps/use-remote-query"
|
||||||
@@ -18,16 +15,9 @@ export const listShippingOptionsForOrderWorkflowId =
|
|||||||
* This workflow lists the shipping options of an order. It's executed by the
|
* This workflow lists the shipping options of an order. It's executed by the
|
||||||
* [List Shipping Options Store API Route](https://docs.medusajs.com/api/store#orders_getidshippingoptions).
|
* [List Shipping Options Store API Route](https://docs.medusajs.com/api/store#orders_getidshippingoptions).
|
||||||
*
|
*
|
||||||
* :::note
|
|
||||||
*
|
|
||||||
* This workflow doesn't retrieve the calculated prices of the shipping options. If you need to retrieve the prices of the shipping options,
|
|
||||||
* use the {@link listShippingOptionsForOrderWithPricingWorkflow} workflow.
|
|
||||||
*
|
|
||||||
* :::
|
|
||||||
*
|
|
||||||
* You can use this workflow within your own customizations or custom workflows, allowing you to wrap custom logic around to retrieve the shipping options of an order
|
* You can use this workflow within your own customizations or custom workflows, allowing you to wrap custom logic around to retrieve the shipping options of an order
|
||||||
* in your custom flows.
|
* in your custom flows.
|
||||||
*
|
*
|
||||||
* @since 2.10.0
|
* @since 2.10.0
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
@@ -41,15 +31,11 @@ export const listShippingOptionsForOrderWorkflowId =
|
|||||||
* @summary
|
* @summary
|
||||||
*
|
*
|
||||||
* List a order's shipping options.
|
* List a order's shipping options.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
export const listShippingOptionsForOrderWorkflow = createWorkflow(
|
export const listShippingOptionsForOrderWorkflow = createWorkflow(
|
||||||
listShippingOptionsForOrderWorkflowId,
|
listShippingOptionsForOrderWorkflowId,
|
||||||
(
|
(input: WorkflowData<ListShippingOptionsForOrderWorkflowInput>) => {
|
||||||
input: WorkflowData<
|
|
||||||
ListShippingOptionsForOrderWorkflowInput & AdditionalData
|
|
||||||
>
|
|
||||||
) => {
|
|
||||||
const orderQuery = useQueryGraphStep({
|
const orderQuery = useQueryGraphStep({
|
||||||
entity: "order",
|
entity: "order",
|
||||||
filters: { id: input.order_id },
|
filters: { id: input.order_id },
|
||||||
|
|||||||
Reference in New Issue
Block a user