fix(core-flows,types): general fixes to workflow types (#7392)

This commit is contained in:
Shahed Nasser
2024-05-22 11:27:12 +02:00
committed by GitHub
parent 5ede560f70
commit 2187b82d5d
5 changed files with 9 additions and 11 deletions
@@ -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[]