From a4a4232d4a70d09c4f087fc65131ad774af50725 Mon Sep 17 00:00:00 2001 From: adrien2p Date: Fri, 15 Nov 2024 12:16:41 +0100 Subject: [PATCH] feat(product): Make product option value linkable --- .../product/integration-tests/__tests__/product.ts | 10 ++++++++++ packages/modules/product/src/joiner-config.ts | 2 ++ 2 files changed, 12 insertions(+) diff --git a/packages/modules/product/integration-tests/__tests__/product.ts b/packages/modules/product/integration-tests/__tests__/product.ts index d1e1b7b9fef4d..eb2b276148959 100644 --- a/packages/modules/product/integration-tests/__tests__/product.ts +++ b/packages/modules/product/integration-tests/__tests__/product.ts @@ -55,6 +55,7 @@ moduleIntegrationTestRunner({ "product", "productVariant", "productOption", + "productOptionValue", "productType", "productImage", "productTag", @@ -101,6 +102,15 @@ moduleIntegrationTestRunner({ field: "productOption", }, }, + productOptionValue: { + id: { + linkable: "product_option_value_id", + entity: "ProductOptionValue", + primaryKey: "id", + serviceName: "product", + field: "productOptionValue", + }, + }, productType: { id: { linkable: "product_type_id", diff --git a/packages/modules/product/src/joiner-config.ts b/packages/modules/product/src/joiner-config.ts index f6a60f7f35459..c59334ee56897 100644 --- a/packages/modules/product/src/joiner-config.ts +++ b/packages/modules/product/src/joiner-config.ts @@ -4,6 +4,7 @@ import { ProductCategory, ProductCollection, ProductOption, + ProductOptionValue, ProductTag, ProductType, ProductVariant, @@ -17,6 +18,7 @@ export const joinerConfig = defineJoinerConfig(Modules.PRODUCT, { Product, ProductVariant, ProductOption, + ProductOptionValue, ProductType, ProductImage, ProductTag,