docs: update imports and package names across docs (#9375)

* docs: update imports and package names across docs
+ reference configs

* generate files

* fix import

* change preview to rc
This commit is contained in:
Shahed Nasser
2024-10-01 11:03:42 +02:00
committed by GitHub
parent c726ed54f5
commit 2e16949979
196 changed files with 1379 additions and 1491 deletions
@@ -3938,9 +3938,9 @@ Learn more in the [Remote Link documentation.](https://docs.medusajs.com/v2/adva
#### Example
```ts
import { createWorkflow } from "@medusajs/workflows-sdk"
import { createWorkflow } from "@medusajs/framework/workflows-sdk"
import { createRemoteLinkStep } from "@medusajs/core-flows"
import { Modules } from "@medusajs/utils"
import { Modules } from "@medusajs/framework/utils"
const helloWorldWorkflow = createWorkflow("hello-world", () => {
createRemoteLinkStep([
@@ -3975,13 +3975,13 @@ Learn more in the [Remote Link documentation.](https://docs.medusajs.com/v2/adva
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
dismissRemoteLinkStep
} from "@medusajs/core-flows"
import {
Modules
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
const helloWorldWorkflow = createWorkflow(
"hello-world",
@@ -4015,7 +4015,7 @@ Emit an event.
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
emitEventStep
} from "@medusajs/core-flows"
@@ -4048,13 +4048,13 @@ Learn more in the [Remote Link documentation](https://docs.medusajs.com/v2/advan
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
removeRemoteLinkStep
} from "@medusajs/core-flows"
import {
Modules
} from "@medusajs/utils"
} from "@medusajs/framework/utils"
const helloWorldWorkflow = createWorkflow(
"hello-world",
@@ -4099,7 +4099,7 @@ To retrieve a list of records of a data model:
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
useRemoteQueryStep
} from "@medusajs/core-flows"
@@ -4123,7 +4123,7 @@ To retrieve a single item instead of a an array:
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
useRemoteQueryStep
} from "@medusajs/core-flows"
@@ -4153,7 +4153,7 @@ To throw an error if a record isn't found matching the specified ID:
```ts
import {
createWorkflow
} from "@medusajs/workflows-sdk"
} from "@medusajs/framework/workflows-sdk"
import {
useRemoteQueryStep
} from "@medusajs/core-flows"
@@ -6,7 +6,7 @@ import { TypeList } from "docs-ui"
# Workflows API Reference
This section of the documentation provides a reference to the utility functions of the `@medusajs/workflows-sdk` package.
This section of the documentation provides a reference to the utility functions of the `@medusajs/framework/workflows-sdk` package.
## Functions