chore(core-flows): export used steps / workflows (#8534)
Export steps / workflows I missed that weren't exported but are used by other workflows
This commit is contained in:
@@ -2,6 +2,7 @@ export * from "./steps/create-remote-links"
|
||||
export * from "./steps/dismiss-remote-links"
|
||||
export * from "./steps/remove-remote-links"
|
||||
export * from "./steps/emit-event"
|
||||
export * from "./steps/update-remote-links"
|
||||
export * from "./steps/use-remote-query"
|
||||
export * from "./workflows/batch-links"
|
||||
export * from "./workflows/create-links"
|
||||
|
||||
@@ -3,6 +3,7 @@ export * from "./confirm-inventory"
|
||||
export * from "./create-carts"
|
||||
export * from "./create-line-item-adjustments"
|
||||
export * from "./create-line-items"
|
||||
export * from "./create-payment-collection"
|
||||
export * from "./create-shipping-method-adjustments"
|
||||
export * from "./find-one-or-any-region"
|
||||
export * from "./find-or-create-customer"
|
||||
@@ -15,6 +16,7 @@ export * from "./get-variant-price-sets"
|
||||
export * from "./get-variants"
|
||||
export * from "./prepare-adjustments-from-promotion-actions"
|
||||
export * from "./refresh-cart-shipping-methods"
|
||||
export * from "./reserve-inventory"
|
||||
export * from "./remove-line-item-adjustments"
|
||||
export * from "./remove-shipping-method-adjustments"
|
||||
export * from "./remove-shipping-method-from-cart"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { PromotionActions } from "@medusajs/utils"
|
||||
import { StepResponse, createStep } from "@medusajs/workflows-sdk"
|
||||
import { updateCartPromotionsWorkflow } from "../workflows"
|
||||
import { updateCartPromotionsWorkflow } from "../workflows/update-cart-promotions"
|
||||
|
||||
export interface RefreshCartPromotionsStepInput {
|
||||
id: string
|
||||
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
CartWorkflowDTO,
|
||||
} from "@medusajs/types"
|
||||
import { StepResponse, createStep } from "@medusajs/workflows-sdk"
|
||||
import { updateTaxLinesWorkflow } from "../workflows"
|
||||
import { updateTaxLinesWorkflow } from "../workflows/update-tax-lines"
|
||||
|
||||
export interface UpdateTaxLinesStepInput {
|
||||
cart_or_cart_id: CartWorkflowDTO | string
|
||||
|
||||
+5
-2
@@ -13,7 +13,10 @@ import { createRemoteLinkStep } from "../../../common/steps/create-remote-links"
|
||||
import { useRemoteQueryStep } from "../../../common/steps/use-remote-query"
|
||||
import { createPaymentCollectionsStep } from "../steps/create-payment-collection"
|
||||
|
||||
const validateExistingPaymentCollection = createStep(
|
||||
/**
|
||||
* This step validates that a cart doesn't have a payment collection.
|
||||
*/
|
||||
export const validateExistingPaymentCollectionStep = createStep(
|
||||
"validate-existing-payment-collection",
|
||||
({ cart }: { cart: CartDTO & { payment_collection?: any } }) => {
|
||||
if (cart.payment_collection) {
|
||||
@@ -47,7 +50,7 @@ export const createPaymentCollectionForCartWorkflow = createWorkflow(
|
||||
list: false,
|
||||
})
|
||||
|
||||
validateExistingPaymentCollection({ cart })
|
||||
validateExistingPaymentCollectionStep({ cart })
|
||||
|
||||
const paymentData = transform({ cart }, ({ cart }) => {
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
export * from "./add-shipping-method-to-cart"
|
||||
export * from "./add-to-cart"
|
||||
export * from "./complete-cart"
|
||||
export * from "./confirm-variant-inventory"
|
||||
export * from "./create-carts"
|
||||
export * from "./create-payment-collection-for-cart"
|
||||
export * from "./list-shipping-options-for-cart"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
export * from "./archive-orders"
|
||||
export * from "./cancel-fulfillment"
|
||||
export * from "./cancel-order-change"
|
||||
export * from "./cancel-orders"
|
||||
export * from "./claim/cancel-claim"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./create-payment-session"
|
||||
export * from "./create-refund-reasons"
|
||||
export * from "./delete-payment-sessions"
|
||||
export * from "./update-refund-reasons"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./authorize-payment-session"
|
||||
export * from "./cancel-payment"
|
||||
export * from "./capture-payment"
|
||||
export * from "./refund-payment"
|
||||
|
||||
Reference in New Issue
Block a user