docs: add JS SDK to commerce modules sidebars (#10740)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-12-26 13:33:33 +02:00
1 parent 688e1e60a5
commit ee50e67a96
111 files changed
+8567 -5406

No files matched your search

@@ -3,6 +3,12 @@ import { Tag } from "types"
export const parseTags = (tagNames: string): Tag => {
const parsedTags: Map<string, string> = new Map()
const splitTags = tagNames.split(",")
if (splitTags.length === 1 && !splitTags[0].includes("+")) {
return getTagItems(tagNames) || []
}
const tagsToRemove = getItemsToRemove(splitTags)
tagNames.split(",").forEach((tagName) => {
const intersectingTags = getIntersectionTags(tagName)
@@ -15,6 +21,10 @@ export const parseTags = (tagNames: string): Tag => {
})
})
tagsToRemove.forEach((tag) => {
parsedTags.delete(tag.path)
})
return Array.from(parsedTags).map(([path, title]) => ({
title,
path,
@@ -44,3 +54,12 @@ const getIntersectionTags = (tags: string): Tag => {
)
})
}
const getItemsToRemove = (tags: string[]): Tag => {
const tagsToRemove = tags
.filter((tag) => tag.startsWith("-"))
.map((tag) => getTagItems(tag.replace(/^-/, "")))
.filter(Boolean) as Tag[]
return !tagsToRemove.length ? [] : tagsToRemove[0]
}
@@ -14,7 +14,7 @@ export const H3 = ({ className, children, ...props }: H3Props) => {
return (
<h3
className={clsx(
"h3-docs [&_code]:!h3-docs [&_code]:!font-mono mb-docs_0.5 mt-docs_1 text-medusa-fg-base",
"h3-docs [&_code]:!h3-docs [&_code]:!font-mono my-docs_1 text-medusa-fg-base",
props.id && "group/h3 scroll-m-56",
className
)}
@@ -1,6 +1,6 @@
"use client"
import React, { useMemo } from "react"
import React, { useCallback, useMemo } from "react"
import {
Card,
CardList,
@@ -9,6 +9,7 @@ import {
H4,
Hr,
isSidebarItemLink,
MarkdownContent,
useSidebar,
} from "../.."
import { InteractiveSidebarItem, SidebarItem, SidebarItemLink } from "types"
@@ -25,6 +26,7 @@ export type UseChildDocsProps = {
hideItems?: string[]
showItems?: string[]
hideTitle?: boolean
hideDescription?: boolean
titleLevel?: number
childLevel?: number
itemsPerRow?: number
@@ -36,25 +38,29 @@ export const useChildDocs = ({
showItems,
type = "sidebar",
hideTitle = false,
hideDescription = 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 TitleHeaderComponent = useCallback(
(level: number): HeadingComponent => {
switch (level) {
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
}
},
[]
)
const filterType = useMemo(() => {
return showItems !== undefined
? "show"
@@ -180,37 +186,57 @@ export const useChildDocs = ({
)
}
const getAllLevelsElms = (items?: SidebarItem[]) => {
const getAllLevelsElms = (
items?: SidebarItem[],
headerLevel = titleLevel
) => {
const filteredItems = filterNonInteractiveItems(items)
return filteredItems.map((item, key) => {
const itemChildren = getChildrenForLevel(item)
const HeadingComponent = itemChildren?.length
? TitleHeaderComponent
? TitleHeaderComponent(headerLevel)
: undefined
const isChildrenCategory = itemChildren?.every(
(child) => child.type === "category" || child.type === "sub-category"
)
return (
<React.Fragment key={key}>
{HeadingComponent && (
<>
{!hideTitle && (
<HeadingComponent id={slugify(item.title.toLowerCase())}>
{item.title}
</HeadingComponent>
<>
<HeadingComponent id={slugify(item.title.toLowerCase())}>
{item.title}
</HeadingComponent>
{!hideDescription && item.description && (
<MarkdownContent
allowedElements={["a", "code", "ul", "ol", "p"]}
>
{item.description}
</MarkdownContent>
)}
</>
)}
<CardList
items={
itemChildren?.map((childItem) => ({
title: childItem.title,
href: isSidebarItemLink(childItem) ? childItem.path : "",
})) || []
}
itemsPerRow={itemsPerRow}
/>
{key !== filteredItems.length - 1 && <Hr />}
{isChildrenCategory &&
getAllLevelsElms(itemChildren, headerLevel + 1)}
{!isChildrenCategory && (
<CardList
items={
itemChildren?.map((childItem) => ({
title: childItem.title,
href: isSidebarItemLink(childItem) ? childItem.path : "",
text: childItem.description,
})) || []
}
itemsPerRow={itemsPerRow}
/>
)}
{key !== filteredItems.length - 1 && headerLevel === 2 && <Hr />}
</>
)}
{!HeadingComponent && isSidebarItemLink(item) && (
<Card title={item.title} href={item.path} />
<Card title={item.title} href={item.path} text={item.description} />
)}
</React.Fragment>
)
+166
View File
@@ -0,0 +1,166 @@
export const admin = [
{
"title": "apiKey",
"path": "/references/js-sdk/admin/apiKey"
},
{
"title": "campaign",
"path": "/references/js-sdk/admin/campaign"
},
{
"title": "claim",
"path": "/references/js-sdk/admin/claim"
},
{
"title": "currency",
"path": "/references/js-sdk/admin/currency"
},
{
"title": "customer",
"path": "/references/js-sdk/admin/customer"
},
{
"title": "customerGroup",
"path": "/references/js-sdk/admin/customerGroup"
},
{
"title": "exchange",
"path": "/references/js-sdk/admin/exchange"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/admin/fulfillment"
},
{
"title": "fulfillmentProvider",
"path": "/references/js-sdk/admin/fulfillmentProvider"
},
{
"title": "fulfillmentSet",
"path": "/references/js-sdk/admin/fulfillmentSet"
},
{
"title": "inventoryItem",
"path": "/references/js-sdk/admin/inventoryItem"
},
{
"title": "invite",
"path": "/references/js-sdk/admin/invite"
},
{
"title": "notification",
"path": "/references/js-sdk/admin/notification"
},
{
"title": "order",
"path": "/references/js-sdk/admin/order"
},
{
"title": "orderEdit",
"path": "/references/js-sdk/admin/orderEdit"
},
{
"title": "payment",
"path": "/references/js-sdk/admin/payment"
},
{
"title": "paymentCollection",
"path": "/references/js-sdk/admin/paymentCollection"
},
{
"title": "priceList",
"path": "/references/js-sdk/admin/priceList"
},
{
"title": "pricePreference",
"path": "/references/js-sdk/admin/pricePreference"
},
{
"title": "product",
"path": "/references/js-sdk/admin/product"
},
{
"title": "productCategory",
"path": "/references/js-sdk/admin/productCategory"
},
{
"title": "productCollection",
"path": "/references/js-sdk/admin/productCollection"
},
{
"title": "productTag",
"path": "/references/js-sdk/admin/productTag"
},
{
"title": "productType",
"path": "/references/js-sdk/admin/productType"
},
{
"title": "productVariant",
"path": "/references/js-sdk/admin/productVariant"
},
{
"title": "promotion",
"path": "/references/js-sdk/admin/promotion"
},
{
"title": "refundReason",
"path": "/references/js-sdk/admin/refundReason"
},
{
"title": "region",
"path": "/references/js-sdk/admin/region"
},
{
"title": "reservation",
"path": "/references/js-sdk/admin/reservation"
},
{
"title": "return",
"path": "/references/js-sdk/admin/return"
},
{
"title": "returnReason",
"path": "/references/js-sdk/admin/returnReason"
},
{
"title": "salesChannel",
"path": "/references/js-sdk/admin/salesChannel"
},
{
"title": "shippingOption",
"path": "/references/js-sdk/admin/shippingOption"
},
{
"title": "shippingProfile",
"path": "/references/js-sdk/admin/shippingProfile"
},
{
"title": "stockLocation",
"path": "/references/js-sdk/admin/stockLocation"
},
{
"title": "store",
"path": "/references/js-sdk/admin/store"
},
{
"title": "taxRate",
"path": "/references/js-sdk/admin/taxRate"
},
{
"title": "taxRegion",
"path": "/references/js-sdk/admin/taxRegion"
},
{
"title": "upload",
"path": "/references/js-sdk/admin/upload"
},
{
"title": "user",
"path": "/references/js-sdk/admin/user"
},
{
"title": "workflowExecution",
"path": "/references/js-sdk/admin/workflowExecution"
}
]
+4
View File
@@ -34,5 +34,9 @@ export const apiKey = [
{
"title": "updateApiKeysWorkflow",
"path": "/references/medusa-workflows/updateApiKeysWorkflow"
},
{
"title": "apiKey",
"path": "/references/js-sdk/admin/apiKey"
}
]
+28
View File
@@ -46,5 +46,33 @@ export const auth = [
{
"title": "removeUserAccountWorkflow",
"path": "/references/medusa-workflows/removeUserAccountWorkflow"
},
{
"title": "callback",
"path": "/references/js-sdk/auth/callback"
},
{
"title": "login",
"path": "/references/js-sdk/auth/login"
},
{
"title": "logout",
"path": "/references/js-sdk/auth/logout"
},
{
"title": "refresh",
"path": "/references/js-sdk/auth/refresh"
},
{
"title": "register",
"path": "/references/js-sdk/auth/register"
},
{
"title": "resetPassword",
"path": "/references/js-sdk/auth/resetPassword"
},
{
"title": "updateProvider",
"path": "/references/js-sdk/auth/updateProvider"
}
]
+4
View File
@@ -134,5 +134,9 @@ export const cart = [
{
"title": "deleteLineItemsWorkflow",
"path": "/references/medusa-workflows/deleteLineItemsWorkflow"
},
{
"title": "cart",
"path": "/references/js-sdk/store/cart"
}
]
+6
View File
@@ -0,0 +1,6 @@
export const currency = [
{
"title": "currency",
"path": "/references/js-sdk/admin/currency"
}
]
+12
View File
@@ -170,5 +170,17 @@ export const customer = [
{
"title": "orderExchangeAddNewItemWorkflow",
"path": "/references/medusa-workflows/orderExchangeAddNewItemWorkflow"
},
{
"title": "customer",
"path": "/references/js-sdk/admin/customer"
},
{
"title": "customerGroup",
"path": "/references/js-sdk/admin/customerGroup"
},
{
"title": "customer",
"path": "/references/js-sdk/store/customer"
}
]
+4
View File
@@ -22,5 +22,9 @@ export const file = [
{
"title": "exportProductsWorkflow",
"path": "/references/medusa-workflows/exportProductsWorkflow"
},
{
"title": "upload",
"path": "/references/js-sdk/admin/upload"
}
]
+24
View File
@@ -186,5 +186,29 @@ export const fulfillment = [
{
"title": "createLocationFulfillmentSetWorkflow",
"path": "/references/medusa-workflows/createLocationFulfillmentSetWorkflow"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/admin/fulfillment"
},
{
"title": "fulfillmentProvider",
"path": "/references/js-sdk/admin/fulfillmentProvider"
},
{
"title": "fulfillmentSet",
"path": "/references/js-sdk/admin/fulfillmentSet"
},
{
"title": "shippingOption",
"path": "/references/js-sdk/admin/shippingOption"
},
{
"title": "shippingProfile",
"path": "/references/js-sdk/admin/shippingProfile"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/store/fulfillment"
}
]
+24 -20
View File
@@ -1,32 +1,36 @@
export * from "./product.js"
export * from "./server.js"
export * from "./tax.js"
export * from "./storefront.js"
export * from "./payment.js"
export * from "./cart.js"
export * from "./order.js"
export * from "./stripe.js"
export * from "./cart.js"
export * from "./fulfillment.js"
export * from "./customer.js"
export * from "./tax.js"
export * from "./inventory.js"
export * from "./server.js"
export * from "./stripe.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 "./product-collection.js"
export * from "./remote-link.js"
export * from "./workflow.js"
export * from "./customer.js"
export * from "./publishable-api-key.js"
export * from "./query.js"
export * from "./inventory.js"
export * from "./sales-channel.js"
export * from "./product-category.js"
export * from "./remote-link.js"
export * from "./step.js"
export * from "./promotion.js"
export * from "./event-bus.js"
export * from "./region.js"
export * from "./store.js"
export * from "./file.js"
export * from "./stock-location.js"
export * from "./locking.js"
export * from "./user.js"
export * from "./remote-query.js"
export * from "./workflow.js"
export * from "./event-bus.js"
export * from "./promotion.js"
export * from "./user.js"
export * from "./locking.js"
export * from "./api-key.js"
export * from "./logger.js"
export * from "./currency.js"
export * from "./js-sdk.js"
export * from "./stock-location.js"
export * from "./admin.js"
export * from "./auth.js"
export * from "./notification.js"
export * from "./file.js"
export * from "./product-category.js"
+8
View File
@@ -186,5 +186,13 @@ export const inventory = [
{
"title": "updateReservationsWorkflow",
"path": "/references/medusa-workflows/updateReservationsWorkflow"
},
{
"title": "inventoryItem",
"path": "/references/js-sdk/admin/inventoryItem"
},
{
"title": "reservation",
"path": "/references/js-sdk/admin/reservation"
}
]
+234
View File
@@ -0,0 +1,234 @@
export const jsSdk = [
{
"title": "apiKey",
"path": "/references/js-sdk/admin/apiKey"
},
{
"title": "campaign",
"path": "/references/js-sdk/admin/campaign"
},
{
"title": "claim",
"path": "/references/js-sdk/admin/claim"
},
{
"title": "currency",
"path": "/references/js-sdk/admin/currency"
},
{
"title": "customer",
"path": "/references/js-sdk/admin/customer"
},
{
"title": "customerGroup",
"path": "/references/js-sdk/admin/customerGroup"
},
{
"title": "exchange",
"path": "/references/js-sdk/admin/exchange"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/admin/fulfillment"
},
{
"title": "fulfillmentProvider",
"path": "/references/js-sdk/admin/fulfillmentProvider"
},
{
"title": "fulfillmentSet",
"path": "/references/js-sdk/admin/fulfillmentSet"
},
{
"title": "inventoryItem",
"path": "/references/js-sdk/admin/inventoryItem"
},
{
"title": "invite",
"path": "/references/js-sdk/admin/invite"
},
{
"title": "notification",
"path": "/references/js-sdk/admin/notification"
},
{
"title": "order",
"path": "/references/js-sdk/admin/order"
},
{
"title": "orderEdit",
"path": "/references/js-sdk/admin/orderEdit"
},
{
"title": "payment",
"path": "/references/js-sdk/admin/payment"
},
{
"title": "paymentCollection",
"path": "/references/js-sdk/admin/paymentCollection"
},
{
"title": "priceList",
"path": "/references/js-sdk/admin/priceList"
},
{
"title": "pricePreference",
"path": "/references/js-sdk/admin/pricePreference"
},
{
"title": "product",
"path": "/references/js-sdk/admin/product"
},
{
"title": "productCategory",
"path": "/references/js-sdk/admin/productCategory"
},
{
"title": "productCollection",
"path": "/references/js-sdk/admin/productCollection"
},
{
"title": "productTag",
"path": "/references/js-sdk/admin/productTag"
},
{
"title": "productType",
"path": "/references/js-sdk/admin/productType"
},
{
"title": "productVariant",
"path": "/references/js-sdk/admin/productVariant"
},
{
"title": "promotion",
"path": "/references/js-sdk/admin/promotion"
},
{
"title": "refundReason",
"path": "/references/js-sdk/admin/refundReason"
},
{
"title": "region",
"path": "/references/js-sdk/admin/region"
},
{
"title": "reservation",
"path": "/references/js-sdk/admin/reservation"
},
{
"title": "return",
"path": "/references/js-sdk/admin/return"
},
{
"title": "returnReason",
"path": "/references/js-sdk/admin/returnReason"
},
{
"title": "salesChannel",
"path": "/references/js-sdk/admin/salesChannel"
},
{
"title": "shippingOption",
"path": "/references/js-sdk/admin/shippingOption"
},
{
"title": "shippingProfile",
"path": "/references/js-sdk/admin/shippingProfile"
},
{
"title": "stockLocation",
"path": "/references/js-sdk/admin/stockLocation"
},
{
"title": "store",
"path": "/references/js-sdk/admin/store"
},
{
"title": "taxRate",
"path": "/references/js-sdk/admin/taxRate"
},
{
"title": "taxRegion",
"path": "/references/js-sdk/admin/taxRegion"
},
{
"title": "upload",
"path": "/references/js-sdk/admin/upload"
},
{
"title": "user",
"path": "/references/js-sdk/admin/user"
},
{
"title": "workflowExecution",
"path": "/references/js-sdk/admin/workflowExecution"
},
{
"title": "callback",
"path": "/references/js-sdk/auth/callback"
},
{
"title": "login",
"path": "/references/js-sdk/auth/login"
},
{
"title": "logout",
"path": "/references/js-sdk/auth/logout"
},
{
"title": "refresh",
"path": "/references/js-sdk/auth/refresh"
},
{
"title": "register",
"path": "/references/js-sdk/auth/register"
},
{
"title": "resetPassword",
"path": "/references/js-sdk/auth/resetPassword"
},
{
"title": "updateProvider",
"path": "/references/js-sdk/auth/updateProvider"
},
{
"title": "JS SDK Auth Reference",
"path": "/references/js-sdk/auth"
},
{
"title": "cart",
"path": "/references/js-sdk/store/cart"
},
{
"title": "category",
"path": "/references/js-sdk/store/category"
},
{
"title": "collection",
"path": "/references/js-sdk/store/collection"
},
{
"title": "customer",
"path": "/references/js-sdk/store/customer"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/store/fulfillment"
},
{
"title": "order",
"path": "/references/js-sdk/store/order"
},
{
"title": "payment",
"path": "/references/js-sdk/store/payment"
},
{
"title": "product",
"path": "/references/js-sdk/store/product"
},
{
"title": "region",
"path": "/references/js-sdk/store/region"
}
]
@@ -0,0 +1,6 @@
export const notification = [
{
"title": "notification",
"path": "/references/js-sdk/admin/notification"
}
]
+32
View File
@@ -490,5 +490,37 @@ export const order = [
{
"title": "updateReturnReasonsWorkflow",
"path": "/references/medusa-workflows/updateReturnReasonsWorkflow"
},
{
"title": "claim",
"path": "/references/js-sdk/admin/claim"
},
{
"title": "exchange",
"path": "/references/js-sdk/admin/exchange"
},
{
"title": "order",
"path": "/references/js-sdk/admin/order"
},
{
"title": "orderEdit",
"path": "/references/js-sdk/admin/orderEdit"
},
{
"title": "refundReason",
"path": "/references/js-sdk/admin/refundReason"
},
{
"title": "return",
"path": "/references/js-sdk/admin/return"
},
{
"title": "returnReason",
"path": "/references/js-sdk/admin/returnReason"
},
{
"title": "order",
"path": "/references/js-sdk/store/order"
}
]
+12
View File
@@ -106,5 +106,17 @@ export const payment = [
{
"title": "updateRefundReasonsWorkflow",
"path": "/references/medusa-workflows/updateRefundReasonsWorkflow"
},
{
"title": "payment",
"path": "/references/js-sdk/admin/payment"
},
{
"title": "paymentCollection",
"path": "/references/js-sdk/admin/paymentCollection"
},
{
"title": "payment",
"path": "/references/js-sdk/store/payment"
}
]
+8
View File
@@ -174,5 +174,13 @@ export const pricing = [
{
"title": "updateStoresWorkflow",
"path": "/references/medusa-workflows/updateStoresWorkflow"
},
{
"title": "priceList",
"path": "/references/js-sdk/admin/priceList"
},
{
"title": "pricePreference",
"path": "/references/js-sdk/admin/pricePreference"
}
]
+36
View File
@@ -266,5 +266,41 @@ export const product = [
{
"title": "updateProductCategoriesWorkflow",
"path": "/references/medusa-workflows/updateProductCategoriesWorkflow"
},
{
"title": "product",
"path": "/references/js-sdk/admin/product"
},
{
"title": "productCategory",
"path": "/references/js-sdk/admin/productCategory"
},
{
"title": "productCollection",
"path": "/references/js-sdk/admin/productCollection"
},
{
"title": "productTag",
"path": "/references/js-sdk/admin/productTag"
},
{
"title": "productType",
"path": "/references/js-sdk/admin/productType"
},
{
"title": "productVariant",
"path": "/references/js-sdk/admin/productVariant"
},
{
"title": "category",
"path": "/references/js-sdk/store/category"
},
{
"title": "collection",
"path": "/references/js-sdk/store/collection"
},
{
"title": "product",
"path": "/references/js-sdk/store/product"
}
]
+8
View File
@@ -110,5 +110,13 @@ export const promotion = [
{
"title": "updatePromotionsWorkflow",
"path": "/references/medusa-workflows/updatePromotionsWorkflow"
},
{
"title": "campaign",
"path": "/references/js-sdk/admin/campaign"
},
{
"title": "promotion",
"path": "/references/js-sdk/admin/promotion"
}
]
+8
View File
@@ -78,5 +78,13 @@ export const region = [
{
"title": "updateRegionsWorkflow",
"path": "/references/medusa-workflows/updateRegionsWorkflow"
},
{
"title": "region",
"path": "/references/js-sdk/admin/region"
},
{
"title": "region",
"path": "/references/js-sdk/store/region"
}
]
@@ -82,5 +82,9 @@ export const salesChannel = [
{
"title": "updateSalesChannelsWorkflow",
"path": "/references/medusa-workflows/updateSalesChannelsWorkflow"
},
{
"title": "salesChannel",
"path": "/references/js-sdk/admin/salesChannel"
}
]
@@ -22,5 +22,9 @@ export const stockLocation = [
{
"title": "updateStockLocationsWorkflow",
"path": "/references/medusa-workflows/updateStockLocationsWorkflow"
},
{
"title": "stockLocation",
"path": "/references/js-sdk/admin/stockLocation"
}
]
+4
View File
@@ -66,5 +66,9 @@ export const store = [
{
"title": "updateStoresWorkflow",
"path": "/references/medusa-workflows/updateStoresWorkflow"
},
{
"title": "store",
"path": "/references/js-sdk/admin/store"
}
]
+36
View File
@@ -162,5 +162,41 @@ export const storefront = [
{
"title": "Storefront Development Tips",
"path": "/storefront-development/tips"
},
{
"title": "cart",
"path": "/references/js-sdk/store/cart"
},
{
"title": "category",
"path": "/references/js-sdk/store/category"
},
{
"title": "collection",
"path": "/references/js-sdk/store/collection"
},
{
"title": "customer",
"path": "/references/js-sdk/store/customer"
},
{
"title": "fulfillment",
"path": "/references/js-sdk/store/fulfillment"
},
{
"title": "order",
"path": "/references/js-sdk/store/order"
},
{
"title": "payment",
"path": "/references/js-sdk/store/payment"
},
{
"title": "product",
"path": "/references/js-sdk/store/product"
},
{
"title": "region",
"path": "/references/js-sdk/store/region"
}
]
+8
View File
@@ -118,5 +118,13 @@ export const tax = [
{
"title": "updateTaxRatesWorkflow",
"path": "/references/medusa-workflows/updateTaxRatesWorkflow"
},
{
"title": "taxRate",
"path": "/references/js-sdk/admin/taxRate"
},
{
"title": "taxRegion",
"path": "/references/js-sdk/admin/taxRegion"
}
]
+8
View File
@@ -62,5 +62,13 @@ export const user = [
{
"title": "updateUsersWorkflow",
"path": "/references/medusa-workflows/updateUsersWorkflow"
},
{
"title": "invite",
"path": "/references/js-sdk/admin/invite"
},
{
"title": "user",
"path": "/references/js-sdk/admin/user"
}
]
+4
View File
@@ -986,5 +986,9 @@ export const workflow = [
{
"title": "updateUsersWorkflow",
"path": "/references/medusa-workflows/updateUsersWorkflow"
},
{
"title": "workflowExecution",
"path": "/references/js-sdk/admin/workflowExecution"
}
]
+2
View File
@@ -13,6 +13,8 @@ export type SidebarItemCommon = {
additionalElms?: React.ReactNode
chapterTitle?: string
hideChildren?: boolean
// can be used to hold any description relevant when showing cards, etc...
description?: string
}
export type SidebarItemLink = SidebarItemCommon & {