feat(product): return parents tree (#6944)
*What* include option `include_ancestors_tree` to list products including the parent tree.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user