feat: V2 batch update products in categories (#7125)

* wip

* wip

* fix: batch category update

* update tet

* fix type

---------

Co-authored-by: Stevche Radevski <sradevski@live.com>
This commit is contained in:
Oli JuhlandStevche Radevski authored and GitHub committed 2024-04-23 17:17:25 +02:00
1 parent 2446151420
commit 10e120062b
13 files changed
+269 -25

No files matched your search

+11
View File
@@ -324,6 +324,12 @@ export interface ProductCategoryDTO {
* @expandable
*/
category_children: ProductCategoryDTO[]
/**
* The associated products.
*
* @expandable
*/
products: ProductDTO[]
/**
* When the product category was created.
*/
@@ -702,9 +708,14 @@ export interface FilterableProductProps
*/
type_id?: string | string[]
/**
* @deprecated - Use `categories` instead
* Filter a product by the IDs of their associated categories.
*/
category_id?: string | string[] | OperatorMap<string>
/**
* Filter a product by the IDs of their associated categories.
*/
categories?: { id: OperatorMap<string> } | { id: OperatorMap<string[]> }
/**
* Filters a product by the IDs of their associated collections.
*/
-1
View File
@@ -9,4 +9,3 @@ export * as ProductCategoryWorkflow from "./product-category"
export * as RegionWorkflow from "./region"
export * as ReservationWorkflow from "./reservation"
export * as UserWorkflow from "./user"
@@ -1,3 +1,4 @@
import { LinkWorkflowInput } from "../../common"
import {
CreateProductCategoryDTO,
UpdateProductCategoryDTO,
@@ -14,3 +15,6 @@ export interface UpdateProductCategoryWorkflowInput {
id: string
data: UpdateProductCategoryDTO
}
export interface BatchUpdateProductsOnCategoryWorkflowInput
extends LinkWorkflowInput {}