fix(core-flows,types): general fixes to workflow types (#7392)
This commit is contained in:
@@ -8,7 +8,7 @@ export const createShippingProfilesWorkflow = createWorkflow(
|
||||
createShippingProfilesWorkflowId,
|
||||
(
|
||||
input: WorkflowData<FulfillmentWorkflow.CreateShippingProfilesWorkflowInput>
|
||||
): WorkflowData => {
|
||||
): WorkflowData<FulfillmentWorkflow.CreateShippingProfilesWorkflowOutput> => {
|
||||
const shippingProfiles = createShippingProfilesStep(input.data)
|
||||
|
||||
return shippingProfiles
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ProductTypes, PricingTypes } from "@medusajs/types"
|
||||
import { ProductTypes } from "@medusajs/types"
|
||||
import {
|
||||
WorkflowData,
|
||||
createWorkflow,
|
||||
@@ -8,7 +8,7 @@ import { createProductsStep } from "../steps/create-products"
|
||||
import { createVariantPricingLinkStep } from "../steps/create-variant-pricing-link"
|
||||
import { createPriceSetsStep } from "../../pricing"
|
||||
import { associateProductsWithSalesChannelsStep } from "../../sales-channel"
|
||||
import { CreateProductWorkflowInputDTO } from "@medusajs/types/src"
|
||||
import { CreateProductWorkflowInputDTO } from "@medusajs/types"
|
||||
|
||||
type WorkflowInput = {
|
||||
products: CreateProductWorkflowInputDTO[]
|
||||
|
||||
Reference in New Issue
Block a user