ecapi-sdk 3.3.5__tar.gz → 3.3.6__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.
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk/client.py +12 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk/client.pyi +23 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/README.md +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/setup.cfg +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.5 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -735,6 +735,18 @@ class PlayerAPI(_BaseApi):
|
|
|
735
735
|
"""获取玩家基础数据"""
|
|
736
736
|
return self._get(f"/players/{quote(str(ecid), safe='')}/data", None, **kwargs)
|
|
737
737
|
|
|
738
|
+
def get_farm_archive(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
739
|
+
"""分页查询 EC 农场馆藏"""
|
|
740
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/archive", query, **kwargs)
|
|
741
|
+
|
|
742
|
+
def get_farm_freshness_batches(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
743
|
+
"""分页查询 EC 农场加工品新鲜度批次"""
|
|
744
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/freshness-batches", query, **kwargs)
|
|
745
|
+
|
|
746
|
+
def get_farm_overview(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
747
|
+
"""查询 EC 农场 S1 完整总览"""
|
|
748
|
+
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/overview", query, **kwargs)
|
|
749
|
+
|
|
738
750
|
def get_farm_summary(self, ecid: str, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
739
751
|
"""查询 EC 农场摘要"""
|
|
740
752
|
return self._get(f"/players/{quote(str(ecid), safe='')}/farm/summary", query, **kwargs)
|
|
@@ -585,6 +585,26 @@ class PlayerAPISearchQueryRequired(TypedDict):
|
|
|
585
585
|
class PlayerAPISearchQuery(PlayerAPISearchQueryRequired, total=False):
|
|
586
586
|
pass
|
|
587
587
|
|
|
588
|
+
class PlayerAPIGetFarmArchiveQuery(TypedDict, total=False):
|
|
589
|
+
current: QueryValue
|
|
590
|
+
pageSize: QueryValue
|
|
591
|
+
startTime: QueryValue
|
|
592
|
+
endTime: QueryValue
|
|
593
|
+
displayed: QueryValue
|
|
594
|
+
itemId: QueryValue
|
|
595
|
+
|
|
596
|
+
class PlayerAPIGetFarmFreshnessBatchesQuery(TypedDict, total=False):
|
|
597
|
+
current: QueryValue
|
|
598
|
+
pageSize: QueryValue
|
|
599
|
+
startTime: QueryValue
|
|
600
|
+
endTime: QueryValue
|
|
601
|
+
itemId: QueryValue
|
|
602
|
+
includeConsumed: QueryValue
|
|
603
|
+
order: QueryValue
|
|
604
|
+
|
|
605
|
+
class PlayerAPIGetFarmOverviewQuery(TypedDict, total=False):
|
|
606
|
+
recentLimit: QueryValue
|
|
607
|
+
|
|
588
608
|
class PlayerAPIGetFarmSummaryQuery(TypedDict, total=False):
|
|
589
609
|
recentSpendLimit: QueryValue
|
|
590
610
|
|
|
@@ -1136,6 +1156,9 @@ class PlayerAPI:
|
|
|
1136
1156
|
status: PlayerStatusAPI
|
|
1137
1157
|
year_summary: PlayerYearSummaryAPI
|
|
1138
1158
|
def get_data(self, ecid: str, **kwargs: Any) -> Any: ...
|
|
1159
|
+
def get_farm_archive(self, ecid: str, query: Optional[PlayerAPIGetFarmArchiveQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1160
|
+
def get_farm_freshness_batches(self, ecid: str, query: Optional[PlayerAPIGetFarmFreshnessBatchesQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1161
|
+
def get_farm_overview(self, ecid: str, query: Optional[PlayerAPIGetFarmOverviewQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1139
1162
|
def get_farm_summary(self, ecid: str, query: Optional[PlayerAPIGetFarmSummaryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1140
1163
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1141
1164
|
def get_head_icon(self, ecid: str, query: Optional[PlayerAPIGetHeadIconQuery] = ..., **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|