feat: add Quote Management guide and update sidebar links

This commit is contained in:
Shahed Nasser
2025-03-05 17:12:46 +02:00
parent a4fd39e371
commit b060729a8d
15 changed files with 2616 additions and 327 deletions
+1
View File
@@ -157,6 +157,7 @@ export default [
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-empty-object-type": "warn",
},
},
]
@@ -60,8 +60,8 @@ This guide will teach you how to:
<CardList items={[
{
href: "https://github.com/medusajs/examples/tree/main/custom-item-price",
title: "Custom Item Price Example Repository",
text: "Find the full code for this recipe example in this repository.",
title: "Custom Item Price Repository",
text: "Find the full code for this guide in this repository.",
icon: Github,
},
{
File diff suppressed because it is too large Load Diff
@@ -695,15 +695,15 @@ export const syncStep = createStep(
const sanityModule: SanityModuleService = container.resolve(SANITY_MODULE)
const query = container.resolve(ContainerRegistrationKeys.QUERY)
let total = 0
const total = 0
const upsertMap: {
before: any
after: any
}[] = []
const batchSize = 200
let hasMore = true
let offset = 0
const hasMore = true
const offset = 0
const filters = input.product_ids ? {
id: input.product_ids,
} : {}
+4 -3
View File
@@ -3145,7 +3145,7 @@ export const generatedEditDates = {
"references/types/HttpTypes/interfaces/types.HttpTypes.AdminBatchProductVariantRequest/page.mdx": "2024-12-09T13:21:34.309Z",
"references/types/WorkflowTypes/ProductWorkflow/interfaces/types.WorkflowTypes.ProductWorkflow.ExportProductsDTO/page.mdx": "2025-02-11T11:36:51.281Z",
"app/contribution-guidelines/admin-translations/page.mdx": "2024-11-14T08:54:15.369Z",
"app/integrations/guides/sanity/page.mdx": "2025-02-05T09:10:44.478Z",
"app/integrations/guides/sanity/page.mdx": "2025-03-05T10:58:58.807Z",
"references/api_key/types/api_key.FindConfigOrder/page.mdx": "2024-11-25T17:49:28.715Z",
"references/auth/types/auth.FindConfigOrder/page.mdx": "2024-11-25T17:49:28.887Z",
"references/cart/types/cart.FindConfigOrder/page.mdx": "2024-11-25T17:49:29.455Z",
@@ -5901,7 +5901,7 @@ export const generatedEditDates = {
"app/commerce-modules/payment/account-holder/page.mdx": "2025-01-31T09:37:41.595Z",
"app/troubleshooting/test-errors/page.mdx": "2025-01-31T13:08:42.639Z",
"app/commerce-modules/product/variant-inventory/page.mdx": "2025-02-26T11:21:20.075Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-02-07T09:21:11.170Z",
"app/examples/guides/custom-item-price/page.mdx": "2025-03-05T11:30:19.896Z",
"references/core_flows/Cart/Steps_Cart/functions/core_flows.Cart.Steps_Cart.validateShippingStep/page.mdx": "2025-02-11T11:36:39.235Z",
"references/core_flows/Cart/Steps_Cart/variables/core_flows.Cart.Steps_Cart.validateShippingStepId/page.mdx": "2025-02-11T11:36:39.228Z",
"references/core_flows/Payment_Collection/Steps_Payment_Collection/functions/core_flows.Payment_Collection.Steps_Payment_Collection.createPaymentAccountHolderStep/page.mdx": "2025-02-24T10:48:31.714Z",
@@ -6026,5 +6026,6 @@ export const generatedEditDates = {
"references/core_flows/types/core_flows.UpdateReceiveItemReturnRequestValidationStepInput/page.mdx": "2025-02-24T10:48:34.009Z",
"references/core_flows/types/core_flows.UpdateRequestItemReturnValidationStepInput/page.mdx": "2025-02-24T10:48:34.028Z",
"references/core_flows/types/core_flows.UpdateReturnShippingMethodValidationStepInput/page.mdx": "2025-02-24T10:48:34.037Z",
"references/core_flows/types/core_flows.UpdateReturnValidationStepInput/page.mdx": "2025-02-24T10:48:34.046Z"
"references/core_flows/types/core_flows.UpdateReturnValidationStepInput/page.mdx": "2025-02-24T10:48:34.046Z",
"app/examples/guides/quote-management/page.mdx": "2025-03-05T15:11:02.854Z"
}
@@ -795,6 +795,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/examples/guides/custom-item-price/page.mdx",
"pathname": "/examples/guides/custom-item-price"
},
{
"filePath": "/www/apps/resources/app/examples/guides/quote-management/page.mdx",
"pathname": "/examples/guides/quote-management"
},
{
"filePath": "/www/apps/resources/app/examples/page.mdx",
"pathname": "/examples"
+46 -1
View File
@@ -62,6 +62,14 @@ export const generatedSidebar = [
"title": "Custom Item Price",
"path": "/examples/guides/custom-item-price",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Quote Management",
"path": "/examples/guides/quote-management",
"children": []
}
]
},
@@ -175,7 +183,16 @@ export const generatedSidebar = [
"type": "link",
"path": "/recipes/b2b",
"title": "B2B",
"children": []
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "link",
"path": "/examples/guides/quote-management",
"title": "Example: Quote Management",
"children": []
}
]
},
{
"loaded": true,
@@ -1288,6 +1305,14 @@ export const generatedSidebar = [
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price",
"children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management",
"children": []
}
]
},
@@ -5972,6 +5997,26 @@ export const generatedSidebar = [
}
]
},
{
"loaded": true,
"isPathHref": true,
"type": "category",
"title": "Server Guides",
"autogenerate_tags": "server+order",
"initialOpen": false,
"autogenerate_as_ref": true,
"description": "Learn how to use the Order Module in your customizations on the Medusa application server.",
"children": [
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management",
"children": []
}
]
},
{
"loaded": true,
"isPathHref": true,
+5
View File
@@ -37,6 +37,11 @@ export const examplesSidebar = [
title: "Custom Item Price",
path: "/examples/guides/custom-item-price",
},
{
type: "link",
title: "Quote Management",
path: "/examples/guides/quote-management",
},
],
},
{
+7
View File
@@ -57,6 +57,13 @@ export const recipesSidebar = [
type: "link",
path: "/recipes/b2b",
title: "B2B",
children: [
{
type: "link",
path: "/examples/guides/quote-management",
title: "Example: Quote Management",
},
],
},
{
type: "link",
-4
View File
@@ -27,10 +27,6 @@ export const admin = [
"title": "draftOrder",
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/draftOrder"
},
{
"title": "draftOrder",
"path": "/references/js-sdk/admin/draftOrder"
},
{
"title": "exchange",
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/exchange"
+4
View File
@@ -3,6 +3,10 @@ export const cart = [
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
},
{
"title": "Create Cart Context in Storefront",
"path": "https://docs.medusajs.com/resources/storefront-development/cart/context"
+21 -21
View File
@@ -2,40 +2,40 @@ export * from "./user-guide.js"
export * from "./payment.js"
export * from "./fulfillment.js"
export * from "./pricing.js"
export * from "./inventory.js"
export * from "./product.js"
export * from "./promotion.js"
export * from "./customer.js"
export * from "./order.js"
export * from "./api-key.js"
export * from "./user.js"
export * from "./workflow.js"
export * from "./auth.js"
export * from "./stock-location.js"
export * from "./region.js"
export * from "./api-key.js"
export * from "./store.js"
export * from "./sales-channel.js"
export * from "./store.js"
export * from "./currency.js"
export * from "./customer.js"
export * from "./query.js"
export * from "./order.js"
export * from "./tax.js"
export * from "./stripe.js"
export * from "./concept.js"
export * from "./storefront.js"
export * from "./promotion.js"
export * from "./workflow.js"
export * from "./cart.js"
export * from "./product-category.js"
export * from "./query.js"
export * from "./js-sdk.js"
export * from "./server.js"
export * from "./storefront.js"
export * from "./example.js"
export * from "./checkout.js"
export * from "./auth.js"
export * from "./product-category.js"
export * from "./link.js"
export * from "./product-collection.js"
export * from "./step.js"
export * from "./publishable-api-key.js"
export * from "./inventory.js"
export * from "./remote-query.js"
export * from "./logger.js"
export * from "./link.js"
export * from "./event-bus.js"
export * from "./file.js"
export * from "./admin.js"
export * from "./notification.js"
export * from "./locking.js"
export * from "./js-sdk.js"
export * from "./event-bus.js"
export * from "./admin.js"
export * from "./draft-order.js"
export * from "./server.js"
export * from "./notification.js"
export * from "./step.js"
export * from "./checkout.js"
export * from "./stripe.js"
export * from "./file.js"
-4
View File
@@ -31,10 +31,6 @@ export const jsSdk = [
"title": "draftOrder",
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/draftOrder"
},
{
"title": "draftOrder",
"path": "/references/js-sdk/admin/draftOrder"
},
{
"title": "exchange",
"path": "https://docs.medusajs.com/resources/references/js-sdk/admin/exchange"
+4
View File
@@ -35,6 +35,10 @@ export const order = [
"title": "Manage Return Reasons",
"path": "https://docs.medusajs.com/user-guide/settings/return-reasons"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
},
{
"title": "Checkout Step 5: Complete Cart",
"path": "https://docs.medusajs.com/resources/storefront-development/checkout/complete-cart"
+4
View File
@@ -10,5 +10,9 @@ export const server = [
{
"title": "Implement Custom Line Item Pricing in Medusa",
"path": "https://docs.medusajs.com/resources/examples/guides/custom-item-price"
},
{
"title": "Implement Quote Management",
"path": "https://docs.medusajs.com/resources/examples/guides/quote-management"
}
]