feat: Make tags unique, clean up searchability of product entities (#7014)

This commit is contained in:
Stevche Radevski
2024-04-08 17:55:40 +02:00
committed by GitHub
parent 9b5e025863
commit db2f0ef53f
21 changed files with 105 additions and 299 deletions
+21 -1
View File
@@ -724,6 +724,10 @@ export interface FilterableProductProps
*/
export interface FilterableProductTagProps
extends BaseFilterable<FilterableProductTagProps> {
/**
* Search through the tags' values.
*/
q?: string
/**
* The IDs to filter product tags by.
*/
@@ -731,7 +735,7 @@ export interface FilterableProductTagProps
/**
* The value to filter product tags by.
*/
value?: string
value?: string | string[]
}
/**
@@ -744,6 +748,10 @@ export interface FilterableProductTagProps
*/
export interface FilterableProductTypeProps
extends BaseFilterable<FilterableProductTypeProps> {
/**
* Search through the types' values.
*/
q?: string
/**
* The IDs to filter product types by.
*/
@@ -765,6 +773,10 @@ export interface FilterableProductTypeProps
*/
export interface FilterableProductOptionProps
extends BaseFilterable<FilterableProductOptionProps> {
/**
* Search through the options' titles.
*/
q?: string
/**
* The IDs to filter product options by.
*/
@@ -789,6 +801,10 @@ export interface FilterableProductOptionProps
*/
export interface FilterableProductCollectionProps
extends BaseFilterable<FilterableProductCollectionProps> {
/**
* Search through the collections' titles.
*/
q?: string
/**
* The IDs to filter product collections by.
*/
@@ -815,6 +831,10 @@ export interface FilterableProductCollectionProps
*/
export interface FilterableProductVariantProps
extends BaseFilterable<FilterableProductVariantProps> {
/**
* Search through the title and different code attributes on the variant
*/
q?: string
/**
* The IDs to filter product variants by.
*/