docs: generate references manually for 2.1.1 (#10534)

* docs: generate references manually for 2.1.1

* re-generate for core-flows

* Revert "re-generate for core-flows"

This reverts commit ff785c80214dc6125e2da4c6e8a674a87b03e9dd.
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-12-10 18:49:30 +02:00
1 parent 482929f74d
commit ab1bfb966d
1109 files changed
+348717 -331421

No files matched your search

@@ -5,15 +5,15 @@ sidebar_label: createHook
import { TypeList } from "docs-ui"
# createHook - Workflows API Reference
# createHook - Workflows SDK Reference
This documentation provides a reference to the `createHook` . It belongs to the `@medusajs/framework/workflows-sdk` package.
This documentation provides a reference to the `createHook` . It belongs to the Workflows SDK.
Expose a hook in your workflow where you can inject custom functionality as a step function.
A handler hook can later be registered to consume the hook and perform custom functionality.
Learn more in [this documentation](https://docs.medusajs.com/advanced-development/workflows/add-workflow-hook).
Learn more in [this documentation](https://docs.medusajs.com/learn/fundamentals/workflows/workflow-hooks).
## Example
@@ -5,9 +5,9 @@ sidebar_label: createStep
import { TypeList } from "docs-ui"
# createStep - Workflows API Reference
# createStep - Workflows SDK Reference
This documentation provides a reference to the `createStep` . It belongs to the `@medusajs/framework/workflows-sdk` package.
This documentation provides a reference to the `createStep` . It belongs to the Workflows SDK.
This function creates a [StepFunction](../../types/workflows.StepFunction/page.mdx) that can be used as a step in a workflow constructed by the [createWorkflow](../workflows.createWorkflow/page.mdx) function.
@@ -5,9 +5,9 @@ sidebar_label: createWorkflow
import { TypeList } from "docs-ui"
# createWorkflow - Workflows API Reference
# createWorkflow - Workflows SDK Reference
This documentation provides a reference to the `createWorkflow` . It belongs to the `@medusajs/framework/workflows-sdk` package.
This documentation provides a reference to the `createWorkflow` . It belongs to the Workflows SDK.
This function creates a workflow with the provided name and a constructor function.
The constructor function builds the workflow from steps created by the [createStep](../workflows.createStep/page.mdx) function.
@@ -21,7 +21,7 @@ import {
createWorkflow,
WorkflowResponse
} from "@medusajs/framework/workflows-sdk"
import { MedusaRequest, MedusaResponse } from "@medusajs/medusa"
import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
import {
createProductStep,
getProductStep,
@@ -5,9 +5,9 @@ sidebar_label: parallelize
import { TypeList } from "docs-ui"
# parallelize - Workflows API Reference
# parallelize - Workflows SDK Reference
This documentation provides a reference to the `parallelize` . It belongs to the `@medusajs/framework/workflows-sdk` package.
This documentation provides a reference to the `parallelize` . It belongs to the Workflows SDK.
This function is used to run multiple steps in parallel. The result of each step will be returned as part of the result array.
@@ -5,9 +5,9 @@ sidebar_label: transform
import { TypeList } from "docs-ui"
# transform - Workflows API Reference
# transform - Workflows SDK Reference
This documentation provides a reference to the `transform` . It belongs to the `@medusajs/framework/workflows-sdk` package.
This documentation provides a reference to the `transform` . It belongs to the Workflows SDK.
This function transforms the output of other utility functions.
@@ -1,24 +0,0 @@
---
slug: /references/workflows/when
sidebar_label: when
---
import { TypeList } from "docs-ui"
# when - Workflows API Reference
This documentation provides a reference to the `when` . It belongs to the `@medusajs/framework/workflows-sdk` package.
## Type Parameters
<TypeList types={[{"name":"T","type":"`object` \\| [WorkflowData](../../types/workflows.WorkflowData/page.mdx)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"Then","type":"`Function`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="when"/>
## Parameters
<TypeList types={[{"name":"values","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"condition","type":"ConditionFunction&#60;T&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="when"/>
## Returns
<TypeList types={[{"name":"then","type":"`ThenFunc`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="when"/>
<TypeList types={[{"name":"then","type":"`ThenFunc`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="when"/>