Skip to content

Commit

Permalink
chore: use steps
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan committed Jan 28, 2024
1 parent 7f7bd5b commit b7e41a7
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/core-flows/src/promotion/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./handlers"
export * from "./steps"
export * from "./workflows"
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CampaignDTO, CreateCampaignDTO } from "@medusajs/types"
import { WorkflowData, createWorkflow } from "@medusajs/workflows-sdk"
import { createCampaignsStep } from "../handlers"
import { createCampaignsStep } from "../steps"

type WorkflowInput = { campaignsData: CreateCampaignDTO[] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CreatePromotionDTO, PromotionDTO } from "@medusajs/types"
import { WorkflowData, createWorkflow } from "@medusajs/workflows-sdk"
import { createPromotionsStep } from "../handlers"
import { createPromotionsStep } from "../steps"

type WorkflowInput = { promotionsData: CreatePromotionDTO[] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createWorkflow, WorkflowData } from "@medusajs/workflows-sdk"
import { deleteCampaignsStep } from "../handlers"
import { deleteCampaignsStep } from "../steps"

type WorkflowInput = { ids: string[] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createWorkflow, WorkflowData } from "@medusajs/workflows-sdk"
import { deletePromotionsStep } from "../handlers"
import { deletePromotionsStep } from "../steps"

type WorkflowInput = { ids: string[] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CampaignDTO, UpdateCampaignDTO } from "@medusajs/types"
import { WorkflowData, createWorkflow } from "@medusajs/workflows-sdk"
import { updateCampaignsStep } from "../handlers"
import { updateCampaignsStep } from "../steps"

type WorkflowInput = { campaignsData: UpdateCampaignDTO[] }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { PromotionDTO, UpdatePromotionDTO } from "@medusajs/types"
import { WorkflowData, createWorkflow } from "@medusajs/workflows-sdk"
import { updatePromotionsStep } from "../handlers"
import { updatePromotionsStep } from "../steps"

type WorkflowInput = { promotionsData: UpdatePromotionDTO[] }

Expand Down

0 comments on commit b7e41a7

Please sign in to comment.