docs: added workflow hooks docs + changed workflow response (#8364)

* docs: added workflow hooks docs + changed workflow response

* Update page.mdx
This commit is contained in:
Shahed Nasser
2024-07-31 17:01:33 +03:00
committed by GitHub
parent 27837b8833
commit 6f973d9f2b
29 changed files with 321 additions and 167 deletions
@@ -485,7 +485,7 @@ export const syncProductsWorkflowHighlight = [
import {
StepResponse,
createStep,
createWorkflow
createWorkflow,
} from "@medusajs/workflows-sdk"
type RetrieveStoreStepInput = {
@@ -597,9 +597,7 @@ export const syncProductsWorkflowHighlight = [
store_id: string
}
export const syncProductsWorkflow = createWorkflow<
SyncProductsWorkflowInput, {}
>(
export const syncProductsWorkflow = createWorkflow(
"sync-products-workflow",
function ({ store_id }: SyncProductsWorkflowInput) {
const { store } = retrieveStoreStep({