This commit is contained in:
cdricms
2025-12-06 16:33:17 +01:00
parent 7be99711e1
commit 043de16a16
31 changed files with 594 additions and 1674 deletions

View File

@@ -0,0 +1,30 @@
import FoundationEssentials
public enum SearchParameter: Sendable, Hashable {
case query(String)
case tag(tag: SearchTagType, value: String)
case page(Int)
case pageSize(Int)
case sort(SearchSort)
}
public enum SearchTagType: String, Sendable {
case brands
case categories
case packaging
case labels
case origins
case manufacturingPlaces = "manufacturing_places"
case countries
case additives
case allergens
case traces
case states
}
public enum SearchSort: String, Sendable {
case popularity
case productName = "product_name"
case created
case edited
}