From 1afc577e549f2c4cce388b6c8f3309ce2e50e450 Mon Sep 17 00:00:00 2001 From: Adrien de Peretti Date: Fri, 15 Nov 2024 12:32:55 +0100 Subject: [PATCH] feat(product): Make product option value linkable (#10116) RESOLVES FRMW-2799 **What** Make the 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,