trendsagi 0.1.1__tar.gz → 0.1.2__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.
- {trendsagi-0.1.1/src/trendsagi.egg-info → trendsagi-0.1.2}/PKG-INFO +1 -1
- {trendsagi-0.1.1 → trendsagi-0.1.2}/pyproject.toml +1 -1
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi/client.py +8 -2
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi/models.py +6 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2/src/trendsagi.egg-info}/PKG-INFO +1 -1
- {trendsagi-0.1.1 → trendsagi-0.1.2}/LICENSE +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/README.md +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/setup.cfg +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi/__init__.py +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi/exceptions.py +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi.egg-info/SOURCES.txt +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi.egg-info/dependency_links.txt +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi.egg-info/requires.txt +0 -0
- {trendsagi-0.1.1 → trendsagi-0.1.2}/src/trendsagi.egg-info/top_level.txt +0 -0
@@ -57,6 +57,9 @@ class TrendsAGIClient:
|
|
57
57
|
|
58
58
|
# --- Trends & Insights Methods ---
|
59
59
|
|
60
|
+
# --- START OF FIX ---
|
61
|
+
# Added start_date and end_date to the function signature.
|
62
|
+
# The `locals()` trick will automatically pick them up and add them to params if they are not None.
|
60
63
|
def get_trends(
|
61
64
|
self,
|
62
65
|
search: Optional[str] = None,
|
@@ -65,8 +68,11 @@ class TrendsAGIClient:
|
|
65
68
|
limit: int = 20,
|
66
69
|
offset: int = 0,
|
67
70
|
period: str = '24h',
|
68
|
-
category: Optional[str] = None
|
71
|
+
category: Optional[str] = None,
|
72
|
+
start_date: Optional[str] = None,
|
73
|
+
end_date: Optional[str] = None
|
69
74
|
) -> models.TrendListResponse:
|
75
|
+
# --- END OF FIX ---
|
70
76
|
"""
|
71
77
|
Retrieve a list of currently trending topics.
|
72
78
|
"""
|
@@ -140,7 +146,7 @@ class TrendsAGIClient:
|
|
140
146
|
source_trend_query: Optional[str] = None, priority: Optional[str] = None, status: str = 'new'
|
141
147
|
) -> models.RecommendationListResponse:
|
142
148
|
"""
|
143
|
-
Get actionable recommendations generated for the
|
149
|
+
Get actionable recommendations generated for the.
|
144
150
|
"""
|
145
151
|
params = {
|
146
152
|
"limit": limit, "offset": offset, "type": recommendation_type,
|
@@ -18,6 +18,12 @@ class PaginationMeta(OrmBaseModel):
|
|
18
18
|
order: Optional[str] = None
|
19
19
|
search: Optional[str] = None
|
20
20
|
category: Optional[str] = None
|
21
|
+
# --- START OF FIX ---
|
22
|
+
# Add these optional fields to match the updated server response.
|
23
|
+
# They will be populated when a custom date range is used.
|
24
|
+
start_date: Optional[date] = None
|
25
|
+
end_date: Optional[date] = None
|
26
|
+
# --- END OF FIX ---
|
21
27
|
|
22
28
|
# --- Trends & Insights Models ---
|
23
29
|
class TrendItem(OrmBaseModel):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|