fix(medusa, types): filter product by external_id (#10010)
This commit is contained in:
@@ -697,6 +697,10 @@ export interface FilterableProductProps
|
|||||||
* The IDs to filter products by.
|
* The IDs to filter products by.
|
||||||
*/
|
*/
|
||||||
id?: string | string[]
|
id?: string | string[]
|
||||||
|
/**
|
||||||
|
* The external IDs to filter products by.
|
||||||
|
*/
|
||||||
|
external_id?: string | string[]
|
||||||
/**
|
/**
|
||||||
* Filters only or excluding gift card products
|
* Filters only or excluding gift card products
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export const StoreGetProductParamsDirectFields = z.object({
|
|||||||
handle: z.string().optional(),
|
handle: z.string().optional(),
|
||||||
is_giftcard: booleanString().optional(),
|
is_giftcard: booleanString().optional(),
|
||||||
category_id: z.union([z.string(), z.array(z.string())]).optional(),
|
category_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
|
external_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
collection_id: z.union([z.string(), z.array(z.string())]).optional(),
|
collection_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
tag_id: z.union([z.string(), z.array(z.string())]).optional(),
|
tag_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
type_id: z.union([z.string(), z.array(z.string())]).optional(),
|
type_id: z.union([z.string(), z.array(z.string())]).optional(),
|
||||||
|
|||||||
Reference in New Issue
Block a user