Files
medusa-store/packages/link-modules/src/links.ts
Riqwan Thamir 834da5c41a feat(pricing, types): PriceSets as entry point to pricing module (#4978)
What:
- Adds PriceSet, PriceSetMoneyAmount, updates schema
- Adds service/repo for PriceSet
- Shifts entry point to use PriceSet
- Updates link/joiner config

RESOLVES CORE-1495
2023-09-11 17:24:31 +00:00

26 lines
540 B
TypeScript

import { Modules } from "@medusajs/modules-sdk"
import { composeLinkName } from "./utils"
export const LINKS = {
ProductVariantInventoryItem: composeLinkName(
Modules.PRODUCT,
"variant_id",
Modules.INVENTORY,
"inventory_item_id"
),
ProductVariantPriceSet: composeLinkName(
Modules.PRODUCT,
"variant_id",
Modules.PRICING,
"price_set_id"
),
// Internal services
ProductShippingProfile: composeLinkName(
Modules.PRODUCT,
"variant_id",
"shippingProfileService",
"profile_id"
),
}