feat(product): return parents tree (#6944)

*What*

include option `include_ancestors_tree` to list products including the parent tree.
This commit is contained in:
Carlos R. L. Rodrigues
2024-04-05 16:46:55 +00:00
committed by GitHub
parent 8ecfa4b6f5
commit 09a2220569
7 changed files with 618 additions and 67 deletions
@@ -1,5 +1,7 @@
import { RepositoryTransformOptions } from '../common'
import { RepositoryTransformOptions } from "../common"
export interface ProductCategoryTransformOptions extends RepositoryTransformOptions {
export interface ProductCategoryTransformOptions
extends RepositoryTransformOptions {
includeDescendantsTree?: boolean
includeParentsTree?: boolean
}
+4
View File
@@ -915,6 +915,10 @@ export interface FilterableProductCategoryProps
* Whether to include children of retrieved product categories.
*/
include_descendants_tree?: boolean
/**
* Whether to include parents of retrieved product categories.
*/
include_ancestors_tree?: boolean
}
/**