feat(fulfillment): shipping options context field (#7169)

This commit is contained in:
Carlos R. L. Rodrigues
2024-05-02 09:59:14 -03:00
committed by GitHub
parent 25b0ccc60a
commit 9d3f495314
22 changed files with 973 additions and 371 deletions
@@ -1,6 +1,6 @@
import { LINKS } from "@medusajs/utils"
import { ModuleJoinerConfig } from "@medusajs/types"
import { Modules } from "@medusajs/modules-sdk"
import { ModuleJoinerConfig } from "@medusajs/types"
import { LINKS } from "@medusajs/utils"
export const ProductVariantInventoryItem: ModuleJoinerConfig = {
serviceName: LINKS.ProductVariantInventoryItem,
@@ -48,6 +48,9 @@ export const ProductVariantInventoryItem: ModuleJoinerConfig = {
extends: [
{
serviceName: Modules.PRODUCT,
fieldAlias: {
inventory: "inventory_items.inventory",
},
relationship: {
serviceName: LINKS.ProductVariantInventoryItem,
primaryKey: "variant_id",
@@ -43,6 +43,7 @@ export const ProductVariantPriceSet: ModuleJoinerConfig = {
serviceName: Modules.PRODUCT,
fieldAlias: {
price_set: "price_set_link.price_set",
prices: "price_set_link.price_set.prices",
calculated_price: {
path: "price_set_link.price_set.calculated_price",
forwardArgumentsOnPath: ["price_set_link.price_set"],