channel3-sdk 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of channel3-sdk might be problematic. Click here for more details.
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/PKG-INFO +1 -1
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/channel3_sdk/models.py +19 -6
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/pyproject.toml +1 -1
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/README.md +0 -0
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/channel3_sdk/__init__.py +0 -0
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/channel3_sdk/client.py +0 -0
- {channel3_sdk-0.1.0 → channel3_sdk-0.1.1}/channel3_sdk/exceptions.py +0 -0
|
@@ -91,15 +91,26 @@ class ProductDetail(BaseModel):
|
|
|
91
91
|
)
|
|
92
92
|
|
|
93
93
|
|
|
94
|
+
class SearchFilterPrice(BaseModel):
|
|
95
|
+
"""Price filter for product search."""
|
|
96
|
+
|
|
97
|
+
min_price: Optional[float] = Field(None, description="Minimum price filter")
|
|
98
|
+
max_price: Optional[float] = Field(None, description="Maximum price filter")
|
|
99
|
+
|
|
100
|
+
|
|
94
101
|
class SearchFilters(BaseModel):
|
|
95
102
|
"""Search filters for product search."""
|
|
96
103
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
None, description="
|
|
104
|
+
brands: Optional[List[str]] = Field(None, description="List of brands to filter by")
|
|
105
|
+
gender: Optional[Literal["male", "female", "unisex"]] = Field(
|
|
106
|
+
None, description="Gender to filter by"
|
|
107
|
+
)
|
|
108
|
+
price: Optional[SearchFilterPrice] = Field(
|
|
109
|
+
None, description="Price range to filter by"
|
|
110
|
+
)
|
|
111
|
+
availability: Optional[AvailabilityStatus] = Field(
|
|
112
|
+
None, description="Availability status to filter by"
|
|
100
113
|
)
|
|
101
|
-
min_price: Optional[float] = Field(None, description="Minimum price filter")
|
|
102
|
-
max_price: Optional[float] = Field(None, description="Maximum price filter")
|
|
103
114
|
|
|
104
115
|
|
|
105
116
|
class SearchRequest(BaseModel):
|
|
@@ -110,7 +121,9 @@ class SearchRequest(BaseModel):
|
|
|
110
121
|
base64_image: Optional[str] = Field(
|
|
111
122
|
None, description="Base64-encoded image for visual search"
|
|
112
123
|
)
|
|
113
|
-
filters:
|
|
124
|
+
filters: SearchFilters = Field(
|
|
125
|
+
default_factory=SearchFilters, description="Search filters"
|
|
126
|
+
)
|
|
114
127
|
limit: Optional[int] = Field(
|
|
115
128
|
default=20, description="Maximum number of results to return"
|
|
116
129
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|