+You can then execute the workflow in your custom API routes, scheduled jobs, or subscribers:
-```ts title="src/api/store/custom/route.ts"
-import { MedusaRequest, MedusaResponse } from "@medusajs/framework/http"
-import { Modules } from "@medusajs/framework/utils"
+
+
+
+```ts title="src/api/workflow/route.ts" highlights={[["11"], ["12"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports"
+import type {
+ MedusaRequest,
+ MedusaResponse,
+} from "@medusajs/framework/http"
+import { createUserWorkflow } from "../../workflows/create-user"
export async function GET(
req: MedusaRequest,
res: MedusaResponse
-): Promise {
- const userModuleService = req.scope.resolve(
- Modules.USER
- )
-
- res.json({
- users: await userModuleService.listUsers(),
- })
+) {
+ const { result } = await createUserWorkflow(req.scope)
+ .run()
+
+ res.send(result)
}
```
-
+
+
+```ts title="src/subscribers/user-created.ts" highlights={[["11"], ["12"]]} collapsibleLines="1-6" expandButtonLabel="Show Imports"
+import {
+ type SubscriberConfig,
+ type SubscriberArgs,
+} from "@medusajs/framework"
+import { createUserWorkflow } from "../workflows/create-user"
+
+export default async function handleUserCreated({
+ event: { data },
+ container,
+}: SubscriberArgs<{ id: string }>) {
+ const { result } = await createUserWorkflow(container)
+ .run()
+
+ console.log(result)
+}
-```ts title="src/subscribers/custom-handler.ts"
-import { SubscriberArgs } from "@medusajs/framework"
-import { Modules } from "@medusajs/framework/utils"
+export const config: SubscriberConfig = {
+ event: "user.created",
+}
+```
-export default async function subscriberHandler({ container }: SubscriberArgs) {
- const userModuleService = container.resolve(
- Modules.USER
- )
+
+
+
+```ts title="src/jobs/run-daily.ts" highlights={[["7"], ["8"]]}
+import { MedusaContainer } from "@medusajs/framework/types"
+import { createUserWorkflow } from "../workflows/create-user"
+
+export default async function myCustomJob(
+ container: MedusaContainer
+) {
+ const { result } = await createUserWorkflow(container)
+ .run()
+
+ console.log(result)
+}
- const users = await userModuleService.listUsers()
+export const config = {
+ name: "run-once-a-day",
+ schedule: `0 0 * * *`,
}
```
----
-
-## Features
-
-### User Management
-
-Manage and store your users through Create, Read, Update, and Delete (CRUD) operations:
+Learn more about workflows in [this documentation](!docs!/learn/fundamentals/workflows).
-```ts
-const user = await userModuleService.createUsers({
- email: "user@example.com",
- first_name: "John",
- last_name: "Smith",
-})
-```
-
-### Invite Users
-
-Invite users to join your store and manage those invites, with expiry and revalidation features.
+---
-```ts
-const invite = await userModuleService.createInvites({
- email: "user2@example.com",
-})
+## Configure User Module
-// refresh token later
-await userModuleService.refreshInviteTokens([invite.id])
-```
+The User Module accepts options for further configurations. Refer to [this documentation](./module-options/page.mdx) for details on the module's options.
---
-## Configure User Module
-
-Refer to [this documentation](./module-options/page.mdx) for details on the module's options.
+
\ No newline at end of file
diff --git a/www/apps/resources/app/nextjs-starter/guides/customize-stripe/page.mdx b/www/apps/resources/app/nextjs-starter/guides/customize-stripe/page.mdx
index 97aea7900d6ec..7fcca61066ce1 100644
--- a/www/apps/resources/app/nextjs-starter/guides/customize-stripe/page.mdx
+++ b/www/apps/resources/app/nextjs-starter/guides/customize-stripe/page.mdx
@@ -1,3 +1,9 @@
+---
+tags:
+ - storefront
+ - payment
+---
+
import { Prerequisites } from "docs-ui"
export const ogImage = "https://res.cloudinary.com/dza7lstvk/image/upload/v1734007558/Medusa%20Resources/integrations-stripe_qfnwtf.jpg"
diff --git a/www/apps/resources/app/storefront-development/publishable-api-keys/page.mdx b/www/apps/resources/app/storefront-development/publishable-api-keys/page.mdx
index 58085b425afce..38fe011c02fb7 100644
--- a/www/apps/resources/app/storefront-development/publishable-api-keys/page.mdx
+++ b/www/apps/resources/app/storefront-development/publishable-api-keys/page.mdx
@@ -3,6 +3,7 @@ tags:
- publishable api key
- api key
- storefront
+ - sales channel
---
export const metadata = {
diff --git a/www/apps/resources/components/CommerceModuleSections/index.tsx b/www/apps/resources/components/CommerceModuleSections/index.tsx
new file mode 100644
index 0000000000000..461d5e29ea719
--- /dev/null
+++ b/www/apps/resources/components/CommerceModuleSections/index.tsx
@@ -0,0 +1,95 @@
+"use client"
+
+import { H2, Hr, useChildDocs } from "docs-ui"
+import React, { useMemo } from "react"
+
+type CommerceModuleSectionsProps = {
+ name: string
+}
+
+export const CommerceModuleSections = ({
+ name,
+}: CommerceModuleSectionsProps) => {
+ const components: (JSX.Element | JSX.Element[])[] = []
+ const { items: workflowItems, component: workflowsComponent } = useChildDocs({
+ showItems: ["Workflows"],
+ titleLevel: 3,
+ itemsPerRow: 2,
+ })
+ const { items: stepItems, component: stepsComponent } = useChildDocs({
+ showItems: ["Steps"],
+ titleLevel: 3,
+ itemsPerRow: 2,
+ })
+
+ const hideWorkflowsSection = useMemo(() => {
+ return !workflowItems?.default.length && !stepItems?.default.length
+ }, [workflowItems, stepItems])
+
+ const { items: serverGuideItems, component: serverGuidesComponent } =
+ useChildDocs({
+ showItems: ["Server Guides"],
+ itemsPerRow: 2,
+ })
+ if (serverGuideItems?.default.length) {
+ components.push(serverGuidesComponent)
+ }
+ const { items: storefrontGuideItems, component: storefrontGuidesComponent } =
+ useChildDocs({
+ showItems: ["Storefront Guides"],
+ itemsPerRow: 2,
+ })
+ if (storefrontGuideItems?.default.length) {
+ components.push(storefrontGuidesComponent)
+ }
+ const { items: adminGuideItems, component: adminGuidesComponent } =
+ useChildDocs({
+ showItems: ["Admin Guides"],
+ itemsPerRow: 2,
+ })
+ if (adminGuideItems?.default.length) {
+ components.push(adminGuidesComponent)
+ }
+ const { items: userGuideItems, component: userGuidesComponent } =
+ useChildDocs({
+ showItems: ["User Guides"],
+ itemsPerRow: 2,
+ })
+ if (userGuideItems?.default.length) {
+ components.push(userGuidesComponent)
+ }
+ const { items: referenceItems, component: referencesComponent } =
+ useChildDocs({
+ showItems: ["References"],
+ itemsPerRow: 2,
+ })
+ if (referenceItems?.default.length) {
+ components.push(referencesComponent)
+ }
+
+ return (
+ <>
+ {!hideWorkflowsSection && (
+ <>
+ Medusa Workflows and Steps
+
+ Medusa provides the following workflows and steps that use the{" "}
+ {name} Module. You can use these workflows and steps in your
+ customizations:
+
+ {workflowsComponent}
+ {stepsComponent}
+ >
+ )}
+
+ {components.map((component, i) => (
+
+ <>
+ {i !== 0 || !hideWorkflowsSection ?
: null}
+ {component}
+ >
+
+ ))}
+ >
+ )
+}
diff --git a/www/apps/resources/components/MDXComponents/index.tsx b/www/apps/resources/components/MDXComponents/index.tsx
index 03d07a1cc69db..2da3e8888189c 100644
--- a/www/apps/resources/components/MDXComponents/index.tsx
+++ b/www/apps/resources/components/MDXComponents/index.tsx
@@ -5,12 +5,14 @@ import {
TypeList,
WorkflowDiagram,
} from "docs-ui"
+import { CommerceModuleSections } from "../CommerceModuleSections"
const MDXComponents: MDXComponentsType = {
...UiMdxComponents,
a: Link,
TypeList,
WorkflowDiagram,
+ CommerceModuleSections,
}
export default MDXComponents
diff --git a/www/apps/resources/generated/edit-dates.mjs b/www/apps/resources/generated/edit-dates.mjs
index fa08c24c1c7dd..a1d907577b574 100644
--- a/www/apps/resources/generated/edit-dates.mjs
+++ b/www/apps/resources/generated/edit-dates.mjs
@@ -4,23 +4,20 @@ export const generatedEditDates = {
"app/commerce-modules/auth/authentication-route/page.mdx": "2024-09-05T12:06:38.155Z",
"app/commerce-modules/auth/examples/page.mdx": "2024-10-15T15:02:13.794Z",
"app/commerce-modules/auth/module-options/page.mdx": "2024-10-15T12:52:08.930Z",
- "app/commerce-modules/auth/page.mdx": "2024-12-09T14:46:55.446Z",
+ "app/commerce-modules/auth/page.mdx": "2024-12-25T15:40:37.154Z",
"app/commerce-modules/cart/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/cart/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/cart/concepts/page.mdx": "2024-10-08T07:49:03.737Z",
- "app/commerce-modules/cart/examples/page.mdx": "2024-10-15T14:59:11.331Z",
"app/commerce-modules/cart/promotions/page.mdx": "2024-10-08T07:54:31.120Z",
"app/commerce-modules/cart/tax-lines/page.mdx": "2024-10-08T07:57:19.168Z",
- "app/commerce-modules/cart/page.mdx": "2024-12-09T14:47:07.204Z",
+ "app/commerce-modules/cart/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/currency/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/currency/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/currency/examples/page.mdx": "2024-10-15T14:59:18.466Z",
- "app/commerce-modules/currency/page.mdx": "2024-12-09T14:47:12.300Z",
+ "app/commerce-modules/currency/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/customer/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/customer/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/customer/customer-accounts/page.mdx": "2024-10-08T12:20:44.769Z",
- "app/commerce-modules/customer/examples/page.mdx": "2024-10-15T14:59:26.644Z",
- "app/commerce-modules/customer/page.mdx": "2024-12-09T14:47:17.248Z",
+ "app/commerce-modules/customer/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/fulfillment/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/fulfillment/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/fulfillment/concepts/page.mdx": "2024-06-19T13:02:16+00:00",
@@ -28,13 +25,12 @@ export const generatedEditDates = {
"app/commerce-modules/fulfillment/item-fulfillment/page.mdx": "2024-10-08T14:38:15.496Z",
"app/commerce-modules/fulfillment/module-options/page.mdx": "2024-10-15T12:51:56.118Z",
"app/commerce-modules/fulfillment/shipping-option/page.mdx": "2024-10-08T14:36:02.660Z",
- "app/commerce-modules/fulfillment/page.mdx": "2024-12-09T14:47:23.482Z",
+ "app/commerce-modules/fulfillment/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/inventory/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/inventory/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/inventory/concepts/page.mdx": "2024-10-08T15:11:27.634Z",
- "app/commerce-modules/inventory/examples/page.mdx": "2024-10-15T14:59:45.389Z",
"app/commerce-modules/inventory/inventory-in-flows/page.mdx": "2024-10-08T15:14:07.327Z",
- "app/commerce-modules/inventory/page.mdx": "2024-12-09T14:47:28.150Z",
+ "app/commerce-modules/inventory/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/order/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/order/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/order/claim/page.mdx": "2024-10-09T10:11:12.090Z",
@@ -45,10 +41,9 @@ export const generatedEditDates = {
"app/commerce-modules/order/return/page.mdx": "2024-10-09T10:19:40.731Z",
"app/commerce-modules/order/tax-lines/page.mdx": "2024-10-09T10:22:49.335Z",
"app/commerce-modules/order/transactions/page.mdx": "2024-10-09T10:23:36.485Z",
- "app/commerce-modules/order/page.mdx": "2024-12-09T14:47:32.415Z",
+ "app/commerce-modules/order/page.mdx": "2024-12-25T15:55:02.851Z",
"app/commerce-modules/payment/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/payment/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/payment/examples/page.mdx": "2024-10-15T14:59:55.208Z",
"app/commerce-modules/payment/module-options/page.mdx": "2024-10-15T12:51:40.574Z",
"app/commerce-modules/payment/payment/page.mdx": "2024-10-09T10:59:08.463Z",
"app/commerce-modules/payment/payment-collection/page.mdx": "2024-10-09T10:56:49.510Z",
@@ -57,61 +52,52 @@ export const generatedEditDates = {
"app/commerce-modules/payment/payment-provider/page.mdx": "2024-10-09T11:07:27.269Z",
"app/commerce-modules/payment/payment-session/page.mdx": "2024-10-09T10:58:00.960Z",
"app/commerce-modules/payment/webhook-events/page.mdx": "2024-11-19T11:45:02.167Z",
- "app/commerce-modules/payment/page.mdx": "2024-12-09T14:47:57.842Z",
+ "app/commerce-modules/payment/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/pricing/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/pricing/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/pricing/concepts/page.mdx": "2024-10-09T13:37:25.678Z",
- "app/commerce-modules/pricing/examples/page.mdx": "2024-12-09T13:04:57.713Z",
"app/commerce-modules/pricing/price-calculation/page.mdx": "2024-10-09T13:43:14.038Z",
"app/commerce-modules/pricing/price-rules/page.mdx": "2024-10-09T13:38:47.112Z",
"app/commerce-modules/pricing/tax-inclusive-pricing/page.mdx": "2024-10-09T13:48:23.261Z",
- "app/commerce-modules/pricing/page.mdx": "2024-12-09T14:48:02.172Z",
+ "app/commerce-modules/pricing/page.mdx": "2024-12-25T15:55:02.851Z",
"app/commerce-modules/product/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/product/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/product/examples/page.mdx": "2024-10-09T13:59:32.887Z",
- "app/commerce-modules/product/guides/price/page.mdx": "2024-12-19T16:37:40.491Z",
- "app/commerce-modules/product/guides/price-with-taxes/page.mdx": "2024-12-19T16:37:48.597Z",
- "app/commerce-modules/product/page.mdx": "2024-12-09T14:48:26.091Z",
+ "app/commerce-modules/product/guides/price/page.mdx": "2024-12-25T15:10:37.730Z",
+ "app/commerce-modules/product/guides/price-with-taxes/page.mdx": "2024-12-25T15:10:40.879Z",
+ "app/commerce-modules/product/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/promotion/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/promotion/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/promotion/actions/page.mdx": "2024-10-09T14:49:01.645Z",
"app/commerce-modules/promotion/application-method/page.mdx": "2024-06-26T07:55:59+00:00",
"app/commerce-modules/promotion/campaign/page.mdx": "2024-05-29T11:08:06+00:00",
"app/commerce-modules/promotion/concepts/page.mdx": "2024-10-09T14:50:50.255Z",
- "app/commerce-modules/promotion/examples/page.mdx": "2024-10-09T14:46:47.191Z",
- "app/commerce-modules/promotion/page.mdx": "2024-12-09T14:48:30.816Z",
+ "app/commerce-modules/promotion/page.mdx": "2024-12-25T15:55:02.850Z",
"app/commerce-modules/region/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/region/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/region/examples/page.mdx": "2024-10-15T15:00:24.388Z",
- "app/commerce-modules/region/page.mdx": "2024-12-09T14:48:34.729Z",
+ "app/commerce-modules/region/page.mdx": "2024-12-25T15:55:02.851Z",
"app/commerce-modules/sales-channel/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/sales-channel/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/sales-channel/examples/page.mdx": "2024-10-15T15:00:33.322Z",
"app/commerce-modules/sales-channel/publishable-api-keys/page.mdx": "2024-10-15T14:21:38.353Z",
- "app/commerce-modules/sales-channel/page.mdx": "2024-12-09T14:48:38.646Z",
+ "app/commerce-modules/sales-channel/page.mdx": "2024-12-25T15:55:17.802Z",
"app/commerce-modules/stock-location/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/stock-location/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/stock-location/concepts/page.mdx": "2024-10-15T14:32:21.875Z",
- "app/commerce-modules/stock-location/examples/page.mdx": "2024-10-15T15:00:41.265Z",
- "app/commerce-modules/stock-location/page.mdx": "2024-12-09T14:48:42.516Z",
+ "app/commerce-modules/stock-location/page.mdx": "2024-12-25T16:09:26.781Z",
"app/commerce-modules/store/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/store/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/store/examples/page.mdx": "2024-10-15T15:00:47.283Z",
- "app/commerce-modules/store/page.mdx": "2024-12-09T14:48:46.363Z",
+ "app/commerce-modules/store/page.mdx": "2024-12-25T16:09:12.124Z",
"app/commerce-modules/tax/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/tax/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/tax/examples/page.mdx": "2024-10-15T15:00:52.899Z",
"app/commerce-modules/tax/module-options/page.mdx": "2024-10-15T14:35:46.117Z",
"app/commerce-modules/tax/tax-calculation-with-provider/page.mdx": "2024-10-15T14:43:00.700Z",
"app/commerce-modules/tax/tax-rates-and-rules/page.mdx": "2024-10-15T14:38:06.889Z",
"app/commerce-modules/tax/tax-region/page.mdx": "2024-10-15T14:36:47.028Z",
- "app/commerce-modules/tax/page.mdx": "2024-12-09T14:48:50.327Z",
+ "app/commerce-modules/tax/page.mdx": "2024-12-25T16:22:51.953Z",
"app/commerce-modules/user/_events/_events-table/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/user/_events/page.mdx": "2024-07-03T19:27:13+03:00",
- "app/commerce-modules/user/examples/page.mdx": "2024-10-15T15:00:59.626Z",
"app/commerce-modules/user/module-options/page.mdx": "2024-09-30T08:43:53.171Z",
"app/commerce-modules/user/user-creation-flows/page.mdx": "2024-10-15T14:51:37.311Z",
- "app/commerce-modules/user/page.mdx": "2024-12-09T14:48:54.225Z",
+ "app/commerce-modules/user/page.mdx": "2024-12-25T16:24:26.837Z",
"app/commerce-modules/page.mdx": "2024-12-23T14:38:21.064Z",
"app/contribution-guidelines/docs/page.mdx": "2024-12-12T11:06:12.250Z",
"app/create-medusa-app/page.mdx": "2024-08-05T11:10:55+03:00",
@@ -209,11 +195,10 @@ export const generatedEditDates = {
"app/commerce-modules/auth/auth-flows/page.mdx": "2024-09-05T08:50:11.671Z",
"app/commerce-modules/auth/_events/page.mdx": "2024-07-03T19:27:13+03:00",
"app/commerce-modules/auth/auth-identity-and-actor-types/page.mdx": "2024-12-09T13:04:01.129Z",
- "app/commerce-modules/api-key/page.mdx": "2024-12-09T14:47:01.509Z",
- "app/commerce-modules/auth/create-actor-type/page.mdx": "2024-12-09T15:32:07.594Z",
+ "app/commerce-modules/api-key/page.mdx": "2024-12-25T15:55:02.846Z",
+ "app/commerce-modules/auth/create-actor-type/page.mdx": "2024-12-25T13:26:27.176Z",
"app/architectural-modules/page.mdx": "2024-12-11T10:33:53.064Z",
"app/architectural-modules/workflow-engine/redis/page.mdx": "2024-10-15T12:50:59.507Z",
- "app/commerce-modules/api-key/examples/page.mdx": "2024-10-15T14:58:58.994Z",
"app/architectural-modules/notification/sendgrid/page.mdx": "2024-10-15T12:51:25.569Z",
"app/commerce-modules/api-key/concepts/page.mdx": "2024-10-07T13:59:37.529Z",
"app/architectural-modules/workflow-engine/page.mdx": "2024-05-28T13:25:03+03:00",
@@ -886,7 +871,7 @@ export const generatedEditDates = {
"references/auth/IAuthModuleService/methods/auth.IAuthModuleService.authenticate/page.mdx": "2024-12-10T14:54:57.312Z",
"references/auth/IAuthModuleService/methods/auth.IAuthModuleService.validateCallback/page.mdx": "2024-12-10T14:54:57.318Z",
"references/auth/interfaces/auth.AuthenticationResponse/page.mdx": "2024-12-09T13:21:36.233Z",
- "references/auth_provider/classes/auth_provider.AbstractAuthModuleProvider/page.mdx": "2024-12-09T13:21:36.205Z",
+ "references/auth_provider/classes/auth_provider.AbstractAuthModuleProvider/page.mdx": "2024-12-25T13:27:05.376Z",
"references/core_flows/Invite/Workflows_Invite/functions/core_flows.Invite.Workflows_Invite.refreshInviteTokensWorkflow/page.mdx": "2024-12-25T08:43:13.811Z",
"references/types/CommonTypes/types/types.CommonTypes.BatchMethodResponse/page.mdx": "2024-12-09T13:21:32.849Z",
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminAddReturnShipping/page.mdx": "2024-12-09T13:21:34.545Z",
@@ -986,7 +971,7 @@ export const generatedEditDates = {
"references/order/IOrderModuleService/methods/order.IOrderModuleService.updateOrderChangeActions/page.mdx": "2024-12-23T12:30:30.337Z",
"references/types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction/page.mdx": "2024-12-23T12:30:29.466Z",
"references/types/types.CommonTypes/page.mdx": "2024-11-25T17:49:25.351Z",
- "app/storefront-development/publishable-api-keys/page.mdx": "2024-12-19T16:35:56.322Z",
+ "app/storefront-development/publishable-api-keys/page.mdx": "2024-12-25T16:00:18.474Z",
"references/api_key/types/api_key.ExpandScalar/page.mdx": "2024-09-17T00:10:59.563Z",
"references/api_key/types/api_key.FilterQuery/page.mdx": "2024-11-27T16:33:40.706Z",
"references/api_key/types/api_key.FilterValue/page.mdx": "2024-09-17T00:10:59.571Z",
@@ -2146,12 +2131,12 @@ export const generatedEditDates = {
"app/admin-components/layouts/single-column/page.mdx": "2024-10-07T11:16:06.435Z",
"app/admin-components/layouts/two-column/page.mdx": "2024-10-07T11:16:10.092Z",
"app/admin-components/components/forms/page.mdx": "2024-10-09T12:48:04.229Z",
- "app/commerce-modules/auth/reset-password/page.mdx": "2024-11-27T13:33:55.940Z",
+ "app/commerce-modules/auth/reset-password/page.mdx": "2024-12-25T13:26:32.595Z",
"app/storefront-development/customers/reset-password/page.mdx": "2024-12-19T16:32:00.724Z",
"app/commerce-modules/api-key/links-to-other-modules/page.mdx": "2024-12-24T14:36:06.109Z",
- "app/commerce-modules/cart/extend/page.mdx": "2024-12-11T09:05:37.041Z",
+ "app/commerce-modules/cart/extend/page.mdx": "2024-12-25T12:48:59.149Z",
"app/commerce-modules/cart/links-to-other-modules/page.mdx": "2024-12-24T14:46:49.847Z",
- "app/commerce-modules/customer/extend/page.mdx": "2024-12-16T14:11:47.517Z",
+ "app/commerce-modules/customer/extend/page.mdx": "2024-12-25T15:54:37.789Z",
"app/commerce-modules/fulfillment/links-to-other-modules/page.mdx": "2024-12-24T14:49:54.535Z",
"app/commerce-modules/inventory/links-to-other-modules/page.mdx": "2024-12-24T14:50:25.574Z",
"app/commerce-modules/pricing/links-to-other-modules/page.mdx": "2024-12-24T14:53:39.198Z",
@@ -5632,7 +5617,7 @@ export const generatedEditDates = {
"app/recipes/commerce-automation/restock-notification/page.mdx": "2024-12-11T08:47:27.471Z",
"app/troubleshooting/workflow-errors/page.mdx": "2024-12-11T08:44:36.598Z",
"app/integrations/guides/shipstation/page.mdx": "2024-12-23T07:48:47.719Z",
- "app/nextjs-starter/guides/customize-stripe/page.mdx": "2024-12-12T12:46:33.999Z",
+ "app/nextjs-starter/guides/customize-stripe/page.mdx": "2024-12-25T14:48:55.877Z",
"references/core_flows/Cart/Workflows_Cart/functions/core_flows.Cart.Workflows_Cart.listShippingOptionsForCartWithPricingWorkflow/page.mdx": "2024-12-25T08:43:13.451Z",
"references/core_flows/Cart/Workflows_Cart/variables/core_flows.Cart.Workflows_Cart.listShippingOptionsForCartWithPricingWorkflowId/page.mdx": "2024-12-17T16:57:22.044Z",
"references/core_flows/Fulfillment/Steps_Fulfillment/functions/core_flows.Fulfillment.Steps_Fulfillment.calculateShippingOptionsPricesStep/page.mdx": "2024-12-25T08:43:13.630Z",
diff --git a/www/apps/resources/generated/files-map.mjs b/www/apps/resources/generated/files-map.mjs
index 840f7219eb4db..f925a51426636 100644
--- a/www/apps/resources/generated/files-map.mjs
+++ b/www/apps/resources/generated/files-map.mjs
@@ -127,10 +127,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/api-key/concepts/page.mdx",
"pathname": "/commerce-modules/api-key/concepts"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/api-key/examples/page.mdx",
- "pathname": "/commerce-modules/api-key/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/api-key/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/api-key/links-to-other-modules"
@@ -179,10 +175,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/auth/events/page.mdx",
"pathname": "/commerce-modules/auth/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/auth/examples/page.mdx",
- "pathname": "/commerce-modules/auth/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/auth/module-options/page.mdx",
"pathname": "/commerce-modules/auth/module-options"
@@ -203,10 +195,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/cart/events/page.mdx",
"pathname": "/commerce-modules/cart/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/cart/examples/page.mdx",
- "pathname": "/commerce-modules/cart/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/cart/extend/page.mdx",
"pathname": "/commerce-modules/cart/extend"
@@ -227,10 +215,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/cart/tax-lines/page.mdx",
"pathname": "/commerce-modules/cart/tax-lines"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/currency/examples/page.mdx",
- "pathname": "/commerce-modules/currency/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/currency/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/currency/links-to-other-modules"
@@ -251,10 +235,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/customer/events/page.mdx",
"pathname": "/commerce-modules/customer/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/customer/examples/page.mdx",
- "pathname": "/commerce-modules/customer/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/customer/extend/page.mdx",
"pathname": "/commerce-modules/customer/extend"
@@ -307,10 +287,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/inventory/concepts/page.mdx",
"pathname": "/commerce-modules/inventory/concepts"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/inventory/examples/page.mdx",
- "pathname": "/commerce-modules/inventory/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/inventory/inventory-in-flows/page.mdx",
"pathname": "/commerce-modules/inventory/inventory-in-flows"
@@ -383,10 +359,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/page.mdx",
"pathname": "/commerce-modules"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/payment/examples/page.mdx",
- "pathname": "/commerce-modules/payment/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/payment/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/payment/links-to-other-modules"
@@ -435,10 +407,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/pricing/concepts/page.mdx",
"pathname": "/commerce-modules/pricing/concepts"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/pricing/examples/page.mdx",
- "pathname": "/commerce-modules/pricing/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/pricing/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/pricing/links-to-other-modules"
@@ -467,10 +435,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/product/events/page.mdx",
"pathname": "/commerce-modules/product/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/product/examples/page.mdx",
- "pathname": "/commerce-modules/product/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/product/extend/page.mdx",
"pathname": "/commerce-modules/product/extend"
@@ -511,10 +475,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/promotion/concepts/page.mdx",
"pathname": "/commerce-modules/promotion/concepts"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/promotion/examples/page.mdx",
- "pathname": "/commerce-modules/promotion/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/promotion/extend/page.mdx",
"pathname": "/commerce-modules/promotion/extend"
@@ -535,10 +495,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/region/events/page.mdx",
"pathname": "/commerce-modules/region/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/region/examples/page.mdx",
- "pathname": "/commerce-modules/region/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/region/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/region/links-to-other-modules"
@@ -555,10 +511,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/sales-channel/events/page.mdx",
"pathname": "/commerce-modules/sales-channel/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/sales-channel/examples/page.mdx",
- "pathname": "/commerce-modules/sales-channel/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/sales-channel/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/sales-channel/links-to-other-modules"
@@ -579,10 +531,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/stock-location/concepts/page.mdx",
"pathname": "/commerce-modules/stock-location/concepts"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/stock-location/examples/page.mdx",
- "pathname": "/commerce-modules/stock-location/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/stock-location/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/stock-location/links-to-other-modules"
@@ -595,10 +543,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/store/admin-widget-zones/page.mdx",
"pathname": "/commerce-modules/store/admin-widget-zones"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/store/examples/page.mdx",
- "pathname": "/commerce-modules/store/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/store/links-to-other-modules/page.mdx",
"pathname": "/commerce-modules/store/links-to-other-modules"
@@ -611,10 +555,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/tax/admin-widget-zones/page.mdx",
"pathname": "/commerce-modules/tax/admin-widget-zones"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/tax/examples/page.mdx",
- "pathname": "/commerce-modules/tax/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/tax/module-options/page.mdx",
"pathname": "/commerce-modules/tax/module-options"
@@ -643,10 +583,6 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/commerce-modules/user/events/page.mdx",
"pathname": "/commerce-modules/user/events"
},
- {
- "filePath": "/www/apps/resources/app/commerce-modules/user/examples/page.mdx",
- "pathname": "/commerce-modules/user/examples"
- },
{
"filePath": "/www/apps/resources/app/commerce-modules/user/module-options/page.mdx",
"pathname": "/commerce-modules/user/module-options"
diff --git a/www/apps/resources/generated/sidebar.mjs b/www/apps/resources/generated/sidebar.mjs
index 1c6b6b6a9d27a..63d27ae864a44 100644
--- a/www/apps/resources/generated/sidebar.mjs
+++ b/www/apps/resources/generated/sidebar.mjs
@@ -192,18 +192,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/api-key/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -226,8 +222,114 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Storefront Guides",
+ "initialOpen": false,
+ "autogenerate_tags": "storefront+apiKey",
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Use a Publishable API Key in the Storefront",
+ "path": "/storefront-development/publishable-api-keys",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "initialOpen": false,
+ "autogenerate_tags": "workflow+apiKey",
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createApiKeysWorkflow",
+ "path": "/references/medusa-workflows/createApiKeysWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteApiKeysWorkflow",
+ "path": "/references/medusa-workflows/deleteApiKeysWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "revokeApiKeysWorkflow",
+ "path": "/references/medusa-workflows/revokeApiKeysWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateApiKeysWorkflow",
+ "path": "/references/medusa-workflows/updateApiKeysWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "initialOpen": false,
+ "autogenerate_tags": "step+apiKey",
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createApiKeysStep",
+ "path": "/references/medusa-workflows/steps/createApiKeysStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteApiKeysStep",
+ "path": "/references/medusa-workflows/steps/deleteApiKeysStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "revokeApiKeysStep",
+ "path": "/references/medusa-workflows/steps/revokeApiKeysStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateApiKeysStep",
+ "path": "/references/medusa-workflows/steps/updateApiKeysStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -387,18 +489,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/auth/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -437,8 +535,11 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+auth",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
@@ -469,8 +570,138 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+auth",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Log-out Customer in Storefront",
+ "path": "/storefront-development/customers/log-out",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Login Customer in Storefront",
+ "path": "/storefront-development/customers/login",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Register Customer in Storefront",
+ "path": "/storefront-development/customers/register",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Reset Customer Password in Storefront",
+ "path": "/storefront-development/customers/reset-password",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Customer in Storefront",
+ "path": "/storefront-development/customers/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Third-Party or Social Login in Storefront",
+ "path": "/storefront-development/customers/third-party-login",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+auth",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCustomerAccountWorkflow",
+ "path": "/references/medusa-workflows/createCustomerAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeCustomerAccountWorkflow",
+ "path": "/references/medusa-workflows/removeCustomerAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "acceptInviteWorkflow",
+ "path": "/references/medusa-workflows/acceptInviteWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createUserAccountWorkflow",
+ "path": "/references/medusa-workflows/createUserAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeUserAccountWorkflow",
+ "path": "/references/medusa-workflows/removeUserAccountWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+auth",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "setAuthAppMetadataStep",
+ "path": "/references/medusa-workflows/steps/setAuthAppMetadataStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "Providers",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -501,8 +732,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -716,26 +948,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/cart/examples",
- "title": "Examples",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/cart/extend",
- "title": "Extend Module",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -774,76 +994,401 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "References",
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+cart",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/cart/events",
- "title": "Events Reference",
+ "path": "/commerce-modules/cart/extend",
+ "title": "Extend Module",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+cart",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Create Cart Context in Storefront",
+ "path": "/storefront-development/cart/context",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/cart",
- "title": "Main Service Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Cart Module's Main Service Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Methods",
- "autogenerate_path": "/references/cart/ICartModuleService/methods",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/cart/addLineItemAdjustments",
- "title": "addLineItemAdjustments",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/cart/addLineItemTaxLines",
- "title": "addLineItemTaxLines",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/cart/addLineItems",
- "title": "addLineItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/cart/addShippingMethodAdjustments",
- "title": "addShippingMethodAdjustments",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/cart/addShippingMethodTaxLines",
- "title": "addShippingMethodTaxLines",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
+ "type": "ref",
+ "title": "Create Cart in Storefront",
+ "path": "/storefront-development/cart/create",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Manage Cart's Items in Storefront",
+ "path": "/storefront-development/cart/manage-items",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Cart in Storefront",
+ "path": "/storefront-development/cart/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Update Cart in Storefront",
+ "path": "/storefront-development/cart/update",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 2: Enter Address",
+ "path": "/storefront-development/checkout/address",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 5: Complete Cart",
+ "path": "/storefront-development/checkout/complete-cart",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 1: Enter Email",
+ "path": "/storefront-development/checkout/email",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 4: Choose Payment Provider",
+ "path": "/storefront-development/checkout/payment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Payment with Stripe in React Storefront",
+ "path": "/storefront-development/checkout/payment/stripe",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 3: Choose Shipping Method",
+ "path": "/storefront-development/checkout/shipping",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+cart",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addShippingMethodToCartWorkflow",
+ "path": "/references/medusa-workflows/addShippingMethodToCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addToCartWorkflow",
+ "path": "/references/medusa-workflows/addToCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "transferCartCustomerWorkflow",
+ "path": "/references/medusa-workflows/transferCartCustomerWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartPromotionsWorkflow",
+ "path": "/references/medusa-workflows/updateCartPromotionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartWorkflow",
+ "path": "/references/medusa-workflows/updateCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateLineItemInCartWorkflow",
+ "path": "/references/medusa-workflows/updateLineItemInCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateTaxLinesWorkflow",
+ "path": "/references/medusa-workflows/updateTaxLinesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteLineItemsWorkflow",
+ "path": "/references/medusa-workflows/deleteLineItemsWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+cart",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addShippingMethodToCartStep",
+ "path": "/references/medusa-workflows/steps/addShippingMethodToCartStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartsStep",
+ "path": "/references/medusa-workflows/steps/createCartsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createLineItemAdjustmentsStep",
+ "path": "/references/medusa-workflows/steps/createLineItemAdjustmentsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createLineItemsStep",
+ "path": "/references/medusa-workflows/steps/createLineItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingMethodAdjustmentsStep",
+ "path": "/references/medusa-workflows/steps/createShippingMethodAdjustmentsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "getLineItemActionsStep",
+ "path": "/references/medusa-workflows/steps/getLineItemActionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeLineItemAdjustmentsStep",
+ "path": "/references/medusa-workflows/steps/removeLineItemAdjustmentsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeShippingMethodAdjustmentsStep",
+ "path": "/references/medusa-workflows/steps/removeShippingMethodAdjustmentsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeShippingMethodFromCartStep",
+ "path": "/references/medusa-workflows/steps/removeShippingMethodFromCartStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "setTaxLinesForItemsStep",
+ "path": "/references/medusa-workflows/steps/setTaxLinesForItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartsStep",
+ "path": "/references/medusa-workflows/steps/updateCartsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateLineItemsStep",
+ "path": "/references/medusa-workflows/steps/updateLineItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteLineItemsStep",
+ "path": "/references/medusa-workflows/steps/deleteLineItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateLineItemsStepWithSelector",
+ "path": "/references/medusa-workflows/steps/updateLineItemsStepWithSelector",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "References",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/cart/events",
+ "title": "Events Reference",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart",
+ "title": "Main Service Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Cart Module's Main Service Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Methods",
+ "autogenerate_path": "/references/cart/ICartModuleService/methods",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart/addLineItemAdjustments",
+ "title": "addLineItemAdjustments",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart/addLineItemTaxLines",
+ "title": "addLineItemTaxLines",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart/addLineItems",
+ "title": "addLineItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart/addShippingMethodAdjustments",
+ "title": "addShippingMethodAdjustments",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/cart/addShippingMethodTaxLines",
+ "title": "addShippingMethodTaxLines",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
"type": "link",
"path": "/references/cart/addShippingMethods",
"title": "addShippingMethods",
@@ -1317,18 +1862,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/currency/examples",
- "title": "Examples",
- "children": []
- },
- {
+ "type": "separator"
+ },
+ {
"loaded": true,
"isPathHref": true,
"type": "sub-category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -1345,6 +1886,7 @@ export const generatedSidebar = [
"isPathHref": true,
"type": "sub-category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -1353,7 +1895,7 @@ export const generatedSidebar = [
"path": "/references/currency",
"title": "Main Service Reference",
"isChildSidebar": true,
- "childSidebarTitle": "Cart Module's Main Service Reference",
+ "childSidebarTitle": "Currency Module's Main Service Reference",
"children": [
{
"loaded": true,
@@ -1438,26 +1980,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/customer/examples",
- "title": "Examples",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/customer/extend",
- "title": "Extend Module",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -1480,360 +2010,272 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "References",
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+customer",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/customer/events",
- "title": "Events Reference",
+ "path": "/commerce-modules/customer/extend",
+ "title": "Extend Module",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+customer",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Manage Customer Addresses in Storefront",
+ "path": "/storefront-development/customers/addresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/customer/admin-widget-zones",
- "title": "Admin Widget Zones",
+ "type": "ref",
+ "title": "Customer Context in Storefront",
+ "path": "/storefront-development/customers/context",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/customer",
- "title": "Main Service Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Customer Module's Main Service Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Methods",
- "autogenerate_path": "/references/customer/ICustomerModuleService/methods",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/addCustomerToGroup",
- "title": "addCustomerToGroup",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/createCustomerAddresses",
- "title": "createCustomerAddresses",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/createCustomerGroups",
- "title": "createCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/createCustomers",
- "title": "createCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/deleteCustomerAddresses",
- "title": "deleteCustomerAddresses",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/deleteCustomerGroups",
- "title": "deleteCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/deleteCustomers",
- "title": "deleteCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listAndCountCustomerAddresses",
- "title": "listAndCountCustomerAddresses",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listAndCountCustomerGroups",
- "title": "listAndCountCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listAndCountCustomers",
- "title": "listAndCountCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listCustomerAddresses",
- "title": "listCustomerAddresses",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listCustomerGroupCustomers",
- "title": "listCustomerGroupCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listCustomerGroups",
- "title": "listCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/listCustomers",
- "title": "listCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/removeCustomerFromGroup",
- "title": "removeCustomerFromGroup",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/restoreCustomerGroups",
- "title": "restoreCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/restoreCustomers",
- "title": "restoreCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/retrieveCustomer",
- "title": "retrieveCustomer",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/retrieveCustomerGroup",
- "title": "retrieveCustomerGroup",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/softDeleteCustomerGroups",
- "title": "softDeleteCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/softDeleteCustomers",
- "title": "softDeleteCustomers",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/updateCustomerAddresses",
- "title": "updateCustomerAddresses",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/updateCustomerGroups",
- "title": "updateCustomerGroups",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/updateCustomers",
- "title": "updateCustomers",
- "children": []
- }
- ]
- }
- ]
+ "type": "ref",
+ "title": "Log-out Customer in Storefront",
+ "path": "/storefront-development/customers/log-out",
+ "children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/customer/models",
- "title": "Data Models Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Customer Module Data Models Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Data Models",
- "autogenerate_path": "/references/customer_models/variables",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/models/Customer",
- "title": "Customer",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/models/CustomerAddress",
- "title": "CustomerAddress",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/models/CustomerGroup",
- "title": "CustomerGroup",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/customer/models/CustomerGroupCustomer",
- "title": "CustomerGroupCustomer",
- "children": []
- }
- ]
- }
- ]
+ "type": "ref",
+ "title": "Login Customer in Storefront",
+ "path": "/storefront-development/customers/login",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Edit Customer Profile in Storefront",
+ "path": "/storefront-development/customers/profile",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Register Customer in Storefront",
+ "path": "/storefront-development/customers/register",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Reset Customer Password in Storefront",
+ "path": "/storefront-development/customers/reset-password",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Customer in Storefront",
+ "path": "/storefront-development/customers/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Third-Party or Social Login in Storefront",
+ "path": "/storefront-development/customers/third-party-login",
+ "children": []
}
]
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Fulfillment Module",
- "isChildSidebar": true,
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment",
- "title": "Overview",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/module-options",
- "title": "Module Options",
- "children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+customer",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/concepts",
- "title": "Fulfillment Concepts",
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/fulfillment-provider",
- "title": "Fulfillment Provider",
+ "type": "ref",
+ "title": "updateCartWorkflow",
+ "path": "/references/medusa-workflows/updateCartWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/shipping-option",
- "title": "Shipping Option",
+ "type": "ref",
+ "title": "createCustomerAccountWorkflow",
+ "path": "/references/medusa-workflows/createCustomerAccountWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/item-fulfillment",
- "title": "Item Fulfillment",
+ "type": "ref",
+ "title": "createCustomerAddressesWorkflow",
+ "path": "/references/medusa-workflows/createCustomerAddressesWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/fulfillment/links-to-other-modules",
- "title": "Links to Other Modules",
+ "type": "ref",
+ "title": "createCustomersWorkflow",
+ "path": "/references/medusa-workflows/createCustomersWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomerAddressesWorkflow",
+ "path": "/references/medusa-workflows/deleteCustomerAddressesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomersWorkflow",
+ "path": "/references/medusa-workflows/deleteCustomersWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeCustomerAccountWorkflow",
+ "path": "/references/medusa-workflows/removeCustomerAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomerAddressesWorkflow",
+ "path": "/references/medusa-workflows/updateCustomerAddressesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomersWorkflow",
+ "path": "/references/medusa-workflows/updateCustomersWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCustomerGroupsWorkflow",
+ "path": "/references/medusa-workflows/createCustomerGroupsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomerGroupsWorkflow",
+ "path": "/references/medusa-workflows/deleteCustomerGroupsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "linkCustomerGroupsToCustomerWorkflow",
+ "path": "/references/medusa-workflows/linkCustomerGroupsToCustomerWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "linkCustomersToCustomerGroupWorkflow",
+ "path": "/references/medusa-workflows/linkCustomersToCustomerGroupWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomerGroupsWorkflow",
+ "path": "/references/medusa-workflows/updateCustomerGroupsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
"children": []
}
]
@@ -1841,23 +2283,122 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+customer",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/provider",
- "title": "Create Fulfillment Provider Module",
+ "type": "ref",
+ "title": "findOrCreateCustomerStep",
+ "path": "/references/medusa-workflows/steps/findOrCreateCustomerStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/integrations/guides/shipstation",
- "title": "Integrate ShipStation",
+ "type": "ref",
+ "title": "createCustomerAddressesStep",
+ "path": "/references/medusa-workflows/steps/createCustomerAddressesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCustomersStep",
+ "path": "/references/medusa-workflows/steps/createCustomersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomerAddressesStep",
+ "path": "/references/medusa-workflows/steps/deleteCustomerAddressesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomersStep",
+ "path": "/references/medusa-workflows/steps/deleteCustomersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "maybeUnsetDefaultBillingAddressesStep",
+ "path": "/references/medusa-workflows/steps/maybeUnsetDefaultBillingAddressesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "maybeUnsetDefaultShippingAddressesStep",
+ "path": "/references/medusa-workflows/steps/maybeUnsetDefaultShippingAddressesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomerAddressesStep",
+ "path": "/references/medusa-workflows/steps/updateCustomerAddressesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomersStep",
+ "path": "/references/medusa-workflows/steps/updateCustomersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCustomerGroupsStep",
+ "path": "/references/medusa-workflows/steps/createCustomerGroupsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCustomerGroupStep",
+ "path": "/references/medusa-workflows/steps/deleteCustomerGroupStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "linkCustomerGroupsToCustomerStep",
+ "path": "/references/medusa-workflows/steps/linkCustomerGroupsToCustomerStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "linkCustomersToCustomerGroupStep",
+ "path": "/references/medusa-workflows/steps/linkCustomersToCustomerGroupStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCustomerGroupsStep",
+ "path": "/references/medusa-workflows/steps/updateCustomerGroupsStep",
"children": []
}
]
@@ -1865,14 +2406,23 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/fulfillment/admin-widget-zones",
+ "path": "/commerce-modules/customer/events",
+ "title": "Events Reference",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/customer/admin-widget-zones",
"title": "Admin Widget Zones",
"children": []
},
@@ -1880,685 +2430,260 @@ export const generatedSidebar = [
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment",
+ "path": "/references/customer",
"title": "Main Service Reference",
"isChildSidebar": true,
- "childSidebarTitle": "Fulfillment Module's Main Service Reference",
+ "childSidebarTitle": "Customer Module's Main Service Reference",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Methods",
- "autogenerate_path": "/references/fulfillment/IFulfillmentModuleService/methods",
+ "autogenerate_path": "/references/customer/ICustomerModuleService/methods",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/calculateShippingOptionsPrices",
- "title": "calculateShippingOptionsPrices",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/cancelFulfillment",
- "title": "cancelFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createFulfillment",
- "title": "createFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createFulfillmentSets",
- "title": "createFulfillmentSets",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createGeoZones",
- "title": "createGeoZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createReturnFulfillment",
- "title": "createReturnFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createServiceZones",
- "title": "createServiceZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createShippingOptionRules",
- "title": "createShippingOptionRules",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createShippingOptions",
- "title": "createShippingOptions",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/createShippingProfiles",
- "title": "createShippingProfiles",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/deleteFulfillment",
- "title": "deleteFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/deleteFulfillmentSets",
- "title": "deleteFulfillmentSets",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/deleteGeoZones",
- "title": "deleteGeoZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/deleteServiceZones",
- "title": "deleteServiceZones",
+ "path": "/references/customer/addCustomerToGroup",
+ "title": "addCustomerToGroup",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/deleteShippingOptionRules",
- "title": "deleteShippingOptionRules",
+ "path": "/references/customer/createCustomerAddresses",
+ "title": "createCustomerAddresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/deleteShippingOptionTypes",
- "title": "deleteShippingOptionTypes",
+ "path": "/references/customer/createCustomerGroups",
+ "title": "createCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/deleteShippingOptions",
- "title": "deleteShippingOptions",
+ "path": "/references/customer/createCustomers",
+ "title": "createCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/deleteShippingProfiles",
- "title": "deleteShippingProfiles",
+ "path": "/references/customer/deleteCustomerAddresses",
+ "title": "deleteCustomerAddresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountFulfillmentSets",
- "title": "listAndCountFulfillmentSets",
+ "path": "/references/customer/deleteCustomerGroups",
+ "title": "deleteCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountFulfillments",
- "title": "listAndCountFulfillments",
+ "path": "/references/customer/deleteCustomers",
+ "title": "deleteCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountGeoZones",
- "title": "listAndCountGeoZones",
+ "path": "/references/customer/listAndCountCustomerAddresses",
+ "title": "listAndCountCustomerAddresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountServiceZones",
- "title": "listAndCountServiceZones",
+ "path": "/references/customer/listAndCountCustomerGroups",
+ "title": "listAndCountCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountShippingOptionRules",
- "title": "listAndCountShippingOptionRules",
+ "path": "/references/customer/listAndCountCustomers",
+ "title": "listAndCountCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountShippingOptionTypes",
- "title": "listAndCountShippingOptionTypes",
+ "path": "/references/customer/listCustomerAddresses",
+ "title": "listCustomerAddresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountShippingOptions",
- "title": "listAndCountShippingOptions",
+ "path": "/references/customer/listCustomerGroupCustomers",
+ "title": "listCustomerGroupCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listAndCountShippingProfiles",
- "title": "listAndCountShippingProfiles",
+ "path": "/references/customer/listCustomerGroups",
+ "title": "listCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listFulfillmentProviders",
- "title": "listFulfillmentProviders",
+ "path": "/references/customer/listCustomers",
+ "title": "listCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listFulfillmentSets",
- "title": "listFulfillmentSets",
+ "path": "/references/customer/removeCustomerFromGroup",
+ "title": "removeCustomerFromGroup",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listFulfillments",
- "title": "listFulfillments",
+ "path": "/references/customer/restoreCustomerGroups",
+ "title": "restoreCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listGeoZones",
- "title": "listGeoZones",
+ "path": "/references/customer/restoreCustomers",
+ "title": "restoreCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listServiceZones",
- "title": "listServiceZones",
+ "path": "/references/customer/retrieveCustomer",
+ "title": "retrieveCustomer",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listShippingOptionRules",
- "title": "listShippingOptionRules",
+ "path": "/references/customer/retrieveCustomerGroup",
+ "title": "retrieveCustomerGroup",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listShippingOptionTypes",
- "title": "listShippingOptionTypes",
+ "path": "/references/customer/softDeleteCustomerGroups",
+ "title": "softDeleteCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listShippingOptions",
- "title": "listShippingOptions",
+ "path": "/references/customer/softDeleteCustomers",
+ "title": "softDeleteCustomers",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listShippingOptionsForContext",
- "title": "listShippingOptionsForContext",
+ "path": "/references/customer/updateCustomerAddresses",
+ "title": "updateCustomerAddresses",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/listShippingProfiles",
- "title": "listShippingProfiles",
+ "path": "/references/customer/updateCustomerGroups",
+ "title": "updateCustomerGroups",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/restoreFulfillmentSets",
- "title": "restoreFulfillmentSets",
+ "path": "/references/customer/updateCustomers",
+ "title": "updateCustomers",
"children": []
- },
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/customer/models",
+ "title": "Data Models Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Customer Module Data Models Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Data Models",
+ "autogenerate_path": "/references/customer_models/variables",
+ "children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/restoreGeoZones",
- "title": "restoreGeoZones",
+ "path": "/references/customer/models/Customer",
+ "title": "Customer",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/restoreServiceZones",
- "title": "restoreServiceZones",
+ "path": "/references/customer/models/CustomerAddress",
+ "title": "CustomerAddress",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/restoreShippingOptions",
- "title": "restoreShippingOptions",
+ "path": "/references/customer/models/CustomerGroup",
+ "title": "CustomerGroup",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/references/fulfillment/restoreShippingProfiles",
- "title": "restoreShippingProfiles",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveFulfillment",
- "title": "retrieveFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveFulfillmentOptions",
- "title": "retrieveFulfillmentOptions",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveFulfillmentSet",
- "title": "retrieveFulfillmentSet",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveGeoZone",
- "title": "retrieveGeoZone",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveServiceZone",
- "title": "retrieveServiceZone",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveShippingOption",
- "title": "retrieveShippingOption",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveShippingOptionRule",
- "title": "retrieveShippingOptionRule",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveShippingOptionType",
- "title": "retrieveShippingOptionType",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/retrieveShippingProfile",
- "title": "retrieveShippingProfile",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/softDeleteFulfillmentSets",
- "title": "softDeleteFulfillmentSets",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/softDeleteGeoZones",
- "title": "softDeleteGeoZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/softDeleteServiceZones",
- "title": "softDeleteServiceZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/softDeleteShippingOptions",
- "title": "softDeleteShippingOptions",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/softDeleteShippingProfiles",
- "title": "softDeleteShippingProfiles",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateFulfillment",
- "title": "updateFulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateFulfillmentSets",
- "title": "updateFulfillmentSets",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateGeoZones",
- "title": "updateGeoZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateServiceZones",
- "title": "updateServiceZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateShippingOptionRules",
- "title": "updateShippingOptionRules",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateShippingOptions",
- "title": "updateShippingOptions",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/updateShippingProfiles",
- "title": "updateShippingProfiles",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/upsertServiceZones",
- "title": "upsertServiceZones",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/upsertShippingOptions",
- "title": "upsertShippingOptions",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/upsertShippingProfiles",
- "title": "upsertShippingProfiles",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/validateFulfillmentData",
- "title": "validateFulfillmentData",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/validateFulfillmentOption",
- "title": "validateFulfillmentOption",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/validateShippingOption",
- "title": "validateShippingOption",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/validateShippingOptionsForPriceCalculation",
- "title": "validateShippingOptionsForPriceCalculation",
- "children": []
- }
- ]
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models",
- "title": "Data Models Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Fulfillment Module Data Models Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Data Models",
- "hasTitleStyling": true,
- "autogenerate_path": "/references/fulfillment_models/variables",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/Fulfillment",
- "title": "Fulfillment",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/FulfillmentAddress",
- "title": "FulfillmentAddress",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/FulfillmentItem",
- "title": "FulfillmentItem",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/FulfillmentLabel",
- "title": "FulfillmentLabel",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/FulfillmentProvider",
- "title": "FulfillmentProvider",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/FulfillmentSet",
- "title": "FulfillmentSet",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/GeoZone",
- "title": "GeoZone",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/ServiceZone",
- "title": "ServiceZone",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/ShippingOption",
- "title": "ShippingOption",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/ShippingOptionRule",
- "title": "ShippingOptionRule",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/ShippingOptionType",
- "title": "ShippingOptionType",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/fulfillment/models/ShippingProfile",
- "title": "ShippingProfile",
+ "path": "/references/customer/models/CustomerGroupCustomer",
+ "title": "CustomerGroupCustomer",
"children": []
}
]
@@ -2573,14 +2698,14 @@ export const generatedSidebar = [
"loaded": true,
"isPathHref": true,
"type": "category",
- "title": "Inventory Module",
+ "title": "Fulfillment Module",
"isChildSidebar": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory",
+ "path": "/commerce-modules/fulfillment",
"title": "Overview",
"children": []
},
@@ -2588,38 +2713,58 @@ export const generatedSidebar = [
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory/examples",
- "title": "Examples",
+ "path": "/commerce-modules/fulfillment/module-options",
+ "title": "Module Options",
"children": []
},
+ {
+ "type": "separator"
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory/concepts",
- "title": "Inventory Concepts",
+ "path": "/commerce-modules/fulfillment/concepts",
+ "title": "Fulfillment Concepts",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory/inventory-in-flows",
- "title": "Inventory in Flows",
+ "path": "/commerce-modules/fulfillment/fulfillment-provider",
+ "title": "Fulfillment Provider",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory/links-to-other-modules",
- "title": "Links to Modules",
+ "path": "/commerce-modules/fulfillment/shipping-option",
+ "title": "Shipping Option",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/fulfillment/item-fulfillment",
+ "title": "Item Fulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/fulfillment/links-to-other-modules",
+ "title": "Links to Other Modules",
"children": []
}
]
@@ -2627,148 +2772,1753 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "References",
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+fulfillment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
- "path": "/commerce-modules/inventory/admin-widget-zones",
- "title": "Admin Widget Zones",
+ "path": "/references/fulfillment/provider",
+ "title": "Create Fulfillment Provider Module",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next",
- "title": "Main Service Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Inventory Module's Main Service Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Methods",
- "autogenerate_path": "/references/inventory_next/IInventoryService/methods",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/adjustInventory",
- "title": "adjustInventory",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/confirmInventory",
- "title": "confirmInventory",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/createInventoryItems",
- "title": "createInventoryItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/createInventoryLevels",
- "title": "createInventoryLevels",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/createReservationItems",
- "title": "createReservationItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteInventoryItemLevelByLocationId",
- "title": "deleteInventoryItemLevelByLocationId",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteInventoryItems",
- "title": "deleteInventoryItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteInventoryLevel",
- "title": "deleteInventoryLevel",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteInventoryLevels",
- "title": "deleteInventoryLevels",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteReservationItemByLocationId",
- "title": "deleteReservationItemByLocationId",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteReservationItems",
- "title": "deleteReservationItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/deleteReservationItemsByLineItem",
- "title": "deleteReservationItemsByLineItem",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/listAndCountInventoryItems",
- "title": "listAndCountInventoryItems",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/listAndCountInventoryLevels",
- "title": "listAndCountInventoryLevels",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
+ "type": "ref",
+ "path": "/integrations/guides/shipstation",
+ "title": "Integrate ShipStation",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+fulfillment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 3: Choose Shipping Method",
+ "path": "/storefront-development/checkout/shipping",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+fulfillment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addShippingMethodToCartWorkflow",
+ "path": "/references/medusa-workflows/addShippingMethodToCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "listShippingOptionsForCartWithPricingWorkflow",
+ "path": "/references/medusa-workflows/listShippingOptionsForCartWithPricingWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchShippingOptionRulesWorkflow",
+ "path": "/references/medusa-workflows/batchShippingOptionRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "calculateShippingOptionsPricesWorkflow",
+ "path": "/references/medusa-workflows/calculateShippingOptionsPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/cancelFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/createFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/createReturnFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createServiceZonesWorkflow",
+ "path": "/references/medusa-workflows/createServiceZonesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShipmentWorkflow",
+ "path": "/references/medusa-workflows/createShipmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingOptionsWorkflow",
+ "path": "/references/medusa-workflows/createShippingOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingProfilesWorkflow",
+ "path": "/references/medusa-workflows/createShippingProfilesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteFulfillmentSetsWorkflow",
+ "path": "/references/medusa-workflows/deleteFulfillmentSetsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteServiceZonesWorkflow",
+ "path": "/references/medusa-workflows/deleteServiceZonesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteShippingOptionsWorkflow",
+ "path": "/references/medusa-workflows/deleteShippingOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "markFulfillmentAsDeliveredWorkflow",
+ "path": "/references/medusa-workflows/markFulfillmentAsDeliveredWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/updateFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateShippingOptionsWorkflow",
+ "path": "/references/medusa-workflows/updateShippingOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateShippingProfilesWorkflow",
+ "path": "/references/medusa-workflows/updateShippingProfilesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmClaimRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmClaimRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmExchangeRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmExchangeRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createAndCompleteReturnOrderWorkflow",
+ "path": "/references/medusa-workflows/createAndCompleteReturnOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/createOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderShipmentWorkflow",
+ "path": "/references/medusa-workflows/createOrderShipmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "markOrderFulfillmentAsDeliveredWorkflow",
+ "path": "/references/medusa-workflows/markOrderFulfillmentAsDeliveredWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteShippingProfileWorkflow",
+ "path": "/references/medusa-workflows/deleteShippingProfileWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createLocationFulfillmentSetWorkflow",
+ "path": "/references/medusa-workflows/createLocationFulfillmentSetWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+fulfillment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "validateCartShippingOptionsStep",
+ "path": "/references/medusa-workflows/steps/validateCartShippingOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "calculateShippingOptionsPricesStep",
+ "path": "/references/medusa-workflows/steps/calculateShippingOptionsPricesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/cancelFulfillmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createFulfillmentSets",
+ "path": "/references/medusa-workflows/steps/createFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/createFulfillmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/createReturnFulfillmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createServiceZonesStep",
+ "path": "/references/medusa-workflows/steps/createServiceZonesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingOptionRulesStep",
+ "path": "/references/medusa-workflows/steps/createShippingOptionRulesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingProfilesStep",
+ "path": "/references/medusa-workflows/steps/createShippingProfilesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteFulfillmentSetsStep",
+ "path": "/references/medusa-workflows/steps/deleteFulfillmentSetsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteServiceZonesStep",
+ "path": "/references/medusa-workflows/steps/deleteServiceZonesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteShippingOptionRulesStep",
+ "path": "/references/medusa-workflows/steps/deleteShippingOptionRulesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteShippingOptionsStep",
+ "path": "/references/medusa-workflows/steps/deleteShippingOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/updateFulfillmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateShippingProfilesStep",
+ "path": "/references/medusa-workflows/steps/updateShippingProfilesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "upsertShippingOptionsStep",
+ "path": "/references/medusa-workflows/steps/upsertShippingOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "validateShipmentStep",
+ "path": "/references/medusa-workflows/steps/validateShipmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteShippingProfilesStep",
+ "path": "/references/medusa-workflows/steps/deleteShippingProfilesStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "References",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/fulfillment/admin-widget-zones",
+ "title": "Admin Widget Zones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment",
+ "title": "Main Service Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Fulfillment Module's Main Service Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Methods",
+ "autogenerate_path": "/references/fulfillment/IFulfillmentModuleService/methods",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/calculateShippingOptionsPrices",
+ "title": "calculateShippingOptionsPrices",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/cancelFulfillment",
+ "title": "cancelFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createFulfillment",
+ "title": "createFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createFulfillmentSets",
+ "title": "createFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createGeoZones",
+ "title": "createGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createReturnFulfillment",
+ "title": "createReturnFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createServiceZones",
+ "title": "createServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createShippingOptionRules",
+ "title": "createShippingOptionRules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createShippingOptions",
+ "title": "createShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/createShippingProfiles",
+ "title": "createShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteFulfillment",
+ "title": "deleteFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteFulfillmentSets",
+ "title": "deleteFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteGeoZones",
+ "title": "deleteGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteServiceZones",
+ "title": "deleteServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteShippingOptionRules",
+ "title": "deleteShippingOptionRules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteShippingOptionTypes",
+ "title": "deleteShippingOptionTypes",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteShippingOptions",
+ "title": "deleteShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/deleteShippingProfiles",
+ "title": "deleteShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountFulfillmentSets",
+ "title": "listAndCountFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountFulfillments",
+ "title": "listAndCountFulfillments",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountGeoZones",
+ "title": "listAndCountGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountServiceZones",
+ "title": "listAndCountServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountShippingOptionRules",
+ "title": "listAndCountShippingOptionRules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountShippingOptionTypes",
+ "title": "listAndCountShippingOptionTypes",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountShippingOptions",
+ "title": "listAndCountShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listAndCountShippingProfiles",
+ "title": "listAndCountShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listFulfillmentProviders",
+ "title": "listFulfillmentProviders",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listFulfillmentSets",
+ "title": "listFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listFulfillments",
+ "title": "listFulfillments",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listGeoZones",
+ "title": "listGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listServiceZones",
+ "title": "listServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listShippingOptionRules",
+ "title": "listShippingOptionRules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listShippingOptionTypes",
+ "title": "listShippingOptionTypes",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listShippingOptions",
+ "title": "listShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listShippingOptionsForContext",
+ "title": "listShippingOptionsForContext",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/listShippingProfiles",
+ "title": "listShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/restoreFulfillmentSets",
+ "title": "restoreFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/restoreGeoZones",
+ "title": "restoreGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/restoreServiceZones",
+ "title": "restoreServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/restoreShippingOptions",
+ "title": "restoreShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/restoreShippingProfiles",
+ "title": "restoreShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveFulfillment",
+ "title": "retrieveFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveFulfillmentOptions",
+ "title": "retrieveFulfillmentOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveFulfillmentSet",
+ "title": "retrieveFulfillmentSet",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveGeoZone",
+ "title": "retrieveGeoZone",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveServiceZone",
+ "title": "retrieveServiceZone",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveShippingOption",
+ "title": "retrieveShippingOption",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveShippingOptionRule",
+ "title": "retrieveShippingOptionRule",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveShippingOptionType",
+ "title": "retrieveShippingOptionType",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/retrieveShippingProfile",
+ "title": "retrieveShippingProfile",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/softDeleteFulfillmentSets",
+ "title": "softDeleteFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/softDeleteGeoZones",
+ "title": "softDeleteGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/softDeleteServiceZones",
+ "title": "softDeleteServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/softDeleteShippingOptions",
+ "title": "softDeleteShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/softDeleteShippingProfiles",
+ "title": "softDeleteShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateFulfillment",
+ "title": "updateFulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateFulfillmentSets",
+ "title": "updateFulfillmentSets",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateGeoZones",
+ "title": "updateGeoZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateServiceZones",
+ "title": "updateServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateShippingOptionRules",
+ "title": "updateShippingOptionRules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateShippingOptions",
+ "title": "updateShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/updateShippingProfiles",
+ "title": "updateShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/upsertServiceZones",
+ "title": "upsertServiceZones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/upsertShippingOptions",
+ "title": "upsertShippingOptions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/upsertShippingProfiles",
+ "title": "upsertShippingProfiles",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/validateFulfillmentData",
+ "title": "validateFulfillmentData",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/validateFulfillmentOption",
+ "title": "validateFulfillmentOption",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/validateShippingOption",
+ "title": "validateShippingOption",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/validateShippingOptionsForPriceCalculation",
+ "title": "validateShippingOptionsForPriceCalculation",
+ "children": []
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models",
+ "title": "Data Models Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Fulfillment Module Data Models Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Data Models",
+ "hasTitleStyling": true,
+ "autogenerate_path": "/references/fulfillment_models/variables",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/Fulfillment",
+ "title": "Fulfillment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/FulfillmentAddress",
+ "title": "FulfillmentAddress",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/FulfillmentItem",
+ "title": "FulfillmentItem",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/FulfillmentLabel",
+ "title": "FulfillmentLabel",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/FulfillmentProvider",
+ "title": "FulfillmentProvider",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/FulfillmentSet",
+ "title": "FulfillmentSet",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/GeoZone",
+ "title": "GeoZone",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/ServiceZone",
+ "title": "ServiceZone",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/ShippingOption",
+ "title": "ShippingOption",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/ShippingOptionRule",
+ "title": "ShippingOptionRule",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/ShippingOptionType",
+ "title": "ShippingOptionType",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/fulfillment/models/ShippingProfile",
+ "title": "ShippingProfile",
+ "children": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Inventory Module",
+ "isChildSidebar": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/inventory",
+ "title": "Overview",
+ "children": []
+ },
+ {
+ "type": "separator"
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/inventory/concepts",
+ "title": "Inventory Concepts",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/inventory/inventory-in-flows",
+ "title": "Inventory in Flows",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/inventory/links-to-other-modules",
+ "title": "Links to Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+inventory",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Product Variant's Inventory in Storefront",
+ "path": "/storefront-development/products/inventory",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+inventory",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addToCartWorkflow",
+ "path": "/references/medusa-workflows/addToCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmVariantInventoryWorkflow",
+ "path": "/references/medusa-workflows/confirmVariantInventoryWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateLineItemInCartWorkflow",
+ "path": "/references/medusa-workflows/updateLineItemInCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "bulkCreateDeleteLevelsWorkflow",
+ "path": "/references/medusa-workflows/bulkCreateDeleteLevelsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInventoryItemsWorkflow",
+ "path": "/references/medusa-workflows/createInventoryItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInventoryLevelsWorkflow",
+ "path": "/references/medusa-workflows/createInventoryLevelsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteInventoryItemWorkflow",
+ "path": "/references/medusa-workflows/deleteInventoryItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateInventoryItemsWorkflow",
+ "path": "/references/medusa-workflows/updateInventoryItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateInventoryLevelsWorkflow",
+ "path": "/references/medusa-workflows/updateInventoryLevelsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderClaimWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderClaimWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderExchangeWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderExchangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmClaimRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmClaimRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmExchangeRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmExchangeRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmOrderEditRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmOrderEditRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmReturnReceiveWorkflow",
+ "path": "/references/medusa-workflows/confirmReturnReceiveWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/createOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/batchProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductsWorkflow",
+ "path": "/references/medusa-workflows/batchProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/createProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductsWorkflow",
+ "path": "/references/medusa-workflows/createProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReservationsWorkflow",
+ "path": "/references/medusa-workflows/createReservationsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReservationsByLineItemsWorkflow",
+ "path": "/references/medusa-workflows/deleteReservationsByLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReservationsWorkflow",
+ "path": "/references/medusa-workflows/deleteReservationsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReservationsWorkflow",
+ "path": "/references/medusa-workflows/updateReservationsWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+inventory",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmInventoryStep",
+ "path": "/references/medusa-workflows/steps/confirmInventoryStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "reserveInventoryStep",
+ "path": "/references/medusa-workflows/steps/reserveInventoryStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "adjustInventoryLevelsStep",
+ "path": "/references/medusa-workflows/steps/adjustInventoryLevelsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInventoryItemsStep",
+ "path": "/references/medusa-workflows/steps/createInventoryItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInventoryLevelsStep",
+ "path": "/references/medusa-workflows/steps/createInventoryLevelsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteInventoryItemStep",
+ "path": "/references/medusa-workflows/steps/deleteInventoryItemStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateInventoryItemsStep",
+ "path": "/references/medusa-workflows/steps/updateInventoryItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateInventoryLevelsStep",
+ "path": "/references/medusa-workflows/steps/updateInventoryLevelsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReservationsStep",
+ "path": "/references/medusa-workflows/steps/createReservationsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReservationsByLineItemsStep",
+ "path": "/references/medusa-workflows/steps/deleteReservationsByLineItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReservationsStep",
+ "path": "/references/medusa-workflows/steps/deleteReservationsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReservationsStep",
+ "path": "/references/medusa-workflows/steps/updateReservationsStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "References",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/inventory/admin-widget-zones",
+ "title": "Admin Widget Zones",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next",
+ "title": "Main Service Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Inventory Module's Main Service Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Methods",
+ "autogenerate_path": "/references/inventory_next/IInventoryService/methods",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/adjustInventory",
+ "title": "adjustInventory",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/confirmInventory",
+ "title": "confirmInventory",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/createInventoryItems",
+ "title": "createInventoryItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/createInventoryLevels",
+ "title": "createInventoryLevels",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/createReservationItems",
+ "title": "createReservationItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteInventoryItemLevelByLocationId",
+ "title": "deleteInventoryItemLevelByLocationId",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteInventoryItems",
+ "title": "deleteInventoryItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteInventoryLevel",
+ "title": "deleteInventoryLevel",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteInventoryLevels",
+ "title": "deleteInventoryLevels",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteReservationItemByLocationId",
+ "title": "deleteReservationItemByLocationId",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteReservationItems",
+ "title": "deleteReservationItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/deleteReservationItemsByLineItem",
+ "title": "deleteReservationItemsByLineItem",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/listAndCountInventoryItems",
+ "title": "listAndCountInventoryItems",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/listAndCountInventoryLevels",
+ "title": "listAndCountInventoryLevels",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
"type": "link",
"path": "/references/inventory-next/listAndCountReservationItems",
"title": "listAndCountReservationItems",
@@ -2941,158 +4691,1179 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/models",
- "title": "Data Models Reference",
- "isChildSidebar": true,
- "childSidebarTitle": "Inventory Module Data Models Reference",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Data Models",
- "autogenerate_path": "/references/inventory_next_models/variables",
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/models/InventoryItem",
- "title": "InventoryItem",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/models/InventoryLevel",
- "title": "InventoryLevel",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/references/inventory-next/models/ReservationItem",
- "title": "ReservationItem",
- "children": []
- }
- ]
- }
- ]
+ "type": "link",
+ "path": "/references/inventory-next/models",
+ "title": "Data Models Reference",
+ "isChildSidebar": true,
+ "childSidebarTitle": "Inventory Module Data Models Reference",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Data Models",
+ "autogenerate_path": "/references/inventory_next_models/variables",
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/models/InventoryItem",
+ "title": "InventoryItem",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/models/InventoryLevel",
+ "title": "InventoryLevel",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/inventory-next/models/ReservationItem",
+ "title": "ReservationItem",
+ "children": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Order Module",
+ "isChildSidebar": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order",
+ "title": "Overview",
+ "children": []
+ },
+ {
+ "type": "separator"
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/concepts",
+ "title": "Order Concepts",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/promotion-adjustments",
+ "title": "Promotions Adjustments",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/tax-lines",
+ "title": "Tax Lines",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/transactions",
+ "title": "Transactions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/order-versioning",
+ "title": "Order Versioning",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/return",
+ "title": "Return",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/exchange",
+ "title": "Exchange",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/claim",
+ "title": "Claim",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/edit",
+ "title": "Order Edit",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/order-change",
+ "title": "Order Change",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/order/links-to-other-modules",
+ "title": "Links to Other Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+order",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 5: Complete Cart",
+ "path": "/storefront-development/checkout/complete-cart",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+order",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "acceptOrderTransferWorkflow",
+ "path": "/references/medusa-workflows/acceptOrderTransferWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "archiveOrderWorkflow",
+ "path": "/references/medusa-workflows/archiveOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "beginClaimOrderWorkflow",
+ "path": "/references/medusa-workflows/beginClaimOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "beginExchangeOrderWorkflow",
+ "path": "/references/medusa-workflows/beginExchangeOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "beginOrderEditOrderWorkflow",
+ "path": "/references/medusa-workflows/beginOrderEditOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "beginReceiveReturnWorkflow",
+ "path": "/references/medusa-workflows/beginReceiveReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "beginReturnOrderWorkflow",
+ "path": "/references/medusa-workflows/beginReturnOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelBeginOrderClaimWorkflow",
+ "path": "/references/medusa-workflows/cancelBeginOrderClaimWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelBeginOrderEditWorkflow",
+ "path": "/references/medusa-workflows/cancelBeginOrderEditWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelBeginOrderExchangeWorkflow",
+ "path": "/references/medusa-workflows/cancelBeginOrderExchangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderChangeWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderChangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderClaimWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderClaimWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderExchangeWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderExchangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderTransferRequestWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderTransferRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelReturnReceiveWorkflow",
+ "path": "/references/medusa-workflows/cancelReturnReceiveWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/cancelReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelReturnWorkflow",
+ "path": "/references/medusa-workflows/cancelReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "completeOrderWorkflow",
+ "path": "/references/medusa-workflows/completeOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmClaimRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmClaimRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmExchangeRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmExchangeRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmOrderEditRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmOrderEditRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmReturnReceiveWorkflow",
+ "path": "/references/medusa-workflows/confirmReturnReceiveWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "confirmReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/confirmReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createAndCompleteReturnOrderWorkflow",
+ "path": "/references/medusa-workflows/createAndCompleteReturnOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createClaimShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createClaimShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createExchangeShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createExchangeShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderChangeWorkflow",
+ "path": "/references/medusa-workflows/createOrderChangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderEditShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createOrderEditShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderFulfillmentWorkflow",
+ "path": "/references/medusa-workflows/createOrderFulfillmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderShipmentWorkflow",
+ "path": "/references/medusa-workflows/createOrderShipmentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createReturnShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "declineOrderChangeWorkflow",
+ "path": "/references/medusa-workflows/declineOrderChangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "declineOrderTransferRequestWorkflow",
+ "path": "/references/medusa-workflows/declineOrderTransferRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteOrderChangeActionsWorkflow",
+ "path": "/references/medusa-workflows/deleteOrderChangeActionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteOrderChangeWorkflow",
+ "path": "/references/medusa-workflows/deleteOrderChangeWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "dismissItemReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/dismissItemReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "markPaymentCollectionAsPaid",
+ "path": "/references/medusa-workflows/markPaymentCollectionAsPaid",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimRequestItemReturnWorkflow",
+ "path": "/references/medusa-workflows/orderClaimRequestItemReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditUpdateItemQuantityWorkflow",
+ "path": "/references/medusa-workflows/orderEditUpdateItemQuantityWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeRequestItemReturnWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeRequestItemReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "receiveItemReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/receiveItemReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeAddItemClaimActionWorkflow",
+ "path": "/references/medusa-workflows/removeAddItemClaimActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeClaimShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/removeClaimShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeExchangeShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/removeExchangeShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeItemClaimActionWorkflow",
+ "path": "/references/medusa-workflows/removeItemClaimActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeItemExchangeActionWorkflow",
+ "path": "/references/medusa-workflows/removeItemExchangeActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeItemOrderEditActionWorkflow",
+ "path": "/references/medusa-workflows/removeItemOrderEditActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeItemReceiveReturnActionWorkflow",
+ "path": "/references/medusa-workflows/removeItemReceiveReturnActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeItemReturnActionWorkflow",
+ "path": "/references/medusa-workflows/removeItemReturnActionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeOrderEditShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/removeOrderEditShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeReturnShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/removeReturnShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "requestItemReturnWorkflow",
+ "path": "/references/medusa-workflows/requestItemReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "requestOrderEditRequestWorkflow",
+ "path": "/references/medusa-workflows/requestOrderEditRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "requestOrderTransferWorkflow",
+ "path": "/references/medusa-workflows/requestOrderTransferWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateClaimAddItemWorkflow",
+ "path": "/references/medusa-workflows/updateClaimAddItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateClaimItemWorkflow",
+ "path": "/references/medusa-workflows/updateClaimItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateClaimShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/updateClaimShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateExchangeAddItemWorkflow",
+ "path": "/references/medusa-workflows/updateExchangeAddItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateExchangeShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/updateExchangeShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderChangeActionsWorkflow",
+ "path": "/references/medusa-workflows/updateOrderChangeActionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderChangesWorkflow",
+ "path": "/references/medusa-workflows/updateOrderChangesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderEditAddItemWorkflow",
+ "path": "/references/medusa-workflows/updateOrderEditAddItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderEditItemQuantityWorkflow",
+ "path": "/references/medusa-workflows/updateOrderEditItemQuantityWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderEditShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/updateOrderEditShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderTaxLinesWorkflow",
+ "path": "/references/medusa-workflows/updateOrderTaxLinesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderWorkflow",
+ "path": "/references/medusa-workflows/updateOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReceiveItemReturnRequestWorkflow",
+ "path": "/references/medusa-workflows/updateReceiveItemReturnRequestWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRequestItemReturnWorkflow",
+ "path": "/references/medusa-workflows/updateRequestItemReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReturnShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/updateReturnShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReturnWorkflow",
+ "path": "/references/medusa-workflows/updateReturnWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "capturePaymentWorkflow",
+ "path": "/references/medusa-workflows/capturePaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "processPaymentWorkflow",
+ "path": "/references/medusa-workflows/processPaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "refundPaymentWorkflow",
+ "path": "/references/medusa-workflows/refundPaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnReasonsWorkflow",
+ "path": "/references/medusa-workflows/createReturnReasonsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReturnReasonsWorkflow",
+ "path": "/references/medusa-workflows/deleteReturnReasonsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReturnReasonsWorkflow",
+ "path": "/references/medusa-workflows/updateReturnReasonsWorkflow",
+ "children": []
}
]
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Order Module",
- "isChildSidebar": true,
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order",
- "title": "Overview",
- "children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+order",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/concepts",
- "title": "Order Concepts",
+ "type": "ref",
+ "title": "addOrderTransactionStep",
+ "path": "/references/medusa-workflows/steps/addOrderTransactionStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "archiveOrdersStep",
+ "path": "/references/medusa-workflows/steps/archiveOrdersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderChangeStep",
+ "path": "/references/medusa-workflows/steps/cancelOrderChangeStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderClaimStep",
+ "path": "/references/medusa-workflows/steps/cancelOrderClaimStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderExchangeStep",
+ "path": "/references/medusa-workflows/steps/cancelOrderExchangeStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/cancelOrderFulfillmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderReturnStep",
+ "path": "/references/medusa-workflows/steps/cancelOrderReturnStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrdersStep",
+ "path": "/references/medusa-workflows/steps/cancelOrdersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "completeOrdersStep",
+ "path": "/references/medusa-workflows/steps/completeOrdersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCompleteReturnStep",
+ "path": "/references/medusa-workflows/steps/createCompleteReturnStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderChangeStep",
+ "path": "/references/medusa-workflows/steps/createOrderChangeStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderClaimItemsFromActionsStep",
+ "path": "/references/medusa-workflows/steps/createOrderClaimItemsFromActionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderClaimsStep",
+ "path": "/references/medusa-workflows/steps/createOrderClaimsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderExchangeItemsFromActionsStep",
+ "path": "/references/medusa-workflows/steps/createOrderExchangeItemsFromActionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderExchangesStep",
+ "path": "/references/medusa-workflows/steps/createOrderExchangesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderLineItemsStep",
+ "path": "/references/medusa-workflows/steps/createOrderLineItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrdersStep",
+ "path": "/references/medusa-workflows/steps/createOrdersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnsStep",
+ "path": "/references/medusa-workflows/steps/createReturnsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "declineOrderChangeStep",
+ "path": "/references/medusa-workflows/steps/declineOrderChangeStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/promotion-adjustments",
- "title": "Promotions Adjustments",
+ "type": "ref",
+ "title": "deleteClaimsStep",
+ "path": "/references/medusa-workflows/steps/deleteClaimsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/tax-lines",
- "title": "Tax Lines",
+ "type": "ref",
+ "title": "deleteExchangesStep",
+ "path": "/references/medusa-workflows/steps/deleteExchangesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/transactions",
- "title": "Transactions",
+ "type": "ref",
+ "title": "deleteOrderChangeActionsStep",
+ "path": "/references/medusa-workflows/steps/deleteOrderChangeActionsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/order-versioning",
- "title": "Order Versioning",
+ "type": "ref",
+ "title": "deleteOrderChangesStep",
+ "path": "/references/medusa-workflows/steps/deleteOrderChangesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/return",
- "title": "Return",
+ "type": "ref",
+ "title": "deleteOrderShippingMethods",
+ "path": "/references/medusa-workflows/steps/deleteOrderShippingMethods",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/exchange",
- "title": "Exchange",
+ "type": "ref",
+ "title": "deleteReturnsStep",
+ "path": "/references/medusa-workflows/steps/deleteReturnsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/claim",
- "title": "Claim",
+ "type": "ref",
+ "title": "previewOrderChangeStep",
+ "path": "/references/medusa-workflows/steps/previewOrderChangeStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/edit",
- "title": "Order Edit",
+ "type": "ref",
+ "title": "registerOrderChangesStep",
+ "path": "/references/medusa-workflows/steps/registerOrderChangesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/order-change",
- "title": "Order Change",
+ "type": "ref",
+ "title": "registerOrderFulfillmentStep",
+ "path": "/references/medusa-workflows/steps/registerOrderFulfillmentStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/order/links-to-other-modules",
- "title": "Links to Other Modules",
+ "type": "ref",
+ "title": "registerOrderShipmentStep",
+ "path": "/references/medusa-workflows/steps/registerOrderShipmentStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "setOrderTaxLinesForItemsStep",
+ "path": "/references/medusa-workflows/steps/setOrderTaxLinesForItemsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderChangeActionsStep",
+ "path": "/references/medusa-workflows/steps/updateOrderChangeActionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderChangesStep",
+ "path": "/references/medusa-workflows/steps/updateOrderChangesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderExchangesStep",
+ "path": "/references/medusa-workflows/steps/updateOrderExchangesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderShippingMethodsStep",
+ "path": "/references/medusa-workflows/steps/updateOrderShippingMethodsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrdersStep",
+ "path": "/references/medusa-workflows/steps/updateOrdersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnReasonsStep",
+ "path": "/references/medusa-workflows/steps/createReturnReasonsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteReturnReasonStep",
+ "path": "/references/medusa-workflows/steps/deleteReturnReasonStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateReturnReasonsStep",
+ "path": "/references/medusa-workflows/steps/updateReturnReasonsStep",
"children": []
}
]
@@ -3100,8 +5871,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -4419,90 +7191,338 @@ export const generatedSidebar = [
"title": "Module Options",
"children": []
},
+ {
+ "type": "separator"
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/examples",
- "title": "Examples",
- "children": []
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/payment-collection",
+ "title": "Payment Collections",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/payment-session",
+ "title": "Payment Session",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/payment",
+ "title": "Payment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/payment-provider",
+ "title": "Payment Provider Module",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/webhook-events",
+ "title": "Webhook Events",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/links-to-other-modules",
+ "title": "Links to Other Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+payment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/payment/payment-flow",
+ "title": "Accept Payment Flow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/payment/provider",
+ "title": "Create Payment Provider",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+payment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Customize the Stripe Integration in the Next.js Starter",
+ "path": "/nextjs-starter/guides/customize-stripe",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 5: Complete Cart",
+ "path": "/storefront-development/checkout/complete-cart",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Checkout Step 4: Choose Payment Provider",
+ "path": "/storefront-development/checkout/payment",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Payment with Stripe in React Storefront",
+ "path": "/storefront-development/checkout/payment/stripe",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+payment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPaymentCollectionForCartWorkflow",
+ "path": "/references/medusa-workflows/createPaymentCollectionForCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "refreshPaymentCollectionForCartWorkflow",
+ "path": "/references/medusa-workflows/refreshPaymentCollectionForCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "cancelOrderWorkflow",
+ "path": "/references/medusa-workflows/cancelOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderPaymentCollectionWorkflow",
+ "path": "/references/medusa-workflows/createOrderPaymentCollectionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "markPaymentCollectionAsPaid",
+ "path": "/references/medusa-workflows/markPaymentCollectionAsPaid",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "capturePaymentWorkflow",
+ "path": "/references/medusa-workflows/capturePaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "processPaymentWorkflow",
+ "path": "/references/medusa-workflows/processPaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "refundPaymentWorkflow",
+ "path": "/references/medusa-workflows/refundPaymentWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPaymentSessionsWorkflow",
+ "path": "/references/medusa-workflows/createPaymentSessionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createRefundReasonsWorkflow",
+ "path": "/references/medusa-workflows/createRefundReasonsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePaymentSessionsWorkflow",
+ "path": "/references/medusa-workflows/deletePaymentSessionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRefundReasonsWorkflow",
+ "path": "/references/medusa-workflows/updateRefundReasonsWorkflow",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+payment",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/payment-collection",
- "title": "Payment Collections",
+ "type": "ref",
+ "title": "createPaymentCollectionsStep",
+ "path": "/references/medusa-workflows/steps/createPaymentCollectionsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/payment-session",
- "title": "Payment Session",
+ "type": "ref",
+ "title": "authorizePaymentSessionStep",
+ "path": "/references/medusa-workflows/steps/authorizePaymentSessionStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/payment",
- "title": "Payment",
+ "type": "ref",
+ "title": "cancelPaymentStep",
+ "path": "/references/medusa-workflows/steps/cancelPaymentStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/payment-provider",
- "title": "Payment Provider Module",
+ "type": "ref",
+ "title": "capturePaymentStep",
+ "path": "/references/medusa-workflows/steps/capturePaymentStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/webhook-events",
- "title": "Webhook Events",
+ "type": "ref",
+ "title": "refundPaymentStep",
+ "path": "/references/medusa-workflows/steps/refundPaymentStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/links-to-other-modules",
- "title": "Links to Other Modules",
+ "type": "ref",
+ "title": "createPaymentSessionStep",
+ "path": "/references/medusa-workflows/steps/createPaymentSessionStep",
"children": []
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
- "children": [
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/payment/payment-flow",
- "title": "Accept Payment Flow",
+ "type": "ref",
+ "title": "createRefundReasonStep",
+ "path": "/references/medusa-workflows/steps/createRefundReasonStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/payment/provider",
- "title": "Create Payment Provider",
+ "type": "ref",
+ "title": "deletePaymentSessionsStep",
+ "path": "/references/medusa-workflows/steps/deletePaymentSessionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePaymentCollectionStep",
+ "path": "/references/medusa-workflows/steps/updatePaymentCollectionStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRefundReasonsStep",
+ "path": "/references/medusa-workflows/steps/updateRefundReasonsStep",
"children": []
}
]
@@ -4510,8 +7530,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Payment Providers",
+ "type": "category",
+ "title": "Providers",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -4526,8 +7547,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -4890,76 +7912,468 @@ export const generatedSidebar = [
]
}
]
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Pricing Module",
- "isChildSidebar": true,
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing",
- "title": "Overview",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/examples",
- "title": "Examples",
- "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Pricing Module",
+ "isChildSidebar": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing",
+ "title": "Overview",
+ "children": []
+ },
+ {
+ "type": "separator"
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing/concepts",
+ "title": "Pricing Concepts",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing/price-rules",
+ "title": "Price Rules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing/price-calculation",
+ "title": "Prices Calculation",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing/tax-inclusive-pricing",
+ "title": "Tax-Inclusive Pricing",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/pricing/links-to-other-modules",
+ "title": "Links to Other Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+pricing",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Get Variant Prices",
+ "path": "/commerce-modules/product/guides/price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Get Variant Price with Taxes",
+ "path": "/commerce-modules/product/guides/price-with-taxes",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+pricing",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Sale Price",
+ "path": "/storefront-development/products/price/examples/sale-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Variant's Price",
+ "path": "/storefront-development/products/price/examples/show-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Price with Taxes",
+ "path": "/storefront-development/products/price/examples/tax-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Product Variant's Prices in Storefront",
+ "path": "/storefront-development/products/price",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+pricing",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createShippingOptionsWorkflow",
+ "path": "/references/medusa-workflows/createShippingOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateShippingOptionsWorkflow",
+ "path": "/references/medusa-workflows/updateShippingOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchPriceListPricesWorkflow",
+ "path": "/references/medusa-workflows/batchPriceListPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPriceListPricesWorkflow",
+ "path": "/references/medusa-workflows/createPriceListPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPriceListsWorkflow",
+ "path": "/references/medusa-workflows/createPriceListsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePriceListsWorkflow",
+ "path": "/references/medusa-workflows/deletePriceListsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removePriceListPricesWorkflow",
+ "path": "/references/medusa-workflows/removePriceListPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePriceListPricesWorkflow",
+ "path": "/references/medusa-workflows/updatePriceListPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePriceListsWorkflow",
+ "path": "/references/medusa-workflows/updatePriceListsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPricePreferencesWorkflow",
+ "path": "/references/medusa-workflows/createPricePreferencesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePricePreferencesWorkflow",
+ "path": "/references/medusa-workflows/deletePricePreferencesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePricePreferencesWorkflow",
+ "path": "/references/medusa-workflows/updatePricePreferencesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/batchProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductsWorkflow",
+ "path": "/references/medusa-workflows/batchProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/createProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductsWorkflow",
+ "path": "/references/medusa-workflows/createProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/updateProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductsWorkflow",
+ "path": "/references/medusa-workflows/updateProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "upsertVariantPricesWorkflow",
+ "path": "/references/medusa-workflows/upsertVariantPricesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createRegionsWorkflow",
+ "path": "/references/medusa-workflows/createRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRegionsWorkflow",
+ "path": "/references/medusa-workflows/updateRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createStoresWorkflow",
+ "path": "/references/medusa-workflows/createStoresWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateStoresWorkflow",
+ "path": "/references/medusa-workflows/updateStoresWorkflow",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+pricing",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/concepts",
- "title": "Pricing Concepts",
+ "type": "ref",
+ "title": "createShippingOptionsPriceSetsStep",
+ "path": "/references/medusa-workflows/steps/createShippingOptionsPriceSetsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/price-rules",
- "title": "Price Rules",
+ "type": "ref",
+ "title": "setShippingOptionsPricesStep",
+ "path": "/references/medusa-workflows/steps/setShippingOptionsPricesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/price-calculation",
- "title": "Prices Calculation",
+ "type": "ref",
+ "title": "createPriceListPricesStep",
+ "path": "/references/medusa-workflows/steps/createPriceListPricesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/tax-inclusive-pricing",
- "title": "Tax-Inclusive Pricing",
+ "type": "ref",
+ "title": "createPriceListsStep",
+ "path": "/references/medusa-workflows/steps/createPriceListsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/pricing/links-to-other-modules",
- "title": "Links to Other Modules",
+ "type": "ref",
+ "title": "deletePriceListsStep",
+ "path": "/references/medusa-workflows/steps/deletePriceListsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removePriceListPricesStep",
+ "path": "/references/medusa-workflows/steps/removePriceListPricesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePriceListPricesStep",
+ "path": "/references/medusa-workflows/steps/updatePriceListPricesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePriceListsStep",
+ "path": "/references/medusa-workflows/steps/updatePriceListsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "validatePriceListsStep",
+ "path": "/references/medusa-workflows/steps/validatePriceListsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPricePreferencesStep",
+ "path": "/references/medusa-workflows/steps/createPricePreferencesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPriceSetsStep",
+ "path": "/references/medusa-workflows/steps/createPriceSetsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePricePreferencesStep",
+ "path": "/references/medusa-workflows/steps/deletePricePreferencesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePricePreferencesAsArrayStep",
+ "path": "/references/medusa-workflows/steps/updatePricePreferencesAsArrayStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePricePreferencesStep",
+ "path": "/references/medusa-workflows/steps/updatePricePreferencesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePriceSetsStep",
+ "path": "/references/medusa-workflows/steps/updatePriceSetsStep",
"children": []
}
]
@@ -4967,8 +8381,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -5420,77 +8835,628 @@ export const generatedSidebar = [
]
}
]
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "category",
- "title": "Product Module",
- "isChildSidebar": true,
- "children": [
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product",
- "title": "Overview",
- "children": []
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product/examples",
- "title": "Examples",
- "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Product Module",
+ "isChildSidebar": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/product",
+ "title": "Overview",
+ "children": []
+ },
+ {
+ "type": "separator"
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/product/links-to-other-modules",
+ "title": "Links to Other Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+product",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/product/extend",
+ "title": "Extend Module",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/product/guides/price",
+ "title": "Get Variant Prices",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/product/guides/price-with-taxes",
+ "title": "Get Variant Price with Taxes",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+product",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "List Product Categories in Storefront",
+ "path": "/storefront-development/products/categories/list",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Nested Categories in Storefront",
+ "path": "/storefront-development/products/categories/nested-categories",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve a Category's Products in Storefront",
+ "path": "/storefront-development/products/categories/products",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve a Category in Storefront",
+ "path": "/storefront-development/products/categories/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "List Product Collections in Storefront",
+ "path": "/storefront-development/products/collections/list",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve a Collection's Products in Storefront",
+ "path": "/storefront-development/products/collections/products",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve a Collection in Storefront",
+ "path": "/storefront-development/products/collections/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Product Variant's Inventory in Storefront",
+ "path": "/storefront-development/products/inventory",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "List Products in Storefront",
+ "path": "/storefront-development/products/list",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Sale Price",
+ "path": "/storefront-development/products/price/examples/sale-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Variant's Price",
+ "path": "/storefront-development/products/price/examples/show-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Price with Taxes",
+ "path": "/storefront-development/products/price/examples/tax-price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve Product Variant's Prices in Storefront",
+ "path": "/storefront-development/products/price",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Retrieve a Product in Storefront",
+ "path": "/storefront-development/products/retrieve",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Select Product Variants in Storefront",
+ "path": "/storefront-development/products/variants",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product/extend",
- "title": "Extend Module",
- "children": []
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+product",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchLinkProductsToCollectionWorkflow",
+ "path": "/references/medusa-workflows/batchLinkProductsToCollectionWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/batchProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchProductsWorkflow",
+ "path": "/references/medusa-workflows/batchProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCollectionsWorkflow",
+ "path": "/references/medusa-workflows/createCollectionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductOptionsWorkflow",
+ "path": "/references/medusa-workflows/createProductOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductTagsWorkflow",
+ "path": "/references/medusa-workflows/createProductTagsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductTypesWorkflow",
+ "path": "/references/medusa-workflows/createProductTypesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/createProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductsWorkflow",
+ "path": "/references/medusa-workflows/createProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCollectionsWorkflow",
+ "path": "/references/medusa-workflows/deleteCollectionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductOptionsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductTagsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductTagsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductTypesWorkflow",
+ "path": "/references/medusa-workflows/deleteProductTypesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductsWorkflow",
+ "path": "/references/medusa-workflows/deleteProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "importProductsWorkflow",
+ "path": "/references/medusa-workflows/importProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCollectionsWorkflow",
+ "path": "/references/medusa-workflows/updateCollectionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductOptionsWorkflow",
+ "path": "/references/medusa-workflows/updateProductOptionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductTagsWorkflow",
+ "path": "/references/medusa-workflows/updateProductTagsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductTypesWorkflow",
+ "path": "/references/medusa-workflows/updateProductTypesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductVariantsWorkflow",
+ "path": "/references/medusa-workflows/updateProductVariantsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductsWorkflow",
+ "path": "/references/medusa-workflows/updateProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductCategoriesWorkflow",
+ "path": "/references/medusa-workflows/createProductCategoriesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductCategoriesWorkflow",
+ "path": "/references/medusa-workflows/deleteProductCategoriesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductCategoriesWorkflow",
+ "path": "/references/medusa-workflows/updateProductCategoriesWorkflow",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+product",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product/links-to-other-modules",
- "title": "Links to Other Modules",
+ "type": "ref",
+ "title": "batchLinkProductsToCollectionStep",
+ "path": "/references/medusa-workflows/steps/batchLinkProductsToCollectionStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCollectionsStep",
+ "path": "/references/medusa-workflows/steps/createCollectionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductOptionsStep",
+ "path": "/references/medusa-workflows/steps/createProductOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductTagsStep",
+ "path": "/references/medusa-workflows/steps/createProductTagsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductTypesStep",
+ "path": "/references/medusa-workflows/steps/createProductTypesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductVariantsStep",
+ "path": "/references/medusa-workflows/steps/createProductVariantsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductsStep",
+ "path": "/references/medusa-workflows/steps/createProductsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCollectionsStep",
+ "path": "/references/medusa-workflows/steps/deleteCollectionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductOptionsStep",
+ "path": "/references/medusa-workflows/steps/deleteProductOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductTagsStep",
+ "path": "/references/medusa-workflows/steps/deleteProductTagsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductTypesStep",
+ "path": "/references/medusa-workflows/steps/deleteProductTypesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductVariantsStep",
+ "path": "/references/medusa-workflows/steps/deleteProductVariantsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductsStep",
+ "path": "/references/medusa-workflows/steps/deleteProductsStep",
"children": []
- }
- ]
- },
- {
- "loaded": true,
- "isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
- "autogenerate_path": "/commerce-modules/product/guides",
- "children": [
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product/guides/price",
- "title": "Get Variant Prices",
+ "type": "ref",
+ "title": "getProductsStep",
+ "path": "/references/medusa-workflows/steps/getProductsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/product/guides/price-with-taxes",
- "title": "Get Variant Price with Taxes",
+ "type": "ref",
+ "title": "groupProductsForBatchStep",
+ "path": "/references/medusa-workflows/steps/groupProductsForBatchStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "parseProductCsvStep",
+ "path": "/references/medusa-workflows/steps/parseProductCsvStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCollectionsStep",
+ "path": "/references/medusa-workflows/steps/updateCollectionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductOptionsStep",
+ "path": "/references/medusa-workflows/steps/updateProductOptionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductTagsStep",
+ "path": "/references/medusa-workflows/steps/updateProductTagsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductTypesStep",
+ "path": "/references/medusa-workflows/steps/updateProductTypesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductVariantsStep",
+ "path": "/references/medusa-workflows/steps/updateProductVariantsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductsStep",
+ "path": "/references/medusa-workflows/steps/updateProductsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createProductCategoriesStep",
+ "path": "/references/medusa-workflows/steps/createProductCategoriesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteProductCategoriesStep",
+ "path": "/references/medusa-workflows/steps/deleteProductCategoriesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateProductCategoriesStep",
+ "path": "/references/medusa-workflows/steps/updateProductCategoriesStep",
"children": []
}
]
@@ -5498,8 +9464,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -6209,66 +10176,319 @@ export const generatedSidebar = [
"title": "Overview",
"children": []
},
+ {
+ "type": "separator"
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/examples",
- "title": "Examples",
- "children": []
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/concepts",
+ "title": "Promotion",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/application-method",
+ "title": "Application Method",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/campaign",
+ "title": "Campaign",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/actions",
+ "title": "Promotion Actions",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/links-to-other-modules",
+ "title": "Links to Modules",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/extend",
- "title": "Extend Module",
- "children": []
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+promotion",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/promotion/extend",
+ "title": "Extend Module",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+promotion",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartPromotionsWorkflow",
+ "path": "/references/medusa-workflows/updateCartPromotionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrRemoveCampaignPromotionsWorkflow",
+ "path": "/references/medusa-workflows/addOrRemoveCampaignPromotionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "batchPromotionRulesWorkflow",
+ "path": "/references/medusa-workflows/batchPromotionRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCampaignsWorkflow",
+ "path": "/references/medusa-workflows/createCampaignsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPromotionRulesWorkflow",
+ "path": "/references/medusa-workflows/createPromotionRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPromotionsWorkflow",
+ "path": "/references/medusa-workflows/createPromotionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCampaignsWorkflow",
+ "path": "/references/medusa-workflows/deleteCampaignsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePromotionRulesWorkflow",
+ "path": "/references/medusa-workflows/deletePromotionRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePromotionsWorkflow",
+ "path": "/references/medusa-workflows/deletePromotionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCampaignsWorkflow",
+ "path": "/references/medusa-workflows/updateCampaignsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePromotionRulesWorkflow",
+ "path": "/references/medusa-workflows/updatePromotionRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updatePromotionsWorkflow",
+ "path": "/references/medusa-workflows/updatePromotionsWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+promotion",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/concepts",
- "title": "Promotion",
+ "type": "ref",
+ "title": "getActionsToComputeFromPromotionsStep",
+ "path": "/references/medusa-workflows/steps/getActionsToComputeFromPromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "getPromotionCodesToApply",
+ "path": "/references/medusa-workflows/steps/getPromotionCodesToApply",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "prepareAdjustmentsFromPromotionActionsStep",
+ "path": "/references/medusa-workflows/steps/prepareAdjustmentsFromPromotionActionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartPromotionsStep",
+ "path": "/references/medusa-workflows/steps/updateCartPromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addCampaignPromotionsStep",
+ "path": "/references/medusa-workflows/steps/addCampaignPromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addRulesToPromotionsStep",
+ "path": "/references/medusa-workflows/steps/addRulesToPromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCampaignsStep",
+ "path": "/references/medusa-workflows/steps/createCampaignsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createPromotionsStep",
+ "path": "/references/medusa-workflows/steps/createPromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteCampaignsStep",
+ "path": "/references/medusa-workflows/steps/deleteCampaignsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deletePromotionsStep",
+ "path": "/references/medusa-workflows/steps/deletePromotionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeCampaignPromotionsStep",
+ "path": "/references/medusa-workflows/steps/removeCampaignPromotionsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/application-method",
- "title": "Application Method",
+ "type": "ref",
+ "title": "removeRulesFromPromotionsStep",
+ "path": "/references/medusa-workflows/steps/removeRulesFromPromotionsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/campaign",
- "title": "Campaign",
+ "type": "ref",
+ "title": "updateCampaignsStep",
+ "path": "/references/medusa-workflows/steps/updateCampaignsStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/actions",
- "title": "Promotion Actions",
+ "type": "ref",
+ "title": "updatePromotionRulesStep",
+ "path": "/references/medusa-workflows/steps/updatePromotionRulesStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/promotion/links-to-other-modules",
- "title": "Links to Modules",
+ "type": "ref",
+ "title": "updatePromotionsStep",
+ "path": "/references/medusa-workflows/steps/updatePromotionsStep",
"children": []
}
]
@@ -6276,8 +10496,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -6629,18 +10850,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/region/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -6655,8 +10872,202 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+region",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Region Context in Storefront",
+ "path": "/storefront-development/regions/context",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "List Regions in Storefront",
+ "path": "/storefront-development/regions/list",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Store and Retrieve Region",
+ "path": "/storefront-development/regions/store-retrieve-region",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+region",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "exportProductsWorkflow",
+ "path": "/references/medusa-workflows/exportProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "importProductsWorkflow",
+ "path": "/references/medusa-workflows/importProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createRegionsWorkflow",
+ "path": "/references/medusa-workflows/createRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteRegionsWorkflow",
+ "path": "/references/medusa-workflows/deleteRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRegionsWorkflow",
+ "path": "/references/medusa-workflows/updateRegionsWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+region",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "findOneOrAnyRegionStep",
+ "path": "/references/medusa-workflows/steps/findOneOrAnyRegionStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "generateProductCsvStep",
+ "path": "/references/medusa-workflows/steps/generateProductCsvStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "parseProductCsvStep",
+ "path": "/references/medusa-workflows/steps/parseProductCsvStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createRegionsStep",
+ "path": "/references/medusa-workflows/steps/createRegionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteRegionsStep",
+ "path": "/references/medusa-workflows/steps/deleteRegionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateRegionsStep",
+ "path": "/references/medusa-workflows/steps/updateRegionsStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -6845,34 +11256,231 @@ export const generatedSidebar = [
"title": "Overview",
"children": []
},
+ {
+ "type": "separator"
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/sales-channel/examples",
- "title": "Examples",
- "children": []
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/sales-channel/publishable-api-keys",
+ "title": "Publishable API Keys",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/sales-channel/links-to-other-modules",
+ "title": "Links to Modules",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+salesChannel",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Use a Publishable API Key in the Storefront",
+ "path": "/storefront-development/publishable-api-keys",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+salesChannel",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "linkSalesChannelsToApiKeyWorkflow",
+ "path": "/references/medusa-workflows/linkSalesChannelsToApiKeyWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartWorkflow",
+ "path": "/references/medusa-workflows/updateCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createDefaultsWorkflow",
+ "path": "/references/medusa-workflows/createDefaultsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "importProductsWorkflow",
+ "path": "/references/medusa-workflows/importProductsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createSalesChannelsWorkflow",
+ "path": "/references/medusa-workflows/createSalesChannelsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteSalesChannelsWorkflow",
+ "path": "/references/medusa-workflows/deleteSalesChannelsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateSalesChannelsWorkflow",
+ "path": "/references/medusa-workflows/updateSalesChannelsWorkflow",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+salesChannel",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/sales-channel/publishable-api-keys",
- "title": "Publishable API Keys",
+ "type": "ref",
+ "title": "validateSalesChannelsExistStep",
+ "path": "/references/medusa-workflows/steps/validateSalesChannelsExistStep",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/sales-channel/links-to-other-modules",
- "title": "Links to Modules",
+ "type": "ref",
+ "title": "findSalesChannelStep",
+ "path": "/references/medusa-workflows/steps/findSalesChannelStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "parseProductCsvStep",
+ "path": "/references/medusa-workflows/steps/parseProductCsvStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createDefaultSalesChannelStep",
+ "path": "/references/medusa-workflows/steps/createDefaultSalesChannelStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createSalesChannelsStep",
+ "path": "/references/medusa-workflows/steps/createSalesChannelsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteSalesChannelsStep",
+ "path": "/references/medusa-workflows/steps/deleteSalesChannelsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateSalesChannelsStep",
+ "path": "/references/medusa-workflows/steps/updateSalesChannelsStep",
"children": []
}
]
@@ -6880,8 +11488,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7039,18 +11648,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/stock-location/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7073,8 +11678,79 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+stockLocation",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createStockLocationsWorkflow",
+ "path": "/references/medusa-workflows/createStockLocationsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteStockLocationsWorkflow",
+ "path": "/references/medusa-workflows/deleteStockLocationsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateStockLocationsWorkflow",
+ "path": "/references/medusa-workflows/updateStockLocationsWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+stockLocation",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createStockLocations",
+ "path": "/references/medusa-workflows/steps/createStockLocations",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteStockLocationsStep",
+ "path": "/references/medusa-workflows/steps/deleteStockLocationsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateStockLocationsStep",
+ "path": "/references/medusa-workflows/steps/updateStockLocationsStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7232,18 +11908,14 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/store/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "Concepts",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7258,8 +11930,167 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+store",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateCartWorkflow",
+ "path": "/references/medusa-workflows/updateCartWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createDefaultsWorkflow",
+ "path": "/references/medusa-workflows/createDefaultsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "addOrderLineItemsWorkflow",
+ "path": "/references/medusa-workflows/addOrderLineItemsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createStoresWorkflow",
+ "path": "/references/medusa-workflows/createStoresWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteStoresWorkflow",
+ "path": "/references/medusa-workflows/deleteStoresWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateStoresWorkflow",
+ "path": "/references/medusa-workflows/updateStoresWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+store",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "findOneOrAnyRegionStep",
+ "path": "/references/medusa-workflows/steps/findOneOrAnyRegionStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "findSalesChannelStep",
+ "path": "/references/medusa-workflows/steps/findSalesChannelStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createDefaultStoreStep",
+ "path": "/references/medusa-workflows/steps/createDefaultStoreStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createStoresStep",
+ "path": "/references/medusa-workflows/steps/createStoresStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteStoresStep",
+ "path": "/references/medusa-workflows/steps/deleteStoresStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateStoresStep",
+ "path": "/references/medusa-workflows/steps/updateStoresStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7424,42 +12255,247 @@ export const generatedSidebar = [
"title": "Module Options",
"children": []
},
+ {
+ "type": "separator"
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Concepts",
+ "initialOpen": false,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/tax/tax-region",
+ "title": "Tax Region",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/tax/tax-rates-and-rules",
+ "title": "Tax Rates and Rules",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/commerce-modules/tax/tax-calculation-with-provider",
+ "title": "Tax Calculation and Providers",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+tax",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "link",
+ "path": "/references/tax/provider",
+ "title": "Tax Provider Reference",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Get Variant Price with Taxes",
+ "path": "/commerce-modules/product/guides/price-with-taxes",
+ "children": []
+ }
+ ]
+ },
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/tax/examples",
- "title": "Examples",
- "children": []
+ "type": "category",
+ "title": "Storefront Guides",
+ "autogenerate_tags": "storefront+tax",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "Example: Show Price with Taxes",
+ "path": "/storefront-development/products/price/examples/tax-price",
+ "children": []
+ }
+ ]
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Concepts",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+tax",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/tax/tax-region",
- "title": "Tax Region",
+ "type": "ref",
+ "title": "createCartWorkflow",
+ "path": "/references/medusa-workflows/createCartWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/tax/tax-rates-and-rules",
- "title": "Tax Rates and Rules",
+ "type": "ref",
+ "title": "updateTaxLinesWorkflow",
+ "path": "/references/medusa-workflows/updateTaxLinesWorkflow",
"children": []
},
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/tax/tax-calculation-with-provider",
- "title": "Tax Calculation and Providers",
+ "type": "ref",
+ "title": "createClaimShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createClaimShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createExchangeShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createExchangeShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderEditShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createOrderEditShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createOrderWorkflow",
+ "path": "/references/medusa-workflows/createOrderWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createReturnShippingMethodWorkflow",
+ "path": "/references/medusa-workflows/createReturnShippingMethodWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderClaimAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderClaimAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderEditAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderEditAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "orderExchangeAddNewItemWorkflow",
+ "path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateOrderTaxLinesWorkflow",
+ "path": "/references/medusa-workflows/updateOrderTaxLinesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createTaxRateRulesWorkflow",
+ "path": "/references/medusa-workflows/createTaxRateRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createTaxRatesWorkflow",
+ "path": "/references/medusa-workflows/createTaxRatesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createTaxRegionsWorkflow",
+ "path": "/references/medusa-workflows/createTaxRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRateRulesWorkflow",
+ "path": "/references/medusa-workflows/deleteTaxRateRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRatesWorkflow",
+ "path": "/references/medusa-workflows/deleteTaxRatesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRegionsWorkflow",
+ "path": "/references/medusa-workflows/deleteTaxRegionsWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "setTaxRateRulesWorkflow",
+ "path": "/references/medusa-workflows/setTaxRateRulesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateTaxRatesWorkflow",
+ "path": "/references/medusa-workflows/updateTaxRatesWorkflow",
"children": []
}
]
@@ -7467,15 +12503,82 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+tax",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
"isPathHref": true,
- "type": "link",
- "path": "/references/tax/provider",
- "title": "Tax Provider Reference",
+ "type": "ref",
+ "title": "createTaxRateRulesStep",
+ "path": "/references/medusa-workflows/steps/createTaxRateRulesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createTaxRatesStep",
+ "path": "/references/medusa-workflows/steps/createTaxRatesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createTaxRegionsStep",
+ "path": "/references/medusa-workflows/steps/createTaxRegionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRateRulesStep",
+ "path": "/references/medusa-workflows/steps/deleteTaxRateRulesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRatesStep",
+ "path": "/references/medusa-workflows/steps/deleteTaxRatesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteTaxRegionsStep",
+ "path": "/references/medusa-workflows/steps/deleteTaxRegionsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "getItemTaxLinesStep",
+ "path": "/references/medusa-workflows/steps/getItemTaxLinesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "listTaxRateRuleIdsStep",
+ "path": "/references/medusa-workflows/steps/listTaxRateRuleIdsStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateTaxRatesStep",
+ "path": "/references/medusa-workflows/steps/updateTaxRatesStep",
"children": []
}
]
@@ -7483,8 +12586,9 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
@@ -7762,18 +12866,16 @@ export const generatedSidebar = [
"children": []
},
{
- "loaded": true,
- "isPathHref": true,
- "type": "link",
- "path": "/commerce-modules/user/examples",
- "title": "Examples",
- "children": []
+ "type": "separator"
},
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
- "title": "Guides",
+ "type": "category",
+ "title": "Server Guides",
+ "autogenerate_tags": "server+user",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
"children": [
{
"loaded": true,
@@ -7788,8 +12890,159 @@ export const generatedSidebar = [
{
"loaded": true,
"isPathHref": true,
- "type": "sub-category",
+ "type": "category",
+ "title": "Workflows",
+ "autogenerate_tags": "workflow+user",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "acceptInviteWorkflow",
+ "path": "/references/medusa-workflows/acceptInviteWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInvitesWorkflow",
+ "path": "/references/medusa-workflows/createInvitesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteInvitesWorkflow",
+ "path": "/references/medusa-workflows/deleteInvitesWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "refreshInviteTokensWorkflow",
+ "path": "/references/medusa-workflows/refreshInviteTokensWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createUserAccountWorkflow",
+ "path": "/references/medusa-workflows/createUserAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createUsersWorkflow",
+ "path": "/references/medusa-workflows/createUsersWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteUsersWorkflow",
+ "path": "/references/medusa-workflows/deleteUsersWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "removeUserAccountWorkflow",
+ "path": "/references/medusa-workflows/removeUserAccountWorkflow",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateUsersWorkflow",
+ "path": "/references/medusa-workflows/updateUsersWorkflow",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
+ "title": "Steps",
+ "autogenerate_tags": "step+user",
+ "initialOpen": false,
+ "autogenerate_as_ref": true,
+ "children": [
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createInviteStep",
+ "path": "/references/medusa-workflows/steps/createInviteStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteInvitesStep",
+ "path": "/references/medusa-workflows/steps/deleteInvitesStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "refreshInviteTokensStep",
+ "path": "/references/medusa-workflows/steps/refreshInviteTokensStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "validateTokenStep",
+ "path": "/references/medusa-workflows/steps/validateTokenStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "createUsersStep",
+ "path": "/references/medusa-workflows/steps/createUsersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "deleteUsersStep",
+ "path": "/references/medusa-workflows/steps/deleteUsersStep",
+ "children": []
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "ref",
+ "title": "updateUsersStep",
+ "path": "/references/medusa-workflows/steps/updateUsersStep",
+ "children": []
+ }
+ ]
+ },
+ {
+ "loaded": true,
+ "isPathHref": true,
+ "type": "category",
"title": "References",
+ "initialOpen": false,
"children": [
{
"loaded": true,
diff --git a/www/apps/resources/scripts/prepare.mjs b/www/apps/resources/scripts/prepare.mjs
index 78ee2bb6e5ff3..a9ec814a87ea8 100644
--- a/www/apps/resources/scripts/prepare.mjs
+++ b/www/apps/resources/scripts/prepare.mjs
@@ -1,12 +1,9 @@
import { generateEditedDates, generateSidebar } from "build-scripts"
-import { generateTags } from "tags"
import { main as generateSlugChanges } from "./generate-slug-changes.mjs"
import { main as generateFilesMap } from "./generate-files-map.mjs"
import { sidebar } from "../sidebar.mjs"
-import path from "path"
async function main() {
- await generateTags(path.resolve("..", "..", "packages", "tags"))
await generateSidebar(sidebar)
await generateSlugChanges()
await generateFilesMap()
diff --git a/www/apps/resources/sidebars/api-key.mjs b/www/apps/resources/sidebars/api-key.mjs
index aeffd5387cd81..19823e33e70b4 100644
--- a/www/apps/resources/sidebars/api-key.mjs
+++ b/www/apps/resources/sidebars/api-key.mjs
@@ -11,13 +11,12 @@ export const apiKeySidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/api-key/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -32,8 +31,44 @@ export const apiKeySidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Storefront Guides",
+ initialOpen: false,
+ autogenerate_tags: "storefront+apiKey",
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ initialOpen: false,
+ autogenerate_tags: "admin+apiKey",
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ initialOpen: false,
+ autogenerate_tags: "userGuide+apiKey",
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ initialOpen: false,
+ autogenerate_tags: "workflow+apiKey",
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ initialOpen: false,
+ autogenerate_tags: "step+apiKey",
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/auth.mjs b/www/apps/resources/sidebars/auth.mjs
index 6f4baea84e7de..216e2c053811d 100644
--- a/www/apps/resources/sidebars/auth.mjs
+++ b/www/apps/resources/sidebars/auth.mjs
@@ -16,13 +16,12 @@ export const authSidebar = [
title: "Module Options",
},
{
- type: "link",
- path: "/commerce-modules/auth/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -47,8 +46,11 @@ export const authSidebar = [
],
},
{
- type: "sub-category",
- title: "Guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
children: [
{
type: "link",
@@ -68,8 +70,44 @@ export const authSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+auth",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "Providers",
+ initialOpen: false,
children: [
{
type: "link",
@@ -89,8 +127,9 @@ export const authSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/cart.mjs b/www/apps/resources/sidebars/cart.mjs
index b017109d514c6..015ffacfd1b0f 100644
--- a/www/apps/resources/sidebars/cart.mjs
+++ b/www/apps/resources/sidebars/cart.mjs
@@ -11,18 +11,12 @@ export const cartSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/cart/examples",
- title: "Examples",
- },
- {
- type: "link",
- path: "/commerce-modules/cart/extend",
- title: "Extend Module",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -47,8 +41,58 @@ export const cartSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ children: [
+ {
+ type: "link",
+ path: "/commerce-modules/cart/extend",
+ title: "Extend Module",
+ },
+ ],
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+cart",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/currency.mjs b/www/apps/resources/sidebars/currency.mjs
index 57a53b2bc928e..f2c2796a4b388 100644
--- a/www/apps/resources/sidebars/currency.mjs
+++ b/www/apps/resources/sidebars/currency.mjs
@@ -11,13 +11,12 @@ export const currencySidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/currency/examples",
- title: "Examples",
+ type: "separator",
},
{
type: "sub-category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -26,16 +25,59 @@ export const currencySidebar = [
},
],
},
+ {
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+currency",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
{
type: "sub-category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
path: "/references/currency",
title: "Main Service Reference",
isChildSidebar: true,
- childSidebarTitle: "Cart Module's Main Service Reference",
+ childSidebarTitle: "Currency Module's Main Service Reference",
children: [
{
type: "category",
diff --git a/www/apps/resources/sidebars/customer.mjs b/www/apps/resources/sidebars/customer.mjs
index 3f1d6ec450082..25ed586ba4521 100644
--- a/www/apps/resources/sidebars/customer.mjs
+++ b/www/apps/resources/sidebars/customer.mjs
@@ -11,18 +11,12 @@ export const customerSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/customer/examples",
- title: "Examples",
- },
- {
- type: "link",
- path: "/commerce-modules/customer/extend",
- title: "Extend Module",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -37,8 +31,58 @@ export const customerSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ children: [
+ {
+ type: "link",
+ path: "/commerce-modules/customer/extend",
+ title: "Extend Module",
+ },
+ ],
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+customer",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/fulfillment.mjs b/www/apps/resources/sidebars/fulfillment.mjs
index c46b2fec93fb6..22eda06b5b202 100644
--- a/www/apps/resources/sidebars/fulfillment.mjs
+++ b/www/apps/resources/sidebars/fulfillment.mjs
@@ -16,8 +16,12 @@ export const fulfillmentSidebar = [
title: "Module Options",
},
{
- type: "sub-category",
+ type: "separator",
+ },
+ {
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -47,8 +51,11 @@ export const fulfillmentSidebar = [
],
},
{
- type: "sub-category",
- title: "Guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
children: [
{
type: "link",
@@ -56,15 +63,51 @@ export const fulfillmentSidebar = [
title: "Create Fulfillment Provider Module",
},
{
- type: "link",
+ type: "ref",
path: "/integrations/guides/shipstation",
title: "Integrate ShipStation",
},
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+fulfillment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/inventory.mjs b/www/apps/resources/sidebars/inventory.mjs
index 4d32a13a7546a..ed2c3d1ceafd4 100644
--- a/www/apps/resources/sidebars/inventory.mjs
+++ b/www/apps/resources/sidebars/inventory.mjs
@@ -11,13 +11,12 @@ export const inventorySidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/inventory/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -37,8 +36,51 @@ export const inventorySidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+inventory",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/order-module.mjs b/www/apps/resources/sidebars/order-module.mjs
index 1142348b9fc70..911fc02eb02f8 100644
--- a/www/apps/resources/sidebars/order-module.mjs
+++ b/www/apps/resources/sidebars/order-module.mjs
@@ -11,8 +11,12 @@ export const orderSidebar = [
title: "Overview",
},
{
- type: "sub-category",
+ type: "separator",
+ },
+ {
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -72,8 +76,51 @@ export const orderSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+order",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/payment.mjs b/www/apps/resources/sidebars/payment.mjs
index 7e9625fd4d800..0f0b032745d34 100644
--- a/www/apps/resources/sidebars/payment.mjs
+++ b/www/apps/resources/sidebars/payment.mjs
@@ -16,13 +16,12 @@ export const paymentSidebar = [
title: "Module Options",
},
{
- type: "link",
- path: "/commerce-modules/payment/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -57,8 +56,11 @@ export const paymentSidebar = [
],
},
{
- type: "sub-category",
- title: "Guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
children: [
{
type: "link",
@@ -73,8 +75,44 @@ export const paymentSidebar = [
],
},
{
- type: "sub-category",
- title: "Payment Providers",
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+payment",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Providers",
+ initialOpen: false,
children: [
{
type: "link",
@@ -84,8 +122,9 @@ export const paymentSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/pricing.mjs b/www/apps/resources/sidebars/pricing.mjs
index 090fde1184b2a..c75402480aebf 100644
--- a/www/apps/resources/sidebars/pricing.mjs
+++ b/www/apps/resources/sidebars/pricing.mjs
@@ -11,13 +11,12 @@ export const pricingSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/pricing/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -47,8 +46,51 @@ export const pricingSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+pricing",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/product.mjs b/www/apps/resources/sidebars/product.mjs
index bb2157bd33663..715b29e016253 100644
--- a/www/apps/resources/sidebars/product.mjs
+++ b/www/apps/resources/sidebars/product.mjs
@@ -11,18 +11,12 @@ export const productSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/product/examples",
- title: "Examples",
- },
- {
- type: "link",
- path: "/commerce-modules/product/extend",
- title: "Extend Module",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -32,13 +26,68 @@ export const productSidebar = [
],
},
{
- type: "sub-category",
- title: "Guides",
- autogenerate_path: "/commerce-modules/product/guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ children: [
+ {
+ type: "link",
+ path: "/commerce-modules/product/extend",
+ title: "Extend Module",
+ },
+ {
+ type: "link",
+ path: "/commerce-modules/product/guides/price",
+ title: "Get Variant Prices",
+ },
+ {
+ type: "link",
+ path: "/commerce-modules/product/guides/price-with-taxes",
+ title: "Get Variant Price with Taxes",
+ },
+ ],
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+product",
+ initialOpen: false,
+ autogenerate_as_ref: true,
},
{
- type: "sub-category",
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/promotion.mjs b/www/apps/resources/sidebars/promotion.mjs
index 9072b55202cfc..d7877353cf503 100644
--- a/www/apps/resources/sidebars/promotion.mjs
+++ b/www/apps/resources/sidebars/promotion.mjs
@@ -11,18 +11,12 @@ export const promotionSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/promotion/examples",
- title: "Examples",
- },
- {
- type: "link",
- path: "/commerce-modules/promotion/extend",
- title: "Extend Module",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -52,8 +46,58 @@ export const promotionSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ children: [
+ {
+ type: "link",
+ path: "/commerce-modules/promotion/extend",
+ title: "Extend Module",
+ },
+ ],
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+promotion",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/region.mjs b/www/apps/resources/sidebars/region.mjs
index d8515c01cc061..0b9d93d94ee0a 100644
--- a/www/apps/resources/sidebars/region.mjs
+++ b/www/apps/resources/sidebars/region.mjs
@@ -11,13 +11,12 @@ export const regionSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/region/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -27,8 +26,51 @@ export const regionSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+region",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/sales-channel.mjs b/www/apps/resources/sidebars/sales-channel.mjs
index de38d90b5b176..d1aa355a2a05c 100644
--- a/www/apps/resources/sidebars/sales-channel.mjs
+++ b/www/apps/resources/sidebars/sales-channel.mjs
@@ -11,13 +11,12 @@ export const salesChannelSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/sales-channel/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -32,8 +31,51 @@ export const salesChannelSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+salesChannel",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/stock-location.mjs b/www/apps/resources/sidebars/stock-location.mjs
index daa2c277f516a..39b4cc02a3a8f 100644
--- a/www/apps/resources/sidebars/stock-location.mjs
+++ b/www/apps/resources/sidebars/stock-location.mjs
@@ -11,13 +11,12 @@ export const stockLocationSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/stock-location/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -32,8 +31,51 @@ export const stockLocationSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+stockLocation",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/store.mjs b/www/apps/resources/sidebars/store.mjs
index 08d87591ba8f8..ecb00d450e1ad 100644
--- a/www/apps/resources/sidebars/store.mjs
+++ b/www/apps/resources/sidebars/store.mjs
@@ -11,13 +11,12 @@ export const storeSidebar = [
title: "Overview",
},
{
- type: "link",
- path: "/commerce-modules/store/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -27,8 +26,51 @@ export const storeSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+store",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/tax.mjs b/www/apps/resources/sidebars/tax.mjs
index 59f30262f0eb8..0aaea5b753369 100644
--- a/www/apps/resources/sidebars/tax.mjs
+++ b/www/apps/resources/sidebars/tax.mjs
@@ -16,13 +16,12 @@ export const taxSidebar = [
title: "Module Options",
},
{
- type: "link",
- path: "/commerce-modules/tax/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
+ type: "category",
title: "Concepts",
+ initialOpen: false,
children: [
{
type: "link",
@@ -42,8 +41,11 @@ export const taxSidebar = [
],
},
{
- type: "sub-category",
- title: "Guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
children: [
{
type: "link",
@@ -53,8 +55,44 @@ export const taxSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+tax",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/apps/resources/sidebars/user.mjs b/www/apps/resources/sidebars/user.mjs
index 7bd33cbc12a8a..a8144829a4bbc 100644
--- a/www/apps/resources/sidebars/user.mjs
+++ b/www/apps/resources/sidebars/user.mjs
@@ -16,13 +16,14 @@ export const userSidebar = [
title: "Module Options",
},
{
- type: "link",
- path: "/commerce-modules/user/examples",
- title: "Examples",
+ type: "separator",
},
{
- type: "sub-category",
- title: "Guides",
+ type: "category",
+ title: "Server Guides",
+ autogenerate_tags: "server+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
children: [
{
type: "link",
@@ -32,8 +33,44 @@ export const userSidebar = [
],
},
{
- type: "sub-category",
+ type: "category",
+ title: "Storefront Guides",
+ autogenerate_tags: "storefront+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Admin Guides",
+ autogenerate_tags: "admin+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "User Guides",
+ autogenerate_tags: "userGuides+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Workflows",
+ autogenerate_tags: "workflow+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
+ title: "Steps",
+ autogenerate_tags: "step+user",
+ initialOpen: false,
+ autogenerate_as_ref: true,
+ },
+ {
+ type: "category",
title: "References",
+ initialOpen: false,
children: [
{
type: "link",
diff --git a/www/packages/build-scripts/src/generate-sidebar.ts b/www/packages/build-scripts/src/generate-sidebar.ts
index 35ff3379c4dc5..a7bd54137a1c9 100644
--- a/www/packages/build-scripts/src/generate-sidebar.ts
+++ b/www/packages/build-scripts/src/generate-sidebar.ts
@@ -88,23 +88,35 @@ async function getAutogeneratedSidebarItems(
}
async function getAutogeneratedTagSidebarItems(
- tags: string
+ tags: string,
+ type: "link" | "ref",
+ existingChildren?: RawSidebarItem[]
): Promise {
const items: ItemsToAdd[] = []
const parsedTags = parseTags(tags)
items.push(
- ...parsedTags.map(
- (tagItem) =>
- ({
- type: "link",
- ...tagItem,
- }) as ItemsToAdd
- )
+ ...parsedTags
+ .filter((tagItem) => {
+ return existingChildren?.every((existingItem) => {
+ if (existingItem.type !== "link" && existingItem.type !== "ref") {
+ return true
+ }
+
+ return existingItem.path !== tagItem.path
+ })
+ })
+ .map(
+ (tagItem) =>
+ ({
+ type,
+ ...tagItem,
+ }) as ItemsToAdd
+ )
)
- return sidebarAttachHrefCommonOptions(items)
+ return sidebarAttachHrefCommonOptions([...(existingChildren || []), ...items])
}
async function checkItem(item: RawSidebarItem): Promise {
@@ -130,7 +142,9 @@ async function checkItem(item: RawSidebarItem): Promise {
})
} else if (item.autogenerate_tags) {
item.children = await getAutogeneratedTagSidebarItems(
- item.autogenerate_tags
+ item.autogenerate_tags,
+ item.autogenerate_as_ref ? "ref" : "link",
+ item.children
)
} else if (
item.custom_autogenerate &&
@@ -138,21 +152,29 @@ async function checkItem(item: RawSidebarItem): Promise {
) {
item.children = await customGenerators[item.custom_autogenerate]()
} else if (item.children) {
- item.children = await Promise.all(
- item.children.map(async (childItem) => await checkItem(childItem))
- )
+ item.children = await checkItems(item.children)
}
return item
}
+async function checkItems(items: RawSidebarItem[]): Promise {
+ return (
+ await Promise.all(items.map(async (item) => await checkItem(item)))
+ ).filter((item) => {
+ if (item.type !== "category" && item.type !== "sub-category") {
+ return true
+ }
+
+ return (item.children?.length || 0) > 0
+ })
+}
+
export async function generateSidebar(sidebar: RawSidebarItem[]) {
const path = await import("path")
const { writeFileSync } = await import("fs")
- const normalizedSidebar = await Promise.all(
- sidebar.map(async (item) => await checkItem(item))
- )
+ const normalizedSidebar = await checkItems(sidebar)
const generatedDirPath = path.resolve("generated")
diff --git a/www/packages/build-scripts/src/utils/parse-tags.ts b/www/packages/build-scripts/src/utils/parse-tags.ts
index ba4ac77874bed..710ff825edca9 100644
--- a/www/packages/build-scripts/src/utils/parse-tags.ts
+++ b/www/packages/build-scripts/src/utils/parse-tags.ts
@@ -27,14 +27,11 @@ const getIntersectionTags = (tags: string): Tag => {
.map((tagName) => getTagItems(tagName))
.filter((tag) => tag !== undefined) as Tag[]
- if (!tagsToIntersect.length) {
+ if (tagsToIntersect.length < 2) {
+ // if there are less than 2 tags to intersect, return an empty array
return []
}
- if (tagsToIntersect.length === 1) {
- return tagsToIntersect[0]
- }
-
return tagsToIntersect[0].filter((tagItem) => {
return tagsToIntersect
.slice(1)
diff --git a/www/packages/docs-ui/src/components/Breadcrumbs/index.tsx b/www/packages/docs-ui/src/components/Breadcrumbs/index.tsx
index 4c5476abef5e5..e794c9f34c5ea 100644
--- a/www/packages/docs-ui/src/components/Breadcrumbs/index.tsx
+++ b/www/packages/docs-ui/src/components/Breadcrumbs/index.tsx
@@ -4,7 +4,12 @@ import React, { useMemo } from "react"
import clsx from "clsx"
import Link from "next/link"
import { SidebarItemLink } from "types"
-import { CurrentItemsState, useSidebar, useSiteConfig } from "../../providers"
+import {
+ CurrentItemsState,
+ isSidebarItemLink,
+ useSidebar,
+ useSiteConfig,
+} from "../../providers"
import { Button } from "../Button"
import { TriangleRightMini } from "@medusajs/icons"
@@ -29,22 +34,20 @@ export const Breadcrumbs = () => {
tempBreadcrumbItems = getBreadcrumbsOfItem(item.previousSidebar)
}
- const parentPath =
- item.parentItem?.type === "link"
- ? getLinkPath(item.parentItem)
- : (item.parentItem?.type === "category" &&
- breadcrumbOptions?.showCategories) ||
- item.parentItem?.type === "sub-category"
- ? "#"
- : undefined
- const firstItemPath =
- item.default[0].type === "link"
- ? getLinkPath(item.default[0])
- : (item.default[0].type === "category" &&
- breadcrumbOptions?.showCategories) ||
- item.default[0].type === "sub-category"
- ? "#"
- : undefined
+ const parentPath = isSidebarItemLink(item.parentItem)
+ ? getLinkPath(item.parentItem)
+ : (item.parentItem?.type === "category" &&
+ breadcrumbOptions?.showCategories) ||
+ item.parentItem?.type === "sub-category"
+ ? "#"
+ : undefined
+ const firstItemPath = isSidebarItemLink(item.default[0])
+ ? getLinkPath(item.default[0])
+ : (item.default[0].type === "category" &&
+ breadcrumbOptions?.showCategories) ||
+ item.default[0].type === "sub-category"
+ ? "#"
+ : undefined
const breadcrumbPath = parentPath || firstItemPath || "/"
@@ -76,7 +79,7 @@ export const Breadcrumbs = () => {
breadcrumbOptions?.showCategories)
) {
tempBreadcrumbItems.set(
- sidebarActiveItem.parentItem.type === "link"
+ isSidebarItemLink(sidebarActiveItem.parentItem)
? getLinkPath(sidebarActiveItem.parentItem) || "#"
: "#",
sidebarActiveItem.parentItem.chapterTitle ||
diff --git a/www/packages/docs-ui/src/components/ChildDocs/index.tsx b/www/packages/docs-ui/src/components/ChildDocs/index.tsx
index 9e3e23563f7cb..724c3748ed381 100644
--- a/www/packages/docs-ui/src/components/ChildDocs/index.tsx
+++ b/www/packages/docs-ui/src/components/ChildDocs/index.tsx
@@ -1,193 +1,10 @@
"use client"
-import React, { useMemo } from "react"
-import { Card, CardList, H2, useSidebar } from "../.."
-import { InteractiveSidebarItem, SidebarItem, SidebarItemLink } from "types"
-import slugify from "slugify"
-import { MDXComponents } from "../.."
+import React from "react"
+import { useChildDocs, UseChildDocsProps } from "../.."
-const Hr = MDXComponents["hr"] as () => React.JSX.Element
+export const ChildDocs = (props: UseChildDocsProps) => {
+ const { component } = useChildDocs(props)
-type ChildDocsProps = {
- onlyTopLevel?: boolean
- type?: "sidebar" | "item"
- hideItems?: string[]
- showItems?: string[]
- hideTitle?: boolean
- childLevel?: number
-}
-
-export const ChildDocs = ({
- onlyTopLevel = false,
- hideItems = [],
- showItems,
- type = "sidebar",
- hideTitle = false,
- childLevel = 1,
-}: ChildDocsProps) => {
- const { currentItems, activeItem } = useSidebar()
- const filterType = useMemo(() => {
- return showItems !== undefined
- ? "show"
- : hideItems.length > 0
- ? "hide"
- : "all"
- }, [showItems, hideItems])
-
- const filterCondition = (item: SidebarItem): boolean => {
- if (item.type === "separator") {
- return false
- }
- switch (filterType) {
- case "hide":
- return (
- (item.type !== "link" || !hideItems.includes(item.path)) &&
- !hideItems.includes(item.title)
- )
- case "show":
- return (
- (item.type === "link" && showItems!.includes(item.path)) ||
- showItems!.includes(item.title)
- )
- case "all":
- return true
- }
- }
-
- const filterItems = (items: SidebarItem[]): SidebarItem[] => {
- return items
- .filter(filterCondition)
- .map((item) => Object.assign({}, item))
- .map((item) => {
- if (
- item.type !== "separator" &&
- item.children &&
- filterType === "hide"
- ) {
- item.children = filterItems(item.children)
- }
-
- return item
- })
- }
-
- const filteredItems = useMemo(() => {
- const targetItems =
- type === "sidebar"
- ? currentItems
- ? Object.assign({}, currentItems)
- : undefined
- : {
- default: [...(activeItem?.children || [])],
- }
- if (filterType === "all" || !targetItems) {
- return targetItems
- }
-
- return {
- ...targetItems,
- default: filterItems(targetItems.default),
- }
- }, [currentItems, type, activeItem, filterItems])
-
- const filterNonInteractiveItems = (
- items: SidebarItem[] | undefined
- ): InteractiveSidebarItem[] => {
- return (
- (items?.filter(
- (item) => item.type !== "separator"
- ) as InteractiveSidebarItem[]) || []
- )
- }
-
- const getChildrenForLevel = (
- item: InteractiveSidebarItem,
- currentLevel = 1
- ): InteractiveSidebarItem[] | undefined => {
- if (currentLevel === childLevel) {
- return filterNonInteractiveItems(item.children)
- }
- if (!item.children) {
- return
- }
-
- const childrenResult: InteractiveSidebarItem[] = []
-
- filterNonInteractiveItems(item.children).forEach((child) => {
- const childChildren = getChildrenForLevel(child, currentLevel + 1)
-
- if (!childChildren) {
- return
- }
-
- childrenResult.push(...childChildren)
- })
-
- return childrenResult
- }
-
- const getTopLevelElms = (items?: SidebarItem[]) => {
- return (
- {
- const href =
- childItem.type === "link"
- ? childItem.path
- : childItem.children?.length
- ? (
- childItem.children.find(
- (item) => item.type === "link"
- ) as SidebarItemLink
- )?.path
- : "#"
- return {
- title: childItem.title,
- href,
- }
- }) || []
- }
- />
- )
- }
-
- const getAllLevelsElms = (items?: SidebarItem[]) => {
- const filteredItems = filterNonInteractiveItems(items)
- return filteredItems.map((item, key) => {
- const itemChildren = getChildrenForLevel(item)
- const HeadingComponent = itemChildren?.length ? H2 : undefined
-
- return (
-
- {HeadingComponent && (
- <>
- {!hideTitle && (
-
- {item.title}
-
- )}
- ({
- title: childItem.title,
- href: childItem.type === "link" ? childItem.path : "",
- })) || []
- }
- />
- {key !== filteredItems.length - 1 &&
}
- >
- )}
- {!HeadingComponent && item.type === "link" && (
-
- )}
-
- )
- })
- }
-
- const getElms = (items?: SidebarItem[]) => {
- return onlyTopLevel ? getTopLevelElms(items) : getAllLevelsElms(items)
- }
-
- return <>{getElms(filteredItems?.default)}>
+ return <>{component}>
}
diff --git a/www/packages/docs-ui/src/components/MDXComponents/index.tsx b/www/packages/docs-ui/src/components/MDXComponents/index.tsx
index 39f2b75c1bf3d..c5377fbcb463d 100644
--- a/www/packages/docs-ui/src/components/MDXComponents/index.tsx
+++ b/www/packages/docs-ui/src/components/MDXComponents/index.tsx
@@ -120,3 +120,5 @@ export const MDXComponents: MDXComponentsType = {
return
},
}
+
+export const Hr = MDXComponents["hr"] as () => React.JSX.Element
diff --git a/www/packages/docs-ui/src/components/Sidebar/Item/index.tsx b/www/packages/docs-ui/src/components/Sidebar/Item/index.tsx
index 943e08b7181b0..0072d1690b79e 100644
--- a/www/packages/docs-ui/src/components/Sidebar/Item/index.tsx
+++ b/www/packages/docs-ui/src/components/Sidebar/Item/index.tsx
@@ -30,6 +30,7 @@ export const SidebarItem = ({
case "sub-category":
return
case "link":
+ case "ref":
return
case "separator":
return
diff --git a/www/packages/docs-ui/src/components/Sidebar/index.tsx b/www/packages/docs-ui/src/components/Sidebar/index.tsx
index e0c82fa82e01a..cdde5f23ec436 100644
--- a/www/packages/docs-ui/src/components/Sidebar/index.tsx
+++ b/www/packages/docs-ui/src/components/Sidebar/index.tsx
@@ -1,7 +1,7 @@
"use client"
import React, { Suspense, useMemo, useRef } from "react"
-import { useSidebar } from "@/providers"
+import { isSidebarItemLink, useSidebar } from "@/providers"
import clsx from "clsx"
import { Loading } from "@/components"
import { SidebarItem } from "./Item"
@@ -139,7 +139,7 @@ export const Sidebar = ({
const itemKey =
item.type === "separator"
? index
- : item.type === "link"
+ : isSidebarItemLink(item)
? `${item.path}-${index}`
: `${item.title}-${index}`
return (
diff --git a/www/packages/docs-ui/src/hooks/index.ts b/www/packages/docs-ui/src/hooks/index.ts
index cca8f31263877..42079da035b04 100644
--- a/www/packages/docs-ui/src/hooks/index.ts
+++ b/www/packages/docs-ui/src/hooks/index.ts
@@ -1,4 +1,5 @@
export * from "./use-active-on-scroll"
+export * from "./use-child-docs"
export * from "./use-click-outside"
export * from "./use-collapsible"
export * from "./use-collapsible-code-lines"
diff --git a/www/packages/docs-ui/src/hooks/use-child-docs/index.tsx b/www/packages/docs-ui/src/hooks/use-child-docs/index.tsx
new file mode 100644
index 0000000000000..0c677173a49c8
--- /dev/null
+++ b/www/packages/docs-ui/src/hooks/use-child-docs/index.tsx
@@ -0,0 +1,228 @@
+"use client"
+
+import React, { useMemo } from "react"
+import {
+ Card,
+ CardList,
+ H2,
+ H3,
+ H4,
+ Hr,
+ isSidebarItemLink,
+ useSidebar,
+} from "../.."
+import { InteractiveSidebarItem, SidebarItem, SidebarItemLink } from "types"
+import slugify from "slugify"
+import { MDXComponents } from "../.."
+
+type HeadingComponent = (
+ props: React.HTMLAttributes
+) => React.JSX.Element
+
+export type UseChildDocsProps = {
+ onlyTopLevel?: boolean
+ type?: "sidebar" | "item"
+ hideItems?: string[]
+ showItems?: string[]
+ hideTitle?: boolean
+ titleLevel?: number
+ childLevel?: number
+ itemsPerRow?: number
+}
+
+export const useChildDocs = ({
+ onlyTopLevel = false,
+ hideItems = [],
+ showItems,
+ type = "sidebar",
+ hideTitle = false,
+ titleLevel = 2,
+ childLevel = 1,
+ itemsPerRow,
+}: UseChildDocsProps) => {
+ const { currentItems, activeItem } = useSidebar()
+ const TitleHeaderComponent: HeadingComponent = useMemo(() => {
+ switch (titleLevel) {
+ case 3:
+ return H3
+ case 4:
+ return H4
+ case 5:
+ return MDXComponents["h5"] as HeadingComponent
+ case 6:
+ return MDXComponents["h6"] as HeadingComponent
+ default:
+ return H2
+ }
+ }, [titleLevel])
+ const filterType = useMemo(() => {
+ return showItems !== undefined
+ ? "show"
+ : hideItems.length > 0
+ ? "hide"
+ : "all"
+ }, [showItems, hideItems])
+
+ const filterCondition = (item: SidebarItem): boolean => {
+ if (item.type === "separator") {
+ return false
+ }
+ switch (filterType) {
+ case "hide":
+ return (
+ (!isSidebarItemLink(item) || !hideItems.includes(item.path)) &&
+ !hideItems.includes(item.title)
+ )
+ case "show":
+ return (
+ (isSidebarItemLink(item) && showItems!.includes(item.path)) ||
+ showItems!.includes(item.title)
+ )
+ case "all":
+ return true
+ }
+ }
+
+ const filterItems = (items: SidebarItem[]): SidebarItem[] => {
+ return items
+ .filter(filterCondition)
+ .map((item) => Object.assign({}, item))
+ .map((item) => {
+ if (
+ item.type !== "separator" &&
+ item.children &&
+ filterType === "hide"
+ ) {
+ item.children = filterItems(item.children)
+ }
+
+ return item
+ })
+ }
+
+ const filteredItems = useMemo(() => {
+ const targetItems =
+ type === "sidebar"
+ ? currentItems
+ ? Object.assign({}, currentItems)
+ : undefined
+ : {
+ default: [...(activeItem?.children || [])],
+ }
+ if (filterType === "all" || !targetItems) {
+ return targetItems
+ }
+
+ return {
+ ...targetItems,
+ default: filterItems(targetItems.default),
+ }
+ }, [currentItems, type, activeItem, filterItems])
+
+ const filterNonInteractiveItems = (
+ items: SidebarItem[] | undefined
+ ): InteractiveSidebarItem[] => {
+ return (
+ (items?.filter(
+ (item) => item.type !== "separator"
+ ) as InteractiveSidebarItem[]) || []
+ )
+ }
+
+ const getChildrenForLevel = (
+ item: InteractiveSidebarItem,
+ currentLevel = 1
+ ): InteractiveSidebarItem[] | undefined => {
+ if (currentLevel === childLevel) {
+ return filterNonInteractiveItems(item.children)
+ }
+ if (!item.children) {
+ return
+ }
+
+ const childrenResult: InteractiveSidebarItem[] = []
+
+ filterNonInteractiveItems(item.children).forEach((child) => {
+ const childChildren = getChildrenForLevel(child, currentLevel + 1)
+
+ if (!childChildren) {
+ return
+ }
+
+ childrenResult.push(...childChildren)
+ })
+
+ return childrenResult
+ }
+
+ const getTopLevelElms = (items?: SidebarItem[]) => {
+ return (
+ {
+ const href = isSidebarItemLink(childItem)
+ ? childItem.path
+ : childItem.children?.length
+ ? (
+ childItem.children.find((item) =>
+ isSidebarItemLink(item)
+ ) as SidebarItemLink
+ )?.path
+ : "#"
+ return {
+ title: childItem.title,
+ href,
+ }
+ }) || []
+ }
+ itemsPerRow={itemsPerRow}
+ />
+ )
+ }
+
+ const getAllLevelsElms = (items?: SidebarItem[]) => {
+ const filteredItems = filterNonInteractiveItems(items)
+ return filteredItems.map((item, key) => {
+ const itemChildren = getChildrenForLevel(item)
+ const HeadingComponent = itemChildren?.length
+ ? TitleHeaderComponent
+ : undefined
+
+ return (
+
+ {HeadingComponent && (
+ <>
+ {!hideTitle && (
+
+ {item.title}
+
+ )}
+ ({
+ title: childItem.title,
+ href: isSidebarItemLink(childItem) ? childItem.path : "",
+ })) || []
+ }
+ itemsPerRow={itemsPerRow}
+ />
+ {key !== filteredItems.length - 1 &&
}
+ >
+ )}
+ {!HeadingComponent && isSidebarItemLink(item) && (
+
+ )}
+
+ )
+ })
+ }
+
+ const getElms = (items?: SidebarItem[]) => {
+ return onlyTopLevel ? getTopLevelElms(items) : getAllLevelsElms(items)
+ }
+
+ return {
+ items: filteredItems,
+ component: getElms(filteredItems?.default),
+ }
+}
diff --git a/www/packages/docs-ui/src/providers/Pagination/index.tsx b/www/packages/docs-ui/src/providers/Pagination/index.tsx
index f8211b21efd31..8788edbfc6ac9 100644
--- a/www/packages/docs-ui/src/providers/Pagination/index.tsx
+++ b/www/packages/docs-ui/src/providers/Pagination/index.tsx
@@ -7,7 +7,7 @@ import React, {
useMemo,
useState,
} from "react"
-import { useSidebar } from "../Sidebar"
+import { isSidebarItemLink, useSidebar } from "../Sidebar"
import { usePrevious } from "@uidotdev/usehooks"
import { InteractiveSidebarItem, SidebarItem } from "types"
@@ -56,7 +56,7 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
return undefined
}
- return children[0].type === "link"
+ return isSidebarItemLink(children[0])
? {
...children[0],
parent: item,
@@ -69,7 +69,7 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
): SidebarItemWithParent[] | undefined => {
return item.children?.filter(
(childItem) =>
- childItem.type === "link" ||
+ isSidebarItemLink(childItem) ||
(childItem.type !== "separator" &&
getChildrenWithPages(childItem)?.length)
) as SidebarItemWithParent[]
@@ -95,7 +95,7 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
parent: item,
}
}
- } else if (item.type === "link") {
+ } else if (isSidebarItemLink(item)) {
foundItem = item
}
@@ -115,7 +115,7 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
return false
}
- if (item.type === "link") {
+ if (isSidebarItemLink(item)) {
foundItem = item
} else if (item.children?.length) {
const childItem = getNextItem(item.children, -1)
@@ -139,7 +139,7 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
}
result.foundActive = currentItems.some((item, index) => {
- if (item.type === "link" && item.path === activePath) {
+ if (isSidebarItemLink(item) && item.path === activePath) {
if (index !== 0) {
result.prevItem = getPrevItem(currentItems, index)
}
@@ -161,8 +161,9 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
result.prevItem = childrenResult.prevItem
result.nextItem = childrenResult.nextItem
if (!result.prevItem) {
- result.prevItem =
- item.type === "link" ? item : getPrevItem(currentItems, index)
+ result.prevItem = isSidebarItemLink(item)
+ ? item
+ : getPrevItem(currentItems, index)
}
if (!result.nextItem && index !== currentItems.length - 1) {
@@ -186,7 +187,9 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
result.prevItem
? {
title: result.prevItem.title,
- link: result.prevItem.type === "link" ? result.prevItem.path : "",
+ link: isSidebarItemLink(result.prevItem)
+ ? result.prevItem.path
+ : "",
parentTitle:
result.prevItem.parent?.type !== "separator"
? result.prevItem.parent?.title
@@ -198,7 +201,9 @@ export const PaginationProvider = ({ children }: PaginationProviderProps) => {
result.nextItem
? {
title: result.nextItem.title,
- link: result.nextItem.type === "link" ? result.nextItem.path : "",
+ link: isSidebarItemLink(result.nextItem)
+ ? result.nextItem.path
+ : "",
parentTitle:
result.nextItem.parent?.type !== "separator"
? result.nextItem.parent?.title
diff --git a/www/packages/docs-ui/src/providers/Sidebar/index.tsx b/www/packages/docs-ui/src/providers/Sidebar/index.tsx
index 13cae0aa2ec84..b3b7bc1e6a43d 100644
--- a/www/packages/docs-ui/src/providers/Sidebar/index.tsx
+++ b/www/packages/docs-ui/src/providers/Sidebar/index.tsx
@@ -95,13 +95,26 @@ export type ActionType =
type LinksMap = Map
+export const isSidebarItemLink = (
+ item: SidebarItem | undefined,
+ checkRef = true
+): item is SidebarItemLink => {
+ return (
+ item !== undefined &&
+ (item.type === "link" || (checkRef && item.type === "ref"))
+ )
+}
+
const areItemsEqual = (itemA: SidebarItem, itemB: SidebarItem): boolean => {
if (itemA.type === "separator" || itemB.type === "separator") {
return false
}
const hasSameTitle = itemA.title === itemB.title
const hasSamePath =
- itemA.type === "link" && itemB.type === "link" && itemA.path === itemB.path
+ isSidebarItemLink(itemA) &&
+ isSidebarItemLink(itemB) &&
+ itemA.type === itemB.type &&
+ itemA.path === itemB.path
return hasSameTitle || hasSamePath
}
@@ -116,8 +129,8 @@ const findItem = (
if (i.type === "separator") {
return false
}
- if (areItemsEqual(item as SidebarItem, i) && i.type === "link") {
- foundItem = i
+ if (areItemsEqual(item as SidebarItem, i)) {
+ foundItem = i as SidebarItemLink
} else if (checkChildren && i.children) {
foundItem = findItem(i.children, item)
if (foundItem && !foundItem.parentItem) {
@@ -143,7 +156,7 @@ const getLinksMap = (
return
}
- if (item.type === "link") {
+ if (isSidebarItemLink(item)) {
map.set(item.path, {
...item,
parentItem,
@@ -246,7 +259,7 @@ export const reducer = (
: [...(i.children || []), ...items],
loaded: parent.changeLoaded
? true
- : i.type === "link"
+ : isSidebarItemLink(i)
? i.loaded
: true,
}
@@ -355,8 +368,8 @@ export const SidebarProvider = ({
}
const isLinkActive = useCallback(
- (item: SidebarItem, checkChildren = false): boolean => {
- if (item.type !== "link") {
+ (item: SidebarItem, checkChildren = false, checkRef = true): boolean => {
+ if (!isSidebarItemLink(item, checkRef)) {
return false
}
@@ -399,25 +412,29 @@ export const SidebarProvider = ({
if (item.type === "separator") {
return false
}
- if (item.isChildSidebar && isLinkActive(item)) {
+ if (item.isChildSidebar && isLinkActive(item, false, false)) {
currentSidebar = item
+ return true
}
-
- if (!currentSidebar && item.children?.length) {
- const childSidebar =
- getCurrentSidebar(item.children) ||
- (activePath
- ? findItem(item.children, {
- path: activePath || undefined,
- type: "link",
- })
- : undefined)
-
- if (childSidebar) {
- currentSidebar = childSidebar.isChildSidebar ? childSidebar : item
- }
+ if (!item.children?.length) {
+ return false
}
+ const childSidebar =
+ getCurrentSidebar(item.children) ||
+ (activePath
+ ? findItem(item.children, {
+ path: activePath,
+ type: "link",
+ })
+ : undefined)
+
+ currentSidebar = childSidebar
+ ? childSidebar.isChildSidebar
+ ? childSidebar
+ : item
+ : undefined
+
return currentSidebar !== undefined
})
@@ -434,7 +451,7 @@ export const SidebarProvider = ({
const previousSidebar = currentItems.previousSidebar || items
const backItem = previousSidebar.default.find(
- (item) => item.type === "link" && !item.isChildSidebar
+ (item) => isSidebarItemLink(item) && !item.isChildSidebar
) as SidebarItemLink
if (!backItem) {
@@ -472,7 +489,7 @@ export const SidebarProvider = ({
const handleScroll = () => {
if (getScrolledTop(resolvedScrollableElement) === 0) {
const firstItemPath =
- items.default.length && items.default[0].type === "link"
+ items.default.length && isSidebarItemLink(items.default[0])
? items.default[0].path
: ""
setActivePath(firstItemPath)
@@ -548,8 +565,8 @@ export const SidebarProvider = ({
) {
const { children, ...parentItem } = currentSidebar
const hasPreviousSidebar =
- currentItems?.previousSidebar?.parentItem?.type === "link" &&
- parentItem.type === "link" &&
+ isSidebarItemLink(currentItems?.previousSidebar?.parentItem) &&
+ isSidebarItemLink(parentItem) &&
currentItems.previousSidebar.parentItem.path !== parentItem.path
setCurrentItems({
diff --git a/www/packages/tags/src/tags/api-key.ts b/www/packages/tags/src/tags/api-key.ts
index 413887972854b..c0f4ea5571aa1 100644
--- a/www/packages/tags/src/tags/api-key.ts
+++ b/www/packages/tags/src/tags/api-key.ts
@@ -1,7 +1,7 @@
export const apiKey = [
{
"title": "Use a Publishable API Key in the Storefront",
- "path": "/app/storefront-development/publishable-api-keys"
+ "path": "/storefront-development/publishable-api-keys"
},
{
"title": "createApiKeysStep",
diff --git a/www/packages/tags/src/tags/auth.ts b/www/packages/tags/src/tags/auth.ts
index ee8b6fad16ff2..c86c4eeb450b5 100644
--- a/www/packages/tags/src/tags/auth.ts
+++ b/www/packages/tags/src/tags/auth.ts
@@ -1,27 +1,27 @@
export const auth = [
{
"title": "Log-out Customer in Storefront",
- "path": "/app/storefront-development/customers/log-out"
+ "path": "/storefront-development/customers/log-out"
},
{
"title": "Login Customer in Storefront",
- "path": "/app/storefront-development/customers/login"
+ "path": "/storefront-development/customers/login"
},
{
"title": "Register Customer in Storefront",
- "path": "/app/storefront-development/customers/register"
+ "path": "/storefront-development/customers/register"
},
{
"title": "Reset Customer Password in Storefront",
- "path": "/app/storefront-development/customers/reset-password"
+ "path": "/storefront-development/customers/reset-password"
},
{
"title": "Retrieve Customer in Storefront",
- "path": "/app/storefront-development/customers/retrieve"
+ "path": "/storefront-development/customers/retrieve"
},
{
"title": "Third-Party or Social Login in Storefront",
- "path": "/app/storefront-development/customers/third-party-login"
+ "path": "/storefront-development/customers/third-party-login"
},
{
"title": "setAuthAppMetadataStep",
diff --git a/www/packages/tags/src/tags/cart.ts b/www/packages/tags/src/tags/cart.ts
index bd506612ddb96..2777e5dcab162 100644
--- a/www/packages/tags/src/tags/cart.ts
+++ b/www/packages/tags/src/tags/cart.ts
@@ -1,47 +1,47 @@
export const cart = [
{
"title": "Create Cart Context in Storefront",
- "path": "/app/storefront-development/cart/context"
+ "path": "/storefront-development/cart/context"
},
{
"title": "Create Cart in Storefront",
- "path": "/app/storefront-development/cart/create"
+ "path": "/storefront-development/cart/create"
},
{
"title": "Manage Cart's Items in Storefront",
- "path": "/app/storefront-development/cart/manage-items"
+ "path": "/storefront-development/cart/manage-items"
},
{
"title": "Retrieve Cart in Storefront",
- "path": "/app/storefront-development/cart/retrieve"
+ "path": "/storefront-development/cart/retrieve"
},
{
"title": "Update Cart in Storefront",
- "path": "/app/storefront-development/cart/update"
+ "path": "/storefront-development/cart/update"
},
{
"title": "Checkout Step 2: Enter Address",
- "path": "/app/storefront-development/checkout/address"
+ "path": "/storefront-development/checkout/address"
},
{
"title": "Checkout Step 5: Complete Cart",
- "path": "/app/storefront-development/checkout/complete-cart"
+ "path": "/storefront-development/checkout/complete-cart"
},
{
"title": "Checkout Step 1: Enter Email",
- "path": "/app/storefront-development/checkout/email"
+ "path": "/storefront-development/checkout/email"
},
{
"title": "Checkout Step 4: Choose Payment Provider",
- "path": "/app/storefront-development/checkout/payment"
+ "path": "/storefront-development/checkout/payment"
},
{
"title": "Payment with Stripe in React Storefront",
- "path": "/app/storefront-development/checkout/payment/stripe"
+ "path": "/storefront-development/checkout/payment/stripe"
},
{
"title": "Checkout Step 3: Choose Shipping Method",
- "path": "/app/storefront-development/checkout/shipping"
+ "path": "/storefront-development/checkout/shipping"
},
{
"title": "addShippingMethodToCartStep",
diff --git a/www/packages/tags/src/tags/customer.ts b/www/packages/tags/src/tags/customer.ts
index e1cd6e0bc79f4..c5dcc39568e79 100644
--- a/www/packages/tags/src/tags/customer.ts
+++ b/www/packages/tags/src/tags/customer.ts
@@ -1,39 +1,39 @@
export const customer = [
{
"title": "Manage Customer Addresses in Storefront",
- "path": "/app/storefront-development/customers/addresses"
+ "path": "/storefront-development/customers/addresses"
},
{
"title": "Customer Context in Storefront",
- "path": "/app/storefront-development/customers/context"
+ "path": "/storefront-development/customers/context"
},
{
"title": "Log-out Customer in Storefront",
- "path": "/app/storefront-development/customers/log-out"
+ "path": "/storefront-development/customers/log-out"
},
{
"title": "Login Customer in Storefront",
- "path": "/app/storefront-development/customers/login"
+ "path": "/storefront-development/customers/login"
},
{
"title": "Edit Customer Profile in Storefront",
- "path": "/app/storefront-development/customers/profile"
+ "path": "/storefront-development/customers/profile"
},
{
"title": "Register Customer in Storefront",
- "path": "/app/storefront-development/customers/register"
+ "path": "/storefront-development/customers/register"
},
{
"title": "Reset Customer Password in Storefront",
- "path": "/app/storefront-development/customers/reset-password"
+ "path": "/storefront-development/customers/reset-password"
},
{
"title": "Retrieve Customer in Storefront",
- "path": "/app/storefront-development/customers/retrieve"
+ "path": "/storefront-development/customers/retrieve"
},
{
"title": "Third-Party or Social Login in Storefront",
- "path": "/app/storefront-development/customers/third-party-login"
+ "path": "/storefront-development/customers/third-party-login"
},
{
"title": "findOrCreateCustomerStep",
diff --git a/www/packages/tags/src/tags/fulfillment.ts b/www/packages/tags/src/tags/fulfillment.ts
index 03d85179c72ca..f7915835f7f13 100644
--- a/www/packages/tags/src/tags/fulfillment.ts
+++ b/www/packages/tags/src/tags/fulfillment.ts
@@ -1,7 +1,7 @@
export const fulfillment = [
{
"title": "Checkout Step 3: Choose Shipping Method",
- "path": "/app/storefront-development/checkout/shipping"
+ "path": "/storefront-development/checkout/shipping"
},
{
"title": "validateCartShippingOptionsStep",
diff --git a/www/packages/tags/src/tags/index.ts b/www/packages/tags/src/tags/index.ts
index 3180e8cc416ae..88d36d1db676d 100644
--- a/www/packages/tags/src/tags/index.ts
+++ b/www/packages/tags/src/tags/index.ts
@@ -1,31 +1,32 @@
export * from "./product.js"
-export * from "./tax.js"
+export * from "./server.js"
export * from "./storefront.js"
-export * from "./order.js"
export * from "./payment.js"
+export * from "./cart.js"
+export * from "./order.js"
export * from "./stripe.js"
export * from "./fulfillment.js"
export * from "./customer.js"
-export * from "./auth.js"
-export * from "./pricing.js"
-export * from "./product-collection.js"
+export * from "./tax.js"
export * from "./inventory.js"
+export * from "./pricing.js"
+export * from "./api-key.js"
+export * from "./query.js"
export * from "./publishable-api-key.js"
+export * from "./auth.js"
export * from "./region.js"
-export * from "./api-key.js"
-export * from "./step.js"
+export * from "./product-collection.js"
export * from "./remote-link.js"
-export * from "./sales-channel.js"
export * from "./workflow.js"
-export * from "./remote-query.js"
+export * from "./sales-channel.js"
+export * from "./product-category.js"
+export * from "./step.js"
+export * from "./promotion.js"
export * from "./event-bus.js"
export * from "./store.js"
-export * from "./logger.js"
-export * from "./promotion.js"
-export * from "./locking.js"
export * from "./file.js"
-export * from "./user.js"
-export * from "./product-category.js"
export * from "./stock-location.js"
-export * from "./cart.js"
-export * from "./query.js"
+export * from "./locking.js"
+export * from "./user.js"
+export * from "./remote-query.js"
+export * from "./logger.js"
diff --git a/www/packages/tags/src/tags/inventory.ts b/www/packages/tags/src/tags/inventory.ts
index 5ff02e0c2077d..afb302f775936 100644
--- a/www/packages/tags/src/tags/inventory.ts
+++ b/www/packages/tags/src/tags/inventory.ts
@@ -1,7 +1,7 @@
export const inventory = [
{
"title": "Retrieve Product Variant's Inventory in Storefront",
- "path": "/app/storefront-development/products/inventory"
+ "path": "/storefront-development/products/inventory"
},
{
"title": "confirmInventoryStep",
diff --git a/www/packages/tags/src/tags/order.ts b/www/packages/tags/src/tags/order.ts
index 947d59f35769f..2f975e940151a 100644
--- a/www/packages/tags/src/tags/order.ts
+++ b/www/packages/tags/src/tags/order.ts
@@ -1,7 +1,7 @@
export const order = [
{
"title": "Checkout Step 5: Complete Cart",
- "path": "/app/storefront-development/checkout/complete-cart"
+ "path": "/storefront-development/checkout/complete-cart"
},
{
"title": "addOrderTransactionStep",
diff --git a/www/packages/tags/src/tags/payment.ts b/www/packages/tags/src/tags/payment.ts
index 77a35378c6457..4d32aed86b31e 100644
--- a/www/packages/tags/src/tags/payment.ts
+++ b/www/packages/tags/src/tags/payment.ts
@@ -1,15 +1,19 @@
export const payment = [
+ {
+ "title": "Customize the Stripe Integration in the Next.js Starter",
+ "path": "/nextjs-starter/guides/customize-stripe"
+ },
{
"title": "Checkout Step 5: Complete Cart",
- "path": "/app/storefront-development/checkout/complete-cart"
+ "path": "/storefront-development/checkout/complete-cart"
},
{
"title": "Checkout Step 4: Choose Payment Provider",
- "path": "/app/storefront-development/checkout/payment"
+ "path": "/storefront-development/checkout/payment"
},
{
"title": "Payment with Stripe in React Storefront",
- "path": "/app/storefront-development/checkout/payment/stripe"
+ "path": "/storefront-development/checkout/payment/stripe"
},
{
"title": "createPaymentCollectionsStep",
diff --git a/www/packages/tags/src/tags/pricing.ts b/www/packages/tags/src/tags/pricing.ts
index d309be07b26e5..7ff9fae2b33b8 100644
--- a/www/packages/tags/src/tags/pricing.ts
+++ b/www/packages/tags/src/tags/pricing.ts
@@ -1,27 +1,27 @@
export const pricing = [
{
"title": "Get Variant Prices",
- "path": "/app/commerce-modules/product/guides/price"
+ "path": "/commerce-modules/product/guides/price"
},
{
"title": "Get Variant Price with Taxes",
- "path": "/app/commerce-modules/product/guides/price-with-taxes"
+ "path": "/commerce-modules/product/guides/price-with-taxes"
},
{
"title": "Example: Show Sale Price",
- "path": "/app/storefront-development/products/price/examples/sale-price"
+ "path": "/storefront-development/products/price/examples/sale-price"
},
{
"title": "Example: Show Variant's Price",
- "path": "/app/storefront-development/products/price/examples/show-price"
+ "path": "/storefront-development/products/price/examples/show-price"
},
{
"title": "Example: Show Price with Taxes",
- "path": "/app/storefront-development/products/price/examples/tax-price"
+ "path": "/storefront-development/products/price/examples/tax-price"
},
{
"title": "Retrieve Product Variant's Prices in Storefront",
- "path": "/app/storefront-development/products/price"
+ "path": "/storefront-development/products/price"
},
{
"title": "createShippingOptionsPriceSetsStep",
diff --git a/www/packages/tags/src/tags/product-category.ts b/www/packages/tags/src/tags/product-category.ts
index 0cbb9575019db..6e8622c36a105 100644
--- a/www/packages/tags/src/tags/product-category.ts
+++ b/www/packages/tags/src/tags/product-category.ts
@@ -1,18 +1,18 @@
export const productCategory = [
{
"title": "List Product Categories in Storefront",
- "path": "/app/storefront-development/products/categories/list"
+ "path": "/storefront-development/products/categories/list"
},
{
"title": "Retrieve Nested Categories in Storefront",
- "path": "/app/storefront-development/products/categories/nested-categories"
+ "path": "/storefront-development/products/categories/nested-categories"
},
{
"title": "Retrieve a Category's Products in Storefront",
- "path": "/app/storefront-development/products/categories/products"
+ "path": "/storefront-development/products/categories/products"
},
{
"title": "Retrieve a Category in Storefront",
- "path": "/app/storefront-development/products/categories/retrieve"
+ "path": "/storefront-development/products/categories/retrieve"
}
]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/product-collection.ts b/www/packages/tags/src/tags/product-collection.ts
index 964c0683a6e76..3d1d0c916de0a 100644
--- a/www/packages/tags/src/tags/product-collection.ts
+++ b/www/packages/tags/src/tags/product-collection.ts
@@ -1,14 +1,14 @@
export const productCollection = [
{
"title": "List Product Collections in Storefront",
- "path": "/app/storefront-development/products/collections/list"
+ "path": "/storefront-development/products/collections/list"
},
{
"title": "Retrieve a Collection's Products in Storefront",
- "path": "/app/storefront-development/products/collections/products"
+ "path": "/storefront-development/products/collections/products"
},
{
"title": "Retrieve a Collection in Storefront",
- "path": "/app/storefront-development/products/collections/retrieve"
+ "path": "/storefront-development/products/collections/retrieve"
}
]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/product.ts b/www/packages/tags/src/tags/product.ts
index d5f21ec0dc7ca..6038da105e74f 100644
--- a/www/packages/tags/src/tags/product.ts
+++ b/www/packages/tags/src/tags/product.ts
@@ -1,71 +1,71 @@
export const product = [
{
"title": "Get Variant Prices",
- "path": "/app/commerce-modules/product/guides/price"
+ "path": "/commerce-modules/product/guides/price"
},
{
"title": "Get Variant Price with Taxes",
- "path": "/app/commerce-modules/product/guides/price-with-taxes"
+ "path": "/commerce-modules/product/guides/price-with-taxes"
},
{
"title": "List Product Categories in Storefront",
- "path": "/app/storefront-development/products/categories/list"
+ "path": "/storefront-development/products/categories/list"
},
{
"title": "Retrieve Nested Categories in Storefront",
- "path": "/app/storefront-development/products/categories/nested-categories"
+ "path": "/storefront-development/products/categories/nested-categories"
},
{
"title": "Retrieve a Category's Products in Storefront",
- "path": "/app/storefront-development/products/categories/products"
+ "path": "/storefront-development/products/categories/products"
},
{
"title": "Retrieve a Category in Storefront",
- "path": "/app/storefront-development/products/categories/retrieve"
+ "path": "/storefront-development/products/categories/retrieve"
},
{
"title": "List Product Collections in Storefront",
- "path": "/app/storefront-development/products/collections/list"
+ "path": "/storefront-development/products/collections/list"
},
{
"title": "Retrieve a Collection's Products in Storefront",
- "path": "/app/storefront-development/products/collections/products"
+ "path": "/storefront-development/products/collections/products"
},
{
"title": "Retrieve a Collection in Storefront",
- "path": "/app/storefront-development/products/collections/retrieve"
+ "path": "/storefront-development/products/collections/retrieve"
},
{
"title": "Retrieve Product Variant's Inventory in Storefront",
- "path": "/app/storefront-development/products/inventory"
+ "path": "/storefront-development/products/inventory"
},
{
"title": "List Products in Storefront",
- "path": "/app/storefront-development/products/list"
+ "path": "/storefront-development/products/list"
},
{
"title": "Example: Show Sale Price",
- "path": "/app/storefront-development/products/price/examples/sale-price"
+ "path": "/storefront-development/products/price/examples/sale-price"
},
{
"title": "Example: Show Variant's Price",
- "path": "/app/storefront-development/products/price/examples/show-price"
+ "path": "/storefront-development/products/price/examples/show-price"
},
{
"title": "Example: Show Price with Taxes",
- "path": "/app/storefront-development/products/price/examples/tax-price"
+ "path": "/storefront-development/products/price/examples/tax-price"
},
{
"title": "Retrieve Product Variant's Prices in Storefront",
- "path": "/app/storefront-development/products/price"
+ "path": "/storefront-development/products/price"
},
{
"title": "Retrieve a Product in Storefront",
- "path": "/app/storefront-development/products/retrieve"
+ "path": "/storefront-development/products/retrieve"
},
{
"title": "Select Product Variants in Storefront",
- "path": "/app/storefront-development/products/variants"
+ "path": "/storefront-development/products/variants"
},
{
"title": "batchLinkProductsToCollectionStep",
diff --git a/www/packages/tags/src/tags/publishable-api-key.ts b/www/packages/tags/src/tags/publishable-api-key.ts
index 44f281ed34cad..560223940d697 100644
--- a/www/packages/tags/src/tags/publishable-api-key.ts
+++ b/www/packages/tags/src/tags/publishable-api-key.ts
@@ -1,6 +1,6 @@
export const publishableApiKey = [
{
"title": "Use a Publishable API Key in the Storefront",
- "path": "/app/storefront-development/publishable-api-keys"
+ "path": "/storefront-development/publishable-api-keys"
}
]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/query.ts b/www/packages/tags/src/tags/query.ts
index ae0b73e8ebeae..c41850749a7f6 100644
--- a/www/packages/tags/src/tags/query.ts
+++ b/www/packages/tags/src/tags/query.ts
@@ -1,11 +1,11 @@
export const query = [
{
"title": "Get Variant Prices",
- "path": "/app/commerce-modules/product/guides/price"
+ "path": "/commerce-modules/product/guides/price"
},
{
"title": "Get Variant Price with Taxes",
- "path": "/app/commerce-modules/product/guides/price-with-taxes"
+ "path": "/commerce-modules/product/guides/price-with-taxes"
},
{
"title": "addShippingMethodToCartWorkflow",
diff --git a/www/packages/tags/src/tags/region.ts b/www/packages/tags/src/tags/region.ts
index 6f69b6c97b093..58868e4db6746 100644
--- a/www/packages/tags/src/tags/region.ts
+++ b/www/packages/tags/src/tags/region.ts
@@ -1,15 +1,15 @@
export const region = [
{
"title": "Region Context in Storefront",
- "path": "/app/storefront-development/regions/context"
+ "path": "/storefront-development/regions/context"
},
{
"title": "List Regions in Storefront",
- "path": "/app/storefront-development/regions/list"
+ "path": "/storefront-development/regions/list"
},
{
"title": "Store and Retrieve Region",
- "path": "/app/storefront-development/regions/store-retrieve-region"
+ "path": "/storefront-development/regions/store-retrieve-region"
},
{
"title": "findOneOrAnyRegionStep",
diff --git a/www/packages/tags/src/tags/sales-channel.ts b/www/packages/tags/src/tags/sales-channel.ts
index 9f40edcd6c0be..8bdd634c185e1 100644
--- a/www/packages/tags/src/tags/sales-channel.ts
+++ b/www/packages/tags/src/tags/sales-channel.ts
@@ -1,4 +1,8 @@
export const salesChannel = [
+ {
+ "title": "Use a Publishable API Key in the Storefront",
+ "path": "/storefront-development/publishable-api-keys"
+ },
{
"title": "validateSalesChannelsExistStep",
"path": "/references/medusa-workflows/steps/validateSalesChannelsExistStep"
diff --git a/www/packages/tags/src/tags/server.ts b/www/packages/tags/src/tags/server.ts
new file mode 100644
index 0000000000000..1327cf802aed5
--- /dev/null
+++ b/www/packages/tags/src/tags/server.ts
@@ -0,0 +1,10 @@
+export const server = [
+ {
+ "title": "Get Variant Prices",
+ "path": "/commerce-modules/product/guides/price"
+ },
+ {
+ "title": "Get Variant Price with Taxes",
+ "path": "/commerce-modules/product/guides/price-with-taxes"
+ }
+]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/storefront.ts b/www/packages/tags/src/tags/storefront.ts
index 828634946f41d..162d33cf180da 100644
--- a/www/packages/tags/src/tags/storefront.ts
+++ b/www/packages/tags/src/tags/storefront.ts
@@ -1,162 +1,166 @@
export const storefront = [
+ {
+ "title": "Customize the Stripe Integration in the Next.js Starter",
+ "path": "/nextjs-starter/guides/customize-stripe"
+ },
{
"title": "Create Cart Context in Storefront",
- "path": "/app/storefront-development/cart/context"
+ "path": "/storefront-development/cart/context"
},
{
"title": "Create Cart in Storefront",
- "path": "/app/storefront-development/cart/create"
+ "path": "/storefront-development/cart/create"
},
{
"title": "Manage Cart's Items in Storefront",
- "path": "/app/storefront-development/cart/manage-items"
+ "path": "/storefront-development/cart/manage-items"
},
{
"title": "Retrieve Cart in Storefront",
- "path": "/app/storefront-development/cart/retrieve"
+ "path": "/storefront-development/cart/retrieve"
},
{
"title": "Update Cart in Storefront",
- "path": "/app/storefront-development/cart/update"
+ "path": "/storefront-development/cart/update"
},
{
"title": "Checkout Step 2: Enter Address",
- "path": "/app/storefront-development/checkout/address"
+ "path": "/storefront-development/checkout/address"
},
{
"title": "Checkout Step 5: Complete Cart",
- "path": "/app/storefront-development/checkout/complete-cart"
+ "path": "/storefront-development/checkout/complete-cart"
},
{
"title": "Checkout Step 1: Enter Email",
- "path": "/app/storefront-development/checkout/email"
+ "path": "/storefront-development/checkout/email"
},
{
"title": "Checkout Step 4: Choose Payment Provider",
- "path": "/app/storefront-development/checkout/payment"
+ "path": "/storefront-development/checkout/payment"
},
{
"title": "Payment with Stripe in React Storefront",
- "path": "/app/storefront-development/checkout/payment/stripe"
+ "path": "/storefront-development/checkout/payment/stripe"
},
{
"title": "Checkout Step 3: Choose Shipping Method",
- "path": "/app/storefront-development/checkout/shipping"
+ "path": "/storefront-development/checkout/shipping"
},
{
"title": "Manage Customer Addresses in Storefront",
- "path": "/app/storefront-development/customers/addresses"
+ "path": "/storefront-development/customers/addresses"
},
{
"title": "Customer Context in Storefront",
- "path": "/app/storefront-development/customers/context"
+ "path": "/storefront-development/customers/context"
},
{
"title": "Log-out Customer in Storefront",
- "path": "/app/storefront-development/customers/log-out"
+ "path": "/storefront-development/customers/log-out"
},
{
"title": "Login Customer in Storefront",
- "path": "/app/storefront-development/customers/login"
+ "path": "/storefront-development/customers/login"
},
{
"title": "Edit Customer Profile in Storefront",
- "path": "/app/storefront-development/customers/profile"
+ "path": "/storefront-development/customers/profile"
},
{
"title": "Register Customer in Storefront",
- "path": "/app/storefront-development/customers/register"
+ "path": "/storefront-development/customers/register"
},
{
"title": "Reset Customer Password in Storefront",
- "path": "/app/storefront-development/customers/reset-password"
+ "path": "/storefront-development/customers/reset-password"
},
{
"title": "Retrieve Customer in Storefront",
- "path": "/app/storefront-development/customers/retrieve"
+ "path": "/storefront-development/customers/retrieve"
},
{
"title": "Third-Party or Social Login in Storefront",
- "path": "/app/storefront-development/customers/third-party-login"
+ "path": "/storefront-development/customers/third-party-login"
},
{
"title": "List Product Categories in Storefront",
- "path": "/app/storefront-development/products/categories/list"
+ "path": "/storefront-development/products/categories/list"
},
{
"title": "Retrieve Nested Categories in Storefront",
- "path": "/app/storefront-development/products/categories/nested-categories"
+ "path": "/storefront-development/products/categories/nested-categories"
},
{
"title": "Retrieve a Category's Products in Storefront",
- "path": "/app/storefront-development/products/categories/products"
+ "path": "/storefront-development/products/categories/products"
},
{
"title": "Retrieve a Category in Storefront",
- "path": "/app/storefront-development/products/categories/retrieve"
+ "path": "/storefront-development/products/categories/retrieve"
},
{
"title": "List Product Collections in Storefront",
- "path": "/app/storefront-development/products/collections/list"
+ "path": "/storefront-development/products/collections/list"
},
{
"title": "Retrieve a Collection's Products in Storefront",
- "path": "/app/storefront-development/products/collections/products"
+ "path": "/storefront-development/products/collections/products"
},
{
"title": "Retrieve a Collection in Storefront",
- "path": "/app/storefront-development/products/collections/retrieve"
+ "path": "/storefront-development/products/collections/retrieve"
},
{
"title": "Retrieve Product Variant's Inventory in Storefront",
- "path": "/app/storefront-development/products/inventory"
+ "path": "/storefront-development/products/inventory"
},
{
"title": "List Products in Storefront",
- "path": "/app/storefront-development/products/list"
+ "path": "/storefront-development/products/list"
},
{
"title": "Example: Show Sale Price",
- "path": "/app/storefront-development/products/price/examples/sale-price"
+ "path": "/storefront-development/products/price/examples/sale-price"
},
{
"title": "Example: Show Variant's Price",
- "path": "/app/storefront-development/products/price/examples/show-price"
+ "path": "/storefront-development/products/price/examples/show-price"
},
{
"title": "Example: Show Price with Taxes",
- "path": "/app/storefront-development/products/price/examples/tax-price"
+ "path": "/storefront-development/products/price/examples/tax-price"
},
{
"title": "Retrieve Product Variant's Prices in Storefront",
- "path": "/app/storefront-development/products/price"
+ "path": "/storefront-development/products/price"
},
{
"title": "Retrieve a Product in Storefront",
- "path": "/app/storefront-development/products/retrieve"
+ "path": "/storefront-development/products/retrieve"
},
{
"title": "Select Product Variants in Storefront",
- "path": "/app/storefront-development/products/variants"
+ "path": "/storefront-development/products/variants"
},
{
"title": "Use a Publishable API Key in the Storefront",
- "path": "/app/storefront-development/publishable-api-keys"
+ "path": "/storefront-development/publishable-api-keys"
},
{
"title": "Region Context in Storefront",
- "path": "/app/storefront-development/regions/context"
+ "path": "/storefront-development/regions/context"
},
{
"title": "List Regions in Storefront",
- "path": "/app/storefront-development/regions/list"
+ "path": "/storefront-development/regions/list"
},
{
"title": "Store and Retrieve Region",
- "path": "/app/storefront-development/regions/store-retrieve-region"
+ "path": "/storefront-development/regions/store-retrieve-region"
},
{
"title": "Storefront Development Tips",
- "path": "/app/storefront-development/tips"
+ "path": "/storefront-development/tips"
}
]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/stripe.ts b/www/packages/tags/src/tags/stripe.ts
index 11f08bb59572e..8542ad6c3f290 100644
--- a/www/packages/tags/src/tags/stripe.ts
+++ b/www/packages/tags/src/tags/stripe.ts
@@ -1,6 +1,6 @@
export const stripe = [
{
"title": "Payment with Stripe in React Storefront",
- "path": "/app/storefront-development/checkout/payment/stripe"
+ "path": "/storefront-development/checkout/payment/stripe"
}
]
\ No newline at end of file
diff --git a/www/packages/tags/src/tags/tax.ts b/www/packages/tags/src/tags/tax.ts
index 2fecd0eabb18e..99cfbce592e07 100644
--- a/www/packages/tags/src/tags/tax.ts
+++ b/www/packages/tags/src/tags/tax.ts
@@ -1,11 +1,11 @@
export const tax = [
{
"title": "Get Variant Price with Taxes",
- "path": "/app/commerce-modules/product/guides/price-with-taxes"
+ "path": "/commerce-modules/product/guides/price-with-taxes"
},
{
"title": "Example: Show Price with Taxes",
- "path": "/app/storefront-development/products/price/examples/tax-price"
+ "path": "/storefront-development/products/price/examples/tax-price"
},
{
"title": "createCartWorkflow",
diff --git a/www/packages/tags/src/utils/generate-tags.ts b/www/packages/tags/src/utils/generate-tags.ts
index 1b7d6b04abaa8..a75f9eefecfad 100644
--- a/www/packages/tags/src/utils/generate-tags.ts
+++ b/www/packages/tags/src/utils/generate-tags.ts
@@ -6,25 +6,51 @@ import { findPageTitle, getFrontMatterSync } from "docs-utils"
type ConfigItem = {
path: string
- contentPaths: string[]
+ contentPaths: {
+ path: string
+ omitFromPath?: boolean
+ }[]
}
const config: ConfigItem[] = [
{
path: path.resolve("..", "..", "apps", "book"),
- contentPaths: ["app"],
+ contentPaths: [
+ {
+ path: "app",
+ omitFromPath: true,
+ },
+ ],
},
{
path: path.resolve("..", "..", "apps", "resources"),
- contentPaths: ["app", "references"],
+ contentPaths: [
+ {
+ path: "app",
+ omitFromPath: true,
+ },
+ {
+ path: "references",
+ },
+ ],
},
{
path: path.resolve("..", "..", "apps", "ui"),
- contentPaths: [path.join("src", "content", "docs")],
+ contentPaths: [
+ {
+ path: path.join("src", "content", "docs"),
+ omitFromPath: true,
+ },
+ ],
},
{
path: path.resolve("..", "..", "apps", "user-guide"),
- contentPaths: ["app"],
+ contentPaths: [
+ {
+ path: "app",
+ omitFromPath: true,
+ },
+ ],
},
]
@@ -47,20 +73,21 @@ export async function generateTags(basePath?: string) {
basePath = basePath || path.resolve()
const tags: Tags = {}
async function getTags(item: ConfigItem) {
- async function scanDirectory(dirPath: string) {
- const files = await readdir(dirPath)
+ async function scanDirectory(currentDirPath: string, omitPath?: string) {
+ const files = await readdir(currentDirPath)
for (const file of files) {
- const fullPath = path.join(dirPath, file)
+ const fullPath = path.join(currentDirPath, file)
if (!file.endsWith(".mdx") || file.startsWith("_")) {
if (statSync(fullPath).isDirectory()) {
- await scanDirectory(fullPath)
+ await scanDirectory(fullPath, omitPath)
}
continue
}
const frontmatter = getFrontMatterSync(fullPath)
const fileBasename = path.basename(file)
+ const itemBasePath = path.join(item.path, omitPath || "")
frontmatter.tags?.forEach((tag) => {
if (!Object.hasOwn(tags, tag)) {
@@ -73,16 +100,21 @@ export async function generateTags(basePath?: string) {
),
path:
frontmatter.slug ||
- fullPath.replace(item.path, "").replace(`/${fileBasename}`, ""),
+ fullPath
+ .replace(itemBasePath, "")
+ .replace(`/${fileBasename}`, ""),
})
})
}
}
for (const contentPath of item.contentPaths) {
- const basePath = path.join(item.path, contentPath)
+ const basePath = path.join(item.path, contentPath.path)
- await scanDirectory(basePath)
+ await scanDirectory(
+ basePath,
+ !contentPath.omitFromPath ? "" : contentPath.path
+ )
}
}
diff --git a/www/packages/types/src/sidebar.ts b/www/packages/types/src/sidebar.ts
index 043ffb193b342..86454469f6b8e 100644
--- a/www/packages/types/src/sidebar.ts
+++ b/www/packages/types/src/sidebar.ts
@@ -16,7 +16,7 @@ export type SidebarItemCommon = {
}
export type SidebarItemLink = SidebarItemCommon & {
- type: "link"
+ type: "link" | "ref"
path: string
isPathHref?: boolean
linkProps?: React.AllHTMLAttributes
@@ -59,9 +59,18 @@ export type SidebarSectionItems = {
export type RawSidebarItem = SidebarItem & {
autogenerate_path?: string
autogenerate_tags?: string
+ autogenerate_as_ref?: boolean
custom_autogenerate?: string
number?: string
-}
+} & (
+ | {
+ type: "category" | "sub-category" | "link" | "ref"
+ children?: RawSidebarItem[]
+ }
+ | {
+ type: "separator"
+ }
+ )
export type PersistedSidebarCategoryState = {
[k: string]: {