The complete open source platform to run your entire marketplace. Storefront, vendor panel, admin console, and integrations in one enterprise-grade platform you own.
TypeScript b2b-marketplacecomposable-commerceecommerceenterpriseheadless-commercemarketplacemedusamedusajsmulti-vendortypescript
import { defineLink } from "@medusajs/framework/utils"
import PromotionModule from "@medusajs/medusa/promotion"
import PromotionCostModule from "../modules/promotion-cost"
export default defineLink(
{
linkable: PromotionModule.linkable.promotion,
field: "id",
},
{
...PromotionCostModule.linkable.promotionCost.id,
primaryKey: "promotion_id",
},
{
readOnly: true,
}
)