ecapi-sdk 3.3.4__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.4 → ecapi_sdk-3.3.6}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk/client.py +12 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk/client.pyi +27 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/README.md +0 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/setup.cfg +0 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.4 → ecapi_sdk-3.3.6}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.4 → 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)
|
|
@@ -19,6 +19,8 @@ class PIT2APIUpdatePlayerBody(PIT2APIUpdatePlayerBodyRequired, total=False):
|
|
|
19
19
|
class PIT2APIGetEnderChestQuery(TypedDict, total=False):
|
|
20
20
|
current: QueryValue
|
|
21
21
|
pageSize: QueryValue
|
|
22
|
+
startTime: QueryValue
|
|
23
|
+
endTime: QueryValue
|
|
22
24
|
|
|
23
25
|
class PIT2APIUpdateEnderChestBodyRequired(TypedDict):
|
|
24
26
|
expectedRevision: str
|
|
@@ -62,6 +64,8 @@ class PIT2APIGetSeasonExchangesQuery(TypedDict, total=False):
|
|
|
62
64
|
class PIT2APIGetInventoryQuery(TypedDict, total=False):
|
|
63
65
|
current: QueryValue
|
|
64
66
|
pageSize: QueryValue
|
|
67
|
+
startTime: QueryValue
|
|
68
|
+
endTime: QueryValue
|
|
65
69
|
|
|
66
70
|
class PIT2APIUpdateInventoryBodyRequired(TypedDict):
|
|
67
71
|
expectedRevision: str
|
|
@@ -581,6 +585,26 @@ class PlayerAPISearchQueryRequired(TypedDict):
|
|
|
581
585
|
class PlayerAPISearchQuery(PlayerAPISearchQueryRequired, total=False):
|
|
582
586
|
pass
|
|
583
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
|
+
|
|
584
608
|
class PlayerAPIGetFarmSummaryQuery(TypedDict, total=False):
|
|
585
609
|
recentSpendLimit: QueryValue
|
|
586
610
|
|
|
@@ -1132,6 +1156,9 @@ class PlayerAPI:
|
|
|
1132
1156
|
status: PlayerStatusAPI
|
|
1133
1157
|
year_summary: PlayerYearSummaryAPI
|
|
1134
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: ...
|
|
1135
1162
|
def get_farm_summary(self, ecid: str, query: Optional[PlayerAPIGetFarmSummaryQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1136
1163
|
def get_friends(self, ecid: str, query: Optional[PlayerAPIGetFriendsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1137
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
|