What: - Adds PriceSet, PriceSetMoneyAmount, updates schema - Adds service/repo for PriceSet - Shifts entry point to use PriceSet - Updates link/joiner config RESOLVES CORE-1495
26 lines
540 B
TypeScript
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"
|
|
),
|
|
}
|