fix: listVariantsList types (#11441)
This commit is contained in:
5
.changeset/nervous-dryers-swim.md
Normal file
5
.changeset/nervous-dryers-swim.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/types": patch
|
||||
---
|
||||
|
||||
fix: listVariantsList types
|
||||
@@ -726,8 +726,13 @@ export interface FilterableProductProps
|
||||
* Filters on a product's variant properties.
|
||||
*/
|
||||
variants?: {
|
||||
options?: { value: string; option_id: string }
|
||||
options?: {
|
||||
value?: string
|
||||
option_id?: string
|
||||
option?: Record<string, any>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter a product by the ID of the associated type
|
||||
*/
|
||||
@@ -899,22 +904,29 @@ export interface FilterableProductVariantProps
|
||||
* Search through the title and different code attributes on the variant
|
||||
*/
|
||||
q?: string
|
||||
|
||||
/**
|
||||
* The IDs to filter product variants by.
|
||||
*/
|
||||
id?: string | string[]
|
||||
id?: string | string[] | OperatorMap<string | string[]>
|
||||
|
||||
/**
|
||||
* The SKUs to filter product variants by.
|
||||
*/
|
||||
sku?: string | string[]
|
||||
sku?: string | string[] | OperatorMap<string | string[]>
|
||||
/**
|
||||
* Filter the product variants by their associated products' IDs.
|
||||
*/
|
||||
product_id?: string | string[]
|
||||
product_id?: string | string[] | OperatorMap<string | string[]>
|
||||
|
||||
/**
|
||||
* Filter product variants by their associated options.
|
||||
*/
|
||||
options?: Record<string, string>
|
||||
options?: {
|
||||
value?: string
|
||||
option_id?: string
|
||||
option?: Record<string, any>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user