ecapi-sdk 3.3.14__tar.gz → 3.3.15__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.14 → ecapi_sdk-3.3.15}/PKG-INFO +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/pyproject.toml +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk/client.py +4 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk/client.pyi +7 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk.egg-info/PKG-INFO +1 -1
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/README.md +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/setup.cfg +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk/__init__.py +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk/py.typed +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk.egg-info/SOURCES.txt +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk.egg-info/dependency_links.txt +0 -0
- {ecapi_sdk-3.3.14 → ecapi_sdk-3.3.15}/src/ecapi_sdk.egg-info/top_level.txt +0 -0
|
@@ -309,6 +309,10 @@ class _BaseApi:
|
|
|
309
309
|
return self._http.request("DELETE", path, query=query, **request_kwargs, **query_kwargs)
|
|
310
310
|
|
|
311
311
|
class PIT2API(_BaseApi):
|
|
312
|
+
def build_item(self, payload: Mapping[str, Any], **kwargs: Any) -> Any:
|
|
313
|
+
"""生成或解析 PIT2 物品"""
|
|
314
|
+
return self._post(f"/pit2/item-builds", payload, **kwargs)
|
|
315
|
+
|
|
312
316
|
def get_draws(self, query: Optional[QueryParams] = None, **kwargs: Any) -> Any:
|
|
313
317
|
"""分页查询全服 PIT2 抽奖会话"""
|
|
314
318
|
return self._get(f"/pit2/gacha-draws", query, **kwargs)
|
|
@@ -38,6 +38,12 @@ class PIT2APIGetSeasonExchangesQuery(TypedDict, total=False):
|
|
|
38
38
|
seasonId: QueryValue
|
|
39
39
|
itemKey: QueryValue
|
|
40
40
|
|
|
41
|
+
class PIT2APIBuildItemBodyRequired(TypedDict):
|
|
42
|
+
source: Mapping[str, Any]
|
|
43
|
+
|
|
44
|
+
class PIT2APIBuildItemBody(PIT2APIBuildItemBodyRequired, total=False):
|
|
45
|
+
pass
|
|
46
|
+
|
|
41
47
|
class PIT2APIGetItemLocationsByUuidQuery(TypedDict, total=False):
|
|
42
48
|
current: QueryValue
|
|
43
49
|
pageSize: QueryValue
|
|
@@ -1043,6 +1049,7 @@ class ECAPIError(Exception):
|
|
|
1043
1049
|
def __init__(self, message: str, status: int, payload: Any, url: str) -> None: ...
|
|
1044
1050
|
|
|
1045
1051
|
class PIT2API:
|
|
1052
|
+
def build_item(self, payload: PIT2APIBuildItemBody, **kwargs: Any) -> Any: ...
|
|
1046
1053
|
def get_draws(self, query: Optional[PIT2APIGetDrawsQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1047
1054
|
def get_ender_chest(self, xuid: str, query: Optional[PIT2APIGetEnderChestQuery] = ..., **kwargs: Any) -> Any: ...
|
|
1048
1055
|
def get_event_queue(self, **kwargs: Any) -> Any: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|